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
Default constructor for the CourseCalendar class. Pattern : SUMMARY contains course code DESCRIPTION contains course title and section type Recurring : True Rounded : False
public CourseCalendar(List<Course> courses) { this(courses, "C-TY", true, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CourseCalendar(List<Course> courses, String pattern, boolean recurring, boolean rounded) {\n this.mClasses = courses;\n this.mPattern = pattern;\n this.mRecurring = recurring;\n this.mRounded = rounded;\n }", "public Course(String title,String stream, String type, LocalDate start_date,LocalDate end_date){\n this.title = title;\n this.stream = stream;\n this.type = type;\n this.start_date = start_date;\n this.end_date = end_date;\n }", "public Schedule() {\n\t\tcourses = new ArrayList<Course>();\n\t}", "Course() {\r\n\t\tsetValidDays(true);\r\n\t\tsetName(null);\r\n\t\tsetNumberOfDays(0);\r\n\t\tsetPrice(0.0);\r\n\t}", "public Calendar() {\n }", "public SectionDesc ()\r\n {\r\n }", "public Course() {\n term = \"\";\n subject = \"\";\n number = 0;\n newRoom = 0;\n oldRoomLetter = \"\";\n section = new String();\n crossList = new String();\n title = new String();\n faculty = new String();\n building = new String();\n room = \"\";\n startDate = \"\";\n dayTime = new String();\n\n }", "public Calendar() {\n initComponents();\n }", "public ScheduleExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "public Course(String subject, int courseCode, int section, int crn,\n\t\t\tint creditHours, int capacity, int waitListCapacity,\n\t\t\tint waitListCount, String building, int room, String courseDays,\n\t\t\tString courseTime, String fullTermEndDate, String partTermEndDate,\n\t\t\tString instructor) {\n\t\tthis.subject = subject;\n\t\tthis.courseCode = courseCode;\n\t\tthis.section = section;\n\t\tthis.crn = crn;\n\t\tthis.creditHours = creditHours;\n\t\tthis.capacity = capacity;\n\t\tthis.waitListCapacity = waitListCapacity;\n\t\tthis.waitListCount = waitListCount;\n\t\tthis.building = building;\n\t\tthis.room = room;\n\t\tthis.courseDays = courseDays;\n\t\tthis.courseTime = courseTime;\n\t\tthis.fullTermEndDate = fullTermEndDate;\n\t\tthis.partTermEndDate = partTermEndDate;\n\t\tthis.instructor = instructor;\n\t}", "public JCalendar() {\r\n init();\r\n resetToDefaults();\r\n }", "public Course(String mandatoryElective, String name, String code, String instructor, String credits, String acronym, String monday, String tuesday, String wednesday, String thurdsday, String friday, String tut, String lab, String preConditions, String postConditions) {\r\n this.name = name;\r\n this.acronym = acronym;\r\n this.instructor = instructor;\r\n this.mandatoryElective = mandatoryElective;\r\n this.credits = credits;\r\n this.code = code;\r\n this.monday = monday;\r\n this.tuesday = tuesday;\r\n this.wednesday = wednesday;\r\n this.thurdsday = thurdsday;\r\n this.friday = friday;\r\n this.tut = tut;\r\n this.lab = lab;\r\n this.preConditions = preConditions;\r\n this.postConditions = postConditions;\r\n }", "private QaCalendar() {\n }", "RollingCalendar()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public Calendar() {\n dateAndTimeables = new HashMap<>();\n }", "VTClass(String crn, String course, String title, String type, \n\t\t\tString cHrs, String size, String instructor, String days, String beginTime,\n\t\t\tString endTime, String location){\n\t\n\t\tthis.CRN = crn;\n\t\tthis.course = course;\n\t\tthis.title = title;\n\t\tthis.type = type;\n\t\tthis.creditHours = cHrs;\n\t\tthis.capacity = size;\n\t\tthis.instructor = instructor;\n\t\tthis.days = days;\n\t\tthis.additionalDay = \"\";\n\t\tthis.beginTime = beginTime;\n\t\tthis.additionalBeginTime = \"\";\n\t\tthis.endTime = endTime;\n\t\tthis.additionalEndTime = \"\";\n\t\tthis.location = location;\n\t\tthis.additionalLocation = \"\";\n\t}", "VTClass(String crn, String course, String title, String type, \n\t\t\tString cHrs, String size, String instructor, String days, \n\t\t\tString additionalDay, String beginTime, String additionalBeginTime,\n\t\t\tString endTime, String additionalEndTime, String location, String additionalLocation){\n\t\n\t\tthis.CRN = crn;\n\t\tthis.course = course;\n\t\tthis.title = title;\n\t\tthis.type = type;\n\t\tthis.creditHours = cHrs;\n\t\tthis.capacity = size;\n\t\tthis.instructor = instructor;\n\t\tthis.days = days;\n\t\tthis.additionalDay = additionalDay;\n\t\tthis.beginTime = beginTime;\n\t\tthis.additionalBeginTime = additionalBeginTime;\n\t\tthis.endTime = endTime;\n\t\tthis.additionalEndTime = additionalEndTime;\n\t\tthis.location = location;\n\t\tthis.additionalLocation = additionalLocation;\n\t}", "public Course() {\n this(\"course\", null);\n }", "public Course() {\n super();\n }", "private Course dummyCourse(int crn)\n\t{\n\t\tCourse rVal = new Course(null, null, crn, 0, null, 0, 0, 0, 1);\n\t\treturn rVal;\n\t}", "public Course() {\n\n\t}", "public CalendarEvent(String fullTitle) {\n Log.d(TAG, fullTitle);\n\n int firstSpaceLoc = fullTitle.indexOf(' ');\n if(firstSpaceLoc != -1) {\n this.date = fullTitle.substring(0, firstSpaceLoc);\n int useSpaceNum = 1;\n try {\n this.timeOccurring = fullTitle.substring(firstSpaceLoc + 1, fullTitle.indexOf('M') + 1);\n useSpaceNum = 2; //if we do find a time use the third space found in the fullTitle to get the title from the xml.\n } catch (Exception e){\n this.timeOccurring = \"06:00 AM\"; // if their is no specific time found in the title string, just set the time occuring to \"12am\".\n useSpaceNum = 0;\n Log.d(TAG, \"\\tNo time for calendar event found.\");\n } finally {\n this.title = fullTitle.substring(Utils.findNthIndexOf(fullTitle,\" \", useSpaceNum) + 1); // the rest of the title tag should be the name of the event.;\n parseEventType();\n logEvent();\n }\n }\n }", "public Course(String courseName, String cid, LocalDate start, LocalDate end) {\r\n \tthis.courseName = courseName;\r\n \tthis.cid = cid;\r\n \tthis.start = start;\r\n \tthis.end = end;\r\n \tthis.modules = new ArrayList<Module>();\r\n }", "public Schedule(String id, String eventName, String description,\n\t\t\tString location, String eventType, Date startDate, Date endDate,\n\t\t\tString startTime, String endTime, Integer remindBefore, \n\t\t\tString remindTimeType, Integer repeatEvery, boolean sunday, \n\t\t\tboolean monday, boolean tuesday, boolean wednesday, \n\t\t\tboolean thursday, boolean friday, boolean saturday,String assignedUser) {\n\t\tthis.id = id;\n\t\tthis.eventName = eventName;\n\t\tthis.description = description;\n\t\tthis.location = location;\n\t\tthis.eventType = eventType;\n\t\tthis.startDate = startDate;\n\t\tthis.endDate = endDate;\n\t\tthis.startTime = startTime;\n\t\tthis.endTime = endTime;\n\t\tthis.remindBefore = remindBefore;\n\t\tthis.remindTimeType = remindTimeType;\n\t\tthis.assignedUser = assignedUser;\n\t\t//this.scheduleEventId = scheduleEventId;\n\t\t//this.scheduleEventName = scheduleEventName;\n\t\tthis.repeatEvery = repeatEvery;\n\t\tdays.setSunday(sunday);\n\t\tdays.setMonday(monday);\n\t\tdays.setTuesday(tuesday);\n\t\tdays.setWednesday(wednesday);\n\t\tdays.setThursday(thursday);\n\t\tdays.setFriday(friday);\n\t\tdays.setSaturday(saturday);\n\t}", "public Olive(String desc, Money cst, int calrs){\n\t\tsuper(desc,cst,calrs);\n\t}", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Course() {}", "public Schedule() {\r\n }", "public CalendarEvent(String title, String date, String timeOccurring, EventType type) {\n this.title = title;\n this.date = date;\n this.timeOccurring = timeOccurring;\n this.type = type;\n }", "Appointment(){\n this.description =\" \";\n this.beginTime=null;\n this.endTime = null;\n }", "public Schedule() {\n this(DataManager.readAll());\n }", "public StudentCourse() {\n this(\"student_course\", null);\n }", "public native final Calendar summary(String val) /*-{\n\t\tthis[\"summary\"] = val;\n\t\treturn this;\n\t}-*/;", "@Test\n public void constructorDefault() {\n final CourseType courseType = new CourseType();\n\n assertNull(courseType.getId());\n assertNull(courseType.getName());\n assertNull(courseType.getPicture());\n assertNull(courseType.getPosition());\n assertNull(courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }", "public native final Calendar description(String val) /*-{\n\t\tthis[\"description\"] = val;\n\t\treturn this;\n\t}-*/;", "public Course(String codeNo, String title)\n {\n // initialise variables\n this.codeNo = codeNo;\n this.title = title;\n \n // Setup the four individual modules\n // I did it this way as I couldn't bear pointing-and-clicking to add modules!\n moduleProgramming = new Module(\"Programming\", \"ABC001\");\n moduleWeb = new Module(\"Web Design\", \"ABC002\");\n moduleDigitalTech = new Module(\"Digital Technology\", \"ABC003\");\n moduleCompArchitecture = new Module(\"Computer Architecture\", \"ABC004\");\n \n complete = false;\n totalCredits = 0;\n totalMark = 0;\n }", "public MCalendarEventView()\r\n {\r\n }", "public Appointment()\r\n {\r\n // cView = new CalendarEventView(\"appointmentView\");\r\n }", "public RegysDateCentExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private CalendarModel() {\n events = new ArrayList<>();\n }", "public Calendar (String name) {\n this.calendarName = name;\n this.events = new ArrayList<>();\n this.alerts = new ArrayList<>();\n }", "public Rates() {\n }", "@Test\n public void constructorComplete() {\n final String NAME = \"name\";\n final String PICTURE = \"pic\";\n final Integer POSITION = 5;\n final Integer STATUS = 1;\n final CourseType courseType = new CourseType(NAME, PICTURE, POSITION, STATUS);\n\n assertNull(courseType.getId());\n assertSame(NAME, courseType.getName());\n assertSame(PICTURE, courseType.getPicture());\n assertSame(POSITION, courseType.getPosition());\n assertSame(STATUS, courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }", "public Course() {\n }", "public Course() {\n }", "public CtRecord() {\n fill(0, MODES.CHRONO, false, false, false, false, null, null, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, getMidnightTimeMillis());\n }", "public Course (double creditHours) {\r\n\t\tname = \"A New Course\";\r\n\t\tnumGrade = 0;\r\n\t\tcredithours = creditHours;\r\n\t\tletterGrade = \"\";\r\n\t}", "public CrlSeries()\n {\n super();\n }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public MyCalendarModel() {\n\t\tcalendarToEvent = new TreeMap<Calendar, TreeSet<Event>>();\n\t}", "public OrgDay() {\n events = new LinkedList<>();\n }", "private CourseSummary summary(Date now, CourseGroup courseGroup) {\n\t\tif (courseGroup.getComponents().isEmpty()) {\n\t\t\treturn new CourseSummary(\"none available\", Collections.singletonList(CourseState.UNKNOWN));\n\t\t}\n\t\t\n\t\tInteger recentDays = courseService.getRecentDays();\n\t\tCollection<CourseState> states = new ArrayList<CourseState>();\n\t\t//CourseState state = CourseState.UNKNOWN;\n\t\tDate nextOpen = new Date(Long.MAX_VALUE);\n\t\tDate willClose = new Date(0);\n\t\tboolean isOneOpen = false;\n\t\tboolean isOneBookable = false;\n\t\tboolean areSomePlaces = false;\n\t\tboolean isNew = false;\n\t\t\n\t\tfor (CourseComponent component: courseGroup.getComponents()) {\n\t\t\tif (!isOneBookable) {\n\t\t\t\tisOneBookable = component.getBookable();\n\t\t\t}\n\t\t\t\n\t\t\tif (null != component.getOpens()) {\n\t\t\t\t// Check if component is the earliest one opening in the future.\n\t\t\t\t//boolean isGoingToOpen = component.getOpens().after(now) && component.getOpens().before(nextOpen);\n\t\t\t\tif (component.getOpens().after(now) && component.getOpens().before(nextOpen)) {\n\t\t\t\t\tnextOpen = component.getOpens();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (null != component.getCloses()) {\n\t\t\t\t\t// Check if the component is open and is open for the longest.\n\t\t\t\t\tif (component.getOpens().before(now) && component.getCloses().after(willClose)) {\n\t\t\t\t\t\twillClose = component.getCloses();\n\t\t\t\t\t}\n\t\t\t\t\tboolean isOpen = component.getOpens().before(now) && component.getCloses().after(now);\n\t\t\t\t\tif (!isOneOpen && isOpen) {\n\t\t\t\t\t\tisOneOpen = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (isOpen) {\n\t\t\t\t\t\tif (component.getPlaces() > 0) {\n\t\t\t\t\t\t\tareSomePlaces = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tCalendar recent = new GregorianCalendar();\n\t\t\trecent.setTime(component.getCreated());\n\t\t\trecent.add(Calendar.DATE, (recentDays));\n\t\t\t\n\t\t\tif (now.before(recent.getTime())) {\n\t\t\t\tisNew = true;\n\t\t\t}\n\t\t}\n\t\tString detail = null;\n\t\tif (isNew) {\n\t\t\tstates.add(CourseState.NEW);\n\t\t}\n\t\t//String newCourse = isNew ? \"*NEW*\" : \"\";\n\t\tif (!isOneBookable) {\n\t\t\tstates.add(CourseState.UNBOOKABLE);\n\t\t\treturn new CourseSummary(null, states);\n\t\t}\n\t\n\t\tif (isOneOpen) {\n\t\t\tif (areSomePlaces) {\n\t\t\t\tlong remaining = willClose.getTime() - now.getTime();\n\t\t\t\tdetail = \"close in \"+ formatDuration(remaining);\n\t\t\t\tstates.add(CourseState.OPEN);\n\t\t\t} else {\n\t\t\t\tdetail = \"full\";\n\t\t\t\tstates.add(CourseState.FULL);\n\t\t\t}\n\t\t} else {\n\t\t\tif (nextOpen.getTime() == Long.MAX_VALUE) {\n\t\t\t\tstates.add(CourseState.UNBOOKABLE);\n\t\t\t} else {\n\t\t\t\tlong until = nextOpen.getTime() - now.getTime();\n\t\t\t\tdetail = \"open in \"+ formatDuration(until);\n\t\t\t}\n\t\t}\n\t\treturn new CourseSummary(detail, states);\n\t}", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public CinemaDate() {\n }", "public CurricularCourseDataComponent() {\n\t\tsuper();\n\n\t\t// Header\n\t\t// None yet\n\n\t\t// Body\n\t\tVerticalPanel verticalPanelIdentification = new VerticalPanel();\n\t\tcontentPanel.add(verticalPanelIdentification);\n\t\taddComponents(verticalPanelIdentification);\n\n\t\t// Footer\n\t\t// None yet\n\t}", "public Course(String codeNo, String title)\n {\n // initialise instance variables\n this.codeNo = codeNo;\n this.title = title;\n \n module1 = new Module(\"Programming Concepts\", \"CO452\");\n module2 = new Module(\"Game Design\", \"CO459\");\n module3 = new Module(\"Networking\", \"CO451\");\n module4 = new Module(\"Computer Architectures\", \"CO450\");\n }", "public MyCalender() {\n initComponents();\n }", "public SelectCourse() {\n super();\n }", "public Course(String title, String codeNumber)\n {\n this.title = title;\n this.codeNumber = codeNumber;\n\n this.credits = 0;\n this.finalGrade = finalGrade;\n\n module1 = new Module(\"Application Development\", \"AD200\");\n module2 = new Module(\"Programming Concepts\", \"PC452\");\n module3 = new Module(\"Data Analysis\", \"DA101\");\n module4 = new Module(\"Web Design\", \"WD953\");\n }", "public Cell(Date startDate, Date endDate, String startTime, String endTime, String name, String description, int slotPriority, boolean repeating, int ID, String color) {\n if(startDate instanceof java.sql.Date){\n Calendar cal = Calendar.getInstance();\n cal.setTime(new Date(startDate.getTime()));\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(startTime));\n this.startDate = cal.getTime();\n cal.setTime(new Date(endDate.getTime()));\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(endTime));\n this.endDate = cal.getTime();\n }else{\n Calendar cal = Calendar.getInstance();\n cal.setTime(startDate);\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(startTime));\n this.startDate = cal.getTime();\n cal.setTime(endDate);\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(endTime));\n this.endDate = cal.getTime();\n }\n this.startTime = startTime;\n this.endTime = endTime;\n this.name = name;\n this.description = description;\n this.slotPriority = slotPriority;\n this.repeating = repeating;\n this.ID = ID;\n this.color = color;\n }", "public Olive(String desc, Money cst, int calrs, Color clr){\n\t\tsuper(desc,cst,calrs,clr);\n\t}", "private YFCDocument getCalendarDetailsTemplDoc() {\n\t\tYFCDocument getCalendarTemp = YFCDocument.createDocument(XMLLiterals.CALENDAR);\n\t\tYFCElement calendarEle = getCalendarTemp.getDocumentElement();\n\t\tcalendarEle.setAttribute(XMLLiterals.ORGANIZATION_CODE, EMPTY_STRING);\n\t\tcalendarEle.setAttribute(XMLLiterals.CALENDER_ID, EMPTY_STRING);\n\t\tcalendarEle.setAttribute(XMLLiterals.CALENDAR_DESCRIPTION, EMPTY_STRING);\n\t\tYFCElement effecPeriodsEle=calendarEle.createChild(XMLLiterals.EFFECTIVE_PERIODS).createChild(XMLLiterals.EFFECTIVE_PERIOD);\n\t\teffecPeriodsEle.setAttribute(XMLLiterals.EFFECTIVE_FROM_DATE, EMPTY_STRING);\n\t\teffecPeriodsEle.setAttribute(XMLLiterals.EFFECTIVE_TO_DATE, EMPTY_STRING);\n\t\teffecPeriodsEle.createChild(XMLLiterals.SHIFTS).createChild(XMLLiterals.SHIFT).setAttribute(XMLLiterals.SHIFT_KEY, EMPTY_STRING);\n\t\tYFCElement calDayExcepEle=calendarEle.createChild(XMLLiterals.CALENDAR_DAY_EXCEPTIONS).createChild(XMLLiterals.CALENDAR_DAY_EXCEPTION);\n\t\tcalDayExcepEle.setAttribute(XMLLiterals.EXCEPTION_TYPE,EMPTY_STRING);\n\t\tcalDayExcepEle.setAttribute(XMLLiterals.DATE,EMPTY_STRING);\n\t\treturn getCalendarTemp;\n\t}", "Course(Subject subject){\n \t\tthis.subject = subject;\n\t\tdaysToRun = subject.getDuration();\n\t\tenrolled = new ArrayList<Student>();\n\t\tcancelled = false;\n\t\tfinished = false;\n \t}", "public Attendance()\t//constructor, it exists as method in Attendance class\r\n\t{\r\n\t\tthis.name = \"NULL\";\t//initiates name\r\n\t\tthis.year = 0;\t\t//initiates year\r\n\t\tthis.student_id = \"NULL\";\t//initiates student_id\r\n\t\tthis.missed = 0;\t//initiates missed\r\n\t}", "public Course(String n, String i, int m, String in, int s, String l) {\n\t\tname = n;\n\t\tid = i;\n\t\tmaxstudents = m;\n\t\tinstructor = in;\n\t\tsection = s;\n\t\tlocation = l;\n\t}", "@Override\n public void startElement(String uri, String localName, String qName,\n Attributes attributes) throws SAXException {\n\n if (qName.equals(\"its\")) {\n course = new Course();\n course.setCourse(\"its\");\n semestersList = new ArrayList<>();\n } else if(qName.equals(\"ti\")){\n course = new Course();\n course.setCourse(\"ti\");\n semestersList = new ArrayList<>();\n } else if(qName.equals(\"win\")){\n course = new Course();\n course.setCourse(\"win\");\n semestersList = new ArrayList<>();\n } else if(qName.equals(\"sem1\")){\n semester = new Semester();\n semester.setSemester(\"sem1\");\n daysList = new ArrayList<>();\n } else if(qName.equals(\"mon\")){\n day = new Day();\n day.setWeekday(Calendar.MONDAY);\n schedulesList = new ArrayList<>();\n if(attributes.getValue(\"holedayempty\").equals(\"false\")){\n day.setHoledayempty(false);\n } else {\n day.setHoledayempty(true);\n }\n\n } else if(qName.equals(\"tue\")){\n day = new Day();\n day.setWeekday(Calendar.TUESDAY);\n schedulesList = new ArrayList<>();\n if(attributes.getValue(\"holedayempty\").equals(\"false\")){\n day.setHoledayempty(false);\n } else {\n day.setHoledayempty(true);\n }\n\n } else if(qName.equals(\"wed\")){\n day = new Day();\n day.setWeekday(Calendar.WEDNESDAY);\n schedulesList = new ArrayList<>();\n if(attributes.getValue(\"holedayempty\").equals(\"false\")){\n day.setHoledayempty(false);\n } else {\n day.setHoledayempty(true);\n }\n\n } else if(qName.equals(\"thu\")){\n day = new Day();\n day.setWeekday(Calendar.THURSDAY);\n schedulesList = new ArrayList<>();\n if(attributes.getValue(\"holedayempty\").equals(\"false\")){\n day.setHoledayempty(false);\n } else {\n day.setHoledayempty(true);\n }\n\n } else if(qName.equals(\"fri\")){\n day = new Day();\n day.setWeekday(Calendar.FRIDAY);\n schedulesList = new ArrayList<>();\n if(attributes.getValue(\"holedayempty\").equals(\"false\")){\n day.setHoledayempty(false);\n } else {\n day.setHoledayempty(true);\n }\n\n } else if(qName.equals(\"sat\")){\n day = new Day();\n day.setWeekday(Calendar.SATURDAY);\n schedulesList = new ArrayList<>();\n if(attributes.getValue(\"holedayempty\").equals(\"false\")){\n day.setHoledayempty(false);\n } else {\n day.setHoledayempty(true);\n }\n\n } else if(qName.equals(\"time\")){\n schedule = new Schedule();\n schedule.setStart(attributes.getValue(\"start\"));\n schedule.setEnd(attributes.getValue(\"end\"));\n subjectsList = new ArrayList<>();\n if(attributes.getValue(\"empty\").equals(\"false\")){\n schedule.setEmpty(false);\n } else {\n schedule.setEmpty(true);\n }\n } else if(qName.equals(\"subject\")){\n subject = new Subject();\n subject.setName(attributes.getValue(\"name\"));\n subject.setProf(attributes.getValue(\"prof\"));\n subject.setRoom(attributes.getValue(\"room\"));\n subject.setGroup(attributes.getValue(\"group\"));\n }\n\n }", "public CalMonitor() {\r\n }", "public ExamcategRecord() {\n super(Examcateg.EXAMCATEG);\n }", "public SubjectareasRecord() {\n\t\tsuper(Subjectareas.SUBJECTAREAS);\n\t}", "public CalendarPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "public Course()\n\t{\n\t\tstudents = new Student[30];\n\t\tnumStudents = 0;\n\t}", "public Summary() {\n initComponents();\n \n }", "public String makeEvent(Course item) {\n // TODO: Make recurrence and rounding handling more elegant\n // (use lambda?)\n\n String event;\n\n //----------------\n //Parse summary-description request\n String[] splitted = mPattern.split(\"-\");\n String summary = parsePattern(item, splitted[0]);\n String description;\n try {\n description = parsePattern(item, splitted[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n description = \"\";\n }\n String location = item.getLocation();\n\n //-----------------\n //Get start and end date time\n //NOTES :\n // o firstClassBegin and firstClassEnd represent the date-time\n // \t object for the beginning and end of the first lecture of\n //\t the course.\n // o lastDay is the last day of the semester (used for recurrence)\n LocalDate startDate;\n LocalTime startTime, endTime;\n LocalDateTime firstClassBegin, firstClassEnd, lastDay;\n if (mRounded) {\n startTime = item.getRoundedStartTime();\n endTime = item.getRoundedEndTime();\n } else {\n startTime = item.getStartTime();\n endTime = item.getEndTime();\n }\n startDate = item.getStartDate();\n firstClassBegin = LocalDateTime.of(startDate, startTime);\n firstClassEnd = LocalDateTime.of(startDate, endTime);\n lastDay = LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0));\n if (mRecurring) {\n event = makeEvent(summary, description, location, firstClassBegin,\n firstClassEnd, lastDay);\n } else {\n event = makeEvent(summary, description, location, firstClassBegin,\n firstClassEnd);\n }\n return event;\n }", "public NewsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public WeekPattern() {}", "@BeforeEach\r\n void createCourse() {\r\n date = new Date(1220227200L * 1000);\r\n lecture = new Lecture();\r\n lecture.setCourseId(\"CSE1230\");\r\n lecture.setDuration(50);\r\n lecture.setLectureId(9);\r\n lecture.setScheduledDate(date);\r\n }", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "public Course(@NotBlank String name, @NotBlank String lecturer, @NotBlank String description) {\n this.name = name;\n this.lecturer = lecturer;\n this.description = description;\n }", "protected Study() {\n \n \t\tthis.id = Integer.MIN_VALUE;\n \t\tthis.name = \"\";\n \t\tthis.description = \"\";\n \t\tthis.studyType = \"\";\n \t\tthis.validity = \"\";\n \t\tthis.creationDate = new Date();\n //\t\tthis.studyMatrices = new ArrayList<Integer>();\n \t}", "public Event(String title, String location, String description, String date, String courseRelation, int scheduledTime) {\n\t\t\n\t\tthis.title = title;\n\t\tthis.location = location;\n\t\tthis.description = description;\n\t\tthis.date = date;\n\t\tthis.courseRelation = courseRelation;\n\t\tthis.scheduledTime = scheduledTime;\n\t}", "public Appointment() {\r\n\t\t\t\r\n\t\t}", "public Course(int ID, String name, Time time1, Time time2){\n\t\tthis.ID = ID;\n\t\tthis.name = name;\n\t\tthis.section1 = new Section(time1,name,ID,this,1);\n\t\tthis.section2 = new Section(time2,name,ID,this,2);\n\t}", "public CashBookDaily() {\n initComponents();\n }", "public Activity() {\n title = \"\";\n comment = \"\";\n startTime = (new GregorianCalendar()).getTime();\n endTime = (new GregorianCalendar()).getTime();\n }", "Appointment(String description, String beginTime , String endTime){\n ShortDateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\", Locale.ENGLISH);\n //Check for bad data\n try{\n if(beginTime.contains(\"\\\"\")||endTime.contains(\"\\\"\"))\n throw new IllegalArgumentException(\"Date and time cannot contain quotes \");\n\n String[] tempStart = beginTime.split(\" \");\n String[] tempEnd= endTime.split(\" \");\n\n if(!tempStart[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")||!tempEnd[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")) {\n throw new IllegalArgumentException(\"Invalid Date Format\");\n }\n\n if(!tempStart[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\")||!tempEnd[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\"))\n throw new IllegalArgumentException(\"Time format must follow mm:hh (12 hour time)\");\n\n if(!tempStart[2].matches(\"(am|pm|AM|PM)\")&&!tempEnd[2].matches(\"(am|pm|AM|PM)\"))\n throw new IllegalArgumentException(\"Time must include am/pm\");\n }\n catch(IllegalArgumentException ex){\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n\n setDate(beginTime,endTime);\n this.description = description;\n\n }", "public StudentRecord()\n\t{\n\t\tboolean isValid;\n\t\tisValid = setStudentRecord(DEFAULT_QUIZ1, DEFAULT_QUIZ2, DEFAULT_QUIZ3, DEFAULT_MIDTERM, DEFAULT_FINAL);\n\t\t\n\t\tif(!isValid)\n\t\t{\n\t\t\tSystem.out.println(\"ERROR: bad grade in default StudentRecord()\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public ScheduleEvent()\n\t{\n\n\t}", "public Coursetime() {\n\t}", "public static void example(List<Course> classes, String pattern, boolean recurring,\n boolean rounded, File file) {\n CourseCalendar courseCal = new CourseCalendar(classes, pattern, recurring, rounded);\n courseCal.writeCalendar(file);\n }", "public SubSectionDetail() {\r\n\t}", "public Schedule() {\r\n\t\tschedule = new boolean[WEEK_DAYS][];\r\n\t\tfor(int i = 0; i < WEEK_DAYS; i++)\r\n\t\t\tschedule[i] = new boolean[SEGMENTS_PER_DAY];\r\n\t\tlisteners = new ArrayList<ScheduleChangeListener>();\r\n\t}", "public AccrualRule(){}", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }", "public Appliction()\r\n {\r\n date=LocalDate.of(2020,1,1);//just a start point for the calendar\r\n Appliction p=new Appliction(date.getYear(),date.getMonthValue());\r\n }", "public Calendar() {\n\t\tthis(() -> LocalDateTime.now());\n\t}", "public GradeRubric() {\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Schedule with \" + this.courses.size() + \" courses.\";\n\t}", "public Watch(){ //Watch Constuctor\r\n super(); //Values passed in from the super class\r\n month = 1; //Initialize month to 1\r\n day = 1; //Initialize day to 1\r\n year = 1980; //Initialize year to 1980\r\n}", "public RulesBook() {\n this(new ArrayList<>());\n }" ]
[ "0.7151314", "0.6261289", "0.61384493", "0.6122632", "0.60990536", "0.6090709", "0.6023036", "0.5962912", "0.5886564", "0.58573264", "0.58483005", "0.57937515", "0.57839376", "0.57390803", "0.5698141", "0.5689451", "0.5679937", "0.5638629", "0.56130284", "0.5571348", "0.54908615", "0.54749554", "0.54503417", "0.5448638", "0.5437822", "0.5428187", "0.54253995", "0.5422846", "0.5410924", "0.5409214", "0.53626174", "0.5336217", "0.53293836", "0.53207564", "0.5318484", "0.5287322", "0.5284326", "0.5275666", "0.52523196", "0.52490443", "0.5244633", "0.5242314", "0.5234959", "0.5213413", "0.5213413", "0.5204719", "0.5203633", "0.5202455", "0.5194236", "0.51828116", "0.5180135", "0.5178703", "0.5167424", "0.51634043", "0.514315", "0.51305044", "0.5129685", "0.51280606", "0.5125664", "0.512408", "0.5108053", "0.50997806", "0.50981706", "0.50971866", "0.5095147", "0.50878567", "0.5073913", "0.5067219", "0.5066714", "0.5064962", "0.5049222", "0.50482285", "0.5044231", "0.5043977", "0.50387627", "0.50365233", "0.5012555", "0.500786", "0.5005825", "0.5005617", "0.49987638", "0.4992192", "0.4990371", "0.4982318", "0.49775374", "0.4966718", "0.4963354", "0.4955253", "0.4953418", "0.49510837", "0.4950076", "0.494498", "0.49381146", "0.49336243", "0.4932228", "0.49224967", "0.49212685", "0.49078083", "0.49052697", "0.49050927" ]
0.650426
1
/ HELPERS This is an example usage for this class.
public static void example(List<Course> classes, String pattern, boolean recurring, boolean rounded, File file) { CourseCalendar courseCal = new CourseCalendar(classes, pattern, recurring, rounded); courseCal.writeCalendar(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private static void oneUserExample()\t{\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "void use();", "public static void thisDemo() {\n\t}", "public static void example1() {\n // moved to edu.jas.application.Examples\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "void pramitiTechTutorials() {\n\t\n}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "private MApi() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "private void test() {\n\n\t}", "private TMCourse() {\n\t}", "public void use()\n\t{\n\t}", "Petunia() {\r\n\t\t}", "protected Doodler() {\n\t}", "public contrustor(){\r\n\t}", "private Inspect() {\n }", "public Main() {\n \n \n }", "public static void main() {\n \n }", "private Util() { }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public Call_simple() {\n }", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "Constructor() {\r\n\t\t \r\n\t }", "private test5() {\r\n\t\r\n\t}", "protected static void demoMethod( ) {\n System.out.println(\"demoMethod for singleton\");\n }", "private Main() {\n\n super();\n }", "public abstract String use();", "public static void main(String[] args) {\n \n \n \n \n }", "public static void example2() {\n // moved to edu.jas.application.Examples\n }", "public static void main(String[] args) {\n\t\t\n\t MethodExample object=new MethodExample();\n\t object.greet(\"Sarmed\");\n\t object.greet(\"Farid\");\n\t object.greet(\"John\");\n\t object.greet(\"Gulen\");\n\t}", "private WAPIHelper() { }", "@Override\n public void memoria() {\n \n }", "public static void main(String[] args){\n\n AlfredQuotes alfred = new AlfredQuotes();\n String testGreeting = alfred.basicGreeting();\n System.out.println( testGreeting );\n String testDate = alfred.dateAnnouncement();\n System.out.println( testDate );\n // storing in a string the return of a function\n // String testAlexa = alfred.respondBeforeAlexis(\"hello my name is Alfred\");\n // System.out.println( testAlexa );\n // printing the method of a function\n System.out.println( alfred.respondBeforeAlexis(\"hello my name is Alfred\") );\n }", "public static void objectDemo() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "private void Nice(){\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "private Aliyun() {\n\t\tsuper();\n\t}", "public void furyo ()\t{\n }", "public abstract String usage();", "public static void demo() {\n\t\tlab_2_2_5();\n\n\t}", "public void working()\n {\n \n \n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private Get() {}", "private Get() {}", "private LOCFacade() {\r\n\r\n\t}", "private Helper() {\r\n // empty\r\n }", "public static void main(String[] args)\r\t{", "Programming(){\n\t}", "public void sayHello(){\n System.out.println(\"This persons name is: \" + this.name);\n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public Demo() {\n\t\t\n\t}", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "private static interface Service {}", "private Infer() {\n\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public void sendeHello();", "public void cocinar(){\n\n }", "public void foundationGrab(){\n\n }", "private TwitterAPI(){\n\t\t\n\t}", "Simple createSimple();", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void service() {\n\t}", "public API() {}", "@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}", "private Singletion3() {}", "public static void main(String[] args) {\r\n // 2. Call your method in various ways to test it here.\r\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "static void SampleItinerary()\n {\n System.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n\n bg.AdultRowToMolokai();\n bg.ChildRideToMolokai();\n bg.AdultRideToMolokai();\n bg.ChildRideToMolokai();\n }", "public void doGet( )\n {\n \n }", "public void use() {//Sample use for book- reading, use command 'use book' to use it\n\t\tSystem.out.println(\"Here is a book for you: Quiddich through the ages; hope you enjoy!\");\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private void strin() {\n\n\t}", "public Utils() {}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public api() {}", "public Hello()\n {\n // initialise instance variables\n \n }", "public void smell() {\n\t\t\n\t}", "public void listar() {\n\t\t\n\t}", "public static void main(String[] args) {\n Virus Ebola = new Virus();\n // set member variables on the instance of Virus stored in Herpes\n Ebola.Baltimore = \"V\";\n Ebola.Order = \"Mononegavirales\";\n Ebola.Family = \"Filoviridae\";\n Ebola.Genus = \"Ebolavirus\";\n Ebola.Tropism = \"Anything it can liquefy\";\n Ebola.HumanOnly = false;\n Ebola.Envelope = false;\n Ebola.GenomeSize = 19;\n \n // send our Car instance to a helper method to print its member variables\n displayVirusStats(Ebola);\n // test its methods\n Ebola.startReplication();\n Ebola.notReplicating();\n Ebola.getCurrentSpeed();\n \n}" ]
[ "0.64457756", "0.6190826", "0.6091514", "0.60554826", "0.6018454", "0.5940414", "0.5918376", "0.58614624", "0.58291984", "0.5769321", "0.576499", "0.576499", "0.576499", "0.576499", "0.5761045", "0.57566184", "0.57556635", "0.5754592", "0.5752167", "0.57086754", "0.5688086", "0.5658919", "0.56393284", "0.5638364", "0.56295127", "0.56293195", "0.56171787", "0.5602688", "0.5593044", "0.5590877", "0.5583817", "0.5576563", "0.55716056", "0.5569103", "0.55636686", "0.5560881", "0.5558714", "0.5558604", "0.55561656", "0.5553227", "0.5550411", "0.5533733", "0.5532867", "0.55264443", "0.55165493", "0.55163085", "0.55155927", "0.55137897", "0.5505963", "0.5505963", "0.5503282", "0.5503282", "0.54994607", "0.5488402", "0.54866683", "0.5478802", "0.5477122", "0.5477034", "0.5477034", "0.5476734", "0.5470543", "0.5465005", "0.5465005", "0.54632455", "0.54593194", "0.5458127", "0.54543173", "0.54527646", "0.54518104", "0.54518104", "0.54518104", "0.54518104", "0.54518104", "0.54518104", "0.5441145", "0.5437697", "0.5435609", "0.543455", "0.54331064", "0.54321235", "0.54290324", "0.54187596", "0.5418589", "0.541204", "0.5404347", "0.54006356", "0.53952354", "0.5386473", "0.5385215", "0.53811485", "0.53795844", "0.53632003", "0.53608316", "0.5358496", "0.53567255", "0.5348386", "0.5348166", "0.53417546", "0.53354037", "0.53353494", "0.5333644" ]
0.0
-1
Creates an iCal file with the given classes and save it to the given file
public static void createICalFile(List<Course> classes, File file) { CourseCalendar courseCal = new CourseCalendar(classes); courseCal.writeCalendar(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeCalendar(File file) {\n String prefix = \"BEGIN:VCALENDAR\" + \"\\n\"\n + \"VERSION:2.0\" + \"\\n\"\n + \"PRODID:-//MyMartlet//CourseCalendar//\" +\n serialVersionUID + \"\\n\"\n + mTZInfo + \"\\n\";\n String suffix = \"END:VCALENDAR\";\n try {\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(prefix);\n for (Course item : mClasses) {\n bw.write(makeEvent(item));\n }\n bw.write(suffix);\n bw.flush();\n bw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "static void save(Schedules schedules, String filename) throws IOException, RBEConfigObjectException\n {\n\t\tFileWriter fw = new FileWriter(filename);\n\t\tschedules.toXML(fw);\n\t\tfw.close();\n }", "public boolean createFile() {\n String filename = name + \".ics\";\n String directory = \"Calendar-Files\";\n String userHome = System.getProperty(\"user.home\") + \"/Desktop/\";\n System.out.println(\"Generating Event File...\");\n \n try {\n File folder = new File(userHome, directory);\n\n // if no folder exists, create it\n if (!folder.exists()) {\n folder.mkdir();\n }\n\n // change file location\n File file = new File(userHome + \"/\" + directory, filename);\n\n // if no file exists, create it\n if (!file.exists()) {\n file.createNewFile();\n }\n\n // write the content string to the event file\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(createContent());\n bw.close();\n }\n catch (IOException e) {\n return false;\n }\n return true;\n }", "public static void example(List<Course> classes, String pattern, boolean recurring,\n boolean rounded, File file) {\n CourseCalendar courseCal = new CourseCalendar(classes, pattern, recurring, rounded);\n courseCal.writeCalendar(file);\n }", "private static void createFile(String fileType) throws Exception {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now();\n File xmlFile = new File(System.getProperty(\"user.dir\")+\"/data/saved/\"+dtf.format(now) + fileType + \".xml\");\n OutputFormat out = new OutputFormat();\n out.setIndent(5);\n FileOutputStream fos = new FileOutputStream(xmlFile);\n XML11Serializer serializer = new XML11Serializer(fos, out);\n serializer.serialize(xmlDoc);\n\n }", "private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void writeAuToBIClassifier(String filename, AuToBIClassifier c) throws IOException {\n AuToBIUtils.log(\"writing model to: \" + filename);\n FileOutputStream fos;\n ObjectOutputStream out;\n fos = new FileOutputStream(filename);\n out = new ObjectOutputStream(fos);\n out.writeObject(c);\n out.close();\n\n }", "private void fileBuilder(File inHere) {\n\t\tif (this.calendar == null) {\n\t\t\tnew JErrorFrame(\"There is no calendar to save.\");\n\t\t}\n\t\ttry {\n\t\t\tthis.calendar.serializeCalendar(inHere);\n\t\t} catch (IOException e) {\n\t\t\tString error = \"There was an unexpected I/O exception: \"\n\t\t\t\t\t+ e.getMessage();\n\t\t\tnew JErrorFrame(error);\n\t\t}\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinvoiceEClass = createEClass(INVOICE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_ID);\n\t\tcreateEReference(invoiceEClass, INVOICE__BILLING_ACCOUNT);\n\t\tcreateEReference(invoiceEClass, INVOICE__CONTACT_MECH);\n\t\tcreateEReference(invoiceEClass, INVOICE__CURRENCY_UOM);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DUE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ITEMS);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_MESSAGE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_NOTES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_STATUSES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__PAID_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceEClass, INVOICE__RECURRENCE_INFO);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__REFERENCE_NUMBER);\n\t\tcreateEReference(invoiceEClass, INVOICE__ROLE_TYPE);\n\t\tcreateEReference(invoiceEClass, INVOICE__STATUS);\n\n\t\tinvoiceAttributeEClass = createEClass(INVOICE_ATTRIBUTE);\n\t\tcreateEReference(invoiceAttributeEClass, INVOICE_ATTRIBUTE__INVOICE);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceContactMechEClass = createEClass(INVOICE_CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__INVOICE);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH_PURPOSE_TYPE);\n\n\t\tinvoiceContentEClass = createEClass(INVOICE_CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__FROM_DATE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__THRU_DATE);\n\n\t\tinvoiceContentTypeEClass = createEClass(INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__INVOICE_CONTENT_TYPE_ID);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemEClass = createEClass(INVOICE_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__AMOUNT);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__DESCRIPTION);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVENTORY_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_ORG_PARTY);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT_FEATURE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__QUANTITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__SALES_OPPORTUNITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_GEO);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_PARTY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTHORITY_RATE_SEQ);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__TAXABLE_FLAG);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__UOM);\n\n\t\tinvoiceItemAssocEClass = createEClass(INVOICE_ITEM_ASSOC);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__FROM_DATE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__AMOUNT);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__QUANTITY);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__THRU_DATE);\n\n\t\tinvoiceItemAssocTypeEClass = createEClass(INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__INVOICE_ITEM_ASSOC_TYPE_ID);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemAttributeEClass = createEClass(INVOICE_ITEM_ATTRIBUTE);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceItemTypeEClass = createEClass(INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ID);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DEFAULT_GL_ACCOUNT);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ATTRS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_GL_ACCOUNTS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemTypeAttrEClass = createEClass(INVOICE_ITEM_TYPE_ATTR);\n\t\tcreateEReference(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__DESCRIPTION);\n\n\t\tinvoiceItemTypeGlAccountEClass = createEClass(INVOICE_ITEM_TYPE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__ORGANIZATION_PARTY);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__GL_ACCOUNT);\n\n\t\tinvoiceItemTypeMapEClass = createEClass(INVOICE_ITEM_TYPE_MAP);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_MAP_KEY);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_TYPE);\n\n\t\tinvoiceNoteEClass = createEClass(INVOICE_NOTE);\n\t\tcreateEReference(invoiceNoteEClass, INVOICE_NOTE__INVOICE);\n\n\t\tinvoiceRoleEClass = createEClass(INVOICE_ROLE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__INVOICE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__PARTY);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__ROLE_TYPE);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__DATETIME_PERFORMED);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__PERCENTAGE);\n\n\t\tinvoiceStatusEClass = createEClass(INVOICE_STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__INVOICE);\n\t\tcreateEAttribute(invoiceStatusEClass, INVOICE_STATUS__STATUS_DATE);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__CHANGE_BY_USER_LOGIN);\n\n\t\tinvoiceTermEClass = createEClass(INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ID);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__DESCRIPTION);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_DAYS);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__TERM_TYPE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TEXT_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__UOM_ID);\n\n\t\tinvoiceTermAttributeEClass = createEClass(INVOICE_TERM_ATTRIBUTE);\n\t\tcreateEReference(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceTypeEClass = createEClass(INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ID);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ATTRS);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__PARENT_TYPE);\n\n\t\tinvoiceTypeAttrEClass = createEClass(INVOICE_TYPE_ATTR);\n\t\tcreateEReference(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__DESCRIPTION);\n\t}", "public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private void generate() throws FileNotFoundException {\n if (clazz.isInterface())\n generateInterface();\n writer.close();\n }", "private void createScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"schedule.txt\");\n// FileWriter fw = new FileWriter(scheduleFile);\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"SCHEDULE:\\n\" + schedule);\n osw.close();\n\n System.out.println(\"schedule.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public String createics(Event[] events){\r\n\t\tcalendar = \"BEGIN:VCALENDAR\\nVERSION:1.0\\nPRODID:-//Rambutan\\n\";\r\n\t\tcalendar += \"CALSCALE:GEORGIAN\\nMETHOD:PUBLISH\\n\";\r\n\t\tfor(Event e: allEvents){\r\n\t\t\tcalendar += \"BEGIN:VEVENT\\nDTSTART:\";\r\n\t\t\tcalendar += e.getDateTimeS();\r\n\t\t\tcalendar += \"\\nDTEND:\" + e.getDateTimeE();\r\n\t\t\tcalendar += \"\\nDTSTAMP:\" + e.getTimeStamp();\r\n\t\t\tcalendar += \"\\nUID:\"; //add in a Unique identification number later\r\n\t\t\tcalendar += \"\\nCLASS:\" + e.getClassType();\r\n\t\t\tcalendar += \"\\nCREATED:\" + e.getTimeCreated();\r\n\t\t\tcalendar += \"\\nDESCRIPTION:\" + e.getDescription();\r\n\t\t\tcalendar += \"\\nLAST-MODIFIED:\" + e.getLastModified();\r\n\t\t\tcalendar += \"\\nLOCATION:\" + e.getLocation();\r\n\t\t\tcalendar += \"\\nSEQUENCE:\" + Integer.toString(e.getSequence());\r\n\t\t\tcalendar += \"\\nSTATUS:\" + e.getStatus();\r\n\t\t\tcalendar += \"\\nSUMMARY:\" + e.getSummary();\r\n\t\t\tcalendar += \"\\nEND:VEVENT\\n\";\r\n\t\t}\r\n\t\tcalendar +=\"END:VCALENDAR\\n\";\r\n\t\treturn calendar;\r\n\t}", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "private void createValidationExceptionFile(final Class Class_, final String simpleName) throws Exception {\n final SessionFactory SessionFactory = HibernateUtil.getSingleton().getSessionFactoryLocal();\n final ClassMetadata classMetadata = SessionFactory.getClassMetadata(Class_);\n final String[] propertyNames = classMetadata.getPropertyNames();\n \n //Create the path\n final String className = simpleName + \"sValidatorsExceptions\";\n final String path = \"../era_easyretail/src/main/java/com/era/easyretail/validators/exceptions\";\n final String finalClassPath = path + \"/\" + className + \".java\"; \n \n //Get file content\n final String fileContent = this.getValidationExceptionContent(Class_,simpleName,propertyNames);\n \n //If the file exists delete it\n final File File = new File(finalClassPath); \n if(File.exists()){\n File.delete();\n }\n \n //Create the file\n File.createNewFile();\n \n //Write to the file\n try ( //Write the class\n FileWriter writer = new FileWriter(File)) { \n writer.write(fileContent);\n }\n }", "private void createValidationFile(final Class Class_, final String simpleName) throws Exception {\n final SessionFactory SessionFactory = HibernateUtil.getSingleton().getSessionFactoryLocal();\n final ClassMetadata classMetadata = SessionFactory.getClassMetadata(Class_);\n final String[] propertyNames = classMetadata.getPropertyNames();\n \n //Create the path\n final String className = simpleName + \"sValidator\";\n final String path = \"../era_easyretail/src/main/java/com/era/easyretail/validators\";\n final String finalClassPath = path + \"/\" + className + \".java\";\n \n //Get file content\n final String fileContent = this.getValidationFileContent(Class_,simpleName,propertyNames);\n \n //If the file exists delete it\n final File File = new File(finalClassPath); \n if(File.exists()){\n File.delete();\n }\n \n //Create the file\n File.createNewFile();\n \n //Write to the file\n try ( //Write the class\n FileWriter writer = new FileWriter(File)) { \n writer.write(fileContent);\n }\n }", "public void WriteCalendarToDatabase() throws IOException\r\n\t{\r\n\t\tObjectOutputStream outputfile;\r\n\t\toutputfile = new ObjectOutputStream(Files.newOutputStream(Paths.get(fileName)));\r\n\t\toutputfile.writeObject(calendar);\r\n\t\toutputfile.close();\r\n\t}", "public void saveInterfaceFile(String methodName, int numargs) {\r\n\t\t//TODO: Add interface caching and check if interface is in cache\r\n\r\n\t\tbyte[] interfacebytes = createInterfaceAsBytes(methodName, numargs);\r\n\t\tClassFileWriter.writeFile(interfacebytes, \r\n\t\t\t\tnew File(NamingConventions.GENERATED_DIR), \r\n\t\t\t\tnew File(getGeneratedInterfaceFilePath(methodName, numargs)));\r\n\t}", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;", "@Override\n\tpublic void outAClass(AClass node) {\n\t\tcreateConstructor();\n\t\tString directory = this.fileName.substring(0,\n\t\t\t\tthis.fileName.lastIndexOf(File.separatorChar));\n\t\ttry{\n\t\t\tcg.getJavaClass().dump( directory +\"/\" + node.getType().getText() + \".class\");\n\t\t}catch (IOException e ){\n\t\t\tErrorList.add(node,\"Could not save file : \" + e.getMessage() , fileName); \n\t\t}\n\t\tcurrentClass = null; \n\t}", "@SuppressWarnings(\"unused\")\n public void SaveJsonCollectionsToFiles(){\n try {\n String formattedDate = FileNameUtils.DATE_FORMAT.format(new Date());\n ObjectWriter writer = mapper.writer(new DefaultPrettyPrinter());\n writer.writeValue(new File(FileNameUtils.GetValuesFileName(formattedDate)), jsonObjects);\n }\n catch(IOException exp){\n System.err.println(\"Error while creating JSON file. Reason: \" + exp.getMessage());\n }\n }", "public CreateInputFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tEXCEL_FILE = new FileInputStream(new File(INPUT_FILE_NAME));\n\t\t\t/* Log File */\n\t\t\tLOG_WRITER = writerCreator(LOG_FILE, BLANK);\n\t\t\tLOG_WRITER.write(START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tSystem.out.println(NEW_LINE + START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\n\t\t\t/* Service Part Creation */\n\t\t\tSERVICE_PART_WRITER = writerCreator(SERVICE_PARTS_CREATION_INPUT_FILE,\n\t\t\t\t\tSERVICE_PART_CREATION_CONFIG);\n\n\t\t\t/* Service Form Update */\n\t\t\tSERVICE_FORM_WRITER = writerCreator(SERVICE_FORM_PROPERTIES_INPUT_FILE,\n\t\t\t\t\tSERVICE_FORM_UPDATE_CONFIG);\n\n\t\t\t/* PS_UPLOAD - Service Structures Creation \n\t\t\tPS_STRUCTURE_WRITER = writerCreator(PS_STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tPS_STRUCTURE_CREATION_CONFIG); */\n\n\t\t\t/* Service Structures Creation */\n\t\t\tSTRUCTURE_WRITER = writerCreator(STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tSTRUCTURE_CREATION_CONFIG);\n\n\t\t\t/* EngParts' Service Form Creation and Attachment*/\n\t\t\tEP_SERVICE_FORM_WRITER = writerCreator(EP_SERVICE_FORM_CREATION_INPUT_FILE,\n\t\t\t\t\tEP_SERVICE_FORM_CREATION_CONFIG);\n\n\t\t\t/* Service Parts' Global Alternate */\n\t\t\tSP_GLOBAL_ALT_WRITER = writerCreator(SP_GLOBAL_ALT_INPUT_FILE, BLANK);\n\n\t\t\t/* Service Parts' Group ID update */\n\t\t\tSP_GROUP_ID_WRITER = writerCreator(SP_GROUP_ID_INPUT_FILE, SP_GROUP_ID_UPDATE_CONFIG);\n\n\t\t\t/* Relate Service Parts to three types of attachments*/\n\t\t\tSP_ATTACHMENT_WRITER = writerCreator(SP_ATTACHMENT_INPUT_FILE, SP_ATTACHMENT_CONFIG);\n\n\t\t\t/* Made From Relation Creation */\n\t\t\tMADE_FROM_RELATION_WRITER = writerCreator(MADE_FROM_REL_INPUT_FILE,\n\t\t\t\t\tMADE_FROM_REL_CONFIG);\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "private void writeToFile(ArrayList<Task> tasks) throws IOException {\r\n FileWriter fileWriter = new FileWriter(filePath);\r\n for (Task task : tasks) {\r\n Parser fileFormatter = new ParseToFileFormat(task);\r\n String taskData = fileFormatter.getFileFormat();\r\n fileWriter.write(taskData);\r\n }\r\n fileWriter.close();\r\n }", "public void createPackageContents() {\n if (this.isCreated) {\n return;\n }\n this.isCreated = true;\n\n // Create classes and their features\n this.systemSpecifiedExecutionTimeEClass = this.createEClass(SYSTEM_SPECIFIED_EXECUTION_TIME);\n\n this.specifiedExecutionTimeEClass = this.createEClass(SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.specifiedExecutionTimeEClass,\n SPECIFIED_EXECUTION_TIME__SPECIFICATION_SPECIFIED_EXECUTION_TIME);\n\n this.componentSpecifiedExecutionTimeEClass = this.createEClass(COMPONENT_SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.componentSpecifiedExecutionTimeEClass,\n COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME);\n }", "@Override\n\tpublic void doSaveAs() {\n\n\t}", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n File f = new File(\"Role.txt\");\n FileOutputStream fos = new FileOutputStream(f);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //a 2d array is used to save the role description and the role salary\n String[][] role = new String[3][2];\n role[0][0] = \"Hardware Technician\";\n role[0][1] = \"32\";\n role[1][0] = \"Programmer\";\n role[1][1] = \"50\";\n role[2][0] = \"Software Installer\";\n role[2][1] = \"26\";\n //the instances are made and written to the file\n for (int i = 0; i < 3; i++) {\n Role role1 = new Role();\n role1.setRoleID(i + 1);\n role1.setRoleDesc(role[i][0]);\n role1.setHourlyPay(Integer.parseInt(role[i][1]));\n oos.writeObject(role1);\n }\n fos.close();\n oos.close();\n }", "protected abstract Result createClasses( Outline outline, CClassInfo bean );", "void initializeFile(MyCalendar cal, File file) {\n\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tString fName = path+\"/events.txt\";\n\t\ttry {\n\t\t\tFile events = file;\n\t\t\tif(file.exists()) {\n\t\t\t\tFileReader fr = new FileReader(file);\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\t\tString line = br.readLine(); \n\n\t\t\t\tString name = null;\n\t\t\t\tString second = null;\n\t\t\t\tif(line != null) {\n\t\t\t\t\twhile(line!=null) {\n\t\t\t\t\t\tname = line;\n\t\t\t\t\t\tsecond = br.readLine();\n\t\t\t\t\t\tString[] arr = null;\n\t\t\t\t\t\tif(!br.equals(\"\")) {\n\t\t\t\t\t\t\tarr = second.split(\" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(arr.length == 5) {\n\t\t\t\t\t\t\tcal.createRecurringFromFile(name, arr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(arr.length == 3) {\n\t\t\t\t\t\t\tcal.createEventFromFile(name, arr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//initializeFile(file);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception x){\n\t\t\tx.printStackTrace();\n\t\t}\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n programmeEClass = createEClass(PROGRAMME);\n createEReference(programmeEClass, PROGRAMME__PROCEDURES);\n\n procedureEClass = createEClass(PROCEDURE);\n createEAttribute(procedureEClass, PROCEDURE__NAME);\n createEAttribute(procedureEClass, PROCEDURE__PARAM);\n createEAttribute(procedureEClass, PROCEDURE__PARAMS);\n createEReference(procedureEClass, PROCEDURE__INST);\n\n instructionEClass = createEClass(INSTRUCTION);\n\n openEClass = createEClass(OPEN);\n createEAttribute(openEClass, OPEN__NAME);\n createEAttribute(openEClass, OPEN__VALUE);\n\n gotoEClass = createEClass(GOTO);\n createEAttribute(gotoEClass, GOTO__NAME);\n createEAttribute(gotoEClass, GOTO__VALUE);\n\n clickEClass = createEClass(CLICK);\n createEAttribute(clickEClass, CLICK__NAME);\n createEAttribute(clickEClass, CLICK__TYPE);\n createEReference(clickEClass, CLICK__IDENTIFIER);\n\n fillEClass = createEClass(FILL);\n createEAttribute(fillEClass, FILL__NAME);\n createEAttribute(fillEClass, FILL__FIELD_TYPE);\n createEReference(fillEClass, FILL__IDENTIFIER);\n createEAttribute(fillEClass, FILL__VAR);\n createEAttribute(fillEClass, FILL__VALUE);\n\n checkEClass = createEClass(CHECK);\n createEAttribute(checkEClass, CHECK__NAME);\n createEAttribute(checkEClass, CHECK__ALL);\n createEReference(checkEClass, CHECK__IDENTIFIER);\n\n uncheckEClass = createEClass(UNCHECK);\n createEAttribute(uncheckEClass, UNCHECK__NAME);\n createEAttribute(uncheckEClass, UNCHECK__ALL);\n createEReference(uncheckEClass, UNCHECK__IDENTIFIER);\n\n selectEClass = createEClass(SELECT);\n createEAttribute(selectEClass, SELECT__NAME);\n createEAttribute(selectEClass, SELECT__ELEM);\n createEReference(selectEClass, SELECT__IDENTIFIER);\n\n readEClass = createEClass(READ);\n createEAttribute(readEClass, READ__NAME);\n createEReference(readEClass, READ__IDENTIFIER);\n createEReference(readEClass, READ__SAVE_PATH);\n\n elementidentifierEClass = createEClass(ELEMENTIDENTIFIER);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__NAME);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__TYPE);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__VALUE);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__INFO);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__VAR);\n\n verifyEClass = createEClass(VERIFY);\n createEAttribute(verifyEClass, VERIFY__VALUE);\n\n verifY_CONTAINSEClass = createEClass(VERIFY_CONTAINS);\n createEAttribute(verifY_CONTAINSEClass, VERIFY_CONTAINS__TYPE);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__IDENTIFIER);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__CONTAINED_IDENTIFIER);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__VARIABLE);\n\n verifY_EQUALSEClass = createEClass(VERIFY_EQUALS);\n createEReference(verifY_EQUALSEClass, VERIFY_EQUALS__OPERATION);\n createEReference(verifY_EQUALSEClass, VERIFY_EQUALS__REGISTERED_VALUE);\n\n registereD_VALUEEClass = createEClass(REGISTERED_VALUE);\n createEAttribute(registereD_VALUEEClass, REGISTERED_VALUE__VAR);\n\n countEClass = createEClass(COUNT);\n createEAttribute(countEClass, COUNT__NAME);\n createEReference(countEClass, COUNT__IDENTIFIER);\n createEReference(countEClass, COUNT__SAVE_VARIABLE);\n\n savevarEClass = createEClass(SAVEVAR);\n createEAttribute(savevarEClass, SAVEVAR__VAR);\n\n playEClass = createEClass(PLAY);\n createEAttribute(playEClass, PLAY__NAME);\n createEAttribute(playEClass, PLAY__PREOCEDURE);\n createEAttribute(playEClass, PLAY__PARAMS);\n }", "void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;", "@Override\n\tpublic void doSaveAs() {\n\t}", "static void saveClinFromInstances(String fileName,Instances instances) throws Exception{\n\t\t\t\t\n\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(fileName)));\n\t\t\n\t\t\n\t\t// Write header...\n\t\tAttribute IDAttribute = instances.attribute(\"ID\");\n\t\tFastVector instNames = attributeValues(instances,IDAttribute);\t\t\n\t\tpw.write(\"Features\\t\");\n\t\tfor(int i = 0;i < instNames.size()-1;i++){\n\t\t\tpw.print(instNames.elementAt(i));\n\t\t\tpw.print(\"\\t\");\n\t\t}\n\t\tpw.print(instNames.elementAt(instNames.size()-1));\n\t\tpw.print(\"\\n\");\n\t\t\n\t\tint classIdx = instances.classIndex();\n\t\tfor(int i = 0;i < instances.numAttributes();i++){\n\t\t\tif ((i != 0) && (i == classIdx)){\n\t\t\t\tString attName = instances.attribute(i).name();\n\t\t\t\tAttribute attribute = instances.attribute(i);\t\t\t\t\t\t\n\t\t\t\n\t\t\t\tFastVector atValues = attributeValues(instances,attribute);\n\t\t\t\tpw.print(attName);\n\t\t\t\tpw.print(\"\\t\");\n\t\t\t\tfor(int v = 0;v < atValues.size()-1;v++){\n\t\t\t\t\tpw.print(atValues.elementAt(v));\n\t\t\t\t\tpw.print(\"\\t\");\n\t\t\t\t}\n\t\t\t\tpw.print(atValues.elementAt(atValues.size()-1));\n\t\t\t\tpw.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tpw.close();\n\t}", "@Test\n public void saveFile() {\n\n // create a new file system object\n FileSystem sampleFileSystem = new FileSystem();\n\n // add our previously created Person Objects to the created Address Book\n ericAddressBook.add(Eric);\n ericAddressBook.add(Daniel);\n\n File sampleFile = new File(\"Address Book\");\n\n\n\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbaseElementEClass = createEClass(BASE_ELEMENT);\n\t\tcreateEReference(baseElementEClass, BASE_ELEMENT__KEY_VALUE_MAPS);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__ID);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__NAME);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__DESCRIPTION);\n\n\t\tkeyValueMapEClass = createEClass(KEY_VALUE_MAP);\n\t\tcreateEAttribute(keyValueMapEClass, KEY_VALUE_MAP__KEY);\n\t\tcreateEReference(keyValueMapEClass, KEY_VALUE_MAP__VALUES);\n\n\t\tvalueEClass = createEClass(VALUE);\n\t\tcreateEAttribute(valueEClass, VALUE__TAG);\n\t\tcreateEAttribute(valueEClass, VALUE__VALUE);\n\n\t\t// Create enums\n\t\ttimeUnitEEnum = createEEnum(TIME_UNIT);\n\t}", "public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\treadCsvFileEClass = createEClass(READ_CSV_FILE);\n\t\tcreateEAttribute(readCsvFileEClass, READ_CSV_FILE__URI);\n\n\t\tprintEClass = createEClass(PRINT);\n\t\tcreateEReference(printEClass, PRINT__INPUT);\n\n\t\twriteCsvFileEClass = createEClass(WRITE_CSV_FILE);\n\t\tcreateEReference(writeCsvFileEClass, WRITE_CSV_FILE__TABLE);\n\t\tcreateEAttribute(writeCsvFileEClass, WRITE_CSV_FILE__URI);\n\n\t\texcludeColumnsEClass = createEClass(EXCLUDE_COLUMNS);\n\t\tcreateEReference(excludeColumnsEClass, EXCLUDE_COLUMNS__TABLE);\n\t\tcreateEAttribute(excludeColumnsEClass, EXCLUDE_COLUMNS__COLUMNS);\n\n\t\tselectColumnsEClass = createEClass(SELECT_COLUMNS);\n\t\tcreateEReference(selectColumnsEClass, SELECT_COLUMNS__TABLE);\n\t\tcreateEAttribute(selectColumnsEClass, SELECT_COLUMNS__COLUMNS);\n\n\t\tassertTablesMatchEClass = createEClass(ASSERT_TABLES_MATCH);\n\t\tcreateEReference(assertTablesMatchEClass, ASSERT_TABLES_MATCH__LEFT);\n\t\tcreateEReference(assertTablesMatchEClass, ASSERT_TABLES_MATCH__RIGHT);\n\t\tcreateEAttribute(assertTablesMatchEClass, ASSERT_TABLES_MATCH__IGNORE_COLUMN_ORDER);\n\t\tcreateEAttribute(assertTablesMatchEClass, ASSERT_TABLES_MATCH__IGNORE_MISSING_COLUMNS);\n\n\t\twriteLinesEClass = createEClass(WRITE_LINES);\n\t\tcreateEAttribute(writeLinesEClass, WRITE_LINES__URI);\n\t\tcreateEAttribute(writeLinesEClass, WRITE_LINES__APPEND);\n\n\t\treadLinesEClass = createEClass(READ_LINES);\n\t\tcreateEAttribute(readLinesEClass, READ_LINES__URI);\n\n\t\tselectRowsEClass = createEClass(SELECT_ROWS);\n\t\tcreateEReference(selectRowsEClass, SELECT_ROWS__TABLE);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__COLUMN);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__VALUE);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__MATCH);\n\n\t\texcludeRowsEClass = createEClass(EXCLUDE_ROWS);\n\t\tcreateEReference(excludeRowsEClass, EXCLUDE_ROWS__TABLE);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__COLUMN);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__VALUE);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__MATCH);\n\n\t\tasTableDataEClass = createEClass(AS_TABLE_DATA);\n\t\tcreateEReference(asTableDataEClass, AS_TABLE_DATA__INPUT);\n\n\t\treadPropertiesEClass = createEClass(READ_PROPERTIES);\n\t\tcreateEAttribute(readPropertiesEClass, READ_PROPERTIES__URI);\n\n\t\t// Create enums\n\t\tignoreColumnsModeEEnum = createEEnum(IGNORE_COLUMNS_MODE);\n\t\trowMatchModeEEnum = createEEnum(ROW_MATCH_MODE);\n\t}", "public void openForWriting(String datei) throws IOException {\n \n oos = new ObjectOutputStream(new FileOutputStream(datei));\n \n }", "public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}", "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\tissueEClass = createEClass(ISSUE);\r\n\t\tcreateEReference(issueEClass, ISSUE__PROPOSALS);\r\n\t\tcreateEReference(issueEClass, ISSUE__SOLUTION);\r\n\t\tcreateEReference(issueEClass, ISSUE__CRITERIA);\r\n\t\tcreateEAttribute(issueEClass, ISSUE__ACTIVITY);\r\n\t\tcreateEReference(issueEClass, ISSUE__ASSESSMENTS);\r\n\r\n\t\tproposalEClass = createEClass(PROPOSAL);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ASSESSMENTS);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ISSUE);\r\n\r\n\t\tsolutionEClass = createEClass(SOLUTION);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__UNDERLYING_PROPOSALS);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__ISSUE);\r\n\r\n\t\tcriterionEClass = createEClass(CRITERION);\r\n\t\tcreateEReference(criterionEClass, CRITERION__ASSESSMENTS);\r\n\r\n\t\tassessmentEClass = createEClass(ASSESSMENT);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__PROPOSAL);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__CRITERION);\r\n\t\tcreateEAttribute(assessmentEClass, ASSESSMENT__VALUE);\r\n\r\n\t\tcommentEClass = createEClass(COMMENT);\r\n\t\tcreateEReference(commentEClass, COMMENT__SENDER);\r\n\t\tcreateEReference(commentEClass, COMMENT__RECIPIENTS);\r\n\t\tcreateEReference(commentEClass, COMMENT__COMMENTED_ELEMENT);\r\n\r\n\t\taudioCommentEClass = createEClass(AUDIO_COMMENT);\r\n\t\tcreateEReference(audioCommentEClass, AUDIO_COMMENT__AUDIO_FILE);\r\n\t}", "FileContent createFileContent();", "static void writeToFiles() throws IOException {\n\n writeToFilePriceHistory();\n writeToFileEmployees();\n writeToFileInventory();\n writeToSaleItems();\n writeToOrder();\n writeToFileInventory();\n writeToRevenueLog();\n }", "public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public static void writeFile(String formattedGuests, File file) throws IOException {\n\n\t\tOutputStream out = null;\n\n\t\ttry {\n\n\t\t\tout = new BufferedOutputStream(new FileOutputStream(file));\n\t\t\tbyte[] bytes = formattedGuests.getBytes();\n\n\t\t\t//to avoid the annoying bug with the last two CR + LF we write bytes one\n\t\t\tfor (int i = 0; i < bytes.length - 3; i++){\n\t\t\t\tout.write(bytes[i]);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\n\t\t\t//Ugly to read but needed to ensure the file is correctly closed after an IOError\n\t\t\tif (out != null) {\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "public void saveWorkflow(String filename);", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__IMPLEMENTATIONS);\n\n\t\timplementationEClass = createEClass(IMPLEMENTATION);\n\t\tcreateEAttribute(implementationEClass, IMPLEMENTATION__CODE);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__TECHNOLOGY);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__LANGUAGE);\n\n\t\tsemanticsEClass = createEClass(SEMANTICS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__ANNOTATIONS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__LANGUAGES);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__TECHNOLOGIES);\n\n\t\ttargetLanguageEClass = createEClass(TARGET_LANGUAGE);\n\n\t\ttechnologyEClass = createEClass(TECHNOLOGY);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\t}", "public void createPackageContents()\n {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tclarityAbstractObjectEClass = createEClass(CLARITY_ABSTRACT_OBJECT);\n\t\tcreateEAttribute(clarityAbstractObjectEClass, CLARITY_ABSTRACT_OBJECT__CLARITY_CONNECTION);\n\n\t\tclarityAddFilesEClass = createEClass(CLARITY_ADD_FILES);\n\n\t\tclarityGetBatchResultEClass = createEClass(CLARITY_GET_BATCH_RESULT);\n\n\t\tclarityGetKeyEClass = createEClass(CLARITY_GET_KEY);\n\n\t\tclarityQueryBatchEClass = createEClass(CLARITY_QUERY_BATCH);\n\n\t\tclarityReloadFileEClass = createEClass(CLARITY_RELOAD_FILE);\n\n\t\tclarityRemoveFilesEClass = createEClass(CLARITY_REMOVE_FILES);\n\n\t\tstartBatchEClass = createEClass(START_BATCH);\n\t}", "public static void writeDSEIndividualsToFile(Collection<DSEIndividual> individuals, String filename, int iteration, boolean asEMF,\r\n\t\t\tboolean asCVS, List<Exception> exceptionList){\r\n\t\t\r\n\t\tif (individuals.size() > 0){\r\n\t\t\tif (asCVS){\r\n\t\t\t\tStringBuilder results = addResultsToCSVString(individuals, exceptionList);\r\n\t\t\t\twriteToNewFile(filename, results, iteration, exceptionList, \".csv\");\r\n\t\t\t} \r\n\t\t\tif (asEMF){\r\n\t\t\t\t// save as EMF files\r\n\t\t\t\tCandidates candidates = EMFHelper.createEMFCandidates(individuals);\r\n\t\t\t\tEMFHelper.saveToXMIFile(candidates, getFilenameForIteration(filename, iteration, \".designdecision\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void processSaveAndClose() {\n\n\t\tPrintWriter writer = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(classesOutFile);\n\n\t\t\t\tint i = 0;\n\t\t\t\tfor (FitnessClass fc: fitnessClass) {\n\n\t\t\t\t\tif (fc == null) {\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tString fileOutput = fc.toStringClassesOut();\n\t\t\t\t\t\twriter.print(fileOutput);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally {\n\n\t\t\t\tif (writer != null) {\n\t\t\t\t\twriter.close();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t} \t\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(null, \"File not found\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\n\t\t}\t\t\t\t\n\n\t}", "@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}", "public void writeToServiceFile()\r\n {\r\n\ttry(ObjectOutputStream toServiceFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/servicelist.dta\")))\r\n\t{\r\n toServiceFile.writeObject(serviceList);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Service objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public static void write() throws IOException {\n VelocityContext context = new VelocityContext();\n\n //Put the data model in context object\n context.put(\"packageName\", packageName);\n context.put(\"className\", className);\n List<Attribute> attributes = new ArrayList<>();\n attributes.add(new Attribute(\"id\", \"int\"));\n attributes.add(new Attribute(\"firstName\", \"String\"));\n attributes.add(new Attribute(\"lastName\", \"String\"));\n attributes.add(new Attribute(\"dob\", \"LocalDate\"));\n context.put(\"attributes\", attributes);\n\n //Merge the template with context data\n StringWriter stringWriter = new StringWriter();\n Velocity.mergeTemplate(\"class.vm\", context, stringWriter);\n\n //Write to file\n FileWriter fw = null;\n try {\n fw = new FileWriter(\"output/User.java\");\n fw.write(stringWriter.toString());\n } finally {\n if (fw != null) {\n fw.close();\n }\n }\n }", "public static void writeNewCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, true);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n int lastElement = activities.size();\n Activity activity = activities.get(lastElement - 1);\n bw.write(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles.name + \" \" + \"(\"\n + activity.Roles.subRole + \")\" + \"\\n\");\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n }", "@Override\n public void saveToFile(List<Product> elements) throws IOException {\n List<String> collect = elements.stream()\n .map(product -> product.toString()) //z wykorzystanie method referencje .map(String::toString)\n .collect(Collectors.toList());\n\n //korzystamy z new io (nio patrz import) a nie jak wczesniej z io (we wprowadzeniu) bo latwiejsze\n Files.write(Paths.get(path), collect);\n\n\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "static void WriteEmployeeObjectIntoFile(Employee emp,String filename)\n\t{\n\t\t\n\t try\n\t {\n\t FileOutputStream fileOut =\n\t new FileOutputStream(filename);\n\t ObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t //Main write method\n\t out.writeObject(emp);\n\t out.close();\n\t fileOut.close();\n\t System.out.printf(\"Serialized data is saved in \" + filename);\n\t }catch(IOException i)\n\t {\n\t i.printStackTrace();\n\t }\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\toml2OTIProvenanceEClass = createEClass(OML2OTI_PROVENANCE);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_IRI);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_ID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_URL);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__EXPLANATION);\n\n\t\t// Create data types\n\t\tuuidEDataType = createEDataType(UUID);\n\t\tomL_IRIEDataType = createEDataType(OML_IRI);\n\t\totI_TOOL_SPECIFIC_IDEDataType = createEDataType(OTI_TOOL_SPECIFIC_ID);\n\t\totI_TOOL_SPECIFIC_UUIDEDataType = createEDataType(OTI_TOOL_SPECIFIC_UUID);\n\t\totI_TOOL_SPECIFIC_URLEDataType = createEDataType(OTI_TOOL_SPECIFIC_URL);\n\t}", "protected abstract void generateClassFiles(ClassDoc[] arr, ClassTree classtree);", "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\tuserEClass = createEClass(USER);\n\t\tcreateEAttribute(userEClass, USER__NAME);\n\t\tcreateEReference(userEClass, USER__UR);\n\n\t\troleEClass = createEClass(ROLE);\n\t\tcreateEAttribute(roleEClass, ROLE__NAME);\n\t\tcreateEReference(roleEClass, ROLE__RD);\n\t\tcreateEReference(roleEClass, ROLE__SENIORS);\n\t\tcreateEReference(roleEClass, ROLE__JUNIORS);\n\t\tcreateEReference(roleEClass, ROLE__RU);\n\n\t\tpermissionEClass = createEClass(PERMISSION);\n\t\tcreateEAttribute(permissionEClass, PERMISSION__NAME);\n\t\tcreateEReference(permissionEClass, PERMISSION__PD);\n\n\t\tpolicyEClass = createEClass(POLICY);\n\t\tcreateEReference(policyEClass, POLICY__USERS);\n\t\tcreateEReference(policyEClass, POLICY__ROLES);\n\t\tcreateEReference(policyEClass, POLICY__PERMISSIONS);\n\t\tcreateEAttribute(policyEClass, POLICY__NAME);\n\t\tcreateEReference(policyEClass, POLICY__DEMARCATIONS);\n\n\t\tdemarcationEClass = createEClass(DEMARCATION);\n\t\tcreateEAttribute(demarcationEClass, DEMARCATION__NAME);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__DP);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__SUBS);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__SUPS);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__DR);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tannotationModelEClass = createEClass(ANNOTATION_MODEL);\r\n\t\tcreateEAttribute(annotationModelEClass, ANNOTATION_MODEL__NAME);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATED_ELEMENT);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATION);\r\n\r\n\t\tannotationEClass = createEClass(ANNOTATION);\r\n\r\n\t\tauthorizableResourceEClass = createEClass(AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__IS_AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEAttribute(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__BTRACK_OWNERSHIP);\r\n\r\n\t\tresourceAccessPolicySetEClass = createEClass(RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__POLICY_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\r\n\t\tannotatedElementEClass = createEClass(ANNOTATED_ELEMENT);\r\n\r\n\t\tannResourceEClass = createEClass(ANN_RESOURCE);\r\n\t\tcreateEReference(annResourceEClass, ANN_RESOURCE__ANNOTATES_RESOURCE);\r\n\r\n\t\tresourceAccessPolicyEClass = createEClass(RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__RULE_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_APPLY_CONDITION);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_RESOURCE_ACCESS_RULE);\r\n\r\n\t\tconditionEClass = createEClass(CONDITION);\r\n\t\tcreateEAttribute(conditionEClass, CONDITION__OPERATOR);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_LEFT_SIDE_OPERAND);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_RIGHT_SIDE_OPERAND);\r\n\r\n\t\tattributeEClass = createEClass(ATTRIBUTE);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__ATTRIBUTE_CATEGORY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_EXISTING_PROPERTY);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__VALUE);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_NEW_PROPERTY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_RESOURCE);\r\n\r\n\t\tannPropertyEClass = createEClass(ANN_PROPERTY);\r\n\t\tcreateEReference(annPropertyEClass, ANN_PROPERTY__ANNOTATES_PROPERTY);\r\n\r\n\t\tresourceAccessRuleEClass = createEClass(RESOURCE_ACCESS_RULE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_MATCH_CONDITION);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__NAME);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__RULE_TYPE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_ALLOWED_ACTION);\r\n\r\n\t\tauthorizationSubjectEClass = createEClass(AUTHORIZATION_SUBJECT);\r\n\t\tcreateEReference(authorizationSubjectEClass, AUTHORIZATION_SUBJECT__IS_AUTHORIZATION_SUBJECT);\r\n\r\n\t\tannCRUDActivityEClass = createEClass(ANN_CRUD_ACTIVITY);\r\n\t\tcreateEReference(annCRUDActivityEClass, ANN_CRUD_ACTIVITY__ANNOTATES_CRUD_ACTIVITY);\r\n\r\n\t\tallowedActionEClass = createEClass(ALLOWED_ACTION);\r\n\t\tcreateEReference(allowedActionEClass, ALLOWED_ACTION__IS_ALLOWED_ACTION);\r\n\r\n\t\tnewPropertyEClass = createEClass(NEW_PROPERTY);\r\n\t\tcreateEReference(newPropertyEClass, NEW_PROPERTY__BELONGS_TO_RESOURCE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__NAME);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__TYPE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__BIS_UNIQUE);\r\n\r\n\t\t// Create enums\r\n\t\tcombiningAlgorithmEEnum = createEEnum(COMBINING_ALGORITHM);\r\n\t\toperatorEEnum = createEEnum(OPERATOR);\r\n\t\tattributeCategoryEEnum = createEEnum(ATTRIBUTE_CATEGORY);\r\n\t\truleTypeEEnum = createEEnum(RULE_TYPE);\r\n\t}", "@Override\r\n\tpublic void createFile(FacebookClient fbClient, ITable table,\r\n\t\t\tString outputFile) {\n\t}", "public ExcelSaver(Data itemsToSave) {\n\t\twb = new HSSFWorkbook();\n\t\ts = wb.createSheet();\n\t\theaders = new ArrayList<>(Attribute.getAtts().keySet().stream().filter(Attribute::isSel).collect(Collectors.toList()));\n//\t\theaders.add(\"Group\");\n\t\tsetHeaders(headers);\n\t\tsave(itemsToSave);\n\t}", "private void createFile(String packageName, String enclosingName, String methodName, String returnType) {\n try {\n JavaFileObject jfo = mFiler.createSourceFile(enclosingName, new Element[]{});\n Writer writer = jfo.openWriter();\n writer.write(brewCode(packageName, enclosingName, methodName, returnType));\n writer.flush();\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n persistEClass = createEClass(PERSIST);\n createEAttribute(persistEClass, PERSIST__MODEL);\n createEReference(persistEClass, PERSIST__STATEMENTS);\n\n ruleStatementEClass = createEClass(RULE_STATEMENT);\n createEAttribute(ruleStatementEClass, RULE_STATEMENT__ID);\n createEReference(ruleStatementEClass, RULE_STATEMENT__RULES);\n\n forEachStatementEClass = createEClass(FOR_EACH_STATEMENT);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CLASS);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CONTENTS);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CALLS);\n\n createStatementEClass = createEClass(CREATE_STATEMENT);\n createEReference(createStatementEClass, CREATE_STATEMENT__NAME);\n\n createFolderStatementEClass = createEClass(CREATE_FOLDER_STATEMENT);\n createEReference(createFolderStatementEClass, CREATE_FOLDER_STATEMENT__CONTENTS);\n createEReference(createFolderStatementEClass, CREATE_FOLDER_STATEMENT__CALLS);\n\n createFileStatementEClass = createEClass(CREATE_FILE_STATEMENT);\n createEReference(createFileStatementEClass, CREATE_FILE_STATEMENT__INCLUDED_REFERENCING);\n createEReference(createFileStatementEClass, CREATE_FILE_STATEMENT__INCLUDED_ATTRIBUTES);\n\n fileNameEClass = createEClass(FILE_NAME);\n createEAttribute(fileNameEClass, FILE_NAME__PREFIX);\n createEReference(fileNameEClass, FILE_NAME__ATTR);\n createEReference(fileNameEClass, FILE_NAME__RIGHT);\n\n includeStatementEClass = createEClass(INCLUDE_STATEMENT);\n createEReference(includeStatementEClass, INCLUDE_STATEMENT__INCLUDED);\n\n withStatementEClass = createEClass(WITH_STATEMENT);\n createEReference(withStatementEClass, WITH_STATEMENT__INCLUDED);\n\n callStatementEClass = createEClass(CALL_STATEMENT);\n createEAttribute(callStatementEClass, CALL_STATEMENT__RULES);\n\n eClassNameEClass = createEClass(ECLASS_NAME);\n createEAttribute(eClassNameEClass, ECLASS_NAME__BASE);\n createEAttribute(eClassNameEClass, ECLASS_NAME__FIELDS);\n\n eAttributeNameEClass = createEClass(EATTRIBUTE_NAME);\n createEAttribute(eAttributeNameEClass, EATTRIBUTE_NAME__BASE);\n createEAttribute(eAttributeNameEClass, EATTRIBUTE_NAME__FIELDS);\n\n eReferenceNameEClass = createEClass(EREFERENCE_NAME);\n createEAttribute(eReferenceNameEClass, EREFERENCE_NAME__BASE);\n createEAttribute(eReferenceNameEClass, EREFERENCE_NAME__FIELDS);\n }", "public void saveOffice(Office office) {\n\t\t\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\taudioEClass = createEClass(AUDIO);\n\t\tcreateEAttribute(audioEClass, AUDIO__CONTENT);\n\t\tcreateEAttribute(audioEClass, AUDIO__NAME);\n\t\tcreateEAttribute(audioEClass, AUDIO__TEXT);\n\n\t\taudioManagerEClass = createEClass(AUDIO_MANAGER);\n\n\t\taudioRecorderEClass = createEClass(AUDIO_RECORDER);\n\n\t\taudioPlayerEClass = createEClass(AUDIO_PLAYER);\n\n\t\t// Create enums\n\t\taudioStyleEEnum = createEEnum(AUDIO_STYLE);\n\t}", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tbankEClass = createEClass(BANK);\r\n\t\tcreateEReference(bankEClass, BANK__MANAGERS);\r\n\t\tcreateEReference(bankEClass, BANK__ACCOUNTS);\r\n\t\tcreateEReference(bankEClass, BANK__CLIENTS);\r\n\r\n\t\tclientEClass = createEClass(CLIENT);\r\n\t\tcreateEReference(clientEClass, CLIENT__MANAGER);\r\n\t\tcreateEReference(clientEClass, CLIENT__ACCOUNTS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__NAME);\r\n\t\tcreateEReference(clientEClass, CLIENT__SPONSORSHIPS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__CAPACITY);\r\n\r\n\t\tmanagerEClass = createEClass(MANAGER);\r\n\t\tcreateEReference(managerEClass, MANAGER__CLIENTS);\r\n\t\tcreateEAttribute(managerEClass, MANAGER__NAME);\r\n\r\n\t\taccountEClass = createEClass(ACCOUNT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__OWNERS);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__CREDIT);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__OVERDRAFT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__CARDS);\r\n\r\n\t\tcardEClass = createEClass(CARD);\r\n\t\tcreateEAttribute(cardEClass, CARD__NUMBER);\r\n\t\tcreateEAttribute(cardEClass, CARD__TYPE);\r\n\r\n\t\t// Create enums\r\n\t\tcardTypeEEnum = createEEnum(CARD_TYPE);\r\n\t}", "public InventarioFile(){\r\n \r\n }", "public void save(CalCancel cancel) {\n\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tanalyzerJobEClass = createEClass(ANALYZER_JOB);\n\t\tcreateEReference(analyzerJobEClass, ANALYZER_JOB__RFS_SERVICE);\n\n\t\tcomponentFailureEClass = createEClass(COMPONENT_FAILURE);\n\t\tcreateEReference(componentFailureEClass, COMPONENT_FAILURE__COMPONENT_REF);\n\n\t\tcomponentWorkFlowRunEClass = createEClass(COMPONENT_WORK_FLOW_RUN);\n\t\tcreateEReference(componentWorkFlowRunEClass, COMPONENT_WORK_FLOW_RUN__FAILURE_REFS);\n\n\t\texpressionFailureEClass = createEClass(EXPRESSION_FAILURE);\n\t\tcreateEReference(expressionFailureEClass, EXPRESSION_FAILURE__EXPRESSION_REF);\n\n\t\tfailureEClass = createEClass(FAILURE);\n\t\tcreateEAttribute(failureEClass, FAILURE__MESSAGE);\n\n\t\tjobEClass = createEClass(JOB);\n\t\tcreateEAttribute(jobEClass, JOB__END_TIME);\n\t\tcreateEAttribute(jobEClass, JOB__INTERVAL);\n\t\tcreateEAttribute(jobEClass, JOB__JOB_STATE);\n\t\tcreateEAttribute(jobEClass, JOB__NAME);\n\t\tcreateEAttribute(jobEClass, JOB__REPEAT);\n\t\tcreateEAttribute(jobEClass, JOB__START_TIME);\n\n\t\tjobRunContainerEClass = createEClass(JOB_RUN_CONTAINER);\n\t\tcreateEReference(jobRunContainerEClass, JOB_RUN_CONTAINER__JOB);\n\t\tcreateEReference(jobRunContainerEClass, JOB_RUN_CONTAINER__WORK_FLOW_RUNS);\n\n\t\tmetricSourceJobEClass = createEClass(METRIC_SOURCE_JOB);\n\t\tcreateEReference(metricSourceJobEClass, METRIC_SOURCE_JOB__METRIC_SOURCES);\n\n\t\tnodeReporterJobEClass = createEClass(NODE_REPORTER_JOB);\n\t\tcreateEReference(nodeReporterJobEClass, NODE_REPORTER_JOB__NODE);\n\n\t\tnodeTypeReporterJobEClass = createEClass(NODE_TYPE_REPORTER_JOB);\n\t\tcreateEReference(nodeTypeReporterJobEClass, NODE_TYPE_REPORTER_JOB__NODE_TYPE);\n\t\tcreateEReference(nodeTypeReporterJobEClass, NODE_TYPE_REPORTER_JOB__SCOPE_OBJECT);\n\n\t\toperatorReporterJobEClass = createEClass(OPERATOR_REPORTER_JOB);\n\t\tcreateEReference(operatorReporterJobEClass, OPERATOR_REPORTER_JOB__OPERATOR);\n\n\t\tretentionJobEClass = createEClass(RETENTION_JOB);\n\n\t\trfsServiceMonitoringJobEClass = createEClass(RFS_SERVICE_MONITORING_JOB);\n\t\tcreateEReference(rfsServiceMonitoringJobEClass, RFS_SERVICE_MONITORING_JOB__RFS_SERVICE);\n\n\t\trfsServiceReporterJobEClass = createEClass(RFS_SERVICE_REPORTER_JOB);\n\t\tcreateEReference(rfsServiceReporterJobEClass, RFS_SERVICE_REPORTER_JOB__RFS_SERVICE);\n\n\t\tserviceUserFailureEClass = createEClass(SERVICE_USER_FAILURE);\n\t\tcreateEReference(serviceUserFailureEClass, SERVICE_USER_FAILURE__SERVICE_USER_REF);\n\n\t\tworkFlowRunEClass = createEClass(WORK_FLOW_RUN);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__ENDED);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__LOG);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS_MESSAGE);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS_TASK);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__STARTED);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__STATE);\n\n\t\t// Create enums\n\t\tjobRunStateEEnum = createEEnum(JOB_RUN_STATE);\n\t\tjobStateEEnum = createEEnum(JOB_STATE);\n\n\t\t// Create data types\n\t\tjobRunStateObjectEDataType = createEDataType(JOB_RUN_STATE_OBJECT);\n\t\tjobStateObjectEDataType = createEDataType(JOB_STATE_OBJECT);\n\t}", "public void save(List<Task> tasks) throws IOException {\n FileWriter writer = new FileWriter(path.toString());\n // Writing tasks into disk\n for (Task task : tasks) {\n String line = \"\";\n int done = task.hasDone() ? 1 : 0;\n String description = task.getDescription();\n String tag = task.getTag();\n // Saving tasks to disk in specific format\n switch (task.getType()) {\n case TODO:\n line = String.format(\"T---%d---%s---%s\", done, description, tag);\n break;\n case DEADLINE:\n case EVENT:\n int idx = description.indexOf('/');\n String activity = description.substring(0, idx - 1);\n String timing = description.substring(idx);\n line = formatTask(task, done, activity, timing, tag);\n break;\n default:\n break;\n }\n writer.write(line + \"\\n\");\n }\n writer.close();\n }", "private void writeFile(TimerEntity entity) {\n final File file = fileName(entity.getTimedObjectId(), entity.getId());\n\n FileOutputStream fileOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file, false);\n final Marshaller marshaller = factory.createMarshaller(configuration);\n marshaller.start(new OutputStreamByteOutput(fileOutputStream));\n marshaller.writeObject(entity);\n marshaller.finish();\n fileOutputStream.flush();\n fileOutputStream.getFD().sync();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n logger.error(\"IOException closing file \", e);\n }\n }\n }\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\teDomainSchemaEClass = createEClass(EDOMAIN_SCHEMA);\n\t\tcreateEReference(eDomainSchemaEClass, EDOMAIN_SCHEMA__CS);\n\t\tcreateEReference(eDomainSchemaEClass, EDOMAIN_SCHEMA__DS);\n\n\t\teControlSchemaEClass = createEClass(ECONTROL_SCHEMA);\n\t\tcreateEReference(eControlSchemaEClass, ECONTROL_SCHEMA__ACTOR);\n\n\t\teDataSchemaEClass = createEClass(EDATA_SCHEMA);\n\t\tcreateEReference(eDataSchemaEClass, EDATA_SCHEMA__CS);\n\t\tcreateEReference(eDataSchemaEClass, EDATA_SCHEMA__ITEM);\n\n\t\teDomainSpecificEntityEClass = createEClass(EDOMAIN_SPECIFIC_ENTITY);\n\t\tcreateEAttribute(eDomainSpecificEntityEClass, EDOMAIN_SPECIFIC_ENTITY__COMMAND_PRIORITY);\n\t\tcreateEReference(eDomainSpecificEntityEClass, EDOMAIN_SPECIFIC_ENTITY__CMD);\n\n\t\teDomainSpecificCommandEClass = createEClass(EDOMAIN_SPECIFIC_COMMAND);\n\t\tcreateEAttribute(eDomainSpecificCommandEClass, EDOMAIN_SPECIFIC_COMMAND__CMD_ID);\n\n\t\teActorEClass = createEClass(EACTOR);\n\t\tcreateEAttribute(eActorEClass, EACTOR__KIND_INTERACTION);\n\t\tcreateEReference(eActorEClass, EACTOR__TYPES_CONTROLLED);\n\n\t\teItemEClass = createEClass(EITEM);\n\t\tcreateEAttribute(eItemEClass, EITEM__ARISING_BEHAVIOR);\n\t\tcreateEReference(eItemEClass, EITEM__TYPE);\n\n\t\teDomainSpecificTypeEClass = createEClass(EDOMAIN_SPECIFIC_TYPE);\n\t\tcreateEAttribute(eDomainSpecificTypeEClass, EDOMAIN_SPECIFIC_TYPE__INTERACTION_BEHAVIOR);\n\t\tcreateEAttribute(eDomainSpecificTypeEClass, EDOMAIN_SPECIFIC_TYPE__CARDINALITY);\n\n\t\t// Create enums\n\t\teArisingEEnum = createEEnum(EARISING);\n\t\teCardinalityEEnum = createEEnum(ECARDINALITY);\n\t\teInteractionBehaviorEEnum = createEEnum(EINTERACTION_BEHAVIOR);\n\t\teCoordinationBehaviorEEnum = createEEnum(ECOORDINATION_BEHAVIOR);\n\t}", "public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbluetoothPortEClass = createEClass(BLUETOOTH_PORT);\n\n\t\tl2CAPInJobEClass = createEClass(L2CAP_IN_JOB);\n\n\t\tl2CAPoutJobEClass = createEClass(L2CA_POUT_JOB);\n\t}", "@Override\n public File createFile(String path) throws IOException {\n String pathStr=path+fileSeparator+\"Mail.json\";\n File file = new File(pathStr);\n file.createNewFile();\n return file;\n }", "public void crearPrincipal(String nameFile, String fileClases,int tipoClase, Boolean f_gc, Boolean f_nucl, Boolean f_cod, Boolean f_k, int k) throws IOException{\n //Primero leer las clases para agregarlas al final\n ReadClasses c= new ReadClasses();\n classes=c.leer(fileClases, tipoClase);\n cat=c.getCat();\n phylum=c.getPhylum();\n specie= c.getSpecie();\n if (tipoClase==1)\n clasDif=c.getCatDif();\n //clasDif=c.getCat();\n else\n if (tipoClase==2)\n clasDif=c.getPhylumDif();\n //clasDif=c.getPhylum();\n else\n clasDif=c.getSpecieDif();\n id=c.getId();\n if (f_cod)\n crearCodon();\n if (f_k)\n crearKmers4();\n //Crear encabezado de Arff\n BufferedWriter bufferArff =crearEncArff(nameFile,f_gc, f_nucl,f_cod,f_k,k, tipoClase);\n //Adicionar los datos a la base (mismo orden)\n leerFichero(nameFile, bufferArff,f_gc, f_nucl, f_cod, f_k, k, tipoClase);\n\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__TASK_ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEAttribute(taskEClass, TASK__DEADLINE);\n\n\t\tperiodicTaskEClass = createEClass(PERIODIC_TASK);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__PERIOD);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__OFFSET);\n\n\t\taperiodicTaskEClass = createEClass(APERIODIC_TASK);\n\t\tcreateEReference(aperiodicTaskEClass, APERIODIC_TASK__INTERARRIVAL_DISTRIBUTION);\n\n\t\tsubtaskEClass = createEClass(SUBTASK);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__NAME);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PRIORITY);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__RET_ANCHOR_USED);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__ACTIVATION_SYNCHRONOUS);\n\t\tcreateEReference(subtaskEClass, SUBTASK__EXEC_TIME_DISTRIBUTION);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__BYPASS);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__DOWNSAMPLING_FACTOR);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__CALLING_THREAD_PRIORITY);\n\t\tcreateEReference(subtaskEClass, SUBTASK__MUTEXES);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PIN_ID);\n\n\t\tdistributionEClass = createEClass(DISTRIBUTION);\n\n\t\tconstantEClass = createEClass(CONSTANT);\n\t\tcreateEAttribute(constantEClass, CONSTANT__VALUE);\n\n\t\texponentialEClass = createEClass(EXPONENTIAL);\n\t\tcreateEAttribute(exponentialEClass, EXPONENTIAL__MEAN);\n\n\t\tuniformEClass = createEClass(UNIFORM);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MAX);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MIN);\n\n\t\tunknownEClass = createEClass(UNKNOWN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MEAN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MIN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MAX);\n\n\t\tnormalEClass = createEClass(NORMAL);\n\t\tcreateEAttribute(normalEClass, NORMAL__MEAN);\n\t\tcreateEAttribute(normalEClass, NORMAL__STD_DEV);\n\n\t\tperformanceModelEClass = createEClass(PERFORMANCE_MODEL);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__TASKS);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__NAME);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__MUTEXES);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__SOURCE_FILE);\n\n\t\tssTaskEClass = createEClass(SS_TASK);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BUDGET);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__REPLENISHMENT_PERIOD);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BACKGROUND_PRIORITY);\n\n\t\tmutexEClass = createEClass(MUTEX);\n\t\tcreateEAttribute(mutexEClass, MUTEX__NAME);\n\t}", "void saveAs() {\n writeFile.Export();\n }", "private static void serialize(Gitlet gitletAtt, String fileName)\n throws IOException {\n try {\n File gitletFile = new File(fileName);\n FileOutputStream fileOut = new FileOutputStream(gitletFile);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(gitletAtt);\n } catch (IOException e) {\n System.err.println(e);\n String msg = \"IOException while saving Gitlet.\";\n System.out.println(msg);\n }\n }", "public void saveToFile(final File file) throws IOException, AnalysisConfigurationException;", "public static void export(MimeType mimeType, Collection<?> objects, File file) throws IOException, ExportException\r\n {\r\n loadExporter(mimeType, objects).export(file);\r\n }", "private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\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\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.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\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\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\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\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}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\trunnableEClass = createEClass(RUNNABLE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PORT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PERIOD);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__LABEL_ACCESSES);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__DEADLINE);\r\n\r\n\t\tlabelEClass = createEClass(LABEL);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_STATECHART);\r\n\t\tcreateEAttribute(labelEClass, LABEL__IS_CONSTANT);\r\n\r\n\t\tlabelAccessEClass = createEClass(LABEL_ACCESS);\r\n\t\tcreateEAttribute(labelAccessEClass, LABEL_ACCESS__ACCESS_KIND);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESS_LABEL);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESSING_RUNNABLE);\r\n\r\n\t\t// Create enums\r\n\t\tlabelAccessKindEEnum = createEEnum(LABEL_ACCESS_KIND);\r\n\t}", "public void createPackageContents() {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n calcEClass = createEClass(CALC);\n createEReference(calcEClass, CALC__EXPR);\n\n exprEClass = createEClass(EXPR);\n\n bitShiftExprEClass = createEClass(BIT_SHIFT_EXPR);\n createEReference(bitShiftExprEClass, BIT_SHIFT_EXPR__CHILDREN);\n createEAttribute(bitShiftExprEClass, BIT_SHIFT_EXPR__OPERATORS);\n\n bitShiftExprChildEClass = createEClass(BIT_SHIFT_EXPR_CHILD);\n\n additiveExprEClass = createEClass(ADDITIVE_EXPR);\n createEReference(additiveExprEClass, ADDITIVE_EXPR__CHILDREN);\n createEAttribute(additiveExprEClass, ADDITIVE_EXPR__OPERATORS);\n\n additiveExprChildEClass = createEClass(ADDITIVE_EXPR_CHILD);\n\n multiplicativeExprEClass = createEClass(MULTIPLICATIVE_EXPR);\n createEReference(multiplicativeExprEClass, MULTIPLICATIVE_EXPR__CHILDREN);\n createEAttribute(multiplicativeExprEClass, MULTIPLICATIVE_EXPR__OPERATORS);\n\n multiplicativeExprChildEClass = createEClass(MULTIPLICATIVE_EXPR_CHILD);\n\n numberEClass = createEClass(NUMBER);\n createEAttribute(numberEClass, NUMBER__VALUE);\n\n // Create enums\n bitShiftOpEEnum = createEEnum(BIT_SHIFT_OP);\n additiveOpEEnum = createEEnum(ADDITIVE_OP);\n multiplicativeOpEEnum = createEEnum(MULTIPLICATIVE_OP);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttoUseSolverCpFolderEClass = createEClass(TO_USE_SOLVER_CP_FOLDER);\n\t\tcreateEReference(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__SUB_FOLDERS);\n\t\tcreateEAttribute(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__NAME);\n\t\tcreateEReference(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__TO_USE_GENERATORS);\n\n\t\ttoUseSolverCpGeneratorEClass = createEClass(TO_USE_SOLVER_CP_GENERATOR);\n\t\tcreateEReference(toUseSolverCpGeneratorEClass, TO_USE_SOLVER_CP_GENERATOR__SOLVER);\n\t\tcreateEReference(toUseSolverCpGeneratorEClass, TO_USE_SOLVER_CP_GENERATOR__TO_USE_TUPLES);\n\n\t\ttoUseSolverCpTupleEClass = createEClass(TO_USE_SOLVER_CP_TUPLE);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_LINEARS);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_VARS);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_LOGICALS);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\txActivityDiagramArbiterEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER);\n\n\t\txActivityDiagramArbiterStateEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_STATE);\n\n\t\txActivityDiagramArbiterTransitionEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_TRANSITION);\n\t}", "public void saveData(ArrayList<Task> tasks) {\r\n try {\r\n writeToFile(tasks);\r\n } catch (IOException exception) {\r\n ui.printIoExceptionErrorMessage(exception);\r\n }\r\n }", "public void outputToFile(MethodCallExpr original, MethodCallExpr mutant) {\n if (comp_unit == null || currentMethodSignature == null){\n return;\n }\n num++;\n String f_name = getSourceName(\"ARGR\");\n String mutant_dir = getMuantID(\"ARGR\");\n try {\n PrintWriter out = getPrintWriter(f_name);\n ARGR_Writer writer = new ARGR_Writer(mutant_dir, out);\n writer.setMutant(original, mutant);\n writer.setMethodSignature(currentMethodSignature);\n writer.writeFile(comp_unit);\n out.flush();\n out.close();\n }\n catch (IOException e) {\n System.err.println(\"ARGR: Fails to create \" + f_name);\n logger.error(\"Fails to create \" + f_name);\n }\n }", "public boolean saveExamples(String filename,String classKey,String type);", "public abstract void writeToFile( );", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmaturityModelEClass = createEClass(MATURITY_MODEL);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__NAME);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__VERSION);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__RELEASE_DATE);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__AUTHOR);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__DESCRIPTION);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__ACRONYM);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__URL);\n\t\tcreateEReference(maturityModelEClass, MATURITY_MODEL__ORGANIZES);\n\t\tcreateEReference(maturityModelEClass, MATURITY_MODEL__EVOLVES_INTO);\n\n\t\tprocessAreaEClass = createEClass(PROCESS_AREA);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__NAME);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__SHORT_DESCRIPTION);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__MAIN_DESCRIPTION);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__ACRONYM);\n\t\tcreateEReference(processAreaEClass, PROCESS_AREA__DEFINES);\n\t\tcreateEReference(processAreaEClass, PROCESS_AREA__IMPLEMENTS);\n\n\t\tspecificPracticeEClass = createEClass(SPECIFIC_PRACTICE);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__NAME);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__ACRONYM);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__COMPLEMENTARY_DESCRIPTION);\n\n\t\tmaturityLevelEClass = createEClass(MATURITY_LEVEL);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__NAME);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__DESCRIPTION);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__ACRONYM);\n\t\tcreateEReference(maturityLevelEClass, MATURITY_LEVEL__EVOLVES_INTO);\n\n\t\tgenericPracticeEClass = createEClass(GENERIC_PRACTICE);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__NAME);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__ACRONYM);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__COMPLEMENTARY_DESCRIPTION);\n\t\tcreateEReference(genericPracticeEClass, GENERIC_PRACTICE__DIVIDED);\n\n\t\tgpSubPracticeEClass = createEClass(GP_SUB_PRACTICE);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__NAME);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__ACRONYM);\n\t}", "static void writeOperations(){\n \ttry{\n \t\t\n\t\t\t// Create file \n\t\t\tFileWriter fstream = new FileWriter(FILE_FILEOP);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t \tfor (int i=0; i < operations.size(); i++){\n\t \t\tout.write(operations.get(i).getDetails() );\n\t \t}\n\t\t\t\n\t\t\t//Close the output stream\n\t\t\tout.close();\n\t\t}\n \tcatch (Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\tSystem.out.print(\"Operations file written.\\n\");\n\n \t\n }", "protected static void createFiles(SessionState state)\n\t{\n\t\tSet alerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\n\t\tMap current_stack_frame = peekAtStack(state);\n\n\t\tString collectionId = (String) current_stack_frame.get(STATE_STACK_CREATE_COLLECTION_ID);\n\t\tif(collectionId == null || collectionId.trim().length() == 0)\n\t\t{\n\t\t\tcollectionId = (String) state.getAttribute(STATE_CREATE_COLLECTION_ID);\n\t\t\tif(collectionId == null || collectionId.trim().length() == 0)\n\t\t\t{\n\t\t\t\tcollectionId = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext());\n\t\t\t}\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_COLLECTION_ID, collectionId);\n\t\t}\n\n\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\tif(new_items == null)\n\t\t{\n\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t{\n\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t}\n\n\t\t\tString encoding = (String) state.getAttribute(STATE_ENCODING);\n\t\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\t\t\n\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\tif(defaultRetractDate == null)\n\t\t\t{\n\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t}\n\n\t\t\tnew_items = newEditItems(collectionId, TYPE_FOLDER, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\n\t\t}\n\t\tInteger number = (Integer) current_stack_frame.get(STATE_STACK_CREATE_NUMBER);\n\t\tif(number == null)\n\t\t{\n\t\t\tnumber = (Integer) state.getAttribute(STATE_CREATE_NUMBER);\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_NUMBER, number);\n\t\t}\n\t\tif(number == null)\n\t\t{\n\t\t\tnumber = new Integer(1);\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_NUMBER, number);\n\t\t}\n\n\t\tint numberOfItems = 1;\n\t\tnumberOfItems = number.intValue();\n\t\touterloop: for(int i = 0; i < numberOfItems; i++)\n\t\t{\n\t\t\tEditItem item = (EditItem) new_items.get(i);\n\t\t\tif(item.isBlank())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\n\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DISPLAY_NAME, item.getName());\n\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DESCRIPTION, item.getDescription());\n\n\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_COPYRIGHT, item.getCopyrightInfo());\n\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_COPYRIGHT_CHOICE, item.getCopyrightStatus());\n\t\t\tif (item.hasCopyrightAlert())\n\t\t\t{\n\t\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_COPYRIGHT_ALERT, Boolean.toString(item.hasCopyrightAlert()));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresourceProperties.removeProperty (ResourceProperties.PROP_COPYRIGHT_ALERT);\n\t\t\t}\n\t\t\t\n\t\t\tBasicRightsAssignment rightsObj = item.getRights();\n\t\t\trightsObj.addResourceProperties(resourceProperties);\n\n\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_IS_COLLECTION, Boolean.FALSE.toString());\n\t\t\tif(item.isHtml())\n\t\t\t{\n\t\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_CONTENT_ENCODING, \"UTF-8\");\n\t\t\t}\n\t\t\tList metadataGroups = (List) state.getAttribute(STATE_METADATA_GROUPS);\n\t\t\tsaveMetadata(resourceProperties, metadataGroups, item);\n\t\t\tString filename = Validator.escapeResourceName(item.getFilename().trim());\n\t\t\tif(\"\".equals(filename))\n\t\t\t{\n\t\t\t\tfilename = Validator.escapeResourceName(item.getName().trim());\n\t\t\t}\n\n\n\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_ORIGINAL_FILENAME, filename);\n\t\t\t\n\t\t\tSortedSet groups = new TreeSet(item.getEntityGroupRefs());\n\t\t\tgroups.retainAll(item.getAllowedAddGroupRefs());\n\t\t\t\n\t\t\tboolean hidden = false;\n\n\t\t\tTime releaseDate = null;\n\t\t\tTime retractDate = null;\n\t\t\t\n\t\t\tif(ContentHostingService.isAvailabilityEnabled())\n\t\t\t{\n\t\t\t\thidden = item.isHidden();\n\t\t\t\t\n\t\t\t\tif(item.useReleaseDate())\n\t\t\t\t{\n\t\t\t\t\treleaseDate = item.getReleaseDate();\n\t\t\t\t}\n\t\t\t\tif(item.useRetractDate())\n\t\t\t\t{\n\t\t\t\t\tretractDate = item.getRetractDate();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tContentResource resource = ContentHostingService.addResource (filename,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcollectionId,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMAXIMUM_ATTEMPTS_FOR_UNIQUENESS,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titem.getMimeType(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titem.getContent(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceProperties,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroups,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thidden,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treleaseDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tretractDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titem.getNotification());\n\n\t\t\t\titem.setAdded(true);\n\t\t\t\t\n\t\t\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\t\t\tif(preventPublicDisplay == null)\n\t\t\t\t{\n\t\t\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!preventPublicDisplay.booleanValue() && item.isPubview())\n\t\t\t\t{\n\t\t\t\t\tContentHostingService.setPubView(resource.getId(), true);\n\t\t\t\t}\n\n\t\t\t\tString mode = (String) state.getAttribute(STATE_MODE);\n\t\t\t\tif(MODE_HELPER.equals(mode))\n\t\t\t\t{\n\t\t\t\t\tString helper_mode = (String) state.getAttribute(STATE_RESOURCES_HELPER_MODE);\n\t\t\t\t\tif(helper_mode != null && MODE_ATTACHMENT_NEW_ITEM_INIT.equals(helper_mode))\n\t\t\t\t\t{\n\t\t\t\t\t\t// add to the attachments vector\n\t\t\t\t\t\tList attachments = EntityManager.newReferenceList();\n\t\t\t\t\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(resource.getId()));\n\t\t\t\t\t\tattachments.add(ref);\n\t\t\t\t\t\tcleanupState(state);\n\t\t\t\t\t\tstate.setAttribute(STATE_ATTACHMENTS, attachments);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tObject attach_links = current_stack_frame.get(STATE_ATTACH_LINKS);\n\t\t\t\t\t\tif(attach_links == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattach_links = state.getAttribute(STATE_ATTACH_LINKS);\n\t\t\t\t\t\t\tif(attach_links != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcurrent_stack_frame.put(STATE_ATTACH_LINKS, attach_links);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(attach_links == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattachItem(resource.getId(), state);\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\tattachLink(resource.getId(), state);\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\tcatch(PermissionException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"notpermis12\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdInvalidException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdLengthException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"toolong\") + \" \" + e.getMessage());\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdUniquenessException e)\n\t\t\t{\n\t\t\t\talerts.add(\"Could not add this item to this folder\");\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(InconsistentException e)\n\t\t\t{\n\t\t\t\talerts.add(RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(OverQuotaException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"overquota\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(ServerOverloadException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"failed\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(RuntimeException e)\n\t\t\t{\n\t\t\t\tlogger.warn(\"ResourcesAction.createFiles ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\talerts.add(rb.getString(\"failed\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\n\t\t}\n\t\tSortedSet currentMap = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\tif(currentMap == null)\n\t\t{\n\t\t\tcurrentMap = new TreeSet();\n\t\t}\n\t\tcurrentMap.add(collectionId);\n\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, currentMap);\n\n\t\t// add this folder id into the set to be event-observed\n\t\taddObservingPattern(collectionId, state);\n\t\t\n\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\n\t}", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "public SaveANA(Integer fileID, File output, FileType type) {\n\t\tfileID_ = fileID;\n\t\toutput_ = output;\n\t\ttype_ = type;\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }" ]
[ "0.6178232", "0.5994235", "0.5957189", "0.5925705", "0.56784475", "0.5574016", "0.55036587", "0.5489263", "0.54569817", "0.5455061", "0.540875", "0.54070526", "0.5377989", "0.5374107", "0.532369", "0.530904", "0.5262138", "0.52218664", "0.51350796", "0.51350796", "0.512473", "0.51184434", "0.5082764", "0.50641173", "0.505092", "0.4998079", "0.49923047", "0.49729425", "0.49714893", "0.49646503", "0.49579743", "0.4947183", "0.4946287", "0.49429733", "0.49386597", "0.4934865", "0.493008", "0.4926814", "0.49264082", "0.49231505", "0.49223626", "0.4911651", "0.4901028", "0.4900374", "0.4892471", "0.48865986", "0.4875237", "0.48738796", "0.48517892", "0.48467708", "0.4842159", "0.48402485", "0.48343873", "0.48298043", "0.48296192", "0.48294297", "0.48201597", "0.4813772", "0.48100722", "0.480985", "0.48090017", "0.48073006", "0.48044416", "0.48000187", "0.4792825", "0.47911653", "0.47879985", "0.47743902", "0.47743902", "0.4773707", "0.47722137", "0.4769443", "0.4763121", "0.4761072", "0.47605672", "0.47580418", "0.47563487", "0.47488326", "0.47467548", "0.47466895", "0.47368976", "0.47365686", "0.47359318", "0.47352368", "0.47342193", "0.4732992", "0.4729442", "0.47255906", "0.47244418", "0.47215214", "0.47152126", "0.47142208", "0.47136143", "0.4712638", "0.47102356", "0.47094828", "0.4706792", "0.4706294", "0.47032076", "0.47019538" ]
0.77153265
0
Writes the calendar to a file
public void writeCalendar(File file) { String prefix = "BEGIN:VCALENDAR" + "\n" + "VERSION:2.0" + "\n" + "PRODID:-//MyMartlet//CourseCalendar//" + serialVersionUID + "\n" + mTZInfo + "\n"; String suffix = "END:VCALENDAR"; try { FileWriter fw = new FileWriter(file.getAbsoluteFile()); BufferedWriter bw = new BufferedWriter(fw); bw.write(prefix); for (Course item : mClasses) { bw.write(makeEvent(item)); } bw.write(suffix); bw.flush(); bw.close(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void WriteCalendarToDatabase() throws IOException\r\n\t{\r\n\t\tObjectOutputStream outputfile;\r\n\t\toutputfile = new ObjectOutputStream(Files.newOutputStream(Paths.get(fileName)));\r\n\t\toutputfile.writeObject(calendar);\r\n\t\toutputfile.close();\r\n\t}", "public void writeCalendar(int idHospital) throws IOException {\r\n\t\tArrayList<String> calendarData = new ArrayList<String>();\r\n\t\tcalendarData.add(Integer.toString(calendar.getCalendarYear()));\r\n\t\tcalendarData.add(Integer.toString(calendar.getNumberOfVacations()));\t\r\n\t\tif(!calendar.isEmpty()) {\r\n\t\t\tArrayList<GregorianCalendar> vacations = calendar.getALLVacations();\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"ddMM\");\r\n\t\t\tfor (GregorianCalendar date : vacations) {\r\n\t\t\t\tcalendarData.add(sdf.format(date.getTime()));\r\n\t\t\t\tcalendarData.addAll(getVacationDay(date));\r\n\t\t\t}\r\n\t\t}\r\n\t\t// llamada a datos\r\n\t\tctrlDatosFichero.saveDataCale(calendarData, idHospital);\r\n\t}", "private void createScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"schedule.txt\");\n// FileWriter fw = new FileWriter(scheduleFile);\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"SCHEDULE:\\n\" + schedule);\n osw.close();\n\n System.out.println(\"schedule.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "public boolean createFile() {\n String filename = name + \".ics\";\n String directory = \"Calendar-Files\";\n String userHome = System.getProperty(\"user.home\") + \"/Desktop/\";\n System.out.println(\"Generating Event File...\");\n \n try {\n File folder = new File(userHome, directory);\n\n // if no folder exists, create it\n if (!folder.exists()) {\n folder.mkdir();\n }\n\n // change file location\n File file = new File(userHome + \"/\" + directory, filename);\n\n // if no file exists, create it\n if (!file.exists()) {\n file.createNewFile();\n }\n\n // write the content string to the event file\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(createContent());\n bw.close();\n }\n catch (IOException e) {\n return false;\n }\n return true;\n }", "public static void writeNewCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, true);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n int lastElement = activities.size();\n Activity activity = activities.get(lastElement - 1);\n bw.write(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles.name + \" \" + \"(\"\n + activity.Roles.subRole + \")\" + \"\\n\");\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n }", "private void createWinnerScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"winners.txt\");\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"WINNERS:\\n\" + winnerSchedule);\n osw.close();\n\n System.out.println(\"winners.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void writeToFile () throws IOException{\n FileWriter deleteFile = new FileWriter(\"Resolved Ticket of \" + this.resovedDate + \".txt\");\n BufferedWriter FileDeleted = new BufferedWriter(deleteFile);\n\n FileDeleted.write(\"Resolution: \" + this.Resolution + \" ; Date: \" + this.resovedDate);\n FileDeleted.close();\n }", "static void save(Schedules schedules, String filename) throws IOException, RBEConfigObjectException\n {\n\t\tFileWriter fw = new FileWriter(filename);\n\t\tschedules.toXML(fw);\n\t\tfw.close();\n }", "private void fileBuilder(File inHere) {\n\t\tif (this.calendar == null) {\n\t\t\tnew JErrorFrame(\"There is no calendar to save.\");\n\t\t}\n\t\ttry {\n\t\t\tthis.calendar.serializeCalendar(inHere);\n\t\t} catch (IOException e) {\n\t\t\tString error = \"There was an unexpected I/O exception: \"\n\t\t\t\t\t+ e.getMessage();\n\t\t\tnew JErrorFrame(error);\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n public void SaveJsonCollectionsToFiles(){\n try {\n String formattedDate = FileNameUtils.DATE_FORMAT.format(new Date());\n ObjectWriter writer = mapper.writer(new DefaultPrettyPrinter());\n writer.writeValue(new File(FileNameUtils.GetValuesFileName(formattedDate)), jsonObjects);\n }\n catch(IOException exp){\n System.err.println(\"Error while creating JSON file. Reason: \" + exp.getMessage());\n }\n }", "public static void writeCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, false);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n for (int j = 0; j < 1; j++) {\n bw.write(\"Year\" + \",\" + \"Month\" + \",\" + \"Activity\" + \",\" + \"Role\" + \"\\n\");\n }\n\n for (int i = 0; i < activities.size(); i++) {\n Activity activity = activities.get(i);\n bw.append(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles);\n }\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n\n }", "public void writeToBookingListFile()\r\n {\r\n\ttry(ObjectOutputStream toBookingListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/bookinglist.dta\")))\r\n\t{\r\n toBookingListFile.writeObject(bookingList);\r\n bookingList.saveStaticBookingRunNr(toBookingListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Booking objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "void openFile(String fileName){\n\t\ttry {\n\t\t\tout = new BufferedWriter(new FileWriter(fileName));\n\t\t\tString dateTime = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\").format(new Date()); \n\t\t\t//out.write(\"Início dos testes \" + dateTime + \"\\n\" );\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void writeToRestaurantFile()\r\n {\r\n\ttry(ObjectOutputStream toRestaurantFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/restaurant.dta\")))\r\n\t{\r\n toRestaurantFile.writeObject(restaurant);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Restaurant objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public void openForWriting(String datei) throws IOException {\n \n oos = new ObjectOutputStream(new FileOutputStream(datei));\n \n }", "protected abstract void writeFile();", "public void writeTicketToFile(){\n\t\ttry{\n\t\t\tString fileName = \"flight\";\n\t\t\tfileName += Integer.toString(flightNum);\n\t\t\tfileName += \"ticket\";\n\t\t\tfileName += Integer.toString(ticketNum);\n\t\t\tfileName += \".txt\";\n\t\t\tFileWriter fw = new FileWriter(fileName, false);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\t\n\n\t\t\tbw.write(\"ENSF Airline Ticket:\\n\\n\");\n\t\t\tbw.write(\"Passenger first name: \" + pass.firstName + \"\\n\");\n\t\t\tbw.write(\"Passenger last name: \" + pass.lastName + \"\\n\");\n\t\t\tbw.write(\"Passenger date of birth: \" + pass.dOB + \"\\n\\n\");\n\t\t\tbw.write(\"Flight number: \" + flightNum + \"\\n\");\n\t\t\tbw.write(\"Flight origin: \" + source + \"\\n\");\n\t\t\tbw.write(\"Flight destination: \" + dest + \"\\n\");\n\t\t\tbw.write(\"Flight date (YYYYMMDD): \" + date + \"\\n\");\n\t\t\tbw.write(\"Flight time (HH:MM): \" + time + \"\\n\");\n\t\t\tbw.write(\"Flight duration: \" + duration +\" hours\");\n\t\t\t\n\t\t\tbw.close();\n\t\t}\n\t\tcatch(IOException ex){\n\t\t\tSystem.out.println(\"Error writing to output file 1\\n\");\n\t\t}\n\t}", "static void writeFile(){\n try{\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n Files.write(contactsListPath, contactList);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n //refreshes list of Contact objs\n fileToContactObjs();\n }", "private void writeFile(TimerEntity entity) {\n final File file = fileName(entity.getTimedObjectId(), entity.getId());\n\n FileOutputStream fileOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file, false);\n final Marshaller marshaller = factory.createMarshaller(configuration);\n marshaller.start(new OutputStreamByteOutput(fileOutputStream));\n marshaller.writeObject(entity);\n marshaller.finish();\n fileOutputStream.flush();\n fileOutputStream.getFD().sync();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n logger.error(\"IOException closing file \", e);\n }\n }\n }\n }", "public static void createICalFile(List<Course> classes, File file) {\n CourseCalendar courseCal = new CourseCalendar(classes);\n courseCal.writeCalendar(file);\n }", "public void quit() {\n\t\ttry {\n\t\t\tFile file = new File(\"output.txt\");\n\t\t\tFile eventFile = new File(\"events.txt\");\n\t\t\tFileWriter write = null;\n\t\t\tFileWriter eventwrite = null;\n\n\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\twrite = new FileWriter(file.getAbsoluteFile());\n\t\t\t}\n\t\t\tif(!eventFile.exists()) {\n\t\t\t\teventFile.createNewFile();\n\t\t\t\teventwrite = new FileWriter(file.getAbsoluteFile());\n\t\t\t}\n\t\t\tString path = file.getAbsolutePath();\n\t\t\tString eventPath = eventFile.getAbsolutePath();\n\n\t\t\twrite = new FileWriter(path);\n\t\t\teventwrite = new FileWriter(eventPath);\n\n\t\t\tBufferedWriter writer = new BufferedWriter(write);\n\t\t\tBufferedWriter eventBWriter = new BufferedWriter(eventwrite);\n\n\n\t\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet()) {\n\t\t\t\tLocalDate d = entry.getKey();\n\t\t\t\tArrayList<Event> list = map.get(d);\n\t\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\t\tEvent e = list.get(i);\n\t\t\t\t\twriter.write(e.name + \"\\n\" );\n\t\t\t\t\teventBWriter.append(e.name + \"\\n\" );\n\t\t\t\t\twriter.write(e.sDate + \" \" + e.sTime + \" \" + e.eTime + \"\\n\");\n\t\t\t\t\teventBWriter.append(e.sDate + \" \" + e.sTime + \" \" + e.eTime + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\twriter.close();\n\t\t\teventBWriter.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void exportJSON()\n {\n Gson JSONConverter = new Gson();\n FileWriter writer;\n\n try\n {\n // wipe the file\n PrintWriter write = new PrintWriter(new File(fp));\n write.print(\"\");\n write.close();\n\n // Initialize FileWriter to write Strings into JSON file.\n writer = new FileWriter(fp + \"/queue.json\");\n\n Iterator<ComparableCalendar> iter = this.queue.iterator();\n // Loop through the PQ.\n while(iter.hasNext())\n {\n ComparableCalendar nextObject = iter.next();\n // Convert an issue object into a JSON-formatted representation of it, as a String.\n String representationJSON = JSONConverter.toJson(nextObject);\n\n // Write that String to the file.\n writer.write(representationJSON + \"\\n\");\n }\n // Close the FileWriter to conserve system resources.\n writer.close();\n\n }\n catch (Exception e)\n {\n // Print any error messages that results to the console.\n e.printStackTrace();\n }\n\n }", "public void writeToConferenceRoomListFile()\r\n {\r\n\ttry(ObjectOutputStream toConferenceRoomListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/conferenceroomlist.dta\")))\r\n\t{\r\n toConferenceRoomListFile.writeObject(conferenceRoomList);\r\n conferenceRoomList.saveStaticPrice(toConferenceRoomListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Konferanserom objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public abstract void writeToFile( );", "public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}", "public void writeToFile(File file) {\n\n\t}", "public static void saveDataToFile() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy MM dd, HH mm\");\n Date date = new Date();\n String fileName= dateFormat.format(date)+\".txt\";\n\n try {\n PrintWriter writer = new PrintWriter(fileName, \"UTF-8\");\n writer.print(\"Wins: \");\n writer.println(wins);\n writer.print(\"Draws: \");\n writer.println(draws);\n writer.print(\"Losses: \");\n writer.println(loses);\n writer.close();\n System.out.println(\"File Write Successful\");\n } catch (IOException e) {\n\n }\n\n\n }", "private static void saveActionPerformed(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setDialogType(JFileChooser.OPEN_DIALOG);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Text files\", \"txt\");\r\n chooser.setFileFilter(filter);\r\n int returnVal = chooser.showOpenDialog(frame);\r\n if (returnVal == JFileChooser.APPROVE_OPTION) { \r\n try(BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(chooser.getSelectedFile()), \"UTF-8\"))){\r\n writeChosenSchedule(bw); \r\n \r\n JOptionPane.showMessageDialog(null, \"The schedule was successfully saved.\",\r\n \"Info\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n catch(IOException e){\r\n Logger.getLogger(\"File saving\").log(Level.WARNING, \"Could not write to the file\", e);\r\n JOptionPane.showMessageDialog(null, \"Failed to save the schedule to the chosen file!\",\r\n \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n }", "public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "String saveToFile () throws Exception {\n\n File backupFile = new File(\"../dataBackup.txt\");\n\n// checks if backup file exists, if yes, it attempts to delete it\n if (backupFile.exists() && !backupFile.delete())\n return (\"Save terminated: backup could not be deleted\");\n// attempts to rename file to backup file\n if (!file.renameTo(backupFile))\n return (\"Save terminated: backup could not be created\");\n\n// creates custom writer\n Writer writer = new Writer(new FileWriter(file));\n\n// cycles through all timelines and all their events, writing all into the same file\n for (Timeline timeline : timelines) {\n writer.writeTimeline(timeline);\n for (Event event : timeline.events) {\n writer.writeEvent(event);\n }\n }\n\n writer.close();\n return (\"Save finished successfully\");\n }", "public void writeToEmployeeListFile()\r\n {\r\n\ttry(ObjectOutputStream toEmployeeListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/employeelist.dta\")))\r\n\t{\r\n toEmployeeListFile.writeObject(employeeList);\r\n employeeList.saveStaticEmpRunNr(toEmployeeListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Ansatt objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void saveAs() {\n writeFile.Export();\n }", "void writeEntry(String key, TimeConverter converter, AbsoluteDate date, boolean forceCalendar, boolean mandatory) throws IOException;", "static void writeToFiles() throws IOException {\n\n writeToFilePriceHistory();\n writeToFileEmployees();\n writeToFileInventory();\n writeToSaleItems();\n writeToOrder();\n writeToFileInventory();\n writeToRevenueLog();\n }", "public void writeToServiceFile()\r\n {\r\n\ttry(ObjectOutputStream toServiceFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/servicelist.dta\")))\r\n\t{\r\n toServiceFile.writeObject(serviceList);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Service objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public static void writeTo(String filename, CashContainer container){\r\n\t\tPrintWriter pw=null;\r\n\t\ttry{\r\n\t\t\tpw=new PrintWriter(new FileOutputStream(new File(filename),false));\r\n\t\t\tpw.write(container+\"\\n\");\t\t\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tpw.close();\r\n\t\t}\r\n\t}", "public static synchronized void save() {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n String team_backup = config.Server.serverdata_file_location + \"/teams\";\n\n Calendar dato = new GregorianCalendar();\n\n team_backup += dato.get(Calendar.YEAR) + \"-\" + dato.get(Calendar.DAY_OF_MONTH) + \"-\" + dato.get(Calendar.MONTH) + \"-\";\n team_backup += dato.get(Calendar.HOUR) + \"-\" + dato.get(Calendar.MINUTE) + \".ser\";\n\n admin.logging.globalserverMsg(\"Saving team data to file.\");\n\n try {\n FileOutputStream fil = new FileOutputStream(team_fil);\n FileOutputStream fil_backup = new FileOutputStream(team_backup);\n\n //Skriv til teams.txt\n ObjectOutputStream out = new ObjectOutputStream(fil);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n\n //Skriv til backup fil.\n out = new ObjectOutputStream(fil_backup);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n } catch (Exception e) {\n e.printStackTrace();\n admin.logging.globalserverMsg(\"Error saving team data to file.\");\n }\n }", "public static void example(List<Course> classes, String pattern, boolean recurring,\n boolean rounded, File file) {\n CourseCalendar courseCal = new CourseCalendar(classes, pattern, recurring, rounded);\n courseCal.writeCalendar(file);\n }", "public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}", "@Override\n public void writeDataToTxtFile() {\n\n }", "public static void writeObject() {\r\n ChunkedCharBuffer buf = new ChunkedCharBuffer();\r\n for (Map.Entry<String, CronJob> entry : getInstance().events.entrySet()) {\r\n CronJob event = entry.getValue();\r\n buf.append(entry.getKey());\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getInterval()));\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getStartTime().getTime()));\r\n buf.append(\"|\");\r\n buf.append(event.getCommandString());\r\n buf.append(\"|\");\r\n buf.append(event.getUser());\r\n buf.append(\"|\");\r\n buf.append(event.getUserService());\r\n buf.append(\"\\n\");\r\n }\r\n if (buf.size() > 0) {\r\n try {\r\n OutputStreamWriter out = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(FILE, false)));\r\n buf.writeTo(out);\r\n out.flush();\r\n out.close();\r\n } catch (Exception e) {\r\n LoggingService.getInstance().serverLog(\"Error writing statistics: \" + e);\r\n }\r\n }\r\n }", "private void writeAlarm(int hour, int minute, int period, String name) {\n\n try (PrintWriter writer = new PrintWriter(new FileWriter(alarmsFile, true))) {\n\n writer.println(Integer.toString(hour));\n writer.println(Integer.toString(minute));\n writer.println(Integer.toString(period));\n writer.println(name);\n\n } catch (IOException ex) {\n Logger.getLogger(AlarmsEditPanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void writeToHotelRoomListFile()\r\n {\r\n\ttry(ObjectOutputStream toHotelRoomListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/hotelroomlist.dta\")))\r\n\t{\r\n toHotelRoomListFile.writeObject(hotelRoomList);\r\n hotelRoomList.saveStaticPrice(toHotelRoomListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Hotelrom objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private static void save(Aircraft ac, String fileName) {\n\t\ttry {\n\t\t\tbw = new BufferedWriter(new FileWriter(fileName, true));\n\t\t\tbw.append(ac.toString().replace(\"\\n\", \"\\r\\n\"));\n\t\t\tbw.newLine();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IO ERROR received: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void updateDataFile() throws FileNotFoundException {\n \t\tfinal PrintWriter out = new PrintWriter(calendarDataFile);\n \t\tfor (int x = 0; x < CAL_WIDTH; x++) {\n \t\t\tfor (int y = 0; y < CAL_HEIGHT; y++) {\n \t\t\t\tif (contrib[y][x] == null ||\n \t\t\t\t\tcontrib[y][x].current - contrib[y][x].initial == 0)\n \t\t\t\t{\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tout.println(contrib[y][x]);\n \t\t\t}\n \t\t}\n \t\tout.close();\n \t}", "void writeToFile() throws IOException{\n\t\tString fileName = f.getTitle() + \".txt\";\n\t\tfileWrite = new BufferedWriter( new FileWriter(fileName));\n\t\tfileWrite.write(history);\n\t\tSystem.out.println(fileName + \" File Writing Successful!!\");\n\t\tSystem.out.println(\"Data in file :\\n\" + history);\n\t\tfileWrite.flush();\n\t\tFile file = new File(fileName);\n\t\tjava.awt.Desktop.getDesktop().open(file);\n\n\t}", "public static void writeJSCalendar(final JSCalendarObject obj,\n final Writer wtr) {\n\n obj.writeValue(wtr, mapper);\n }", "public void writeInfoTofile() throws IOException\n\t{\n\t\tFileWriter fstream = new FileWriter(\"booking.txt\",true);\n BufferedWriter out = new BufferedWriter(fstream); //buffer class name out\n out.append(\"name : \"+this.customer_name);\n out.newLine();\n out.append(hotelInfo.getName());// Writing all customer info\n out.newLine();\n out.append(\"country : \"+hotelInfo.getCountry());\n out.newLine();\n out.append(\"Hotel rating : \"+hotelInfo.getStar());\n out.newLine(); \n out.append(\"check-in date : \"+this.checkin_date);\n out.newLine();\n out.append(\"check-out date: \"+this.checkout_date);\n out.newLine();\n out.append(\"Total price : \"+this.totalPrice);\n out.newLine();\n out.close();\n System.out.println(\"Writting successful.\");\n\t}", "public static void saveWeekday(final Context context,\r\n\t\t\t\t\t\t\t\t final String fileName,\r\n\t\t\t\t\t\t\t\t final List<Weekday> list) {\r\n\t try {\r\n\t\t\tfinal File file = new File(fileName);\r\n\t\t\tfinal FileOutputStream fos =\r\n\t\t\t\t\tcontext.openFileOutput(file.getName() + \".txt\", Context.MODE_PRIVATE);\r\n\t\t\tfinal ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t oos.writeObject(list);\r\n\t oos.close();\r\n\t } catch (final IOException ioException) {\r\n\t // To do nothing\r\n\t }\r\n\r\n\t Toast.makeText(context, \"Saved as \" + fileName, Toast.LENGTH_SHORT).show();\r\n\t}", "public void writeToFile() throws IOException {\n if(CurrentFileName != null) {\n FileOutputStream outputStream = new FileOutputStream(CurrentFileName);\n workbook.write(outputStream);\n }\n }", "public void writeEvent(){\n for (int i = 0; i<eventlist.size();i++){\n try {\n FileWriter fw = new FileWriter(eventFile, true);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(eventlist.get(i).getConfirm()); //this is the username of whoever is writing the event, which will be used as a confirmation later\n bw.newLine();\n bw.write(eventlist.get(i).getEventName());\n bw.newLine();\n bw.write(eventlist.get(i).getEventType());\n bw.newLine();\n bw.write(eventlist.get(i).getDescription());\n bw.newLine();\n bw.write(eventlist.get(i).getPriority());\n bw.newLine();\n bw.write(eventlist.get(i).getDate());\n bw.newLine();\n eventlist.clear(); //clears the ArrayList to prevent duplicate events showing up\n bw.close();\n //each event will take up 6 lines in the file\n }\n catch(IOException ex){\n ex.printStackTrace();\n System.out.println(\"Error writing to files\");\n }\n } \n \n }", "Path getAppointmentScheduleFilePath();", "public void writeToLogFile(String entry) {\r\n\t\ttry{\r\n\t\t\tStringBuilder out = new StringBuilder(50);\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\r\n\t\t out.append(sdf.format(cal.getTime()) + \";\" + entry);\r\n\t\t \r\n\t\t this.write(out);\r\n\t\t}catch (Exception e){\r\n\t\t System.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t}", "public void write() throws IOException {\n\t\tfinal String timeLog = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd_HH-mm-ss\"));\n\t\tfinal File file = new File(\"wordsaurier-document-\" + timeLog + \".txt\");\n\t\t\n\n\t\ttry (OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) {\n\t\t\t\n\n\t\t\t\n\t\t\twriter.write(\"Wordsaurier document\\r\\n\");\n\t\t\twriter.write(this.documentSpecification.toString() + \"\\r\\n\");\n\t\t\twriter.write(\"---------------------\\r\\n\");\n\t\t\twriter.write(this.document.getContent());\n\t\t\tLOG.info(\"document was written to {}\", file.getCanonicalPath());\n\t\t\t\n\t\t} catch (final IOException e) {\n\t\t\tthrow e;\n\t\t}\n\t}", "private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract void saveToFile(PrintWriter out);", "public void createCalendar() throws Exception, IOException, ServiceException {\n // If true, the calendar already exists\n if (getDestinationCalendarUrl() != null) {\n return;\n }\n\n CalendarEntry calendar = new CalendarEntry();\n calendar.setTitle(new PlainTextConstruct(destinationCalendarName));\n// calendar.setSummary(new PlainTextConstruct(\"Lotus Notes Calendar\"));\n // Get this machine's current time zone when creating the new Google calendar\n TimeZone localTimeZone = TimeZone.getDefault();\n calendar.setTimeZone(new TimeZoneProperty(localTimeZone.getID()));\n \n calendar.setHidden(HiddenProperty.FALSE);\n calendar.setSelected(SelectedProperty.TRUE);\n calendar.setColor(new ColorProperty(COLOR));\n\n CalendarEntry returnedCalendar = service.insert(mainCalendarFeedUrl, calendar);\n returnedCalendar.update();\n\n // Get the feed url reference so that we can add events to the new calendar.\n destinationCalendarFeedUrl = new URL(returnedCalendar.getLink(\"alternate\", \"application/atom+xml\").getHref());\n\n return;\n }", "public void writeMCPToFile() throws FileNotFoundException\n\t{\n\t\t try {\n\t\t\t String a = null;\n\t\t\t switch (sortingAlgorithm) {\n\t\t\t\tcase SelectionSort:\n\t\t\t\t\ta = \"SelectionSort.txt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase InsertionSort:\n\t\t\t\t\ta = \"InsertionSort.txt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MergeSort:\n\t\t\t\t\ta = \"MergeSort.txt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase QuickSort:\n\t\t\t\t\ta = \"QuickSort.txt\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t FileWriter myWriter = new FileWriter(a);\n\t\t myWriter.write(this.toString());\n\t\t myWriter.close();\n\t\t System.out.println(\"File generated: SUCCESS\");\n\t\t } catch (IOException e) {\n\t\t System.out.println(\"File generated: ERROR\");\n\t\t e.printStackTrace();\n\t\t }\n\t}", "public void update() throws IOException{\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"agenda.txt\", false));\r\n\t\toos.writeObject(artists);\r\n\t\toos.writeObject(stages);\r\n\t\toos.writeObject(performances);\r\n\t\tartists.clear();\r\n\t\tstages.clear();\r\n\t\tperformances.clear();\r\n\t\toos.close();\r\n\t}", "private void writeFile(List<ClubPointsDTO> clubs) {\n\t\tFileWriter file = null;\n\t\ttry {\n\n\t\t\tfile = new FileWriter(\"clubs.txt\");\n\n\t\t\t// Escribimos linea a linea en el fichero\n\t\t\tfile.write(\"CLUB\\tPUNTOS\\r\\n\");\n\t\t\tfor(ClubPointsDTO c : clubs)\n\t\t\t\tfile.write(c.getName()+\"\\t\"+c.getPoints()+\"\\r\\n\");\n\n\t\t\tfile.close();\n\n\t\t} catch (Exception ex) {\n\t\t\tthrow new FileException();\n\t\t}\n\t}", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "private void writeMachine() throws VendingMachinePersistenceException {\n // We are not handling the IOException - but\n // we are translating it to an application specific exception and \n // then simple throwing it (i.e. 'reporting' it) to the code that\n // called us. It is the responsibility of the calling code to \n // handle any errors that occur.\n PrintWriter out;\n\n try {\n out = new PrintWriter(new FileWriter(MACHINE_FILE));\n } catch (IOException e) {\n throw new VendingMachinePersistenceException(\n \"Could not save item data.\", e);\n }\n\n // Write out the Item objects to the machine file.\n // We could just grab the item map,\n // get the Collection of Items and iterate over them. However, if we've\n // already created a method that gets a List of Items - then\n // reuse it. We also can use ForEach terminal operation here.\n Collection<Item> itemValues = items.values();\n\n // write the Item object to the file\n itemValues.stream().forEach((i) -> {\n out.println(i.getName() + DELIMITER\n + i.getItemsNumber() + DELIMITER\n + i.getCost());\n // force PrintWriter to write line to the file\n out.flush();\n });\n\n // Clean up\n out.close();\n }", "@Override\n public void run() {\n createScheduleFile();\n createWinnerScheduleFile();\n }", "private void writeCollection() throws DvdCollectionDaoException {\n // NOTE FOR APPRENTICES: We are not handling the IOException - but\n // we are translating it to an application specific exception and \n // then simple throwing it (i.e. 'reporting' it) to the code that\n // called us. It is the responsibility of the calling code to \n // handle any errors that occur.\n PrintWriter out;\n\t \n try {\n out = new PrintWriter(new FileWriter(COLLECTION_FILE));\n } catch (IOException e) {\n throw new DvdCollectionDaoException(\n \"Could not save DVD Collection data.\", e);\n }\n\t \n // Write out the DVD objects to the collection file.\n List<Dvd> dvdList = this.getAllDvds();\n for (Dvd currentDvd : dvdList) {\n // write the DVD object to the file\n out.println(currentDvd.getTitle() + DELIMITER\n + currentDvd.getReleaseDate() + DELIMITER \n + currentDvd.getMpaaRating() + DELIMITER\n + currentDvd.getDirectorName() + DELIMITER \n + currentDvd.getStudio() + DELIMITER\n + currentDvd.getUserRating());\n // force PrintWriter to write line to the file\n out.flush();\n }\n // Clean up\n out.close();\n }", "public void saveToFile(SubjectDataContainer container, Path file) throws IOException {\n MoreFiles.createDirectoriesIfNotExists(file.getParent());\n try (BufferedWriter writer = Files.newBufferedWriter(file, StandardCharsets.UTF_8)) {\n GsonProvider.prettyPrinting().toJson(container.serialize(), writer);\n writer.flush();\n }\n }", "public static void WriteToFile(){\r\n try {\r\n File file = new File(\"output.txt\");\r\n file.createNewFile();\r\n \r\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n String[] FinalBoard = new String[Board.ReportBoardValues().length];\r\n FinalBoard = Board.ReportBoardValues();\r\n for(int i = 0; i < Board.ReportBoardValues().length; i++){\r\n bw.write(FinalBoard[i]);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n fw.close();\r\n \r\n }\r\n catch (IOException e) {\r\n System.out.println (\"Output error\");\r\n }\r\n }", "void initializeFile(MyCalendar cal, File file) {\n\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tString fName = path+\"/events.txt\";\n\t\ttry {\n\t\t\tFile events = file;\n\t\t\tif(file.exists()) {\n\t\t\t\tFileReader fr = new FileReader(file);\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\t\tString line = br.readLine(); \n\n\t\t\t\tString name = null;\n\t\t\t\tString second = null;\n\t\t\t\tif(line != null) {\n\t\t\t\t\twhile(line!=null) {\n\t\t\t\t\t\tname = line;\n\t\t\t\t\t\tsecond = br.readLine();\n\t\t\t\t\t\tString[] arr = null;\n\t\t\t\t\t\tif(!br.equals(\"\")) {\n\t\t\t\t\t\t\tarr = second.split(\" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(arr.length == 5) {\n\t\t\t\t\t\t\tcal.createRecurringFromFile(name, arr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(arr.length == 3) {\n\t\t\t\t\t\t\tcal.createEventFromFile(name, arr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//initializeFile(file);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception x){\n\t\t\tx.printStackTrace();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (AttendanceDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for Employee id :\" + transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getCreatedDate());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getEmployeeEmpId()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeFullName());\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckInTime()));\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckOutTime()));\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public void writeTo(File file) throws IOException, ClassNotFoundException, CollectionManagerNotExist {\n /**\n if(file.exists()){\n throw new CollectionManagerNotExist();\n }\n **/\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file));\n out.writeInt(collections.size());\n collections.entrySet().stream().forEachOrdered(entry->{\n String key = entry.getKey();\n Collection collection = entry.getValue();\n try {\n out.writeUTF(key);\n out.writeObject(collection);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n });\n out.flush();\n out.close();\n }", "public void saveFile() {\r\n final String file = \"respuestaConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\";\r\n try {\r\n int count = 0;\r\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\r\n for (int i = 0; i < this.numberOfBees; i++) {\r\n if (beesArray[i].isInCollisionRisk()) {\r\n writer.println(beesArray[i].getLatitude() + \",\" + beesArray[i].getLongitude() + \",\" + beesArray[i].getHeight());\r\n count++;\r\n }\r\n }\r\n System.out.println(\"Number of bees in collision risk: \" + count);\r\n writer.close();\r\n } catch (IOException ioe) {\r\n System.out.println(\"Something went wrong writing the exit file\");\r\n }\r\n }", "public static void writeFile(String formattedGuests, File file) throws IOException {\n\n\t\tOutputStream out = null;\n\n\t\ttry {\n\n\t\t\tout = new BufferedOutputStream(new FileOutputStream(file));\n\t\t\tbyte[] bytes = formattedGuests.getBytes();\n\n\t\t\t//to avoid the annoying bug with the last two CR + LF we write bytes one\n\t\t\tfor (int i = 0; i < bytes.length - 3; i++){\n\t\t\t\tout.write(bytes[i]);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\n\t\t\t//Ugly to read but needed to ensure the file is correctly closed after an IOError\n\t\t\tif (out != null) {\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "private void writeEvents(final int dayNumber) \n\t{\n\t\tcModel.setSelectedDate(dayNumber);\n\t\t\n\t\t//add one to month because the first month starts at 0\n\t\tint month = cModel.getCalMonth() + 1; \n\t\tint year = cModel.getCalYear();\n\t\tString events = \"\";\n\t\t\n\t\tString date = (month + \"/\" + dayNumber + \"/\" + year);\n\n\t\tif (cModel.hasEvent(date)) \n\t\t{\n\t\t\tevents = events + cModel.getEvents(date);\n\t\t}\n\t\teventsPane.setText(events);\n\t}", "public void dump(AbstractAppointmentBook appointmentBook) throws IOException\n {\n FileWriter fw = new FileWriter(file, false);\n fw.write(appointmentBook.getOwnerName());\n ArrayList<AbstractAppointment> list = (ArrayList<AbstractAppointment>) appointmentBook.getAppointments();\n for (AbstractAppointment appointment : list) {\n fw.write(\"\\n\");\n fw.write(appointment.getDescription()+\",,,,//\"+appointment.getBeginTimeString()+\",,,,//\"+appointment.getEndTimeString());\n }\n fw.flush();\n fw.close();\n }", "private void writeToFile() throws IOException {\n\t\tFileWriter write = new FileWriter(path);\n\t\tPrintWriter print_line = new PrintWriter(write);\n\t\t\n\t\tEnumeration<String> fd_key_Enum = fileData.keys();\n\t\tEnumeration<String> fd_value_Enum = fileData.elements();\n\t\twhile (fd_key_Enum.hasMoreElements() && fd_value_Enum.hasMoreElements()) {\n\t\t\tprint_line.printf(\"%s\" + \"%n\", fd_key_Enum.nextElement() + \":\" + fd_value_Enum.nextElement());\n\t\t}\n\t\t\n\t\tprint_line.close();\n\t\twrite.close();\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "public void writeFile() \r\n\t{\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tfor(String str : scorers)\r\n\t\t\tbuilder.append(str).append(\",\");\r\n\t\tbuilder.deleteCharAt(builder.length() - 1);\r\n\t\t\r\n\t\ttry(DataOutputStream output = new DataOutputStream(new FileOutputStream(HIGHSCORERS_FILE)))\r\n\t\t{\r\n\t\t\toutput.writeChars(builder.toString());\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] File \" + HIGHSCORERS_FILE + \" was not found \" \r\n\t\t\t\t\t+ \"while writing.\");\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] Error while reading the file \" + HIGHSCORERS_FILE);\r\n\t\t}\r\n\t}", "@Override\n public void writeFile(String arg0, Map result) {\n\n // Initial variables\n ArrayList<HashMap> records;\n ArrayList<HashMap> recordT;\n ArrayList<HashMap> observeRecords; // Array of data holder for time series data\n BufferedWriter bwT; // output object\n StringBuilder sbData = new StringBuilder(); // construct the data info in the output\n HashMap<String, String> altTitleList = new HashMap(); // Define alternative fields for the necessary observation data fields; key is necessary field\n // P.S. Add alternative fields here\n HashMap titleOutput; // contain output data field id\n DssatObservedData obvDataList = DssatObservedData.INSTANCE; // Varibale list definition\n\n try {\n\n // Set default value for missing data\n setDefVal();\n\n // Get Data from input holder\n Object tmpData = getObjectOr(result, \"observed\", new Object());\n if (tmpData instanceof ArrayList) {\n records = (ArrayList) tmpData;\n } else if (tmpData instanceof HashMap) {\n records = new ArrayList();\n records.add((HashMap) tmpData);\n } else {\n return;\n }\n if (records.isEmpty()) {\n return;\n }\n\n observeRecords = new ArrayList();\n for (HashMap record : records) {\n recordT = getObjectOr(record, \"timeSeries\", new ArrayList());\n String trno = getValueOr(record, \"trno\", \"1\");\n if (!recordT.isEmpty()) {\n String[] sortIds = {\"date\"};\n Collections.sort(recordT, new DssatSortHelper(sortIds));\n for (HashMap recordT1 : recordT) {\n recordT1.put(\"trno\", trno);\n }\n observeRecords.addAll(recordT);\n }\n }\n\n // Initial BufferedWriter\n String fileName = getFileName(result, \"T\");\n if (fileName.endsWith(\".XXT\")) {\n String crid = DssatCRIDHelper.get2BitCrid(getValueOr(result, \"crid\", \"XX\"));\n fileName = fileName.replaceAll(\"XX\", crid);\n }\n arg0 = revisePath(arg0);\n outputFile = new File(arg0 + fileName);\n bwT = new BufferedWriter(new FileWriter(outputFile));\n\n // Output Observation File\n // Titel Section\n sbError.append(String.format(\"*EXP.DATA (T): %1$-10s %2$s\\r\\n\\r\\n\",\n fileName.replaceAll(\"\\\\.\", \"\").replaceAll(\"T$\", \"\"),\n getObjectOr(result, \"local_name\", defValBlank)));\n\n titleOutput = new HashMap();\n // TODO get title for output\n // Loop all records to find out all the titles\n for (HashMap record : observeRecords) {\n // Check if which field is available\n for (Object key : record.keySet()) {\n // check which optional data is exist, if not, remove from map\n if (obvDataList.isTimeSeriesData(key)) {\n titleOutput.put(key, key);\n\n } // check if the additional data is too long to output\n else if (key.toString().length() <= 5) {\n if (!key.equals(\"date\") && !key.equals(\"trno\")) {\n titleOutput.put(key, key);\n }\n\n } // If it is too long for DSSAT, give a warning message\n else {\n sbError.append(\"! Waring: Unsuitable data for DSSAT observed data (too long): [\").append(key).append(\"]\\r\\n\");\n }\n }\n // Check if all necessary field is available // P.S. conrently unuseful\n for (String title : altTitleList.keySet()) {\n\n // check which optional data is exist, if not, remove from map\n if (getValueOr(record, title, \"\").equals(\"\")) {\n\n if (!getValueOr(record, altTitleList.get(title), \"\").equals(\"\")) {\n titleOutput.put(title, altTitleList.get(title));\n } else {\n sbError.append(\"! Waring: Incompleted record because missing data : [\").append(title).append(\"]\\r\\n\");\n }\n\n } else {\n }\n }\n }\n\n // decompress observed data\n// decompressData(observeRecords);\n // Observation Data Section\n Object[] titleOutputId = titleOutput.keySet().toArray();\n Arrays.sort(titleOutputId);\n String pdate = getPdate(result);\n for (int i = 0; i < (titleOutputId.length / 39 + titleOutputId.length % 39 == 0 ? 0 : 1); i++) {\n\n sbData.append(\"@TRNO DATE\");\n int limit = Math.min(titleOutputId.length, (i + 1) * 39);\n for (int j = i * 39; j < limit; j++) {\n sbData.append(String.format(\"%1$6s\", titleOutput.get(titleOutputId[j]).toString().toUpperCase()));\n }\n sbData.append(\"\\r\\n\");\n\n for (HashMap record : observeRecords) {\n \n if (record.keySet().size() <= 2 && record.containsKey(\"trno\") && record.containsKey(\"date\")) {\n continue;\n }\n sbData.append(String.format(\" %1$5s\", getValueOr(record, \"trno\", \"1\")));\n sbData.append(String.format(\" %1$5s\", formatDateStr(getObjectOr(record, \"date\", defValI))));\n for (int k = i * 39; k < limit; k++) {\n\n if (obvDataList.isDapDateType(titleOutputId[k], titleOutput.get(titleOutputId[k]))) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(pdate, getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else if (obvDataList.isDateType(titleOutputId[k])) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else {\n sbData.append(\" \").append(formatNumStr(5, record, titleOutput.get(titleOutputId[k]), defValI));\n }\n\n }\n sbData.append(\"\\r\\n\");\n }\n }\n // Add section deviding line\n sbData.append(\"\\r\\n\");\n\n // Output finish\n bwT.write(sbError.toString());\n bwT.write(sbData.toString());\n bwT.close();\n } catch (IOException e) {\n LOG.error(DssatCommonOutput.getStackTrace(e));\n }\n }", "public void toFile() throws IOException {\n toFile(null);\n }", "public static void writeFile(File file, String[] arr) throws FileNotFoundException {\r\n System.out.println(\"writing file\");\r\n PrintWriter writer = new PrintWriter(file); // create writer\r\n String temp = \"\"; // use to compare\r\n int count;\r\n\r\n for (int i = 0; i < arr.length; i++) // start from beginning of the array\r\n {\r\n if (arr[i].equals(temp) && i != 0) // if arr[i] is same as before != 0 for write the first element\r\n continue; // skip\r\n else {\r\n temp = arr[i];\r\n count = count(arr, arr[i], i); // count number of time appear\r\n writer.printf(\"%-15s %5d %n\", temp, count); // write into file\r\n }\r\n }\r\n writer.close(); // write into hard disk\r\n }", "@Override\n\tpublic void writeReadableDiffereces() {\n\t\t\n\t\tPrintWriter printWriter = null; \n\t\t\n\t\tString filename = \"AGB-Versions-Aenderungen2.txt\";\n\t\t\n\t\t//System.out.println(\"Schreibe Textdatei mit Aenderungen: \");\n\t\t\n\t\ttry \n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tprintWriter = new PrintWriter(new FileWriter(filename));\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tIterator iter = readableDifferences.iterator();\n\t\t\t\n\t\t\twhile (iter.hasNext())\n\t\t\t{\n\t\t\t\t printWriter.println(iter.next()+LINE_SEPARATOR);\n\t\t\t}\n } \n\t\tfinally \n\t\t{\n if(printWriter != null) printWriter.close();\n } \n\t}", "public void writeToFile(String file) throws IOException {\r\n\t\tString body = \"\"; //everything is stored in a string which\r\n\t\t//is written to the file\r\n\t\tFile writeFile = new File(file);\r\n\t\tBufferedWriter audWriter = new BufferedWriter(new FileWriter(writeFile));\r\n\t\tTheaterSeat current = getFirst();\r\n\t\tbody += current.getTicketType();\r\n\t\tfor (int i=0; i<numRows - 1; i++) {\r\n\t\t\t\r\n\t\t\tfor (int j=1; j<numCols; j++) {\r\n\t\t\t\tcurrent = current.getRight();\r\n\t\t\t\tbody += current.getTicketType();\r\n\t\t\t}\r\n\t\t\tfor (int j=0; j<numCols - 1; j++) {\r\n\t\t\t\tcurrent = current.getLeft();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbody += \"\\n\";\r\n\t\t\tcurrent = current.getDown();\r\n\t\t\tbody += current.getTicketType();\r\n\t\t}\r\n\t\tfor (int j=1; j<numCols; j++) {\r\n\t\t\tcurrent = current.getRight();\r\n\t\t\tbody += current.getTicketType();\r\n\t\t}\r\n\t\taudWriter.write(body);\r\n\t\taudWriter.close();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public static void writeFile(String outputFile) {\n try (FileWriter file = new FileWriter(outputFile)) { // Creates file\n file.write(Constants.OPEN_SQUARE); // Begin array\n for(Map.Entry<Integer, String> entry : valid.entrySet()) { // Iterates names\n int id = entry.getKey();\n String name = entry.getValue();\n String cust = String.format(Constants.ENTRY, id, name);\n file.write(cust); // Writes formatted string to file\n }\n file.write(Constants.CLOSE_SQUARE); // Closes the array\n file.flush(); // Flushes buffer\n } catch (IOException e) { // Case of exception\n e.printStackTrace();\n }\n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "private static void saveFile(Sheet sheet) throws IOException {\r\n File newFile = new File(\"evidence.ods\");\r\n sheet.getSpreadSheet().saveAs(newFile);\r\n }", "public void saveAllVehiclesToFile(ArrayList<DeliveryVehicle> vehicleList) throws java.io.IOException {\n\n // write object to file\n FileOutputStream fos = new FileOutputStream(_filePath); //object to hold a file, e.g. EmployeeData.txt\n PrintStream writer = new PrintStream(fos); //object to write data\n\n //For loop to read each employee and write them to the file\n for(DeliveryVehicle vehicle : vehicleList){\n writer.println(vehicle);\n }\n\n writer.close();//close the writer\n fos.close();//close the file\n\n }", "public void dump(PhoneBill bill) throws IOException{\n String customer = bill.getCustomer();\n File file = new File(\"/Users/srubey/PortlandStateJavaSummer2020/phonebill/src/main/resources/edu/pdx/cs410J/scrubey/\"\n + Project2.getFileName());\n FileWriter writer = null;\n\n try{\n //**if file not yet created\n writer = new FileWriter(file);\n\n writer.write(\"Customer name: \" + bill.getCustomer() + \"\\n\\n\");\n writer.write(\"Caller# Callee#\\t\\t Start Date\\tStart Time\\tEnd Date\\tEnd Time\\n\");\n\n //iterate through each phone call, extracting and adding data to file\n for(int i = 0; i < bill.getPhoneCalls().size(); ++i) {\n String caller = bill.getPhoneCalls().get(i).callerNumber;\n String callee = bill.getPhoneCalls().get(i).calleeNumber;\n String sd = bill.getPhoneCalls().get(i).startDate;\n String st = bill.getPhoneCalls().get(i).startTime;\n String ed = bill.getPhoneCalls().get(i).endDate;\n String et = bill.getPhoneCalls().get(i).endTime;\n\n writer.write(caller + \" \" + callee + \" \" + sd);\n\n //formatting\n if(sd.length() < 10)\n writer.write(\"\\t\");\n\n writer.write(\"\\t\" + st + \"\\t\\t\" + ed + \"\\t\" + et + \"\\n\");\n }\n\n file.createNewFile();\n }catch(IOException e){\n System.out.print(\"\\nText File error\");\n }finally{\n writer.close();\n }\n }", "private void writeToFile(ArrayList<Task> tasks) throws IOException {\r\n FileWriter fileWriter = new FileWriter(filePath);\r\n for (Task task : tasks) {\r\n Parser fileFormatter = new ParseToFileFormat(task);\r\n String taskData = fileFormatter.getFileFormat();\r\n fileWriter.write(taskData);\r\n }\r\n fileWriter.close();\r\n }", "private void toFile(OutputData data) {\n if(data == null) {\r\n JOptionPane.showMessageDialog(this, \"Dane wynikowe nie zostały jeszcze umieszczone w pamieci\");\r\n return;\r\n }\r\n\r\n // Sprawdzenie sciezki zapisu\r\n String filePath = this.outputFileSelector.getPath();\r\n if(filePath.length() <= 5) {\r\n JOptionPane.showMessageDialog(this, \"Nie można zapisać wyniku w wybranej lokacji!\");\r\n return;\r\n }\r\n\r\n // Zapisujemy plik na dysk\r\n try{\r\n PrintWriter writer = new PrintWriter(filePath, \"UTF-8\");\r\n OutputDataFormatter odf = new OutputDataFormatter(this.outputData);\r\n\r\n String userPattern = this.outputFormatPanel.getPattern();\r\n writer.write(odf.getParsedString(userPattern.length() < 2 ? defaultFormatting : userPattern));\r\n\r\n writer.close();\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(this, \"Wystąpił błąd IO podczas zapisu.\");\r\n }\r\n\r\n }", "public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void saveArchive() throws FileNotFoundException {\n jsonWriter.open();\n Archive archive = new Archive(cameraCollection, filmCollection);\n jsonWriter.write(archive);\n jsonWriter.close();\n }", "public static void writeInfoTofile() throws FileNotFoundException {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n throw e;\n }\n }", "void write(File file) throws IOException {\n Files.createParentDirs(file);\n FileWriter fileWriter = new FileWriter(file);\n try {\n for (Map.Entry<String, Status> record : records.entrySet()) {\n fileWriter.write(String.format(\"%s,%s\", record.getValue(), record.getKey()));\n fileWriter.write(\"\\n\");\n }\n } finally {\n fileWriter.close();\n }\n }", "public void saveFile(String theFileLocation){\r\n try {\r\n File fileArchive = new File(theFileLocation);\r\n if (!fileArchive.exists()){ //if there is no file then it creates a new file\r\n fileArchive.createNewFile();\r\n }\r\n FileWriter fW = new FileWriter(theFileLocation);\r\n BufferedWriter bW = new BufferedWriter(fW);\r\n \r\n for (int p = 0; p < buckets.length; p++){\r\n for (int i = 0; i < buckets[p].size(); i++){\r\n EmployeeInfo theEmployee = buckets[p].get(i);\r\n \r\n if (theEmployee instanceof FTE){\r\n bW.write(\"FTE\");\r\n bW.write(\"*\");\r\n } else {\r\n if (theEmployee instanceof PTE){\r\n bW.write(\"PTE\");\r\n bW.write(\"*\");\r\n } \r\n }\r\n // general for both\r\n bW.write(Integer.toString(theEmployee.getEmpNum()));;\r\n bW.write(\"*\");\r\n bW.write(theEmployee.getFirstName());\r\n bW.write(\"*\");\r\n bW.write(theEmployee.getLastName());\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getGender()));\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getWorkLoc()));\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getEmpRole()));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(theEmployee.getDeductRate()));\r\n bW.write(\"*\");\r\n \r\n if (theEmployee instanceof FTE){\r\n FTE theFTE = (FTE) theEmployee;\r\n bW.write(Double.toString(theFTE.yearlySalary));\r\n\r\n } else {\r\n if (theEmployee instanceof PTE){\r\n PTE thePTE = (PTE) theEmployee;\r\n bW.write(Double.toString(thePTE.hourlyWage));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(thePTE.hoursPerWeek));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(thePTE.weeksPerYear));\r\n } \r\n }\r\n \r\n bW.newLine(); \r\n \r\n }\r\n \r\n }\r\n bW.write(\"$$$$$$$\");\r\n bW.close();\r\n }\r\n \r\n catch (IOException IOE){\r\n IOE.printStackTrace();\r\n }\r\n }", "private static void writeToBooksFile() throws IOException{\n\t\tFileWriter fw = new FileWriter(BOOKS_FILE, false); //overwrites the students.txt file\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\n\t\tSet<Integer> keys = ALL_BOOKS.keySet(); //returns list of all keys in ALL_BOOKS\n\t\tfor(int key : keys){\n\t\t\tbw.write(ALL_BOOKS.get(key).ParseForTextFile()); //writes the Parsed Form of the BookDetails object to the books.txt file\n\t\t}\n\t\tbw.close();\n\t}", "public static void almacenarFecha() throws IOException{\n\n FileOutputStream fs;\n ObjectOutputStream os = null;\n\n try{\n Configuracion a1 = new Configuracion();\n fs = new FileOutputStream(\"config.ser\");//Creamos el archivo\n os = new ObjectOutputStream(fs);//Esta clase tiene el método\n os.writeObject(a1);//El método writeObject() serializa el objeto y lo escribe en el archivo\n }catch(FileNotFoundException e){\n e.printStackTrace();\n }catch(IOException e){\n e.printStackTrace();\n } finally {\n os.close();//Hay que cerrar siempre el archivo\n }\n\n }", "@Override\n\tpublic void write(Object obj, File file) throws IJunitException {\n\t\t\n\t}", "private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\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\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.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\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\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\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\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}" ]
[ "0.7410024", "0.6963391", "0.68060786", "0.67719454", "0.6380667", "0.62107116", "0.619774", "0.6105807", "0.5929769", "0.58952516", "0.58635956", "0.58482563", "0.5819847", "0.5803462", "0.57449657", "0.5728016", "0.5720427", "0.56964314", "0.5679471", "0.56709915", "0.56474686", "0.5633036", "0.56227994", "0.5609795", "0.56073105", "0.55932987", "0.5588011", "0.55875385", "0.5578443", "0.557824", "0.55768853", "0.5563737", "0.5557169", "0.55551136", "0.55236673", "0.55160475", "0.5508196", "0.54869765", "0.5476363", "0.54691255", "0.545181", "0.544832", "0.54477614", "0.54455334", "0.5439628", "0.5435807", "0.54338664", "0.5432899", "0.5417363", "0.54157066", "0.5405051", "0.54017586", "0.53962946", "0.53878874", "0.53716624", "0.5368277", "0.53642297", "0.5349079", "0.5340548", "0.53403527", "0.5327202", "0.5308892", "0.529008", "0.52791303", "0.527629", "0.5274685", "0.5271186", "0.52707666", "0.5266342", "0.5260995", "0.52505267", "0.52484584", "0.5248224", "0.52476966", "0.5245662", "0.5237646", "0.5232743", "0.5225615", "0.5222446", "0.52189225", "0.5217085", "0.52168214", "0.52148294", "0.52078915", "0.5206292", "0.51982033", "0.51979446", "0.5190079", "0.5182689", "0.51800156", "0.5178278", "0.5162682", "0.5153614", "0.5142952", "0.51375294", "0.5129766", "0.5129354", "0.5124794", "0.5117975", "0.5116139" ]
0.7656551
0
Write entire EVENT to String from Course
public String makeEvent(Course item) { // TODO: Make recurrence and rounding handling more elegant // (use lambda?) String event; //---------------- //Parse summary-description request String[] splitted = mPattern.split("-"); String summary = parsePattern(item, splitted[0]); String description; try { description = parsePattern(item, splitted[1]); } catch (ArrayIndexOutOfBoundsException e) { description = ""; } String location = item.getLocation(); //----------------- //Get start and end date time //NOTES : // o firstClassBegin and firstClassEnd represent the date-time // object for the beginning and end of the first lecture of // the course. // o lastDay is the last day of the semester (used for recurrence) LocalDate startDate; LocalTime startTime, endTime; LocalDateTime firstClassBegin, firstClassEnd, lastDay; if (mRounded) { startTime = item.getRoundedStartTime(); endTime = item.getRoundedEndTime(); } else { startTime = item.getStartTime(); endTime = item.getEndTime(); } startDate = item.getStartDate(); firstClassBegin = LocalDateTime.of(startDate, startTime); firstClassEnd = LocalDateTime.of(startDate, endTime); lastDay = LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0)); if (mRecurring) { event = makeEvent(summary, description, location, firstClassBegin, firstClassEnd, lastDay); } else { event = makeEvent(summary, description, location, firstClassBegin, firstClassEnd); } return event; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String addCourseEvent(Events events);", "void writeEvent (Event event) throws Exception {\n this.write(\"[event]\\n\");\n this.write(\"timeline \" + event.timeline.name + \"\\n\");\n this.write(\"name \" + event.name + \"\\n\");\n this.write(\"startDate \" + event.startDate[0] + \" \" + event.startDate[1] + \" \" + event.startDate[2] + \"\\n\");\n this.write(\"endDate \" + event.endDate[0] + \" \" + event.endDate[1] + \" \" + event.endDate[2] + \"\\n\");\n this.write(\"visible \" + (event.visible ? 1 : 0) + \"\\n\");\n this.write(event.notes + \"\\n[/event]\\n\");\n this.newLine();\n this.flush();\n }", "@SuppressWarnings(\"unused\")\n private String makeEventStamp(Course item) {\n return makeEventStamp();\n }", "public String editCourseEvent(Events events);", "public String toString() {\n String eventString = \"\";\n DateTimeFormatter ft = DateTimeFormatter.ofPattern(\"ddMMyyyy\");\n String date = this.getDue().format(ft);\n eventString += (\"e,\" + this.getName() + \",\" + this.getDetails() + \",\" +\n date + \";\");\n return eventString;\n }", "public String toStringEvent(String id){\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n String speakers = \"\";\n if (getEventSpeaker(id).size() != 0){\n if (getEventSpeaker(id).size() == 1){\n speakers = \", Speaker: \";\n }\n else{speakers = \", Speakers: \";}\n for (Speaker s: getEventSpeaker(id)){\n speakers += \" \" + s.getName() + \", \";\n }\n String line = \"Event: \" + getEvent(id).getTitle() + \", Room: \" +\n getEventRoom(id).getRoomName()\n + speakers + \"Starts at: \" + getEvent(id).getStartTime().format(formatter) + \", Ends at: \" +\n getEvent(id).getEndTime().format(formatter);\n if (getEvent(id).getVIPStatus()){\n line += \", VIP restricted event\";\n }\n return line;}\n else { String line = \"Event: \" + getEvent(id).getTitle() + \", Room: \" +\n getEventRoom(id).getRoomName()\n + \", Starts at: \" + getEvent(id).getStartTime().format(formatter) + \", Ends at: \" +\n getEvent(id).getEndTime().format(formatter);\n if (getEvent(id).getVIPStatus()){\n line += \", VIP restricted event\";\n }\n return line;\n }\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}", "@Override\r\n\tpublic String toString() \r\n\t{\n\t\treturn \"I am in to String DrawEvent\";\r\n\t}", "public synchronized void event(String s){\n\t\tif(printStdOut){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\tif(eventLogPath != null){\n\t\t\teventLogWriter.println(s);\n\t\t}\n\t}", "@Override\n public String stringToSave() {\n char status = this.isDone ? '1' : '0';\n DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;\n assert dtfDate instanceof DateTimeFormatter : \"date formatter has to be of type DateTimeFormatter\";\n assert dtfTime instanceof DateTimeFormatter : \"time formatter has to be of type DateTimeFormatter\";\n final String EVENT_STRING_TO_SAVE =\n \"E \" + \"| \" + status + \" | \" + this.description+ this.stringOfTags + \" \" + \"| \" +\n this.date.format(dtfDate) + \" \" + this.time.format(dtfTime);\n return EVENT_STRING_TO_SAVE;\n }", "public String toString(){\n return \"Eventtype: \" + eventType + \", event time: \" + eventTime + \", Tally time: \" + tallyTime + \", cash: \" + cash;\n }", "public void writeEvent(){\n for (int i = 0; i<eventlist.size();i++){\n try {\n FileWriter fw = new FileWriter(eventFile, true);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(eventlist.get(i).getConfirm()); //this is the username of whoever is writing the event, which will be used as a confirmation later\n bw.newLine();\n bw.write(eventlist.get(i).getEventName());\n bw.newLine();\n bw.write(eventlist.get(i).getEventType());\n bw.newLine();\n bw.write(eventlist.get(i).getDescription());\n bw.newLine();\n bw.write(eventlist.get(i).getPriority());\n bw.newLine();\n bw.write(eventlist.get(i).getDate());\n bw.newLine();\n eventlist.clear(); //clears the ArrayList to prevent duplicate events showing up\n bw.close();\n //each event will take up 6 lines in the file\n }\n catch(IOException ex){\n ex.printStackTrace();\n System.out.println(\"Error writing to files\");\n }\n } \n \n }", "public void printEvent(ICompletionEvent event) throws FileNotFoundException {\n\n\t\ttry(FileWriter fw = new FileWriter(directory+File.separator+\"Event_RunOf_\"+timeOfRun+\".txt\", true);\n\t\t\t BufferedWriter bw = new BufferedWriter(fw);\n\t\t\t PrintWriter out = new PrintWriter(bw)){\n\t\t\t\n\t\t\tout.println(event.toString());\n\t\t\tout.println(\"===================================================================\\r\\n\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not write to Event file. Exception was:\"+e.getStackTrace()); \n\t\t}\n\t}", "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId();\n\t}", "public String getEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\tString Tword;\r\n\t\t\tTword = String.format(\"%05d\", ticket);\r\n\t\t return Integer.toString(date)+ \" \" +Tword+\" \"+name;\r\n\t }", "private String getOutputString() {\n \tStringBuilder ret = new StringBuilder();\r\n \tCalendar cal = Calendar.getInstance();\r\n \t\r\n \tExportEventLineView eventLine;\r\n \tEventType eventType;\r\n \t\r\n \tint count = _exportEventLines.getChildCount();\r\n \tfor (int i = 0; i < count; i++) {\r\n \t\teventLine = (ExportEventLineView) _exportEventLines.getChildAt( i );\r\n \t\teventType = eventLine.getEventType();\r\n \t\t\r\n \t\tif ( eventLine.isSelected() ) {\r\n \t\t\t\r\n \t\t\tEventIterator iterator = _dbHelper.eventHandler.fetchByType( i+1 );\r\n \t\t\tfor ( Event event : iterator ) {\r\n\t\t\t\t\tcal.setTimeInMillis( event.getTimeStamp() * 1000 );\r\n\t\t\t\t\t\r\n\t\t\t\t\tret.append(\r\n\t\t\t\t\t\t\t'\"' + this.getDateString( cal )\r\n\t\t\t\t\t\t\t+ \"\\\",\\\"\" + this.getTimeString( cal )\r\n\t\t\t\t\t\t\t+ \"\\\",\\\"\" + eventType.getName()\r\n\t\t\t\t\t\t\t+ \"\\\"\\n\"\r\n\t\t\t\t\t\t);\r\n \t\t\t} // if\r\n\t\t\t\tret.append('\\n');\r\n \t\t} // if\r\n \t} // for\r\n \t\r\n \treturn ret.toString();\r\n }", "@Override\n public String toString() {\n StringBuilder newString = new StringBuilder();\n newString.append(\"Event{\" +\n \"eventID: \" + eventID + \", \" +\n \"descendant: \" + descendant + \", \" +\n \"personID: \" + personID + \", \" +\n \"eventType: \" + eventType + \", latitude: \" + latitude +\n \", longitude: \" + longitude +\n \", country: \" + country +\n \", city: \" + city +\n \", year: \" + year + \"}\");\n return newString.toString();\n }", "@Override\n\tpublic String toString() {\n\t\t\n\t\treturn \"[ \"+ event_code + \",\"+ insert_ts + \" ] = \" + short_description ;\n\t\t\n//\t\treturn \"[ \\\"event_code\\\" : \" + \"\\\"\" + event_code + \"\\\" , \\\"update_TS\\\" : \" + \"\\\"\" + insert_ts + \"\\\", \\\"short_Description\\\" : \\\" \"\n//\t\t\t\t+ \"\\\"\" + short_description + \"\\\"\" + \" ]\";\n\t}", "private static String getEventString(final JobLogEvent event)\n {\n if (event == null) {\n return \"NullJobEvent\";\n }\n final StringBuilder sb = new StringBuilder();\n if (event.getScheduler() != null) {\n sb.append(\" Scheduler=\").append(event.getScheduler()).append(\"\\n\");\n }\n // if (event.getRunner() != null) {\n // sb.append(\" Runner=\").append(event.getRunner()).append(\"\\n\");\n // }\n if (event.getJob() != null) {\n sb.append(\" Job=\").append(event.getJob()).append(\"\\n\");\n }\n if (event.getJobDefinition() != null) {\n sb.append(\" Definition=\").append(event.getJobDefinition()).append(\"\\n\");\n }\n if (event.getJobResult() != null) {\n sb.append(\" Result=\").append(event.getJobResult()).append(\"\\n\");\n }\n if (event.getJobStatus() != null) {\n sb.append(\" Status=\").append(event.getJobStatus()).append(\"\\n\");\n }\n return sb.toString();\n }", "public String getEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\tString Tword;\r\n\t\t\tTword = String.format(\"%05d\", ticket);\r\n\t\t\treturn Integer.toString(date)+ \" \" +Tword+\" \"+name;\r\n\t\t}", "@Override\n\tpublic String formatEvent(Event event) {\n\t\treturn event.getStartingTime() + \":00 - \"\n\t\t\t + event.getEndingTime() + \":00: \" + event.getEventName() + '\\n';\n\t}", "private String makeEventLocation(String location) {\n return \"LOCATION:\" + location + \"\\n\";\n }", "public void writeEachEvent(Event event, int index) throws IOException {\n Tag html = new Tag(HTML_HEAD);\n Tag body = new Tag(HTML_BODY);\n\n writeDiplayedTag(HTML_TITLE, event.getTitle(), body);\n writeDiplayedTag(HTML_SPECIFIC_DESCRIPTION, event.getDescription(),\n body);\n writeDiplayedTag(HTML_SPECIFIC_TIME_START, event.getStartDate()\n .toString(), body);\n writeDiplayedTag(HTML_SPECIFIC_TIME_END, event.getEndDate().toString(),\n body);\n writeDiplayedTag(HTML_SPECIFIC_DAY, event.getStartDay(), body);\n writeDiplayedTag(HTML_SPECIFIC_AUTHOR, event.getAuthor(), body);\n html.add(body);\n\n writeHTML(html, HTML.getHTMLFolderPath() + HTML_SPECIFIC_SLASH\n + HTML.getCalName() + index + HTML_END);\n }", "public static void writeObject() {\r\n ChunkedCharBuffer buf = new ChunkedCharBuffer();\r\n for (Map.Entry<String, CronJob> entry : getInstance().events.entrySet()) {\r\n CronJob event = entry.getValue();\r\n buf.append(entry.getKey());\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getInterval()));\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getStartTime().getTime()));\r\n buf.append(\"|\");\r\n buf.append(event.getCommandString());\r\n buf.append(\"|\");\r\n buf.append(event.getUser());\r\n buf.append(\"|\");\r\n buf.append(event.getUserService());\r\n buf.append(\"\\n\");\r\n }\r\n if (buf.size() > 0) {\r\n try {\r\n OutputStreamWriter out = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(FILE, false)));\r\n buf.writeTo(out);\r\n out.flush();\r\n out.close();\r\n } catch (Exception e) {\r\n LoggingService.getInstance().serverLog(\"Error writing statistics: \" + e);\r\n }\r\n }\r\n }", "private void storeEvent() throws IOException {\n\t\tMagical.getStorage().create(Storage.EVENTS_INDEX, event);\n\t\tMagical.addDisplayList(Storage.EVENTS_INDEX, event);\n\t}", "@SuppressWarnings(\"unused\")\n private String makeEventEnd(Course item) {\n LocalTime endTime;\n if (mRounded) {\n endTime = item.getRoundedEndTime();\n } else {\n endTime = item.getEndTime();\n }\n return makeEventEnd(LocalDateTime.of(item.getEndDate(), endTime));\n }", "public String toString() {\r\n\treturn \"DataEvent: \"\r\n\t\t+\"source=\"+getSource()\r\n\t\t+\", jobID=\"\r\n\t\t+ vcDataJobID\r\n\t\t+ \", progress=\\\"\"\r\n\t\t+ getProgress();\r\n}", "public String toString() {\n\n if(!allDay){\n return event + \": \" + startTime + \" to \" + endTime;\n } else {\n return event + \": All Day\";\n }\n }", "private static String courseLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, COURSE_STR, COURSE);\n }", "private String makeEventDescription(String description) {\n return \"DESCRIPTION:\" + description + \"\\n\";\n }", "public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }", "String evel_json_encode_event()\r\n\t {\r\n\t\tEVEL_ENTER();\r\n\t\t\r\n\t\tassert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t \r\n\t JsonObject obj = Json.createObjectBuilder()\r\n\t \t .add(\"event\", Json.createObjectBuilder()\r\n\t\t \t .add( \"commonEventHeader\",eventHeaderObject() )\r\n\t\t \t .add( \"thresholdCrossingAlert\",evelThresholdCrossingObject() )\r\n\t\t \t ).build();\r\n\r\n\t EVEL_EXIT();\r\n\t \r\n\t return obj.toString();\r\n\r\n\t }", "public void notificar(String event) {\n\t\toutPoint.notificar(event);\n\t}", "private void writeRawRoomData(Room e) throws IOException\n {\n\t// Setup the file for output\n\tFile root = Environment.getExternalStorageDirectory();\n\tif (root.canWrite())\n\t{\n\t File outFile = new File(new File(root, \"NavPalSaves/\"), \"floor_\" + (MainInterface.CURRENTMAPLOAD + 1) + \"_\" + e.getLabel() + \"_RoomObj.txt\");\n\t if (!outFile.exists())\n\t {\n\t\ttry\n\t\t{\n\t\t outFile.createNewFile();\n\t\t}\n\t\tcatch (IOException e3)\n\t\t{\n\t\t e3.printStackTrace();\n\t\t}\n\t }\n\n\t FileWriter mapwriter = new FileWriter(outFile);\n\t BufferedWriter out = new BufferedWriter(mapwriter);\n\t String writeString = \"\" + e.getColor() + \"\\n\";\n\t writeString += \"Style: \" + e.getType() + \"\\n\";\n\t writeString += \"d: \" + e.getd() + \"\\n\";\n\t writeString += \"Label: \" + e.getLabel() + \"\\n\";\n\t writeString += \"Transform: \" + e.getTransform() + \"\\n\";\n\n\t out.write(writeString);\n\t out.close();\n\t}\n }", "public static String eventTypeToString(EventType e) {\n return TypeToString.eventTypeToString(e);\n }", "public void storeEvent(Event event) {\n Entity eventEntity = new Entity(\"Event\", event.getEventId().toString());\n eventEntity.setProperty(\"speaker\", event.getSpeaker());\n eventEntity.setProperty(\"organization\", event.getOrganization());\n eventEntity.setProperty(\"eventDate\", event.getEventDate());\n eventEntity.setProperty(\"externalLink\", event.getExternalLink());\n eventEntity.setProperty(\"ownerId\", event.getOwnerId());\n eventEntity.setProperty(\"publicType\", event.getPublicType());\n // eventEntity.setProperty(\"timeStamp\", event.getTimeStamp());\n // This try/catch statement is to prevent null pointer exceptions from fields\n // that might not be defined yet in an event\n // Currently, the events form does not handle these fields so they are in the\n // try catch together\n try {\n eventEntity.setProperty(\"location\", event.getLocation());\n for (String am : event.getAmenities()) {\n storeAmenity(am, event.getEventId());\n }\n for (ThreadComment cm : event.getThread()) {\n storeThreadComment(cm);\n }\n } catch (NullPointerException e) {\n eventEntity.setProperty(\"location\", null);\n }\n\n datastore.put(eventEntity);\n }", "private void saveEvent(){\n String event_name = eventName.getText().toString();\r\n String coach = coach_string;\r\n String time = class_time_string;\r\n int nfcID= 4;\r\n\r\n Map<String, Object> data = new HashMap<>();\r\n\r\n data.put(\"event_name\", event_name);\r\n data.put(\"coach\", coach);\r\n data.put(\"class_time\", time);\r\n data.put(\"nfcID\", nfcID);\r\n\r\n Database.writeClassDb(data, time ,date);\r\n startActivity(new Intent(addCalenderEvent.this, CalendarActivity.class));\r\n finish();\r\n }", "public void notificar(String event,String s) {\n\t\toutPoint.notificar(event,s);\n\t}", "@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }", "public void ExportCSV(Event event) {\n\t\t\ttry {\n\t\t\t\tcsvWriter = new FileWriter(\"Test.csv\",true);\n\t \t csvWriter.append(event.getEvent_name());\n\t \t csvWriter.append(\",\");\n\t\t csvWriter.append(event.getEvent_date());\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(\"N/A\");\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(event.getEvent_StartTime());\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(event.getEvent_EndTime());\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(event.getEvent_description());\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(\"N/A\");\n\t\t csvWriter.append(\"\\n\");\n\t\t csvWriter.flush();\n\t\t csvWriter.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n }", "private void _generateACourse(int index) {\n\t String id = _getId(CS_C_COURSE, index);\n writer_.startSection(CS_C_COURSE, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#Course\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_NAME,\n _getRelativeName(CS_C_COURSE, index), false);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#name\", _getRelativeName(CS_C_COURSE, index), false);\t \t \t \t \n }\n writer_.endSection(CS_C_COURSE);\n }", "public String getEventInfo()\n {\n return \"Event ID: \" + this.hashCode() + \" | Recorded User\\n\" + String.format(\"\\tName %s \\n\\tDate of Birth %s \\n\\tEmail %s \\n\\tContact Number %s \\n\\tAge %d \\nDate %s \\nTime %s \\nParty Size %d \\nEstablishment \\n\\tName: %s \\n\\tAddress: %s\",\n user.getName(), user.getDateOfBirthAsString(), user.getEmail(), user.getPhoneNumber(), \n user.getAge(), getEventDateAsString(), getEventTimeAsString(), partyNumber, establishment.getName(), establishment.getAddress());\n }", "public String getEventCourse() {\n\t\treturn courseRelation;\n\t}", "public List<Events> getCourseEventListByCourseId(int courseId);", "public String toString() {\n StringBuffer buffer = new StringBuffer(\"\\t<semantic_event\");\n\n if (transactionId != null) {\n buffer.append(\" transaction_id=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(transactionId));\n buffer.append(\"\\\"\");\n }\n\n if (name != null) {\n buffer.append(\" name=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(name));\n buffer.append(\"\\\"\");\n }\n\n if (trigger != null) {\n buffer.append(\" trigger=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(trigger));\n buffer.append(\"\\\"\");\n }\n\n if (subtype != null) {\n buffer.append(\" subtype=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(subtype));\n buffer.append(\"\\\"\");\n }\n\n buffer.append(\"/>\\n\");\n\n return buffer.toString();\n }", "private void encode(BsonWriter writer, AppendEvent event) {\n writer.writeStartDocument();\n safeWriteString(writer, EventContainer.FIELD_PATH, event.getPath());\n writer.writeEndDocument();\n }", "private void fillString() {\n information = new String[4];\n information[0] = htmlConverter.fromHtml(event.getSummary()).toString();\n information[1] = event.getBeginTime() + \" - \" + event.getEndTime();\n information[2] = htmlConverter.fromHtml(event.getLocation()).toString();\n information[3] = htmlConverter.fromHtml(event.getDescription()).toString();\n }", "public String toString() {\r\n return COURSE_ID + \"-\" + COURSE_NAME;\r\n }", "public void setEventCourse(String newCourse) {\n\t\tthis.courseRelation = newCourse;\n\t}", "public String getEventInfo() {\n\t\treturn String.format(\"%s, which now has %s participant(s)\",\n\t\t\tthis.title, this.participants);\n\t}", "public String toString() {\n return \"\"+courseID;\n }", "String getEventId();", "public void displayEvent(String name, PrintWriter out, Connection con) {\r\n\r\n ResultSet rs = null;\r\n \r\n int year = 0;\r\n int month = 0;\r\n int day = 0;\r\n int act_hr = 0;\r\n int act_min = 0;\r\n int signUp = 0;\r\n int type = 0;\r\n int holes = 0;\r\n int max = 0;\r\n int size = 0;\r\n int guests = 0;\r\n int teams = 0;\r\n int c_month = 0;\r\n int c_day = 0;\r\n int c_year = 0;\r\n int c_time = 0;\r\n int c_hr = 0;\r\n int c_min = 0;\r\n \r\n String course = \"\";\r\n String format = \"\";\r\n String pairings = \"\";\r\n String memcost = \"\";\r\n String gstcost = \"\";\r\n String itin = \"\";\r\n String c_ampm = \"\";\r\n String act_ampm = \"\";\r\n String fb = \"\";\r\n \r\n //\r\n // Locate the event and display the content\r\n //\r\n try {\r\n\r\n PreparedStatement stmt = con.prepareStatement (\r\n \"SELECT * FROM events2b \" +\r\n \"WHERE name = ?\");\r\n\r\n stmt.clearParameters(); // clear the parms\r\n stmt.setString(1, name);\r\n rs = stmt.executeQuery(); // execute the prepared stmt\r\n\r\n if (rs.next()) {\r\n\r\n year = rs.getInt(\"year\");\r\n month = rs.getInt(\"month\");\r\n day = rs.getInt(\"day\");\r\n type = rs.getInt(\"type\");\r\n act_hr = rs.getInt(\"act_hr\");\r\n act_min = rs.getInt(\"act_min\");\r\n course = rs.getString(\"courseName\");\r\n signUp = rs.getInt(\"signUp\");\r\n format = rs.getString(\"format\");\r\n pairings = rs.getString(\"pairings\");\r\n size = rs.getInt(\"size\");\r\n max = rs.getInt(\"max\");\r\n guests = rs.getInt(\"guests\");\r\n memcost = rs.getString(\"memcost\");\r\n gstcost = rs.getString(\"gstcost\");\r\n c_month = rs.getInt(\"c_month\");\r\n c_day = rs.getInt(\"c_day\");\r\n c_year = rs.getInt(\"c_year\");\r\n c_time = rs.getInt(\"c_time\");\r\n itin = rs.getString(\"itin\");\r\n holes = rs.getInt(\"holes\");\r\n fb = rs.getString(\"fb\");\r\n\r\n } else { // name not found - try filtering it\r\n\r\n name = SystemUtils.filter(name);\r\n\r\n stmt.clearParameters(); // clear the parms\r\n stmt.setString(1, name);\r\n rs = stmt.executeQuery(); // execute the prepared stmt\r\n\r\n if (rs.next()) {\r\n\r\n year = rs.getInt(\"year\");\r\n month = rs.getInt(\"month\");\r\n day = rs.getInt(\"day\");\r\n type = rs.getInt(\"type\");\r\n act_hr = rs.getInt(\"act_hr\");\r\n act_min = rs.getInt(\"act_min\");\r\n course = rs.getString(\"courseName\");\r\n signUp = rs.getInt(\"signUp\");\r\n format = rs.getString(\"format\");\r\n pairings = rs.getString(\"pairings\");\r\n size = rs.getInt(\"size\");\r\n max = rs.getInt(\"max\");\r\n guests = rs.getInt(\"guests\");\r\n memcost = rs.getString(\"memcost\");\r\n gstcost = rs.getString(\"gstcost\");\r\n c_month = rs.getInt(\"c_month\");\r\n c_day = rs.getInt(\"c_day\");\r\n c_year = rs.getInt(\"c_year\");\r\n c_time = rs.getInt(\"c_time\");\r\n itin = rs.getString(\"itin\");\r\n holes = rs.getInt(\"holes\");\r\n fb = rs.getString(\"fb\");\r\n }\r\n }\r\n stmt.close();\r\n\r\n //\r\n // Create time values\r\n //\r\n act_ampm = \"AM\";\r\n\r\n if (act_hr == 0) {\r\n\r\n act_hr = 12; // change to 12 AM (midnight)\r\n\r\n } else {\r\n\r\n if (act_hr == 12) {\r\n\r\n act_ampm = \"PM\"; // change to Noon\r\n }\r\n }\r\n if (act_hr > 12) {\r\n\r\n act_hr = act_hr - 12;\r\n act_ampm = \"PM\"; // change to 12 hr clock\r\n }\r\n\r\n c_hr = c_time / 100;\r\n c_min = c_time - (c_hr * 100);\r\n\r\n c_ampm = \"AM\";\r\n\r\n if (c_hr == 0) {\r\n\r\n c_hr = 12; // change to 12 AM (midnight)\r\n\r\n } else {\r\n\r\n if (c_hr == 12) {\r\n\r\n c_ampm = \"PM\"; // change to Noon\r\n }\r\n }\r\n if (c_hr > 12) {\r\n\r\n c_hr = c_hr - 12;\r\n c_ampm = \"PM\"; // change to 12 hr clock\r\n }\r\n\r\n //\r\n // Build the html page\r\n //\r\n out.println(SystemUtils.HeadTitle(\"Member Event Information\"));\r\n out.println(\"<body bgcolor=\\\"#FFFFFF\\\" text=\\\"#000000\\\">\");\r\n out.println(\"<font face=\\\"Arial, Helvetica, Sans-serif\\\"><center>\");\r\n\r\n out.println(\"<table border=\\\"0\\\" valign=\\\"top\\\">\"); // table for main page\r\n out.println(\"<tr><td align=\\\"center\\\" valign=\\\"top\\\">\");\r\n out.println(\"<font size=\\\"3\\\">\");\r\n out.println(\"Event: <b>\" + name + \"</b>\");\r\n out.println(\"</font></td></tr>\");\r\n out.println(\"<tr><td align=\\\"left\\\">\");\r\n out.println(\"<font size=\\\"2\\\"><br><br>\");\r\n out.println(\"<b>Date:</b>&nbsp;&nbsp; \" + month + \"/\" + day + \"/\" + year);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n if (act_min < 10) {\r\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":0\" + act_min + \" \" + act_ampm);\r\n } else {\r\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":\" + act_min + \" \" + act_ampm);\r\n }\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n if (type != 0) {\r\n out.println(\"<b>Type:</b>&nbsp;&nbsp; Shotgun<br><br>\");\r\n } else {\r\n out.println(\"<b>Type:</b>&nbsp;&nbsp; Tee Times<br><br>\");\r\n }\r\n\r\n if (!course.equals( \"\" )) {\r\n\r\n out.println(\"<b>Course:</b>&nbsp;&nbsp; \" + course);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n }\r\n\r\n out.println(\"<b>Front/Back Tees:</b>&nbsp;&nbsp; \" + fb + \"<br><br>\");\r\n\r\n out.println(\"<b>Format:</b>&nbsp;&nbsp; \" + format + \"<br><br>\");\r\n out.println(\"<b>Pairings by:</b>&nbsp;&nbsp; \" + pairings);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b># of Teams:</b>&nbsp;&nbsp; \" + max);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Team Size:</b>&nbsp;&nbsp; \" + size);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Holes:</b>&nbsp;&nbsp; \" + holes + \"<br><br>\");\r\n out.println(\"<b>Guests per Member:</b>&nbsp;&nbsp;\" + guests);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Cost per Guest:</b>&nbsp;&nbsp;\" + gstcost);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Cost per Member:</b>&nbsp;&nbsp;\" + memcost + \"<br><br>\");\r\n \r\n if (signUp != 0) { // if members can sign up\r\n\r\n if (c_min < 10) {\r\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":0\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\r\n } else {\r\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\r\n }\r\n out.println(\"<br><br>\");\r\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\r\n\r\n out.println(\"<br><br>\");\r\n out.println(\"To register for this event click on the <b>Events</b> tab after closing this window.<br>\");\r\n \r\n } else {\r\n \r\n \r\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\r\n out.println(\"<br><br>\");\r\n out.println(\"Online sign up was not selected for this event.\");\r\n }\r\n out.println(\"</font></td></tr>\");\r\n out.println(\"<tr><td align=\\\"center\\\">\");\r\n out.println(\"<font size=\\\"2\\\">\");\r\n //\r\n // End of HTML page\r\n //\r\n out.println(\"<p align=\\\"center\\\"><br><form>\");\r\n out.println(\"<input type=\\\"button\\\" value=\\\"CLOSE\\\" onClick='self.close();'>\");\r\n out.println(\"</form></p>\");\r\n out.println(\"</font></td>\");\r\n out.println(\"</tr></table>\");\r\n out.println(\"</center></font></body></html>\");\r\n out.close();\r\n \r\n }\r\n catch (Exception exc) {\r\n out.println(SystemUtils.HeadTitle(\"Database Error\"));\r\n out.println(\"<BODY><CENTER>\");\r\n out.println(\"<BR><BR><H3>Database Access Error</H3>\");\r\n out.println(\"<BR><BR>Sorry, we are unable to access the database at this time.\");\r\n out.println(\"<BR>Error:\" + exc.getMessage());\r\n out.println(\"<BR><BR>Please try again later.\");\r\n out.println(\"<BR><BR>If problem persists, contact your golf shop (provide this information).\");\r\n out.println(\"<br><br><form>\");\r\n out.println(\"<input type=\\\"button\\\" value=\\\"Close\\\" onClick='self.close();'>\");\r\n out.println(\"</form>\");\r\n out.println(\"</center></font></body></html>\");\r\n out.close();\r\n }\r\n }", "public static void quit() {\n//\t\tSystem.out.println(\"quit\");\n\t\tFile f = new File(EVENTSTXT);\n\t\ttry {\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(EVENTSTXT));\n\t\t\tString eventsString = getEventsString().replaceAll(\", \", \"]\\n[\");\n\t\t\twriter.write(eventsString);\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"error\");\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n private String makeEventLocation(Course item) {\n String location = item.getLocation();\n return makeEventLocation(location);\n }", "@Override\n public String toString() {\n return \"ServerEvent{\" +\n \"eventID='\" + eventID + '\\'' +\n \", userName='\" + associatedUsername + '\\'' +\n \", personID='\" + personID + '\\'' +\n \", latitude=\" + getLatitude() +\n \", longitude=\" + getLongitude() +\n \", country='\" + getCountry() + '\\'' +\n \", city='\" + getCity() + '\\'' +\n \", type=\" + getEventType() +\n \", year=\" + getYear() +\n '}';\n }", "public String GiveEventID(){\n \tRandom x = new Random();\n \tString pool = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n \tString newid = \"\";\n \tfor(int i = 0;i<26;i++){\n \t\tnewid+=pool.charAt(x.nextInt(36));\n \t}\n \tJSONArray ja = fetchAllNotes(TimeT.getName(),new String[] {TimeT.getFields()[0]},new String[] {newid});\n \tif(ja.length()!=0)\n \t\tnewid = GiveEventID();\n \treturn newid;\n \t\n }", "public String toString() {\r\n \treturn \"Course: \"+courseName+\"|\"+cid+\"|\"+start+\"|\"+end+\"|\"+modules.size()+\" modules\";\r\n }", "public String EventMapStringRepresentation(){\n ArrayList<String> lines = new ArrayList<String>();\n ArrayList<String> idsSorted = sort(eventIdsList);\n for(String id : idsSorted){\n String line = toStringEvent(id);\n lines.add(line);\n }\n String totalString = \"\";\n Integer i = 1;\n for(String line: lines){\n totalString += i + \") \" + line + System.lineSeparator();\n i++;\n }\n return totalString;\n }", "public void writeCalendar(File file) {\n String prefix = \"BEGIN:VCALENDAR\" + \"\\n\"\n + \"VERSION:2.0\" + \"\\n\"\n + \"PRODID:-//MyMartlet//CourseCalendar//\" +\n serialVersionUID + \"\\n\"\n + mTZInfo + \"\\n\";\n String suffix = \"END:VCALENDAR\";\n try {\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(prefix);\n for (Course item : mClasses) {\n bw.write(makeEvent(item));\n }\n bw.write(suffix);\n bw.flush();\n bw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected void printEvent(Event event) {\n System.out.println(\"\\t\" + event.getName());\n System.out.println(\"\\t\" + event.getDate().getDate());\n System.out.println(\"\\t\" + event.getTime().get12HTime());\n\n if (event.getDuration() != 0) {\n System.out.println(\"\\tFor \" + event.getDuration() + \" minutes\");\n }\n }", "@Test\n public void testToString() {\n log.info(thresholdCrossingEvent.toString());\n\n DvThresholdCrossingEvent tce = createThresholdCrossingEvent(KEPLER_ID,\n EPOCH_MJD, ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n null, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n log.info(tce.toString());\n }", "public String getCurrentEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\treturn name+ticket;\r\n\t\t}", "private String makeEventSummary(String name) {\n return \"SUMMARY:\" + name + \"\\n\";\n }", "java.lang.String getEventType();", "public void appendModelEvent(String text) {\n try {\n DateFormat dateFormat = new java.text.SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n StyledDocument doc = screenTP.getStyledDocument();\n doc.insertString(doc.getLength(), formatForPrint(dateFormat.format(date) + \" - \" + text), doc.getStyle(\"modelEvent\"));\n screenTP.setCaretPosition(doc.getLength());\n } catch (BadLocationException ex) {\n AdaptationSuperviser.logger.error(\"Error while trying to append incoming message in the \" + this.getName(), ex);\n }\n }", "public String getEventName();", "public String makeEvent(String summary, String description, String location,\n LocalDateTime start, LocalDateTime end, LocalDateTime lastDay) {\n String prefix = \"BEGIN:VEVENT\\n\";\n String suffix = \"END:VEVENT\\n\";\n\n return prefix + makeEventSummary(summary) + makeEventDescription(description) +\n makeEventLocation(location) + makeEventStamp() + makeEventStart(start) +\n makeEventEnd(end) + makeEventRecurrence(lastDay) + suffix;\n }", "public void onCourse(){\n\t\tmTimeOnCourse = System.currentTimeMillis();\n\t\tmLastLegTime = mTimeOnCourse;\n\t\tIntent i = new Intent(\"com.marktreble.f3ftimer.onUpdate\");\n\t\ti.putExtra(\"com.marktreble.f3ftimer.service_callback\", \"on_course\");\n\t\tmContext.sendBroadcast(i);\n\t\t\t\n\t\t// Buzzer Sound\n\t\t//if (mSoundFXon) mPlayer.start();\n\t\tif (mSoundFXon){\n\t\t\tsetAudioVolume();\n\t\t\tSoftBuzzSound.soundOnCourse(soundPool, soundArray);\n\t\t}\n\n\t\t// Synthesized Call\n\t\tif (mSpeechFXon){\n mHandler.postDelayed(new Runnable() {\n public void run() {\n\t\t\t\tString lang;\n\t\t\t\tif (mLateEntry) {\n\t\t\t\t\tlang = Languages.useLanguage(mContext, mPilotLang).getString(R.string.late_entry);\n\t\t\t\t} else {\n\t\t\t\t\tlang = Languages.useLanguage(mContext, mPilotLang).getString(R.string.on_course);\n\t\t\t\t}\n\t\t\t\tLanguages.useLanguage(mContext, mDefaultLang);\n\t\t\t\tspeak(lang, TextToSpeech.QUEUE_ADD);\n\n }\n }, SPEECH_DELAY_TIME);\n\t\t}\n\t}", "@Override\n\tpublic void ACC_Y_ObjectEvent(Interface.ACC_Y_ObjectEvent e, String data) {\n\t\t\n\t}", "public EventEmitter emit(String event) {\n return emit(event,null);\n }", "public String makeEvent(String summary, String description, String location,\n LocalDateTime start, LocalDateTime end) {\n String prefix = \"BEGIN:VEVENT\\n\";\n String suffix = \"END:VEVENT\\n\";\n\n return prefix + makeEventSummary(summary) + makeEventDescription(description) +\n makeEventLocation(location) + makeEventStamp() + makeEventStart(start) +\n makeEventEnd(end) + suffix;\n }", "public String getCourseToFileString ( )\n\t{\n\t\treturn courseToFileString;\n\t}", "public String eventEndString() {\n return DateUtils.formatExtDate(this.endDate);\n }", "private void writeEvents(final int dayNumber) \n\t{\n\t\tcModel.setSelectedDate(dayNumber);\n\t\t\n\t\t//add one to month because the first month starts at 0\n\t\tint month = cModel.getCalMonth() + 1; \n\t\tint year = cModel.getCalYear();\n\t\tString events = \"\";\n\t\t\n\t\tString date = (month + \"/\" + dayNumber + \"/\" + year);\n\n\t\tif (cModel.hasEvent(date)) \n\t\t{\n\t\t\tevents = events + cModel.getEvents(date);\n\t\t}\n\t\teventsPane.setText(events);\n\t}", "public String printEventFormat() {\n return \" (;´・д・`) Doesn't match the event format.\\n\"\n + \"Please use \\\"event ... /at dd/mm/yyyy 0000\\\" (in 24hr).\\n\";\n }", "private String getEventType(Event event) {\n if (event instanceof Seminar) {\n return \"[S]: \";\n } else {\n return \"[E]: \";\n }\n }", "private void sendEventToServer() throws UnknownHostException, IOException {\n \t\t\n \t\tSocket socket = null; \n \t\t\n \t\tsocket = new Socket(Constants.ServerIp, Constants.Port);\n \t\t\n \t\tObjectOutputStream serializer = null;\n \t\t\n \t\tserializer = new ObjectOutputStream(socket.getOutputStream());\n \t\t//TODO: Send a message to server for new Event\n \t\t\n \t\tMessageType t = MessageType.newPubEventMessage;\n \t\tserializer.writeObject(t);\n \t\tserializer.writeObject(event);\n \t\tserializer.flush();\n \t\t//TODO: Send the event\n \t\t//TODO: Send to Pending Screen\n \t}", "@Override\n\tpublic void ACC_X_ObjectEvent(Interface.ACC_X_ObjectEvent e, String data) {\n\t\t\n\t}", "public Event insertEvent() throws IOException {\n Event event = new Event()\n .setSummary(\"Cita médica\")\n .setLocation(\"Virtual\")\n .setDescription(\"Cita médica Virtual\");\n \n DateTime startDateTime = new DateTime(\"2020-03-25T16:00:00-05:00\");\n EventDateTime start = new EventDateTime()\n .setDateTime(startDateTime)\n .setTimeZone(TIME_ZONE);\n event.setStart(start);\n \n DateTime endDateTime = new DateTime(\"2020-03-25T17:00:00-05:00\");\n EventDateTime end = new EventDateTime()\n .setDateTime(endDateTime)\n .setTimeZone(TIME_ZONE);\n event.setEnd(end);\n \n EventAttendee[] attendees = new EventAttendee[] {\n new EventAttendee().setEmail(\"[email protected]\"),\n new EventAttendee().setEmail(\"[email protected]\"),\n };\n event.setAttendees(Arrays.asList(attendees));\n \n EventReminder[] reminderOverrides = new EventReminder[] {\n new EventReminder().setMethod(\"popup\").setMinutes(10)\n };\n Event.Reminders reminders = new Event.Reminders()\n .setUseDefault(false)\n .setOverrides(Arrays.asList(reminderOverrides));\n event.setReminders(reminders);\n \n String calendarId = DEFAULT_CALENDAR;\n event = service.events().insert(calendarId, event).execute();\n \n return event;\n }", "public void readInEvents() {\n // read CSV file for events\n allEvents = new ArrayList<Event>();\n InputStream inputStream = getResources().openRawResource(R.raw.events);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] eventData = (String[]) scoreList.get(i);\n\n // group together description\n String description = getDescription(8, eventData);\n\n // inputs to Event constructor:\n // String name, String date, String startTime, String endTime, String location,\n // int photoID, String organizations, String categories, String description\n\n // get image ID according to its name\n int photoID = context.getResources().getIdentifier(eventData[5], \"drawable\", context.getPackageName());\n allEvents.add(new Event(eventData[0], eventData[1], eventData[2], eventData[3], eventData[4],\n photoID, eventData[6], eventData[7], description));\n\n\n //System.out.println(\"ADD Event: \" + eventData[0]);\n }\n\n }", "private static void printEvents(Calendar calendar, String name,\r\n\t\t\tBoolean[] bArray) {\r\n\t\tBufferedReader in;\r\n\t\ttry {\r\n\t\t\tin = new BufferedReader(new InputStreamReader(buildURL(calendar)\r\n\t\t\t\t\t.openStream()));\r\n\r\n\t\t\tString inputLine;\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tString[] event = inputLine.split(\"\\\\|\");\r\n\t\t\t\tif (event[3].equals(name)) {\r\n\t\t\t\t\tbuildString(event, calendar, bArray);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(\"URL formed not correct!\");\r\n\t\t} catch (IOException c) {\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.println(\"Incorrect event date or, no access to http://gapi.ereality.ru/\");\r\n\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, 1);\r\n\t\t}\r\n\t}", "public String toString()\n {\n return this.getGeoEvent().toString();\n }", "public String toString(){\n\t\tString temp = new String();\n\n\t\tif(cancelled){\n\t\t\ttemp+=\"WARNING COURSE SHOULD BE CANCELLED!\\n\";\n\t\t}\n\n\t\ttemp += \" Course subject ID: \" + subject.getID();\n\t\ttemp += \"\\n \" + (getStatus() < 0 ? \"Due to start\" : \"Finishes\") + \" in: \" + Math.abs(getStatus());\n\t\ttemp += \"\\n \" + (instructor == null ? \"Instructor not assigned\" : \"Instructor: \" + instructor.getName());\n\t\ttemp += \"\\n Amount of students enrolled: \" + enrolled.size() + \"\\n Enrolled list:\\n\";\n\n\t\tfor(Student student : enrolled){\n\t\t\ttemp+= \" * \" + student.getName() + \"\\n\";\n\t\t}\n\t\treturn temp;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId()+\"-\"+this.getOccurrenceMark();\n\t}", "public String eventList() {\n\n\t\tString str = \"\";\n\t\tif(map.isEmpty()) {\n\t\t\tstr = \"No Events Scheduled Yet\";\n\t\t\treturn str;\n\t\t}\n\t\tstr = \"One Time Events: \\n\";\n\t\tstr = str + \"________________ \\n2020\\n\";\n\n\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet() ) {\n\n\t\t\tLocalDate currentDate = entry.getKey();\n\t\t\tArrayList<Event> list = map.get(currentDate);\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"EEEE MMMM dd\");\n\t\t\tDateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"HH:mm a\");\n\t\t\tfor(int i = 0;i<list.size();i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tif(e.recurring == false) {\n\t\t\t\t\tstr = str + \" \"+formatter.format(currentDate) +\" \" + timeFormatter.format(e.sTime) + \" - \" + timeFormatter.format(e.eTime) + \" \" + e.name + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//for recurring events, add this later\n\t\t/*\n\t\tstr = str + \"\\nRecurring Events:\\n\";\n\t\tstr = str + \"________________ \\n\";\n\t\tif(recurringEvents.size()==0) {\n\t\t\tstr = str + \"No Recurring Event Scheduled\\n\";\n\t\t\treturn str;\n\t\t}\n\t\tfor(int i = 0; i<recurringEvents.size(); i++) {\n\t\t\tEvent e = recurringEvents.get(i);\n\t\t\tstr = str + e.name +\"\\n\";\n\t\t\tstr = str + e.rdays + \" \" + e.sTime + \" \" + e.eTime + \" \" + e.recurringStartDate + \" \" + e.eDate +\"\\n\";\n\t\t}\n\t\t */\n\t\treturn str;\n\n\t}", "public String getEventId();", "public String getEvent() {\n return this.event;\n }", "Event(int start, int end, String eventName) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = \"\";\r\n }", "String toSave(School school){\n\t\tString temp = new String();\n\n\t\ttemp += \"course:\";\n\n\t\ttemp += school.getSubjects().indexOf(subject) + \",\" + daysUntilStarts + \",\" + daysToRun + \",\";\n\n\t\ttemp+=\":\";\n\n\t\tfor(Student student : enrolled){\n\t\t\ttemp += school.getStudents().indexOf(student) + \",\";\n\t\t}\n\n\t\tif(temp.endsWith(\",\")){\n\t\t temp = temp.substring(0,temp.length() - 1);\n\t\t}\n\n\t\treturn temp + \"\\n\";\n\t}", "public String toFile(){\n return String.format(\"%s:%s:%s:%s:%s:%s:%s\",hashIndex,id,super.toFile(), \r\n facultyAbbr.getAbbreviation(), courseName.getCourseName(),tutorialGroup,session);\r\n }", "public String addEvent(String description, LocalDate at) {\n Event toAdd = new Event(description, at);\n records.add(toAdd);\n return String.format(\"Got it. I've added this event:\\n\\t %1$s \\n\\t\" +\n \"Now you have %2$d tasks in the list.\\n\\t\", toAdd.toString(), records.size());\n }", "String getNotesArgument() throws Exception {\n String output = \"\";\n String line = this.readLine().trim();\n\n while (!line.contains(\"[/event]\")) {\n output += line;\n line = this.readLine().trim();\n }\n\n return output;\n }", "public void setEvent(String event) {\n this.event = event;\n }", "byte[] writeEvent(ProcessInstance processInstance, Object value) throws IOException;", "public void Print_event_value(String v)\n {\n\n System.out.println(v + \": \" + event_value);\n }", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}" ]
[ "0.66833866", "0.6588526", "0.64515734", "0.6142402", "0.60043734", "0.5846333", "0.5835391", "0.5780312", "0.5777335", "0.57537454", "0.5709183", "0.5704341", "0.5628665", "0.55912936", "0.5581921", "0.55653363", "0.5555076", "0.5554945", "0.554889", "0.5500385", "0.549313", "0.5491033", "0.54883486", "0.5478227", "0.5474656", "0.54733795", "0.542576", "0.54251564", "0.5423128", "0.54222846", "0.54037637", "0.5390821", "0.53546107", "0.5348457", "0.5311958", "0.5308435", "0.5298727", "0.5285152", "0.52661294", "0.5261516", "0.52614504", "0.52500486", "0.5245736", "0.5237571", "0.5234198", "0.52191496", "0.5218824", "0.51952535", "0.51944035", "0.5184373", "0.5184173", "0.5181144", "0.5162214", "0.5160072", "0.5155126", "0.514221", "0.51390624", "0.5135923", "0.512995", "0.51178044", "0.5112685", "0.5100511", "0.5090786", "0.5088953", "0.50877684", "0.50840193", "0.5068428", "0.5067945", "0.50665593", "0.50663924", "0.50581497", "0.505378", "0.5036965", "0.5032278", "0.5028212", "0.50280756", "0.5026949", "0.5017847", "0.50055397", "0.49986678", "0.4998322", "0.49954054", "0.4994744", "0.49764284", "0.4966285", "0.4942827", "0.49332353", "0.49310523", "0.49305576", "0.49255267", "0.49244374", "0.492431", "0.49216998", "0.4915845", "0.49140266", "0.49099258", "0.49088928", "0.4906165", "0.4906165", "0.4906165" ]
0.5666386
12
General EVENT writer WITH weekly recurrence. All String parameters may be blank.
public String makeEvent(String summary, String description, String location, LocalDateTime start, LocalDateTime end, LocalDateTime lastDay) { String prefix = "BEGIN:VEVENT\n"; String suffix = "END:VEVENT\n"; return prefix + makeEventSummary(summary) + makeEventDescription(description) + makeEventLocation(location) + makeEventStamp() + makeEventStart(start) + makeEventEnd(end) + makeEventRecurrence(lastDay) + suffix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String makeEventRecurrence(LocalDateTime lastDay) {\n return \"RRULE:FREQ=WEEKLY;UNTIL=\" + formatTimeToICS(lastDay) + \"Z\" + \"\\n\";\n }", "public void createRecurringFromFile(String name, String[] arr) {\n\t\t// TODO Auto-generated method stub\n\t\tchar[] days = arr[0].toCharArray();\n\t\tLocalTime stime = LocalTime.parse(arr[1]);\n\t\tLocalTime etime = LocalTime.parse(arr[2]);\n\t\tLocalDate sdate = LocalDate.parse(arr[3]);\n\t\tLocalDate edate = LocalDate.parse(arr[4]);\n\n\t\tint[] dayNum = new int[days.length];\n\t\tfor(int i = 0; i<days.length; i++) {\n\t\t\tif(days[i] == 'M') {\n\t\t\t\tdayNum[i] = 1;\n\t\t\t}\n\t\t\telse if(days[i] == 'T') {\n\t\t\t\tdayNum[i] = 2;\n\t\t\t}\n\t\t\telse if(days[i] == 'W') {\n\t\t\t\tdayNum[i] = 3;\n\t\t\t}\n\t\t\telse if(days[i] == 'R') {\n\t\t\t\tdayNum[i] = 4;\n\t\t\t}\n\t\t\telse if(days[i] == 'F') {\n\t\t\t\tdayNum[i] = 5;\n\t\t\t}\n\t\t\telse if(days[i] == 'A') {\n\t\t\t\tdayNum[i] = 6;\n\t\t\t}\n\t\t\telse if(days[i] == 'S') {\n\t\t\t\tdayNum[i] = 7;\n\t\t\t}\n\t\t}\n\n\t\tfor(LocalDate d = sdate; !d.isAfter(edate); d = d.plusDays(1)) {\n\t\t\tfor(int i = 0; i<dayNum.length; i++) {\n\t\t\t\tif(d.getDayOfWeek().getValue() == dayNum[i]) {\n\t\t\t\t\tEvent e = new Event(name, sdate, d, edate, stime, etime, arr[0]);\n\t\t\t\t\tcreateEvent(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEvent rEvent = new Event(name, sdate, null, edate, stime, etime, arr[0]);\n\t\trecurringEvents.add(rEvent);\n\t}", "private RepeatWeekdays() {}", "private Builder() {\n super(referential.store.v2.WeekPattern.SCHEMA$);\n }", "public void generateWeeklySchedule(){\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.get(i).clear();\r\n\r\n int day = 0;\r\n int workHrs = 0;\r\n\r\n for (Task unfinishedTask: unfinished){\r\n if (day > numDayWorkWeek - 1) break;\r\n\r\n //if there is room for this task --> add it. Else, move to the next day\r\n if (workHrs + unfinishedTask.getHrsLeft() <= dailyWorkload){\r\n weeklySchedule.get(day).add(unfinishedTask);\r\n workHrs += unfinishedTask.getHrsLeft();\r\n }\r\n else{\r\n day++;\r\n weeklySchedule.get(day).add(unfinishedTask);\r\n workHrs = unfinishedTask.getHrsLeft();\r\n }\r\n }\r\n }", "@Test\n public void repeatingTask_changeRepeatPeriod_nextWeekDate() {\n LocalDate testDate = LocalDateTime.now().minusWeeks(1).minusDays(1).toLocalDate();\n LocalTime testTime = LocalTime.of(8, 30);\n LocalDateTime testDateTime = LocalDateTime.of(testDate, testTime);\n Event testEvent = new Event(\"8 days ago\", \"CS2113T\", testDateTime, testDateTime.plusHours(4),\n \"testing\");\n testTaskList.addTask(testEvent);\n // Set to 1w\n RepeatCommand testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.WEEKLY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n RepeatEvent repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n // Set to 1d\n testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.DAILY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n\n assertEquals(repeatEvent.getPeriodCounter(), 0);\n assertEquals(repeatEvent.getNextDateTime(), LocalDateTime.of(LocalDate.now().plusWeeks(1), testTime));\n }", "public void AllWeekAppointmentReport(int weeks)\r\n {\r\n for (int i = 0; i < weeks; i++)\r\n {\r\n for (int j = 0; j < daysPerWeek; j++)\r\n {\r\n for (int k = 0; k < totalSlots; k++)\r\n {\r\n LessonClass a = weekArray[(i)].dayArray[j].dayMap.get(roomNtime[k]);\r\n \r\n // if appointment exists and is parent appointment\r\n if (a != null && a.subject == subjects.PARENT)\r\n {\r\n System.out.println(\"\\n| WEEK: \" + (i+1) + \" | \" + \"DAY: \" + days[j] \r\n + \" | \" + \"TIME: \" + a.time + \"pm | \" + a.room + \" |\");\r\n System.out.println(a.toReport());\r\n System.out.println(\"Visitor offspring ID: \");\r\n \r\n // track if anybody has booked this slot\r\n boolean visitor = false;\r\n \r\n // for each entry in register\r\n for (String s : a.register)\r\n {\r\n if (s != null)\r\n {\r\n System.out.print(s + \"\\n\");\r\n visitor = true;\r\n }\r\n }\r\n // feedback for nobody booked this slot\r\n if (visitor == false)\r\n {\r\n System.out.println(\"No visits booked\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "public void crear_un_evento_recurrente_para_el_dia_de_hoy() {\n\t\t\n\t}", "@Scheduled(cron = \"0 0 9-17 * * MON-FRI\")\n\tpublic void scheduleTaskWeekly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 9 - 17 O'clock Every Weekdays - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "public void setOnWeekRecurrenceChangeListener(OnWeekRecurrenceChangeListener recurrenceListener) {\n this.recurrenceListener = recurrenceListener;\n }", "public void setOnWeekRecurrenceChangeListener(OnWeekRecurrenceChangeListener recurrenceListener) {\n this.recurrenceListener = recurrenceListener;\n }", "public static void createWeeklyReminderAlarm(Context context) {\n String prefWeekStart = PreferenceUtils.readString(PreferenceUtils.SNOOZE_WEEK_START, context);\n int weekStartDay = DateUtils.weekdayFromPrefValue(prefWeekStart);\n int dayBeforeWeekStart = weekStartDay - 1 == 0 ? Calendar.SATURDAY : weekStartDay - 1;\n\n // Load evening start preference.\n String prefEveningStart = PreferenceUtils.readString(PreferenceUtils.SNOOZE_EVENING_START, context);\n int eveningStartHour = TimePreference.getHour(prefEveningStart);\n int eveningStartMinute = TimePreference.getMinute(prefEveningStart);\n\n // Set alarm time based on preference.\n Calendar alarmTime = getBaseCalendar();\n alarmTime.set(Calendar.HOUR_OF_DAY, eveningStartHour);\n alarmTime.set(Calendar.MINUTE, eveningStartMinute);\n alarmTime.set(Calendar.DAY_OF_WEEK, dayBeforeWeekStart);\n\n // Check if alarm should be in the next week.\n if (alarmTime.before(Calendar.getInstance())) {\n alarmTime.setTimeInMillis(alarmTime.getTimeInMillis() + 604800000);\n }\n\n // Create reminders intent.\n PendingIntent alarmIntent = getRemindersIntent(context, Intents.WEEKLY_REMINDER);\n\n // Cancel existing alarms.\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarmManager.cancel(alarmIntent);\n\n // Trigger the alarm weekly on the given time.\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, alarmTime.getTimeInMillis(), 604800000, alarmIntent);\n }", "public static void main(String[] args) {\n\t\tWeekDay wd = new WeekDay();\n\t\t// 2\n\t\t\n\t\t// 4 확인\n\t\twd.input();\n\t\t// 4 확인\n\t\t\n\t\t// 6 확인\n\t\tString result = wd.week();\n\t\t\n\t\t// System.out.println(a);\n\t\t// 6 확인\n\t\t\n\t\twd.write(result);\n\t\t\n\n\t}", "@SuppressWarnings(\"unused\")\n private String makeEventRecurrence(Course item) {\n return makeEventRecurrence(LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0)));\n }", "public void generateSchedule(){\n\t\t\n\t}", "public RecordBuilder weekending(String date) {\n\t\tDate properDate = null;\n\t\ttry {\n\t\t\tproperDate = new SimpleDateFormat(\"MM/dd/yyyy\").parse(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (properDate == null) {\n\t\t\tSystem.out.println(\"incorrect form of String parameter\");\n\t\t}\n\t\trecord.setWeekending(properDate);\n\t\treturn this;\n\t}", "DayOfWeek getUserVoteSalaryWeeklyDayOfWeek();", "com.czht.face.recognition.Czhtdev.Week getWeekday();", "public void setWeek(String week) {\r\n this.week = week;\r\n }", "public WeekPattern() {}", "private void nextWeek() {\r\n tmp.setDay(tmp.getDay() + daysInWeek);\r\n upDMYcountDMYcount();\r\n }", "public void AllWeekLessonReport(int weeks)\r\n {\r\n for (int i = 0; i < weeks; i++)\r\n {\r\n for (int j = 0; j < daysPerWeek; j++)\r\n {\r\n for (int k = 0; k < totalSlots; k++)\r\n {\r\n LessonClass l = weekArray[(i)].dayArray[j].dayMap.get(roomNtime[k]);\r\n \r\n // if lesson exists, and isnt a parent appointment\r\n if (l != null && l.subject != subjects.PARENT)\r\n {\r\n System.out.println(\"\\n| WEEK: \" + (i+1) + \" | \" + \"DAY: \" + days[j] \r\n + \" | \" + \"TIME: \" + l.time + \"pm | \" + l.room + \" |\");\r\n System.out.println(l.toReport());\r\n }\r\n }\r\n }\r\n }\r\n }", "@Override\t\r\n\tpublic String getDailyWorkout() {\n\t\treturn \"practice 30 hrs daily\";\r\n\t}", "public void setName(String n) {\r\n this.weekName = n;\r\n }", "protected void sequence_WEEKS(ISerializationContext context, WeekValue semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public String makeEvent(Course item) {\n // TODO: Make recurrence and rounding handling more elegant\n // (use lambda?)\n\n String event;\n\n //----------------\n //Parse summary-description request\n String[] splitted = mPattern.split(\"-\");\n String summary = parsePattern(item, splitted[0]);\n String description;\n try {\n description = parsePattern(item, splitted[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n description = \"\";\n }\n String location = item.getLocation();\n\n //-----------------\n //Get start and end date time\n //NOTES :\n // o firstClassBegin and firstClassEnd represent the date-time\n // \t object for the beginning and end of the first lecture of\n //\t the course.\n // o lastDay is the last day of the semester (used for recurrence)\n LocalDate startDate;\n LocalTime startTime, endTime;\n LocalDateTime firstClassBegin, firstClassEnd, lastDay;\n if (mRounded) {\n startTime = item.getRoundedStartTime();\n endTime = item.getRoundedEndTime();\n } else {\n startTime = item.getStartTime();\n endTime = item.getEndTime();\n }\n startDate = item.getStartDate();\n firstClassBegin = LocalDateTime.of(startDate, startTime);\n firstClassEnd = LocalDateTime.of(startDate, endTime);\n lastDay = LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0));\n if (mRecurring) {\n event = makeEvent(summary, description, location, firstClassBegin,\n firstClassEnd, lastDay);\n } else {\n event = makeEvent(summary, description, location, firstClassBegin,\n firstClassEnd);\n }\n return event;\n }", "int getWeek();", "public void storeRegularDayTripStationScheduleWithRS();", "public abstract EventSeries addEventSeries(User user, Date start,\n\t\t\tDate end, String eventName, Visibility visibility, Repetition repetition, String description);", "void createDailyMessageRaport(String stringCurrentDate);", "public Schedule4Week() {\n\n\t\tm_WeekSchedule = new HashMap<String, Schedule>();\n\t\t\t\n\t\tm_WeekSchedule.put(ms_Mon, new Schedule());\n\t\tm_WeekSchedule.put(ms_Tue, new Schedule());\n\t\tm_WeekSchedule.put(ms_Wed, new Schedule());\n\t\tm_WeekSchedule.put(ms_Thu, new Schedule());\n\t\tm_WeekSchedule.put(ms_Fri, new Schedule());\n\t\tm_WeekSchedule.put(ms_Sat, new Schedule());\n\t\tm_WeekSchedule.put(ms_Sun, new Schedule());\n\t\t\n\t}", "@Override\r\n\tpublic void english() {\n\t\tSystem.out.println(\"English class is twice every week on monday & saturday all day.\");\r\n\t\t\r\n\t}", "public void drawEventsForWeek(){\n WeekController.getController().drawEvents(PersonInfo.getPersonInfo().getEventsForWeek(weekNumber));\n }", "public void displayNextWeek() {\n setDisplayedDateTime(currentDateTime.plusWeeks(1));\n }", "public static void viewWeekSchedule() {\n\t\tWeek w = new Week();\n\t\t\n\t\tprintWeekTitles();\n\t\tint weekID = Utility.askInt(\"\\nSelect week to view: \");\n\t\tw = aweek.get(weekID);\n\t\t\n\t\tviewWeek(w);\n\t\t\n\t}", "private void dayOfWeek(HplsqlParser.Expr_func_paramsContext ctx) {\n Integer v = getPartOfDate(ctx, Calendar.DAY_OF_WEEK);\n if (v != null) {\n evalInt(v);\n }\n else {\n evalNull();\n }\n }", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"play ROV 2hr.\";\n\t}", "public WeekPanel(CalendarEx calendar) {\n initComponents();\n cal = calendar;\n startEndDay(CalendarEx.getCurrentDay(), CalendarEx.getCurrentMonth(), CalendarEx.getCurrentYear());\n //startDay = new CalendarDate(CalendarEx.getCurrentDay(), CalendarEx.getCurrentMonth(), CalendarEx.getCurrentYear());\n //endDay = new CalendarDate(CalendarEx.getCurrentDay() + 6, CalendarEx.getCurrentMonth(), CalendarEx.getCurrentYear());\n \n ListAppointMents();\n WeekLabel.setText(startDay.toString() + \" - \" + endDay.toString());\n }", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void setNextWeek()\n\t{\n\t\tm_calendar.set(Calendar.WEEK_OF_MONTH,getWeekOfMonth()+1);\n\n\t}", "public final void mT__88() throws RecognitionException {\n try {\n int _type = T__88;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:86:7: ( 'weekly' )\n // InternalMyDsl.g:86:9: 'weekly'\n {\n match(\"weekly\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "void onWeekNumberClick ( @NonNull MaterialCalendarView widget, @NonNull CalendarDay date );", "public static void main(String[] args) {\n\t\r\n\tlogger.info(\"{}\" , addDay(new Date(),1));\r\n\t\r\n}", "com.czht.face.recognition.Czhtdev.WeekOrBuilder getWeekdayOrBuilder();", "boolean getWeek1();", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"daily workout\" ;\n\t}", "ConferenceScheduleBuilderService createEventsFromStartToLunch();", "public WeekG(Calendar date)\r\n {\r\n endDate = Calendar.getInstance();\r\n endDate.set((date.get(Calendar.YEAR)),(date.get(Calendar.MONTH)),\r\n (date.get(Calendar.DAY_OF_MONTH)));\r\n acceptedDatesRange = new int[2];\r\n dayArray = new ArrayList();\r\n note = \"\";\r\n \r\n setUp();\r\n }", "@Override\r\n\tpublic void maths() {\n\t\tSystem.out.println(\"Maths class is on every wednesday at 2 pm\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic String getDailyStudy() {\n\t\treturn \"Practice Expilliarmus and Work on the patronus charm\";\r\n\t}", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"Run and shoot!\";\n\t}", "public void setWdate(String string) {\n\t\t\r\n\t}", "static void addtoReminder(String j, String date) {\n if (j.equals(\"None\")) {\n } else if (j.equals(\"1 Day Before\")) {\n L.add(new Day(date, 1));\n } else if (j.equals(\"2 Day Before\")) {\n L.add(new Day(date, 2));\n } else if (j.equals(\"3 Day Before\")) {\n L.add(new Day(date, 3));\n } else if (j.equals(\"4 Day Before\")) {\n L.add(new Day(date, 4));\n } else if (j.equals(\"1 Week Before\")) {\n L.add(new Week(date, 1));\n } else if (j.equals(\"2 Week Before\")) {\n L.add(new Week(date, 2));\n } else {\n System.out.println(\"remindera ekleme yapılamadı....\");\n }\n }", "public void startWeek()\n\t{\n\t\tsynchronized (date_db_lock) {\t\t\t\n\t\t\tsynchronized (write_student_db_lock) {\n\t\t\t\tclearAllDatabases();\n\t\t\t}\n\t\t}\n\t}", "private String getFileOftheDay() throws IOException {\n Calendar calendar = Calendar.getInstance();\n int day = calendar.get(Calendar.DAY_OF_WEEK);\n if (Calendar.SUNDAY == day) {\n day = Calendar.SATURDAY;\n } else if (Calendar.MONDAY <= day && Calendar.SATURDAY >= day) {\n day -= 1;\n }\n return (pathFiles + \"h_\" + day + \"_\" + getCustomerCode() + \".xml\");\n }", "public static void main(String[] args) throws ParseException {\n\n List<String> weeks = getWeeks(dateFormat.parse(\"2019-01-01\"),dateFormat.parse(\"2019-02-01\"));\n for (String s:weeks) {\n System.out.println(s);\n }\n\n System.out.println(getStartDayOfWeekNo(2019,1));\n System.out.println(getEndDayOfWeekNo(2019,1));\n }", "@Nonnull\n public static UBL23WriterBuilder <RetailEventType> retailEvent ()\n {\n return UBL23WriterBuilder.create (RetailEventType.class);\n }", "public static void date(int num) {\n String date = \"\";\n // Tests for what day of the week it is by using modulus to allign with a day.\n if (num%7==0) {\n date = \"Saturday\";\n } else if (num%7 == 1) {\n date = \"Sunday\";\n } else if (num%7 == 2) {\n date = \"Monday\";\n } else if (num%7 == 3) {\n date = \"Tuesday\";\n } else if (num%7 == 4) {\n date = \"Wednesday\";\n } else if (num%7 == 5) {\n date = \"Thursday\";\n } else if (num%7 == 6) {\n date = \"Friday\";\n }\n // Prints name of day inputted date falls on.\n System.out.println(\"That day is a \"+date);\n }", "void setUserVoteSalaryWeeklyDayOfWeek(DayOfWeek voteSalaryDayOfWeek);", "public String eventList() {\n\n\t\tString str = \"\";\n\t\tif(map.isEmpty()) {\n\t\t\tstr = \"No Events Scheduled Yet\";\n\t\t\treturn str;\n\t\t}\n\t\tstr = \"One Time Events: \\n\";\n\t\tstr = str + \"________________ \\n2020\\n\";\n\n\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet() ) {\n\n\t\t\tLocalDate currentDate = entry.getKey();\n\t\t\tArrayList<Event> list = map.get(currentDate);\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"EEEE MMMM dd\");\n\t\t\tDateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"HH:mm a\");\n\t\t\tfor(int i = 0;i<list.size();i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tif(e.recurring == false) {\n\t\t\t\t\tstr = str + \" \"+formatter.format(currentDate) +\" \" + timeFormatter.format(e.sTime) + \" - \" + timeFormatter.format(e.eTime) + \" \" + e.name + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//for recurring events, add this later\n\t\t/*\n\t\tstr = str + \"\\nRecurring Events:\\n\";\n\t\tstr = str + \"________________ \\n\";\n\t\tif(recurringEvents.size()==0) {\n\t\t\tstr = str + \"No Recurring Event Scheduled\\n\";\n\t\t\treturn str;\n\t\t}\n\t\tfor(int i = 0; i<recurringEvents.size(); i++) {\n\t\t\tEvent e = recurringEvents.get(i);\n\t\t\tstr = str + e.name +\"\\n\";\n\t\t\tstr = str + e.rdays + \" \" + e.sTime + \" \" + e.eTime + \" \" + e.recurringStartDate + \" \" + e.eDate +\"\\n\";\n\t\t}\n\t\t */\n\t\treturn str;\n\n\t}", "@Override\r\n public String toString() {\r\n return this.weekName;\r\n }", "boolean getWeek7();", "protected void runEachDay() {\n \n }", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "public abstract void maintenanceSchedule() ;", "private void startWeek(int amtTellers) {\n for (int i =0; i< amtTellers; i++) {\n employees.add(new Teller(i+1, this));\n }\n }", "private String requestWeekForm(HttpServletRequest request) {\n\t\tString message = \"\";\n\t\tint latestWeek = -1;\n\t\tint userGroupID = (int) session.getAttribute(\"userGroupID\");\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"select week from reports where id=(select max(id) from reports where user_group_id=\"+userGroupID+\")\");\n\t\t\tif(rs.first()){\n\t\t\t\tlatestWeek = rs.getInt(\"week\");\n\t\t\t\tmessage += \"The latest report that was created was week \" + latestWeek;\n\t\t\t} else {\n\t\t\t\tmessage += \"There are no previous reports.\";\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t}\n\t\t\n\t\tString html = \"<h1>Time Reports - New </h1>\"; \n\t\thtml += \"<p>Please enter week number:</p>\";\n\t\thtml += \"<p> <form name=\" + formElement(\"input\");\n\t\thtml += \" method=\" + formElement(\"post\");\n\t\thtml += \"<p> Week Number: <input type=\" + formElement(\"text\") + \" name=\"\n\t\t\t\t+ formElement(\"week\") + '>';\n\t\thtml += \"<hidden name='function' value='printNew'>\";\n\t\thtml += \"<input type=\" + formElement(\"submit\") + \"value=\"\n\t\t\t\t+ formElement(\"Submit\") + '>';\n\t\thtml += \"<p>\"+message+\"</p>\";\n\t\thtml += \"</form>\";\n\t\treturn html;\n\t}", "public String getWeek() {\r\n return week;\r\n }", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"Start Running the ground with 5 times\";\n\t}", "public static void SWM_GAME_7DaysWeek(String[][] SWM_table, int SWM_row_num, int SWM_col_num, String[][] organizedTable, String[][] organizedTable2, double[][] sessionDate_asNum, String[][] sessionDate,\n\t\t int sessionDate_row_num, int sessionDate_col_num, Workbook workbook_w)\n{\n\t\n\t//Finished SWM\n}", "public static String getWeek(String fullCommand) {\n String week = fullCommand.replaceFirst(DukeConstants.SHOW_WEEK_HEADER, DukeConstants.NO_FIELD);\n week = week.trim();\n if ((week.equals(DukeConstants.WEEK_FORMAT_KEYWORD_RECESS)\n || week.equals(DukeConstants.WEEK_FORMAT_KEYWORD_READING)\n || week.equals(DukeConstants.WEEK_FORMAT_KEYWORD_EXAM))) {\n week = capitalizeWord(week);\n week = week + DukeConstants.BLANK_SPACE + DukeConstants.WEEK_FORMAT_KEYWORD;\n } else {\n week = DukeConstants.WEEK_FORMAT_KEYWORD + DukeConstants.BLANK_SPACE + week;\n }\n return week;\n }", "boolean hasWeek1();", "public void createWeeklyList(){\n\t\tArrayList<T> days=new ArrayList<T>();\n\t\tArrayList<ArrayList<T>> weeks=new ArrayList<ArrayList<T>> ();\n\t\tList<ArrayList<ArrayList<T>>> years=new ArrayList<ArrayList<ArrayList<T>>> ();\n\t\tif(models.size()!=0) days.add(models.get(models.size()-1));\n\t\telse return;\n\t\tfor(int i=modelNames.size()-2;i>=0;i--){\n\t\t\t//check the new entry\n\t\t\tCalendar pre=DateManager.getCalendar(DateManager.convert2DisplayDate(modelNames.get(i+1)));\n\t\t\tCalendar cur=DateManager.getCalendar(DateManager.convert2DisplayDate(modelNames.get(i)));\n\t\t\tif (pre.get(Calendar.YEAR)==cur.get(Calendar.YEAR)){\n\t\t\t\tif(pre.get(Calendar.WEEK_OF_YEAR)==cur.get(Calendar.WEEK_OF_YEAR)){\n\t\t\t\t\tdays.add(models.get(i));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tweeks.add(days);\n\t\t\t\t\tdays=new ArrayList<T>();\n\t\t\t\t\tdays.add(models.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tweeks.add(days);\n\t\t\t\tyears.add(weeks);\n\t\t\t\tdays=new ArrayList<T>();\n\t\t\t\tdays.add(models.get(i));\n\t\t\t\tweeks=new ArrayList<ArrayList<T>> ();\n\t\t\t}\n\t\t}\n\t\tweeks.add(days);\n\t\tyears.add(weeks);\n\t\tweeklyModels=years;\n\n\t}", "public static void addReminder(String username)\n {\n System.out.print(\"Event Number: \");\n String eventNo = CheckInput.getString();\n System.out.print(\"Reminder Date (YYYY-MM-DD): \");\n String reminderDate = CheckInput.getString();\n System.out.print(\"Reminder Time (HH:MM:SS): \");\n String reminderTime = CheckInput.getString();\n System.out.print(\"Frequency (daily,weekly,monthly): \");\n String frequency = CheckInput.getString();\n \n try\n {\n String sql = \"INSERT INTO REMINDER (USERNAME,EVENTNUMBER,REMINDERDATE,REMINDERTIME,FREQUENCY) \"\n + \"VALUES (?,?,?,?,?)\";\n PreparedStatement pstmt = conn.prepareStatement(sql);\n \n pstmt.setString(1,username);\n pstmt.setString(2,eventNo);\n pstmt.setString(3,reminderDate);\n pstmt.setString(4,reminderTime);\n pstmt.setString(5,frequency);\n \n pstmt.execute();\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n }\n }", "ConferenceScheduleBuilderService startEvent();", "public static void main(String[] args) {\t\n\t\t\n\t\tScanner sc;\n\t\tboolean weekend;\n\t\tString subject;\n\t\t\n\t\tsc= new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Is it weekend?\");\n\t\tweekend=sc.nextBoolean();\n\t\tsubject=sc.nextLine();\n\t\t\n\t\tif (!weekend) {\n\t\t\tsubject=\"Manual Testing\";\t\n\t\t\t\n\t\t}else {\n\t\t\tsubject=\"Java\";\n\t\t}\n\t\n\t\tSystem.out.println(\"Today you will be learning \" + subject);\n\t\t\n\t}", "private String getWeekDay(int i) {\n String day = \"\";\n switch (i) {\n case 0:\n day = \"Sunday\";\n break;\n case 1:\n day = \"Monday\";\n break;\n case 2:\n day = \"Tuesday\";\n break;\n case 3:\n day = \"Wednesday\";\n break;\n case 4:\n day = \"Thursday\";\n break;\n case 5:\n day = \"Friday\";\n break;\n case 6:\n day = \"Saturday\";\n break;\n\n }\n return day;\n }", "private void writeEvents(final int dayNumber) \n\t{\n\t\tcModel.setSelectedDate(dayNumber);\n\t\t\n\t\t//add one to month because the first month starts at 0\n\t\tint month = cModel.getCalMonth() + 1; \n\t\tint year = cModel.getCalYear();\n\t\tString events = \"\";\n\t\t\n\t\tString date = (month + \"/\" + dayNumber + \"/\" + year);\n\n\t\tif (cModel.hasEvent(date)) \n\t\t{\n\t\t\tevents = events + cModel.getEvents(date);\n\t\t}\n\t\teventsPane.setText(events);\n\t}", "private void getActivatedWeekdays() {\n }", "public void refreshWeek() {\n\t\tthis.showWeek(this.currentMonday);\n\t}", "@Override\r\n\tpublic void physics() {\n\t\tSystem.out.println(\"Every Thursday evening\");\r\n\t\t\r\n\t}", "public void updateWeekday(){\n Date curDate=new Date(System.currentTimeMillis());\n SimpleDateFormat format=new SimpleDateFormat(\"EEEE\");\n String weekday1=format.format(curDate);\n int numberWeekday1=turnWeekdayToNumber(weekday1);\n updateSpecificDay(numberWeekday1);\n TextView TextWeekday=(TextView)this.findViewById(R.id.tv_weekday);\n TextWeekday.setText(weekday1);\n }", "int calDateWeek(int mC,int yC,int mG,int yG){\n int x = 0,i,countW=0;\n if(yC<=yG){\n for(i = yC; i < yG; i++)\n countW+=52;\n }\n\n countW -= mC;\n countW += mG;\n countW *= 4;\n return (countW);\n }", "public boolean getRunOnWeekends();", "@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }", "static void addMondayOnly(Schedules schedules) throws RBEConfigObjectException\n {\n\t\t// Create a new inclusion period\n\t\tPeriod ip = new Period();\n\n\t\t// Include minutes between 8:00am to 5:59pm.\n\t\t// Note: 8:00am = 480 and 6:00pm = 1080\n\t\t// By default a new period includes minutes from\n\t\t// 9:00am to 5:00pm. However, all minutes are\n\t\t// between 8:00am to 5:59pm explicitely included here.\n\t\tfor (int i = 480; i < 1080; i++)\n\t\t\tip.include(Period.MINUTES_IN_DAY, i);\n\n\t\t// Change days in week to include only monday\n\t\t// Note: sunday = 0, saturday = 6.\n\t\tip.excludeAll(Period.WEEKDAYS_IN_MONTH);\n\t\tip.include(Period.WEEKDAYS_IN_MONTH, Period.MONDAY);\n\n\t\t// Note: By default a new period includes all Period.DAYS_IN_MONTH.\n\t\t// So there no need to explicitely include them here.\n\n\t\t// create a new schedule and add the inclusion period to it.\n\t\tSchedule schedule = new Schedule(\"MondayOnly\");\n\t\tschedule.addInclusionPeriod(ip);\n\n\t\t// add the schedule to the list of schedule\n\t\tschedules.addSchedule(schedule);\n\t\tprintln(\"Schedule added: (\"+schedule+\")\");\n }", "public static void main(String[] args) {\n\t\tCalendar today = new GregorianCalendar();\n\t\tSystem.out.println(today);\n\t\t\n\t\tGregorianCalendar christmas = new GregorianCalendar(1970,11,5);\n\t\t\n\t\tSystem.out.println(christmas.get(Calendar.DAY_OF_WEEK));\n\t\t\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd (E)\");\n\t\tSystem.out.println(sdf.format(christmas.getGregorianChange())); // 날짜오류\n\t\t\n\t\tSystem.out.println(sdf.format(today.getTime()));\n\t\t\n\t}", "@Override\r\n\tpublic void social() {\n\t\tSystem.out.println(\"Social class is once every 2 weeks. Class schedule TBD\");\r\n\t\t\r\n\t}", "public void setOnWeekend(boolean b) {\r\n\t\tthis.onWeekend=b;\r\n\t}", "public static void main(String[] args) {\n\t\tint day=1;\n\t\tif (day==1 || day==2 || day==3 || day==4 || day==5) {\n\t\t\tSystem.out.println(\"This is a weekday\");\n\t\t}else if (day==6 || day==7) {\n\t\t\tSystem.out.println(\"Hoorray, it's a weekend!!!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Day should be between 1 and 7\");\n\t\t}\n\t\t\t\n\t\n\t}", "private void createWinnerScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"winners.txt\");\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"WINNERS:\\n\" + winnerSchedule);\n osw.close();\n\n System.out.println(\"winners.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void generateDemoWorklistItems()\n throws IllegalStarteventException, DefinitionNotFoundException {\n\n // TODO why not use the getBuilder-method? special reason?\n // Building the ProcessDefintion\n BpmnProcessDefinitionBuilder builder = BpmnProcessDefinitionBuilder.newBuilder();\n\n Node startNode, node1, node2, endNode;\n\n startNode = BpmnCustomNodeFactory.createBpmnNullStartNode(builder);\n\n // Building Node1\n int[] ints = {1, 1};\n node1 = BpmnCustomNodeFactory.createBpmnAddNumbersAndStoreNode(builder, \"result\", ints);\n\n // Building Node2\n node2 = BpmnCustomNodeFactory.createBpmnPrintingVariableNode(builder, \"result\");\n\n endNode = BpmnNodeFactory.createBpmnEndEventNode(builder);\n\n BpmnNodeFactory.createControlFlowFromTo(builder, startNode, node1);\n BpmnNodeFactory.createControlFlowFromTo(builder, node1, node2);\n BpmnNodeFactory.createControlFlowFromTo(builder, node2, endNode);\n\n builder.setDescription(\"description\").setName(\"Demoprocess with Email start event\");\n\n BpmnProcessDefinitionModifier.decorateWithDefaultBpmnInstantiationPattern(builder);\n ProcessDefinition def = builder.buildDefinition();\n DeploymentBuilder deploymentBuilder = ServiceFactory.getRepositoryService().getDeploymentBuilder();\n deploymentBuilder.addProcessDefinition(def);\n\n Deployment deployment = deploymentBuilder.buildDeployment();\n ServiceFactory.getRepositoryService().deployInNewScope(deployment);\n \n // Create a mail adapater event here.\n EventCondition subjectCondition = null;\n try {\n subjectCondition = new MethodInvokingEventCondition(MailAdapterEvent.class, \"getMessageTopic\", \"Hallo\");\n\n builder.createStartTrigger(new ImapEmailProcessStartEvent(subjectCondition, null), node1);\n\n ServiceFactory.getRepositoryService().activateProcessDefinition(def.getID());\n } catch (JodaEngineRuntimeException e) {\n LOGGER.error(e.getMessage(), e);\n }\n }", "@Override\n public void run() {\n createScheduleFile();\n createWinnerScheduleFile();\n }", "public void createWeekScenarioBug10265_UpgradeAndParChange()\n throws Exception {\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-22 23:00:00\"));\n\n VOServiceDetails serviceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10265_UPG_PARCHG\", TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_WEEK_ROLES_PARS2, 3,\n technicalServiceAsync, supplierMarketplace);\n\n setCutOffDay(basicSetup.getSupplierAdminKey(), 1);\n\n VOSubscriptionDetails subDetails = subscrSetup.subscribeToService(\n basicSetup.getCustomerAdminKey(), \"BUG10265_UPG_PARCHG\",\n serviceDetails, basicSetup.getCustomerUser1(),\n VOServiceFactory.getRole(serviceDetails, \"ADMIN\"));\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-23 00:00:00\"));\n subDetails = subscrSetup.completeAsyncSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n subDetails = subscrSetup.modifyParameterForSubscription(subDetails,\n DateTimeHandling.calculateMillis(\"2013-02-24 23:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"3\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-25 00:00:00\"));\n subDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n // Upgrade the subscription\n VOServiceDetails perUnitService = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10265_UPG_PARCHG_SERVICE2\",\n TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_WEEK_ROLES_PARS3, 2,\n technicalServiceAsync, supplierMarketplace);\n\n serviceSetup.registerCompatibleServices(\n basicSetup.getSupplierAdminKey(), serviceDetails,\n perUnitService);\n\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-27 23:00:00\"));\n VOSubscriptionDetails upgradedSubDetails = subscrSetup\n .copyParametersAndUpgradeSubscription(\n basicSetup.getCustomerAdminKey(), subDetails,\n perUnitService);\n // ASYNC - check this (upgrade hidden in method above)\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-28 00:00:00\"));\n upgradedSubDetails = subscrSetup.completeAsyncUpgradeSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), upgradedSubDetails);\n\n upgradedSubDetails = subscrSetup.modifyParameterForSubscription(\n upgradedSubDetails,\n DateTimeHandling.calculateMillis(\"2013-02-28 23:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"5\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-01 00:00:00\"));\n upgradedSubDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), upgradedSubDetails);\n\n upgradedSubDetails = subscrSetup.modifyParameterForSubscription(\n upgradedSubDetails,\n DateTimeHandling.calculateMillis(\"2013-03-01 06:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"7\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-01 07:00:00\"));\n upgradedSubDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), upgradedSubDetails);\n\n upgradedSubDetails = subscrSetup.modifyParameterForSubscription(\n upgradedSubDetails,\n DateTimeHandling.calculateMillis(\"2013-03-02 11:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"4\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-02 12:00:00\"));\n upgradedSubDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), upgradedSubDetails);\n\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-03 07:00:00\"));\n subscrSetup\n .unsubscribeToService(upgradedSubDetails.getSubscriptionId());\n\n resetCutOffDay(basicSetup.getSupplierAdminKey());\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10265_UPG_PARCHG\", subDetails);\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10265_UPG_PARCHG\", upgradedSubDetails);\n }", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"Pracice your backend\";\n\t}", "private static void calculateEmployeeWeeklyPay(final BufferedReader reader, final List<Employee> employeeDetails) throws IOException {\r\n\t\tSystem.out.println(\"Enter Employee First Name: \");\r\n\t\tString firstName = reader.readLine();\r\n\r\n\t\tSystem.out.println(\"Enter Employee Last Name: \");\r\n\t\tString lastName = reader.readLine();\r\n\r\n\t\tSystem.out.println(\"Enter Employee Type (Salaried or Hourly or Commissioned): \");\r\n\t\tString employeeType = reader.readLine();\r\n\r\n\t\tif (employeeType.equalsIgnoreCase(\"Salaried\")) {\r\n\t\t\tSystem.out.println(\"Please enter your monthly salary: \");\r\n\t\t\tdouble monthlySalary = Double.parseDouble(reader.readLine());\r\n\r\n\t\t\tfinal SalariedEmployee salariedEmployee = new SalariedEmployee(firstName, lastName, employeeType, monthlySalary, false);\r\n\t\t\temployeeDetails.add(salariedEmployee);\r\n\r\n\t\t\tsalariedEmployeeEarningReport(salariedEmployee);\r\n\r\n\t\t} else if (employeeType.equalsIgnoreCase(\"Hourly\")) {\r\n\r\n\t\t\tSystem.out.println(\"Please enter your hourly rate: \");\r\n\t\t\tdouble hourlyRate = Double.parseDouble(reader.readLine());\r\n\r\n\t\t\tSystem.out.println(\"Please enter your weekly worked hours: \");\r\n\t\t\tdouble weeklyWorkedHours = Double.parseDouble(reader.readLine());\r\n\r\n\t\t\tfinal HourlyEmployee hourlyEmployee = new HourlyEmployee(firstName, lastName, employeeType, weeklyWorkedHours, hourlyRate, false);\r\n\t\t\temployeeDetails.add(hourlyEmployee);\r\n\r\n\t\t\thourlyEmployeeEarningReport(hourlyEmployee);\r\n\r\n\t\t} else if (employeeType.equalsIgnoreCase(\"Commissioned\")) {\r\n\t\t\tSystem.out.println(\"Please enter your weekly sales amount: \");\r\n\t\t\tdouble weeklySalesAmount = Double.parseDouble(reader.readLine());\r\n\t\t\tfinal CommissionedEmployee commissionedEmployee = new CommissionedEmployee(firstName, lastName, employeeType, weeklySalesAmount, false);\r\n\t\t\temployeeDetails.add(commissionedEmployee);\r\n\r\n\t\t\tcommissionedEmployeeEarningReport(commissionedEmployee);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Invalid employee type\");\r\n\t\t}\r\n\t}", "@FXML\n private void incrementWeek() {\n date = date.plusWeeks(1);\n updateDates();\n }", "public Event createOneShotPublish(Address resource, String event);", "ConferenceScheduleBuilderService createEventsFromLunchToNetwork();", "boolean hasWeek7();", "public interface WRI {\n public static final int EVENT_ACTIVITY_GO_BACK = 10;\n public static final int EVENT_ACTIVITY_PAUSE = 11;\n public static final int EVENT_BEFORE_ACTIVITY_FINISH = 12;\n public static final int EVENT_LOAD_ERROR = 3;\n public static final int EVENT_LOAD_FINISH = 2;\n public static final int EVENT_LOAD_START = 1;\n\n void report(String str, int i);\n}" ]
[ "0.6342066", "0.57819676", "0.57584214", "0.5576915", "0.5542601", "0.5535776", "0.5494461", "0.54435337", "0.542692", "0.54263157", "0.54263157", "0.54262066", "0.54219735", "0.5420393", "0.5403949", "0.5313708", "0.5273094", "0.5272465", "0.5249216", "0.5248132", "0.52446914", "0.52265286", "0.5211038", "0.5205807", "0.5202678", "0.5187232", "0.51872134", "0.5153363", "0.5136144", "0.512794", "0.5087937", "0.5087719", "0.507496", "0.507335", "0.50667095", "0.50329095", "0.50086886", "0.49936745", "0.4976083", "0.49713215", "0.49676067", "0.49627492", "0.49398282", "0.49050683", "0.49036452", "0.49002287", "0.4889685", "0.48830533", "0.48810762", "0.4878579", "0.48778358", "0.48750445", "0.4870241", "0.48695907", "0.4857504", "0.485458", "0.4844855", "0.48421815", "0.48409504", "0.48341957", "0.4828428", "0.48246983", "0.4821555", "0.48152387", "0.47967336", "0.47924787", "0.47804788", "0.47801915", "0.4777228", "0.47653508", "0.47637624", "0.47634155", "0.47565827", "0.4750329", "0.4748871", "0.47339672", "0.47337618", "0.47331357", "0.47260118", "0.4721414", "0.472078", "0.4713328", "0.47106633", "0.47065428", "0.47006264", "0.46975002", "0.46861452", "0.46806958", "0.46793956", "0.4678846", "0.46769547", "0.46768504", "0.46712765", "0.4665308", "0.4655829", "0.46483022", "0.46425274", "0.46408868", "0.46402103", "0.46366516", "0.4636045" ]
0.0
-1
/ iCal EVENT property makers / The list of properties written with this code is: o SUMMARY : Summary (Title) o DESCRIPTION : Description Optional o LOCATION : Location o DTSTART : The Start DateTime o DTEND : The End DateTime o DTSTAMP : The Stamp DateTime (when the the event was written) o RRULE : Recurrence rule There are two declarations for each property maker: o One for a general DateTime or String o One for a Course where the appropriate parameter is fetched from the Course object and passed to the general method. These are not necessary for now, but might be helpful if the code needs to be refactored. General EVENT writer WITHOUT recurrence. All String parameters may be blank.
public String makeEvent(String summary, String description, String location, LocalDateTime start, LocalDateTime end) { String prefix = "BEGIN:VEVENT\n"; String suffix = "END:VEVENT\n"; return prefix + makeEventSummary(summary) + makeEventDescription(description) + makeEventLocation(location) + makeEventStamp() + makeEventStart(start) + makeEventEnd(end) + suffix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@IcalProperty(pindex = PropertyInfoIndex.XPROP,\n jname = \"xprop\",\n adderName = \"xproperty\",\n nested = true,\n keyindex = PropertyInfoIndex.NAME,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.CALSCALE,\n jname = \"calscale\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.AFFECTS_FREE_BUSY,\n jname = \"affectsFreeBusy\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.ALIAS_URI,\n jname = \"aliasURI\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.CALTYPE,\n jname = \"caltype\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.COL_PROPERTIES,\n jname = \"colProperties\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.COLPATH,\n jname = \"colPath\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.DISPLAY,\n jname = \"display\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.FILTER_EXPR,\n jname = \"filterExpr\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.IGNORE_TRANSP,\n jname = \"ignoreTransp\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.LAST_REFRESH,\n jname = \"lastRefresh\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.LAST_REFRESH_STATUS,\n jname = \"lastRefreshStatus\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REFRESH_RATE,\n jname = \"refreshRate\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REMOTE_ID,\n jname = \"remoteId\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REMOTE_PW,\n jname = \"remotePw\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.UNREMOVEABLE,\n jname = \"unremoveable\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n \n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_CONTACT,\n jname = \"xbwcontact\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_LOCATION,\n jname = \"xbwlocation\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_CATEGORIES,\n jname = \"xbwcategories\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_END,\n jname = \"eventregEnd\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_MAX_TICKETS,\n jname = \"eventregMaxTickets\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_MAX_TICKETS_PER_USER,\n jname = \"eventregMaxTicketsPerUser\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_START,\n jname = \"eventregStart\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_WAIT_LIST_LIMIT,\n jname = \"eventregWaitListLimit\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.IMAGE,\n jname = \"image\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INSTANCE,\n jname = \"instance\",\n annotationRequired = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.METHOD,\n jname = \"method\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.PARAMETERS,\n jname = \"pars\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.PRODID,\n jname = \"prodid\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.SUGGESTED_TO,\n jname = \"suggestedTo\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.THUMBIMAGE,\n jname = \"thumbimage\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.TAG,\n jname = \"tag\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.TOPICAL_AREA,\n jname = \"topicalArea\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.UNKNOWN_PROPERTY,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.URI,\n jname = \"uri\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VERSION,\n jname = \"version\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VIEW,\n jname = \"view\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VPATH,\n jname = \"vpath\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n public void setXproperties(final List<BwXproperty> val) {\n xproperties = val;\n }", "public String makeEvent(Course item) {\n // TODO: Make recurrence and rounding handling more elegant\n // (use lambda?)\n\n String event;\n\n //----------------\n //Parse summary-description request\n String[] splitted = mPattern.split(\"-\");\n String summary = parsePattern(item, splitted[0]);\n String description;\n try {\n description = parsePattern(item, splitted[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n description = \"\";\n }\n String location = item.getLocation();\n\n //-----------------\n //Get start and end date time\n //NOTES :\n // o firstClassBegin and firstClassEnd represent the date-time\n // \t object for the beginning and end of the first lecture of\n //\t the course.\n // o lastDay is the last day of the semester (used for recurrence)\n LocalDate startDate;\n LocalTime startTime, endTime;\n LocalDateTime firstClassBegin, firstClassEnd, lastDay;\n if (mRounded) {\n startTime = item.getRoundedStartTime();\n endTime = item.getRoundedEndTime();\n } else {\n startTime = item.getStartTime();\n endTime = item.getEndTime();\n }\n startDate = item.getStartDate();\n firstClassBegin = LocalDateTime.of(startDate, startTime);\n firstClassEnd = LocalDateTime.of(startDate, endTime);\n lastDay = LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0));\n if (mRecurring) {\n event = makeEvent(summary, description, location, firstClassBegin,\n firstClassEnd, lastDay);\n } else {\n event = makeEvent(summary, description, location, firstClassBegin,\n firstClassEnd);\n }\n return event;\n }", "void addRecord(String[] propertyValues, Date timestamp) throws IOException;", "public String makeEvent(String summary, String description, String location,\n LocalDateTime start, LocalDateTime end, LocalDateTime lastDay) {\n String prefix = \"BEGIN:VEVENT\\n\";\n String suffix = \"END:VEVENT\\n\";\n\n return prefix + makeEventSummary(summary) + makeEventDescription(description) +\n makeEventLocation(location) + makeEventStamp() + makeEventStart(start) +\n makeEventEnd(end) + makeEventRecurrence(lastDay) + suffix;\n }", "PropertyRule createPropertyRule();", "@SuppressWarnings(\"unused\")\n private String makeEventRecurrence(Course item) {\n return makeEventRecurrence(LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0)));\n }", "public void writeProperties(Properties prop, String propDescription) {\n\n writeln();\n writeln(\"+-------------------------------------------+\");\n writeln(\"| METHOD: writeProperties |\");\n writeln(\"+-------------------------------------------+\");\n writeln();\n writeln(\"Propery Description : => \" + propDescription);\n writeln(\"-----------------------------------------------------------\");\n\n Enumeration enProps = prop.propertyNames();\n String key = null;\n String value = null;\n while ( enProps.hasMoreElements() ) {\n key = (String) enProps.nextElement();\n if ( \"truesource.db.user.tsadmin.pwd\".equalsIgnoreCase(key)\n ||\n \"truesource.db.user.dba.pwd\".equalsIgnoreCase(key)\n ||\n \"truesource.db.user.sys.pwd\".equalsIgnoreCase(key)) {\n value = \"*********\";\n } else {\n value = prop.getProperty(key);\n }\n writeln(key + \" = \" + value);\n }\n\n writeln();\n\n }", "public interface CalendarEventDO {\n long getCalendarId();\n\n String getEventTitle();\n\n boolean isAllDay();\n\n long getStartDT();\n\n long getEndDT();\n\n String getRrule();\n\n String getRdate();\n\n String getExrule();\n\n String getExdate();\n\n long getEventID();\n}", "void setReminder(int eventId, String eventEndDate, String eventType);", "public void createCalShift() {\n\t\tString yes = \"Y\";\n\t\tString effectiveToDate = getProperty(\"EFFECTIVE_TO_DATE\");\n\t\tString defShiftStartTime = getProperty(\"SHIFT_START_TIME\");\n\t\tString defShiftEndTime = getProperty(\"SHIFT_END_TIME\");\n\t\tYFCElement effectivePeriodsEle = docCreateCalenderInXml.getDocumentElement().getChildElement(XMLLiterals.EFFECTIVE_PERIODS);\n\t\tYFCElement effectivePeriodEle = effectivePeriodsEle.getChildElement(XMLLiterals.EFFECTIVE_PERIOD);\n\t\teffectivePeriodEle.setAttribute(XMLLiterals.EFFECTIVE_TO_DATE, effectiveToDate);\n\t\tYFCElement shiftEle=effectivePeriodEle.createChild(XMLLiterals.SHIFTS).createChild(XMLLiterals.SHIFT);\n\t\tshiftEle.setAttribute(XMLLiterals.WEDNESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.TUESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.THURSDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SUNDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SATURDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.MONDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.FRIDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_START_TIME,defShiftStartTime);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_END_TIME,defShiftEndTime);\n\t}", "@SuppressWarnings(\"unused\")\n private String makeEventEnd(Course item) {\n LocalTime endTime;\n if (mRounded) {\n endTime = item.getRoundedEndTime();\n } else {\n endTime = item.getEndTime();\n }\n return makeEventEnd(LocalDateTime.of(item.getEndDate(), endTime));\n }", "private void saveRule(){\n\t\tRule newRule = new Rule();\n\t\tnewRule.setDescription(desc.getText().toString().trim());\n\t\tnewRule.setMode(selectedMode);\n\t\tnewRule.setIsEnabled(\"true\");\n\t\tString sHour, sMin, eHour, eMin;\n\t\t\n\t\tif(startTimePicker.getCurrentHour()<10)\n\t\t\tsHour = \"0\"+startTimePicker.getCurrentHour();\n\t\telse\n\t\t\tsHour = \"\" +startTimePicker.getCurrentHour();\n\t\t\n\t\tif(startTimePicker.getCurrentMinute()<10)\n\t\t\tsMin = \"0\"+startTimePicker.getCurrentMinute();\n\t\telse\n\t\t\tsMin = \"\" +startTimePicker.getCurrentMinute();\n\t\t\n\t\tif(endTimePicker.getCurrentHour()<10)\n\t\t\teHour = \"0\"+endTimePicker.getCurrentHour();\n\t\telse\n\t\t\teHour = \"\" +endTimePicker.getCurrentHour();\n\t\t\n\t\tif(endTimePicker.getCurrentMinute()<10)\n\t\t\teMin = \"0\"+endTimePicker.getCurrentMinute();\n\t\telse\n\t\t\teMin = \"\" +endTimePicker.getCurrentMinute();\n\t\t\n\t\tnewRule.setStartTime(sHour+\":\"+sMin);\n\t\tnewRule.setEndTime(eHour+\":\"+eMin);\n\t\n\t\tnewRule.setSelectedDays(getSelectedDays(days));\n\t\tif(getIntent().getStringExtra(\"eventId\")!=null)\n\t\t{\n\t\t\tnewRule.setEventID(getIntent().getStringExtra(\"eventId\"));\n\t\t\t}\n\t\telse if(trigger.equalsIgnoreCase(\"edit\")){\n\t\t\tnewRule.setEventID(rule.getEventID());\n\t\t}\n\t\telse{\n\t\t\tnewRule.setEventID(\"-1\");\n\t\t}\n\t\t\n\t\tArrayList<TimingsData> timingsData = new ArrayList<TimingsData>();\n\t\t\n\t\tTimingsData startTime, endTime, tempStartTime, tempEndTime;\n\t\t\n\t\tfor(int j = 0; j < days.size(); j++){\n\t\t\ttry{\n//\t\t\t\tDate sDate = formatter.parse(rData.getStartDateTime());\n\t\t\t\tint day = days.get(j);\n\t\t\t\t\n\t\t\t\tstartTime = new TimingsData();\n\t\t\t\tendTime = new TimingsData();\n\t\t\t\tstartTime.setTimings(newRule.getStartTime());\n\t\t\t\tstartTime.setMode(newRule.getMode());\n\t\t\t\tstartTime.setRuleId(newRule.getId());\n\t\t\t\tstartTime.setDay(day);\n\t\t\t\tstartTime.setType(TaskMongoAlarmReceiver.ACTION_START);\n\t\t\t\tstartTime.setEndTimings(newRule.getEndTime());\n\t\t\t\t\n\t\t\t\tif(!isTimeCorrect()){\n\n\t\t\t\t\tstartTime.setEndTimings(\"23:59\");\n\t\t\t\t\ttempEndTime = new TimingsData();\n\t\t\t\t\ttempEndTime.setTimings(\"23:59\");\n\t\t\t\t\ttempEndTime.setMode(newRule.getMode());\n\t\t\t\t\ttempEndTime.setRuleId(newRule.getId());\n\t\t\t\t\ttempEndTime.setType(TaskMongoAlarmReceiver.ACTION_END);\n\t\t\t\t\ttempEndTime.setDay(day);\n\t\t\t\t\t\n\t\t\t\t\tLog.e(\"time greater than start time\", \"adding one \"+day);\n\t\t\t\t\tif(day == Calendar.SATURDAY)\n\t\t\t\t\t\tday = Calendar.SUNDAY;\n\t\t\t\t\telse\n\t\t\t\t\t\tday += 1;\n\t\t\t\t\t\n\t\t\t\t\ttempStartTime = new TimingsData();\n\t\t\t\t\ttempStartTime.setTimings(\"00:00\");\n\t\t\t\t\ttempStartTime.setMode(newRule.getMode());\n\t\t\t\t\ttempStartTime.setRuleId(newRule.getId());\n\t\t\t\t\ttempStartTime.setDay(day);\n\t\t\t\t\ttempStartTime.setType(TaskMongoAlarmReceiver.ACTION_START);\n\t\t\t\t\ttempStartTime.setEndTimings(newRule.getEndTime());\n\t\t\t\t\t\n\t\t\t\t\ttimingsData.add(tempEndTime);\n\t\t\t\t\ttimingsData.add(tempStartTime);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tDate eDate = formatter.parse(rData.getEndDateTime());\n\t\t\t\t\n\t\t\t\tendTime.setTimings(newRule.getEndTime());\n\t\t\t\tendTime.setMode(newRule.getMode());\n\t\t\t\tendTime.setRuleId(newRule.getId());\n\t\t\t\tendTime.setType(TaskMongoAlarmReceiver.ACTION_END);\n\t\t\t\tendTime.setDay(day);\n\t\t\t\t\n\t\t\t\ttimingsData.add(startTime);\n\t\t\t\ttimingsData.add(endTime);\n\t\t\t}catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*ArrayList<RuleData> ruleData = new ArrayList<RuleData>();\n\t\t\n\t\tfor(int i = 0; i<selectedDays.size(); i++){\n\t\t\tRuleData rule_data = new RuleData();\n\t\t\tint day = selectedDays.get(i);\n\t\t\t\n\t\t\trule_data.setDay(day);\n\t\t\t\n\t\t\t// Get start time\n\t\t\tCalendar startTime = Calendar.getInstance();\n\t\t\tstartTime.setTimeZone(TimeZone.getDefault());\n\t\t\t\n\t\t\tint alarmStartDay = 0;\n\t\t\tint curDay = startTime.get(Calendar.DAY_OF_WEEK);\n\t\t\t\n\t\t\tif(day == curDay){\n\t\t\t\talarmStartDay = 0;\t\t\t\t\n\t\t\t}else if(day < curDay){\n\t\t\t\talarmStartDay = day + (7 - curDay); // how many days until Sunday\n\t\t\t}else{\n\t\t\t\talarmStartDay = day - curDay;\n\t\t\t}\n\t\t\t\n\t\t\trule_data.setStartDateTime(getDate(startTime, alarmStartDay, startTimePicker));\n\t\t\t\n\t\t\t//Get end time\n\t\t\tCalendar endTime = Calendar.getInstance();\n\t\t\t\n\t\t\tif(!isTimeCorrect()){\n\t\t\t\tLog.e(\"time greater than start time\", \"adding one \"+alarmStartDay);\n\t\t\t\talarmStartDay += 1;\n\t\t\t}\n\t\t\t\n\t\t\trule_data.setEndDateTime(getDate(endTime, alarmStartDay, endTimePicker));\n\t\t\t\n\t\t\tLog.e(\"schedule\", rule_data.getStartDateTime()\t+ \" , \" + rule_data.getEndDateTime());\n\t\t\t\n\t\t\truleData.add(rule_data);\n\t\t}\n\t\trule.setRuleData(ruleData);*/\n\t\tnewRule.setTimingsData(timingsData);\n\t\t\n\t\tSettingsDatabaseHandler dbHandler = new SettingsDatabaseHandler(SettingsActivity.this);\n\t\tint id = dbHandler.saveRule(newRule, ruleId);\n\t\t\n\t\tif(id!=-1){\n//\t\t\tRule savedRule = dbHandler.getRule(id);\n\t\t\t\n//\t\t\tUtil.setRule(SettingsActivity.this, savedRule);\n\t\t\tUtil.refreshAllAlarms(SettingsActivity.this);\n\t\t\t\n\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(SettingsActivity.this);\n\t\t\talert.setTitle(\"Congratulations!!!\");\n\t\t\talert.setMessage(\"Mongo saved successfully\");\n\t\t\talert.setPositiveButton(\"Okay\", new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(trigger.equalsIgnoreCase(\"calendar\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tIntent intent = new Intent(SettingsActivity.this,ListRulesActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\talert.show();\n\t\t}\n\t}", "public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "public final EObject ruleEventSpec() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_RegularEventSpec_0 = null;\r\n\r\n EObject this_TimeEventSpec_1 = null;\r\n\r\n EObject this_BuiltinEventSpec_2 = 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:1894:28: ( (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1895:1: (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1895:1: (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec )\r\n int alt34=3;\r\n switch ( input.LA(1) ) {\r\n case RULE_ID:\r\n {\r\n alt34=1;\r\n }\r\n break;\r\n case 58:\r\n case 59:\r\n {\r\n alt34=2;\r\n }\r\n break;\r\n case 39:\r\n case 40:\r\n case 41:\r\n case 42:\r\n case 43:\r\n case 44:\r\n {\r\n alt34=3;\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(\"\", 34, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt34) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1896:5: this_RegularEventSpec_0= ruleRegularEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getRegularEventSpecParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleRegularEventSpec_in_ruleEventSpec4164);\r\n this_RegularEventSpec_0=ruleRegularEventSpec();\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_RegularEventSpec_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:1906:5: this_TimeEventSpec_1= ruleTimeEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getTimeEventSpecParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleTimeEventSpec_in_ruleEventSpec4191);\r\n this_TimeEventSpec_1=ruleTimeEventSpec();\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_TimeEventSpec_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:1916:5: this_BuiltinEventSpec_2= ruleBuiltinEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getBuiltinEventSpecParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBuiltinEventSpec_in_ruleEventSpec4218);\r\n this_BuiltinEventSpec_2=ruleBuiltinEventSpec();\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_BuiltinEventSpec_2; \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 }", "private String makeEventDescription(String description) {\n return \"DESCRIPTION:\" + description + \"\\n\";\n }", "private String makeEventRecurrence(LocalDateTime lastDay) {\n return \"RRULE:FREQ=WEEKLY;UNTIL=\" + formatTimeToICS(lastDay) + \"Z\" + \"\\n\";\n }", "public Task addEvent(String specifications) throws DukeException {\n try {\n if (!specifications.contains(\"/at\")) {\n throw new DukeException(\"Please use /at to specify a date and time!\");\n }\n String[] specificationsArray = specifications.split(\"/at \", 2);\n String[] dateTimeArray = specificationsArray[1].split(\" \", 2);\n String[] timeArray = dateTimeArray[1].split(\"-\", 2);\n String date = dateTimeArray[0];\n String startTime = timeArray[0];\n String endTime = timeArray[1];\n String startDateTime = date + \" \" + startTime;\n String endDateTime = date + \" \" + endTime;\n Task newTask = new Events(specificationsArray[0], startDateTime, endDateTime);\n tasks.add(newTask);\n return newTask;\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new DukeException(\"Please specify a date and time range! \\nEg. /at 18/10/2020 10pm - 11pm\");\n }\n }", "public void generateTimes() {\n\n\t\tLocalTime currentTime = PropertiesConfig.getMorningSessionBegin();\n\t\tfor (Talk talk : morningSession.getTalks()) {\n\t\t\ttalk.setTime(currentTime);\n\t\t\tcurrentTime = currentTime.plusMinutes(talk.getLength());\n\t\t}\n\n\t\tTalk lunch = new Talk(PropertiesConfig.LUNCH_TITLE);\n\t\tlunch.setTime(PropertiesConfig.getLunchBegin());\n\t\tlunchSession.addTalk(lunch);\n\n\t\tcurrentTime = PropertiesConfig.getAfternoonSessionBegin();\n\t\tfor (Talk talk : afternoonSession.getTalks()) {\n\t\t\ttalk.setTime(currentTime);\n\t\t\tcurrentTime = currentTime.plusMinutes(talk.getLength());\n\t\t}\n\n\t\tTalk meetEvent = new Talk(PropertiesConfig.MEET_EVENT_TITLE);\n\t\tmeetEvent.setTime(currentTime);\n\t\tmeetSession.addTalk(meetEvent);\n\t}", "public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}", "private static void checkSchedulerProperties() throws IOException {\r\n\r\n Properties properties = new Properties();\r\n FileInputStream input = new FileInputStream(SCHEDULER_PROPERTIES_PATH);\r\n properties.load(input);\r\n\r\n if (MongoDB.getAll(Timeframe.class).isEmpty()) {\r\n\r\n int days = Integer\r\n .valueOf(properties.getProperty(\"timeframe.days\"));\r\n int timeSlots = Integer.valueOf(properties\r\n .getProperty(\"timeframe.timeSlots\"));\r\n int startHour = Integer.valueOf(properties\r\n .getProperty(\"timeframe.startHour\"));\r\n String[] weekdays = properties.getProperty(\"timeframe.weekdays\")\r\n .replace(\" \", \"\").split(\",\");\r\n\r\n Timeframe timeframe = new Timeframe(days, timeSlots, startHour,\r\n Arrays.asList(weekdays));\r\n MongoDB.store(timeframe);\r\n System.out.println(\"Created default timeframe.\");\r\n }\r\n\r\n if (MongoDB.getAll(Equipment.class).isEmpty()) {\r\n\r\n String[] items = properties.getProperty(\"equipment\")\r\n .replace(\" \", \"\").split(\",\");\r\n Equipment equipment = new Equipment(items);\r\n MongoDB.store(equipment);\r\n System.out.println(\"Created default equipment\");\r\n }\r\n }", "public void writeProperties(Properties prop) {\n writeProperties(prop, \"[ No description provided! ]\");\n }", "void addRecord(String[] propertyValues) throws IOException;", "public interface Event {\n public static final String NAMESPACE = \"http://purl.org/NET/c4dm/event.owl#\";\n\n // classes\n public static final URI\n Event = new URIImpl(NAMESPACE + \"Event\"),\n Factor = new URIImpl(NAMESPACE + \"Factor\"),\n Product = new URIImpl(NAMESPACE + \"Product\");\n\n // properties\n public static final URI\n agent = new URIImpl(NAMESPACE + \"agent\"),\n agent_in = new URIImpl(NAMESPACE + \"agent_in\"),\n factor = new URIImpl(NAMESPACE + \"factor\"),\n factor_of = new URIImpl(NAMESPACE + \"factor_of\"),\n hasAgent = new URIImpl(NAMESPACE + \"hasAgent\"),\n hasFactor = new URIImpl(NAMESPACE + \"hasFactor\"),\n hasLiteralFactor = new URIImpl(NAMESPACE + \"hasLiteralFactor\"),\n hasProduct = new URIImpl(NAMESPACE + \"hasProduct\"),\n hasSubEvent = new URIImpl(NAMESPACE + \"hasSubEvent\"),\n isAgentIn = new URIImpl(NAMESPACE + \"isAgentIn\"),\n isFactorOf = new URIImpl(NAMESPACE + \"isFactorOf\"),\n literal_factor = new URIImpl(NAMESPACE + \"literal_factor\"),\n place = new URIImpl(NAMESPACE + \"place\"),\n producedIn = new URIImpl(NAMESPACE + \"producedIn\"),\n produced_in = new URIImpl(NAMESPACE + \"produced_in\"),\n product = new URIImpl(NAMESPACE + \"product\"),\n sub_event = new URIImpl(NAMESPACE + \"sub_event\"),\n time = new URIImpl(NAMESPACE + \"time\");\n}", "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 }", "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "public void writeProperties(Document document, Element element, OutgoingEventRequestMessage outgoingEventRequestMessage) {\n for (StateVariableValue stateVariableValue : outgoingEventRequestMessage.getStateVariableValues()) {\n Element createElementNS = document.createElementNS(Constants.NS_UPNP_EVENT_10, \"e:property\");\n element.appendChild(createElementNS);\n XMLUtil.appendNewElement(document, createElementNS, stateVariableValue.getStateVariable().getName(), stateVariableValue.toString());\n }\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}", "@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }", "public interface CalPropertyAttrib extends IdentifyKingdomProp{\n /**\n * Give list of dominoes according to coordinates in one property for serving high level methods\n * @param coordsInProp coordinates in the property\n * @param dominoDistribution the mapping from coordinates to dominoes\n * @return list of relevant dominoes\n * @throws Exception null detection\n * @author AntonioShen\n */\n List<Domino> giveDominoesInProp(List<Integer[]> coordsInProp, HashMap<Integer[], Domino> dominoDistribution) throws Exception; //Test passed\n\n /**\n * Give terrain type of one property according to coordinates in one property for serving high level methods\n * @param coordsInProp coordinates in the property\n * @param terrainDistribution the mapping from coordinates to terrain types\n * @return the terrain type for the property\n * @throws Exception null detection\n * @author AntonioShen\n */\n TerrainType givePropType(List<Integer[]> coordsInProp, HashMap<Integer[], TerrainType> terrainDistribution) throws Exception; //Test passed\n\n /**\n * Give the property size for serving high level methods\n * @param coordsInProp list of coordinates in the property\n * @return size of the property\n * @throws Exception null detection\n * @author AntonioShen\n */\n int givePropSize(List<Integer[]> coordsInProp) throws Exception; //Test passed\n\n /**\n * Give the total number of crowns in one property for serving high level methods\n * @param coordsInProp list of coordinates in the property\n * @param crownsDistribution the mapping from coordinates to crown numbers\n * @return total number of crowns in the property\n * @throws Exception null detection\n * @author AntonioShen\n */\n int givePropCrownNum(List<Integer[]> coordsInProp, HashMap<Integer[], Integer> crownsDistribution) throws Exception; //Test passed\n\n /**\n * Give the score for one property for serving high level methods\n * @param propSize the size of the property\n * @param crownNum the total crown number of the property\n * @return the score for the property\n * @throws Exception null detection\n * @author AntonioShen\n */\n int givePropScore(int propSize, int crownNum) throws Exception; //Test passed\n\n /**\n * Give the number of properties in one kingdom according to list of lists of coordinates in one kingdom for serving high level methods\n * @param allPropCoords list of lists of coordinates in the kingdom\n * @return the number of properties in the kingdom\n * @throws Exception null detection\n * @author AntonioShen\n */\n int givePropNum(List<List<Integer[]>> allPropCoords) throws Exception;\n}", "public Calendar calculateEndTime(ConfigProperties cprop){\n\t\tCalendar d = Calendar.getInstance();\n\t\tString ed = cprop.getProperty(\"TIME.enddate\");\n\t\tString et = cprop.getProperty(\"TIME.endtime\");\n\t\t\n\t\t//ED defined\n\t\tif(ed!=null){\n\t\t\td.setTime(df.parse(ed,new ParsePosition(0)));\n\t\t}\n\t\t//ED not defined, set to 1 year ahead\n\t\telse {\n\t\t\td.add(Calendar.YEAR,1);\n\t\t}\n\t\t\n\t\t//ET defined\n\t\tif(et!=null){\n\t\t\tCalendar t = Calendar.getInstance();\n\t\t\tt.setTime(tf.parse(et,new ParsePosition(0)));\n\t\t\t//take the endtime and add it to enddate\n\t\t\td.add(Calendar.HOUR_OF_DAY,t.get(Calendar.HOUR_OF_DAY));\n\t\t\td.add(Calendar.MINUTE,t.get(Calendar.MINUTE));\n\t\t\td.add(Calendar.SECOND,t.get(Calendar.SECOND));\n\t\t}\n\t\t//ET not defined, use current time\n\t\t\n\t\treturn d;\n\t\t\n\t}", "public static void main(String[] args) {\n\n CalendarEvent b = new CalendarEvent(\"assignment2\",29,11,2014,\"14:00\",\"20:00\",\"Test1\");\n\n CalendarEvent c = new CalendarEvent(\"assignment3\",27,2,2010,\"2:00\",\"20:00\",\"Test2\");\n\n CalendarEvent d = new CalendarEvent(\"assignment4\",12,7,2013,\"14:00\",\"20:00\",\"Test3\");\n\n CalendarEvent e = new CalendarEvent(\"assignment5\",29,11,2014,\"12:00\",\"20:00\",\"Test4\");\n\n\n CalendarEvent l = new CalendarEvent(\"assignment1a\",30,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent f = new CalendarEvent(\"assignment1\",31,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent g = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent h = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent i = new CalendarEvent(\"assignment1\",29,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent j = new CalendarEvent(\"assignment1\",18,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent k = new CalendarEvent(\"assignment1\",1,9,2014,\"14:00\",\"20:00\",\"Test\");\n\n \n \n \n ArrayList<CalendarEvent> listOfEvents = new ArrayList<CalendarEvent>();\n // listOfEvents.add(a);\n listOfEvents.add(b);\n listOfEvents.add(c);\n listOfEvents.add(d);\n listOfEvents.add(e);\n\n Display myDisObject = new Display();\n //myDisObject.displayAssignments(listOfEvents);\n\n \n \n listOfEvents.add(f);\n listOfEvents.add(g);\n listOfEvents.add(h);\n listOfEvents.add(i);\n listOfEvents.add(j);\n listOfEvents.add(k);\n listOfEvents.add(l);\n \n //myDisObject.displayAssignments(listOfEvents);\n myDisObject.displayMonth(10, listOfEvents);\n }", "private void saveProperties() throws IOException {\r\n\t\tsetProperties();\r\n\t\tOutputStream outputStream;\r\n\t\toutputStream = new FileOutputStream(configFile);\r\n\t\tconfigProps.store(outputStream, \"Lot Data Mapper Application\");\r\n\t\tString msg = \"SAVING PROPERTIES WITH VALUES: \\n\\t 1 \\t\" + dt.Root+\"\\n \\t 2 \\t\" + dt.Map+\" \\n\\t 3 \\t\" + dt.Out+\" \\n\\t 4 \\t\" + Trans.ReportTypeName+\" \\n\\t 5 \\t\"+Trans.ReportedByPersonName+\" \\n\\t 6\\t\"+Trans.ReportedDate + \"\\n PROPERTIIES SAVED\";\r\n\t\tlg.l(msg);\r\n\t\toutputStream.close();\r\n\t}", "public void create(Rule event);", "public static void addProperty(String[] attribs) {\n int mls = Integer.parseInt(attribs[2]); \n int zip = Integer.parseInt(attribs[7]);\n int numBedrooms = Integer.parseInt(attribs[8]);\n double numBathrooms = Double.parseDouble(attribs[9]);\n boolean isSold;\n if(attribs[10].toUpperCase().equals(\"Y\")) {\n isSold = true;\n } else {\n isSold = false;\n }\n double askingPrice = Double.parseDouble(attribs[11]);\n Property property = new Property(mls, attribs[3], attribs[4],\n attribs[5], attribs[6], zip, numBedrooms, numBathrooms, isSold,\n askingPrice);\n String added = propertyLogImpl.add(property) ? \"added\" : \"not added\";\n System.out.println(\"Property \" + added);\n }", "private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}", "public Event(String title, String location, String description, String date, String courseRelation, int scheduledTime) {\n\t\t\n\t\tthis.title = title;\n\t\tthis.location = location;\n\t\tthis.description = description;\n\t\tthis.date = date;\n\t\tthis.courseRelation = courseRelation;\n\t\tthis.scheduledTime = scheduledTime;\n\t}", "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public String generateRuleName(AbstractGenerateParms genParams) {\r\n\t\t// rule number\r\n\t\tnextRuleNumber++;\r\n\t\t// date string\r\n\t\tDate date = new Date();\r\n\t\tString datestr = (new SimpleDateFormat(\"'D'dd-MM-yyyy-'T'HH-mm-ss\")).format(date);\r\n\t\tString ruleNameSeed = getSeedName(genParams.getUsage());\r\n\r\n\t\treturn ruleNameSeed + \"-\" + genParams.getID() + \"-R\" + genParams.getRowNum() + \"-\" + nextRuleNumber + \"-\" + datestr;\r\n\t}", "ConferenceScheduleBuilderService createEventsFromStartToLunch();", "public String addCourseEvent(Events events);", "public String createics(Event[] events){\r\n\t\tcalendar = \"BEGIN:VCALENDAR\\nVERSION:1.0\\nPRODID:-//Rambutan\\n\";\r\n\t\tcalendar += \"CALSCALE:GEORGIAN\\nMETHOD:PUBLISH\\n\";\r\n\t\tfor(Event e: allEvents){\r\n\t\t\tcalendar += \"BEGIN:VEVENT\\nDTSTART:\";\r\n\t\t\tcalendar += e.getDateTimeS();\r\n\t\t\tcalendar += \"\\nDTEND:\" + e.getDateTimeE();\r\n\t\t\tcalendar += \"\\nDTSTAMP:\" + e.getTimeStamp();\r\n\t\t\tcalendar += \"\\nUID:\"; //add in a Unique identification number later\r\n\t\t\tcalendar += \"\\nCLASS:\" + e.getClassType();\r\n\t\t\tcalendar += \"\\nCREATED:\" + e.getTimeCreated();\r\n\t\t\tcalendar += \"\\nDESCRIPTION:\" + e.getDescription();\r\n\t\t\tcalendar += \"\\nLAST-MODIFIED:\" + e.getLastModified();\r\n\t\t\tcalendar += \"\\nLOCATION:\" + e.getLocation();\r\n\t\t\tcalendar += \"\\nSEQUENCE:\" + Integer.toString(e.getSequence());\r\n\t\t\tcalendar += \"\\nSTATUS:\" + e.getStatus();\r\n\t\t\tcalendar += \"\\nSUMMARY:\" + e.getSummary();\r\n\t\t\tcalendar += \"\\nEND:VEVENT\\n\";\r\n\t\t}\r\n\t\tcalendar +=\"END:VCALENDAR\\n\";\r\n\t\treturn calendar;\r\n\t}", "private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }", "public void createEvent(String name, Calendar date, String description, String place, ArrayList<Person> people) throws LogicLayerException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdataService.createEvent(new Event (name, date, description, place, people));\r\n\t\t}\r\n\t\tcatch (DataLayerException e)\r\n\t\t{\r\n\t\t\tthrow new LogicLayerException(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t}", "protected abstract List<String> writeData(T property);", "public void setProperties(Properties setList);", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ObjectPropConstants {\n\n /**\n * A property key for models used to store the last-modified time stamp.\n * <p>\n * Type: A time stamp, encoded using ISO 8601. (Can be parsed using {@code java.time.Instant}.)\n * </p>\n */\n String MODEL_FILE_LAST_MODIFIED = \"tcs:modelFileLastModified\";\n /**\n * A property key for the orientation of a vehicle on a path.\n * <p>\n * Type: String (any string - details currently not specified)\n * </p>\n *\n * @deprecated Will be removed.\n */\n @Deprecated\n @ScheduledApiChange(when = \"5.0\", details = \"Will be removed.\")\n String PATH_TRAVEL_ORIENTATION = \"tcs:travelOrientation\";\n /**\n * A property key for {@link VisualLayout} instances used to provide a hint for which\n * {@link LocationTheme} implementation should be used for rendering locations in the\n * visualization client.\n * <p>\n * Type: String (the fully qualified class name of an implementation of {@link LocationTheme})\n * </p>\n *\n * @deprecated The theme to be used is now set directly via configuration.\n */\n @Deprecated\n @ScheduledApiChange(when = \"5.0\", details = \"Will be removed.\")\n String LOCATION_THEME_CLASS = \"tcs:locationThemeClass\";\n /**\n * A property key for {@link LocationType} instances used to provide a hint for the visualization\n * how locations of the type should be visualized.\n * <p>\n * Type: String (any element of {@link LocationRepresentation})\n * </p>\n */\n String LOCTYPE_DEFAULT_REPRESENTATION = \"tcs:defaultLocationTypeSymbol\";\n /**\n * A property key for {@link Location} instances used to provide a hint for the visualization how\n * the locations should be visualized.\n * <p>\n * Type: String (any element of {@link LocationRepresentation})\n * </p>\n */\n String LOC_DEFAULT_REPRESENTATION = \"tcs:defaultLocationSymbol\";\n /**\n * A property key for {@link Vehicle} instances to store a preferred initial position to be used\n * by simulating communication adapter, for example.\n * <p>\n * Type: String (any name of a {@link Point} existing in the same model.\n * </p>\n * \n * @deprecated Use vehicle driver-specific properties to specify the vehicle's initial position.\n */\n @Deprecated\n @ScheduledApiChange(when = \"5.0\", details = \"Will be removed.\")\n String VEHICLE_INITIAL_POSITION = \"tcs:initialVehiclePosition\";\n /**\n * A property key for {@link VisualLayout} instances used to provide a hint for which\n * {@link VehicleTheme} implementation should be used for rendering vehicles in the visualization\n * client.\n * <p>\n * Type: String (the fully qualified class name of an implementation of {@link VehicleTheme})\n * </p>\n *\n * @deprecated The theme to be used is now set directly via configuration.\n */\n @Deprecated\n @ScheduledApiChange(when = \"5.0\", details = \"Will be removed.\")\n String VEHICLE_THEME_CLASS = \"tcs:vehicleThemeClass\";\n}", "private String makeEventEnd(LocalDateTime date) {\n String name = \"DTEND\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "public Trigger createTrigger(ConfigProperties cprop){\n\t\tint repeat;\n\t\tlong interval;\n\t\tCalendar sd = calculateStartTime(cprop);\n\t\tCalendar ed = calculateEndTime(cprop);\n\t\tString name = cprop.getProperty(\"PROJ.name\");\n\n\t\tString rstr = cprop.getProperty(\"TIME.repeat\");\n\t\tString istr = cprop.getProperty(\"TIME.interval\");\n\t\tString fstr = cprop.getProperty(\"TIME.frequency\");\n\n\t\t//repeat this many times or forever\n\t\tif(rstr!=null)\n\t\t\trepeat = Integer.parseInt(rstr);\n\t\telse\n\t\t\trepeat = SimpleTrigger.REPEAT_INDEFINITELY;\n\n\t\t//repeat every interval milliseconds or daily\n\t\t//interval overrides frequency\n\t\tif(istr!=null)\n\t\t\tinterval = Long.parseLong(istr);\n\t\telse if (fstr!=null)\n\t\t\tinterval = ONE_DAY/Long.parseLong(fstr);\n\t\telse\n\t\t\tinterval = ONE_DAY;\n\n\t\tjlog.info(\"Create Trigger n=\"+name+\" sd=\"+sd.getTime()+\" ed=\"+ed.getTime()+\" r=\"+repeat+\" i=\"+interval);\n\n\t\tTrigger trigger = new SimpleTrigger(name, null,sd.getTime(),ed.getTime(),repeat,interval);\n\t\ttrigger.setMisfireInstruction(SimpleTrigger.MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT);\n\t\treturn trigger;\n\n\n\t}", "public ConfigureEvent(ReplicatorProperties props) {\n super(props);\n }", "public void createTaskProperties(View view) {\n \t\n \tIntent intent = new Intent(this, TaskProperties.class);\n \t\n \t//dont have any task properties at this point\n \tif(!propertiesGrabbed){\n \n \t\tintent.putExtra(EDIT, \"no\");\n \t\tstartActivityForResult(intent, 3);\n \t\t \t\t\n \t//we have properties so need to populate the next page\t\n \t}else{\n \t\t\n \t\t//creating the values to pass\n\t\t\t//0 -> where to send the notification\n\t \t//1 -> visibility\n\t \t//2 -> description\n\t \t//3 -> type\n \t\tString[] send = new String[TaskProperties.propertyCount];\n \t\tsend[0] = taskResponseString;\n \t\tsend[1] = taskVisibility;\n \t\tsend[3] = taskResponseType;\n \t\tsend [2] = taskDescription; \n \t\t\n \t\tintent.putExtra(EDIT, \"yes\");\n \t\tintent.putExtra(PROPERTIES, send);\n \t\tstartActivityForResult(intent, 3); \t\t\t\n \t} \t\n }", "public Schedule(String id, String eventName, String description,\n\t\t\tString location, String eventType, Date startDate, Date endDate,\n\t\t\tString startTime, String endTime, Integer remindBefore, \n\t\t\tString remindTimeType, Integer repeatEvery, boolean sunday, \n\t\t\tboolean monday, boolean tuesday, boolean wednesday, \n\t\t\tboolean thursday, boolean friday, boolean saturday,String assignedUser) {\n\t\tthis.id = id;\n\t\tthis.eventName = eventName;\n\t\tthis.description = description;\n\t\tthis.location = location;\n\t\tthis.eventType = eventType;\n\t\tthis.startDate = startDate;\n\t\tthis.endDate = endDate;\n\t\tthis.startTime = startTime;\n\t\tthis.endTime = endTime;\n\t\tthis.remindBefore = remindBefore;\n\t\tthis.remindTimeType = remindTimeType;\n\t\tthis.assignedUser = assignedUser;\n\t\t//this.scheduleEventId = scheduleEventId;\n\t\t//this.scheduleEventName = scheduleEventName;\n\t\tthis.repeatEvery = repeatEvery;\n\t\tdays.setSunday(sunday);\n\t\tdays.setMonday(monday);\n\t\tdays.setTuesday(tuesday);\n\t\tdays.setWednesday(wednesday);\n\t\tdays.setThursday(thursday);\n\t\tdays.setFriday(friday);\n\t\tdays.setSaturday(saturday);\n\t}", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "public void generateSchedule(){\n\t\t\n\t}", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "@SuppressWarnings(\"deprecation\")\r\n\tprivate void createCalendarEntry(){\r\n\t\t\r\n\t\tUri calendars = Uri.parse(CALENDAR_URI);\r\n\t\t \r\n\t\tCursor managedCursor = managedQuery(calendars, projection, null, null, null);\r\n\t\tString calName = \"\"; \r\n\t\tString calId = \"\"; \r\n\t\tif (managedCursor.moveToFirst()) {\r\n\t\t\t \r\n\t\t\t int idColumn = managedCursor.getColumnIndex(projection[0]);\r\n\t\t\t int nameColumn = managedCursor.getColumnIndex(projection[1]); \r\n\t\t\t \r\n\t\t\t do {\r\n\t\t\t calName = managedCursor.getString(nameColumn);\r\n\t\t\t calId = managedCursor.getString(idColumn);\r\n\t\t\t if (calName.contains(\"gmail\"))\r\n\t\t\t \tbreak;\r\n\t\t\t } while (managedCursor.moveToNext());\r\n\t }\r\n\t\t\r\n\t\tlong start = System.currentTimeMillis() + 120000;\r\n\t\tlong duration = DURATION + start;\r\n\t\t\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(DATE_START, start);\r\n\t\tvalues.put(DATE_END, duration);\r\n\t\tvalues.put(EVENT_TITLE, ocrData.getMedicine().getMedicine());\r\n\t\tvalues.put(EVENT_DESCRIPTION, \"Take \" + ocrData.getPatient2Medicine().getFrequencyOfIntake() \r\n\t\t\t\t+ \" by \" + ocrData.getPatient2Medicine().getMode());\r\n\t\tvalues.put(CALENDAR_ID, calId);\r\n\t\tvalues.put(EVENT_RULE, \"FREQ=\" + ocrData.getPatient2Medicine().getFrequencyOfIntake() + \";\");\r\n\t\tvalues.put(HAS_ALARM, 1);\r\n\t\t\r\n\t\tContentResolver cr = getContentResolver();\r\n\t\tUri event = cr.insert(Uri.parse(EVENT_URI), values);\r\n\t\t\r\n\t\tvalues = new ContentValues();\r\n\t\tvalues.put(\"event_id\", Long.parseLong(event.getLastPathSegment()));\r\n\t\tvalues.put(\"method\", 1);\r\n\t\tvalues.put(\"minutes\", 10 );\r\n\t\tcr.insert(Uri.parse(REMINDER_URI), values);\r\n\t}", "E13Rule createE13Rule();", "private UIEvent generateModifyEvent(){\n List<DataAttribut> dataAttributeList = new ArrayList<>();\n for(int i = 0; i< attributModel.size(); i++){\n String attribut = attributModel.elementAt(i);\n dataAttributeList.add(new DataAttribut(attribut));\n }\n //Erstellen des geänderten Produktdatums und des Events\n DataProduktDatum proposal = new DataProduktDatum(name.getText(), new DataId(id.getText()), dataAttributeList, verweise.getText());\n UIModifyProduktDatumEvent modifyEvent = new UIModifyProduktDatumEvent(dataId, proposal);\n return modifyEvent;\n }", "protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getPartyQual_QualificationDesc(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_PartyQualTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeText(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Rating(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillLevel(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_YearsExperience(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_PerfRatingTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_ManagerRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_PerfReviewItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_ApprovalStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Reason(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_ResponsibilityTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_SkillTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_TrainingClassTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}", "private static void addProperty(HashMap<String, DefinedProperty> propSet, String name, DefinedPropertyType type, String defaultValue, int usage, boolean hidden, boolean userDefined) {\n if (propSet.containsKey(name))\n \tOrdt.errorMessage(\"invalid user-defined property name \" + name + \" specified\");\n else putProperty(propSet, name, type, defaultValue, usage, hidden, userDefined);\n\t}", "public PropertiesPlus()\n\t{\n\t\tsuper();\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t}", "public void write() throws IOException { \n FileOutputStream fos = new FileOutputStream(new File(_propertyFileDir, \n DAS_PROPERTY_FILE_NAME));\n _properties.store(fos, _strMgr.getString(\"dasPropertyFileComment\"));\n fos.close(); \n }", "@Override\n public void definitionListItem(SinkEventAttributes attributes)\n {\n }", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public interface NotesCalendarEntry extends Base<lotus.domino.NotesCalendarEntry>, lotus.domino.NotesCalendarEntry {\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#accept(java.lang.String)\n\t */\n\t@Override\n\tpublic void accept(String comments);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#accept(java.lang.String, int, java.lang.String)\n\t */\n\t@Override\n\tpublic void accept(String comments, int scope, String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#cancel(java.lang.String)\n\t */\n\t@Override\n\tpublic void cancel(String comments);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#cancel(java.lang.String, int, java.lang.String)\n\t */\n\t@Override\n\tpublic void cancel(String comments, int scope, String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#counter(java.lang.String, lotus.domino.DateTime, lotus.domino.DateTime)\n\t */\n\t@Override\n\tpublic void counter(String comments, lotus.domino.DateTime start, lotus.domino.DateTime end);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#counter(java.lang.String, lotus.domino.DateTime, lotus.domino.DateTime, boolean)\n\t */\n\t@Override\n\tpublic void counter(String comments, lotus.domino.DateTime start, lotus.domino.DateTime end, boolean keepPlaceholder);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#counter(java.lang.String, lotus.domino.DateTime, lotus.domino.DateTime, boolean, int,\n\t * java.lang.String)\n\t */\n\t@Override\n\tpublic void counter(String comments, lotus.domino.DateTime start, lotus.domino.DateTime end, boolean keepPlaceholder, int scope,\n\t\t\tString recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#counter(java.lang.String, lotus.domino.DateTime, lotus.domino.DateTime, int, java.lang.String)\n\t */\n\t@Override\n\tpublic void counter(String comments, lotus.domino.DateTime start, lotus.domino.DateTime end, int scope, String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#decline(java.lang.String)\n\t */\n\t@Override\n\tpublic void decline(String comments);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#decline(java.lang.String, boolean)\n\t */\n\t@Override\n\tpublic void decline(String comments, boolean keepInformed);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#decline(java.lang.String, boolean, int, java.lang.String)\n\t */\n\t@Override\n\tpublic void decline(String comments, boolean keepInformed, int scope, String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#delegate(java.lang.String, java.lang.String)\n\t */\n\t@Override\n\tpublic void delegate(String commentsToOrganizer, String delegateTo);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#delegate(java.lang.String, java.lang.String, boolean)\n\t */\n\t@Override\n\tpublic void delegate(String commentsToOrganizer, String delegateTo, boolean keepInformed);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#delegate(java.lang.String, java.lang.String, boolean, int, java.lang.String)\n\t */\n\t@Override\n\tpublic void delegate(String commentsToOrganizer, String delegateTo, boolean keepInformed, int scope, String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#delegate(java.lang.String, java.lang.String, int, java.lang.String)\n\t */\n\t@Override\n\tpublic void delegate(String commentsToOrganizer, String delegateTo, int scope, String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#getAsDocument()\n\t */\n\t@Override\n\tpublic Document getAsDocument();\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#getAsDocument(int)\n\t */\n\t@Override\n\tpublic Document getAsDocument(int flags);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#getAsDocument(int, java.lang.String)\n\t */\n\t@Override\n\tpublic Document getAsDocument(int flags, String recurrenceId);\n\n\tpublic NotesCalendar getParent();\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#getNotices()\n\t */\n\t@Override\n\tpublic Vector<NotesCalendarNotice> getNotices();\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#getUID()\n\t */\n\t@Override\n\tpublic String getUID();\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#read()\n\t */\n\t@Override\n\tpublic String read();\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#read(java.lang.String)\n\t */\n\t@Override\n\tpublic String read(String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#remove()\n\t */\n\t@Override\n\tpublic void remove();\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#remove(int, java.lang.String)\n\t */\n\t@Override\n\tpublic void remove(int scope, String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#requestInfo(java.lang.String)\n\t */\n\t@Override\n\tpublic void requestInfo(String comments);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#tentativelyAccept(java.lang.String)\n\t */\n\t@Override\n\tpublic void tentativelyAccept(String comments);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#tentativelyAccept(java.lang.String, int, java.lang.String)\n\t */\n\t@Override\n\tpublic void tentativelyAccept(String comments, int scope, String recurrenceId);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#update(java.lang.String)\n\t */\n\t@Override\n\tpublic void update(String iCalEntry);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#update(java.lang.String, java.lang.String)\n\t */\n\t@Override\n\tpublic void update(String iCalEntry, String comments);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#update(java.lang.String, java.lang.String, long)\n\t */\n\t@Override\n\tpublic void update(String iCalEntry, String comments, long flags);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see lotus.domino.NotesCalendarEntry#update(java.lang.String, java.lang.String, long, java.lang.String)\n\t */\n\t@Override\n\tpublic void update(String iCalEntry, String comments, long flags, String recurrenceId);\n\n}", "public void makeEvent(String type) {\n\t\teventName = type;\n\t}", "private void populateDataForEventEditObject(CalendarEventEdit eventEdit, SignupMeeting meeting,String title_suffix, \n\t\t\tDate startTime, Date endTime ){\n\t\tTimeService timeService = getSakaiFacade().getTimeService();\n\t\tTime start = timeService.newTime(startTime.getTime());\n\t\tTime end = timeService.newTime(endTime.getTime());\n\t\tTimeRange timeRange = timeService.newTimeRange(start, end, true, false);\n\t\teventEdit.setRange(timeRange);\n\t\t\n\t\tString attendeeNamesMarkup = \"\";\n\t\tint num = 0;\n\n if(meeting.getSignupTimeSlots().size() > 0) {\n attendeeNamesMarkup += \"<br /><br /><span style=\\\"font-weight: bold\\\"><b>\" + rb.getString(\"signup.event.attendees\") + \"</b></span><br />\";\n }\n\n boolean displayAttendeeName = false;\n for(SignupTimeslot ts : meeting.getSignupTimeSlots()) {\n \tdisplayAttendeeName = ts.isDisplayAttendees();//just need one of TS, it is not fine-grained yet\n \t//case: custom calender blocks, only print the related info\n \tif((startTime.getTime() <= ts.getStartTime().getTime()) && endTime.getTime() >= ts.getEndTime().getTime()){\n \t\tnum += ts.getAttendees().size();\n\t if(ts.isDisplayAttendees() && !ts.getAttendees().isEmpty()){\n\t \t//privacy issue\n\t\t for(SignupAttendee attendee : ts.getAttendees()) {\n\t\t attendeeNamesMarkup += (\"<span style=\\\"font-weight: italic\\\"><i>\" + sakaiFacade.getUserDisplayName(attendee.getAttendeeUserId()) + \"</i></span><br />\");\n\t\t }\n\t }\n \t}\n }\n \n if(!displayAttendeeName || num < 1){\n \tString currentAttendees = MessageFormat.format(rb.getString(\"signup.event.currentattendees\") ,new Object[] { num });\n \tattendeeNamesMarkup += (\"<span style=\\\"font-weight: italic\\\"><i>\" + currentAttendees + \"</i></span><br />\");\n }\n \n\t\tString desc = meeting.getDescription() + attendeeNamesMarkup;\n\t\teventEdit.setDescription(PlainTextFormat.convertFormattedHtmlTextToPlaintext(desc));\n\t\teventEdit.setLocation(meeting.getLocation());\n\t\tString eventTitleAttendees = MessageFormat.format(rb.getString(\"signup.event.attendeestitle\") ,new Object[] { num });\n\t\teventEdit.setDisplayName(meeting.getTitle() + title_suffix + \" (\" + eventTitleAttendees + \")\");\t\t\t\n\t\teventEdit.setRange(timeRange);\n\t}", "Event(int start, int end, String eventName, String description) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = description;\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}", "@SuppressWarnings(\"unused\")\n private String makeEventSummmary(Course item, String pattern) {\n String summary = parsePattern(item, pattern);\n return makeEventSummary(summary);\n }", "@SuppressWarnings(\"unused\")\n private String makeEventStamp(Course item) {\n return makeEventStamp();\n }", "@Test\n public void testRecuccrenceRuleChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n int occurences = 10;\n String rrule = RRuleFactory.getFrequencyWithOccurenceLimit(RecurringFrequency.DAILY, occurences);\n deltaEvent.setRrule(rrule);\n\n /*\n * Update as organizer\n */\n long now = now().longValue();\n String fromStr = DateTimeUtil.getZuluDateTime(new Date(now - TimeUnit.DAYS.toMillis(1)).getTime()).getValue();\n String untilStr = DateTimeUtil.getZuluDateTime(new Date(now + TimeUnit.DAYS.toMillis(30)).getTime()).getValue();\n\n ChronosCalendarResultResponse calendarResultResponse = chronosApi.updateEvent(deltaEvent.getFolder(), deltaEvent.getId(), now(), getUpdateBody(deltaEvent), deltaEvent.getRecurrenceId(), null, null, null, null, null, null, fromStr, untilStr, Boolean.TRUE, null);\n assertNull(calendarResultResponse.getError());\n assertTrue(calendarResultResponse.getData().getUpdated().size() == 0);\n assertTrue(calendarResultResponse.getData().getCreated().size() == occurences);\n assertTrue(calendarResultResponse.getData().getDeleted().size() == 1);\n\n /*\n * Check that end date has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.NEEDS_ACTION, CustomConsumers.ALL);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertThat(\"Recurrence ID is not correct.\", change.getNewEvent().getRrule(), is(rrule));\n }", "public interface IPropertyMetadata\r\n{\r\n /**\r\n * This method gets the property metadata for this appender.\r\n *\r\n * @return The property metadata for this appender.\r\n */\r\n ArrayList<PropertyMetadata> getProperties();\r\n}", "public String toString() {\n String eventString = \"\";\n DateTimeFormatter ft = DateTimeFormatter.ofPattern(\"ddMMyyyy\");\n String date = this.getDue().format(ft);\n eventString += (\"e,\" + this.getName() + \",\" + this.getDetails() + \",\" +\n date + \";\");\n return eventString;\n }", "EventUses createEventUses();", "private String makeEventLocation(String location) {\n return \"LOCATION:\" + location + \"\\n\";\n }", "@SuppressWarnings(\"unused\")\n private String makeEventDescription(Course item, String pattern) {\n String description = parsePattern(item, pattern);\n return makeEventDescription(description);\n }", "EProperties getProperties();", "public void crear_un_evento_recurrente_para_el_dia_de_hoy() {\n\t\t\n\t}", "PropertyCallExp createPropertyCallExp();", "JobDetails properties();", "@Override\n public void date(SinkEventAttributes attributes)\n {\n }", "public void addAppointment(DateTime startTim, DateTime endTim, String desc, Date date)\n {\n Appointment app = Appointment(startTim, endTim, desc);\n if(cal.containsKey(date)){\n cal.getClass(date).append(app);\n \n }else{\n List y;\n y.append(app);\n cal.put(date, y);\n }\n }", "public DocumentElement EventGoingPhrase(ArrayList<Event> goingEvents) {\n\t\tif (goingEvents.size() != 0) {\n\t\t\tNPPhraseSpec s1 = nlgFactory.createNounPhrase(pronoun);\n\t\t\t\n\t\t\tSPhraseSpec s = new SPhraseSpec(nlgFactory);\n\t\t\ts.setVerb(\"attended\");\n\t\t\ts.setFeature(Feature.TENSE, Tense.PAST);\n\t\t\tCoordinatedPhraseElement categories = nlgFactory.createCoordinatedPhrase();\n\t\t\t\n\t\t\tNPPhraseSpec category = nlgFactory.createNounPhrase(\"events\"); \n\t\t\tcategory.setPlural(true);\n\t\t\tCoordinatedPhraseElement obj = nlgFactory.createCoordinatedPhrase();\n\t\t\t\n\t\t\tfor (int i = 0; i < goingEvents.size(); i++) {\n\t\t\t\tNPPhraseSpec object1 = nlgFactory.createNounPhrase(goingEvents.get(i).getName());\n\t\t\t\tif (goingEvents.size() > 1)\n\t\t\t\t\tobject1.setPlural(true);\n\t\t\t\t\n\t\t\t\tString location = generateLocation(goingEvents.get(i).getLocation());\n\t\t\t\tif (!(\"\").equals(location)) {\n\t\t\t\t\tPPPhraseSpec pp = new PPPhraseSpec(nlgFactory);\n\t\t\t\t\tpp.addComplement(location);\n\t\t\t\t\tpp.setPreposition(\"in\");\n\t\t\t\t\tobject1.addComplement(pp);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tobj.addCoordinate(object1); \n\t\t\t}\n\t\t\t\n\t\t\tobj.addPreModifier(\"such as\"); \n\t\t\tcategory.addComplement(obj);\t\t\t\n\t\t\tcategories.addCoordinate(category);\n\t\t\t\n\t\t\ts.setObject(categories);\n\t\t\t\n\t\t\ts1.addPostModifier(s);\n\t\t\t\n\t\t\treturn nlgFactory.createSentence(s1);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic void setCustomCondition(RptParams params) {\n\t\tif (params.getObject(\"startDate\") != null) {\n Date sd = (Date)params.getObject(\"startDate\");\n this.pkStartDate.setValue(sd);\n\t\t}\n\n\t\tif (params.getObject(\"endDate\") != null) {\n\t\t\tDate ed = (Date) params.getObject(\"endDate\");\n\t\t\tthis.pkEndDate.setValue(ed);\n\t\t}\n\t}", "public Events(String newDescripton, String newDate) {\n super(newDescripton);\n ExceptionGenerator.checkDateFormat(newDate);\n this.date = LocalDate.parse(newDate);\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}", "public static void main(String[] args) {\n \n Manager manager = new Manager(\"[email protected]\", \"Sally Manager\", \"mgrPass\");\n \n BookAndCancelAppointment bookAndCancelAppointment = new BookAndCancelAppointment();\n \n\n ManageAppointments ma = new ManageAppointments();\n bookAndCancelAppointment.set_ma(ma);\n ma.set_bookAndCancelAppointment(bookAndCancelAppointment);\n\n ManageSystem ms = new ManageSystem();\n ma.set_ms(ms);\n ms.set_ma(ma);\n ms.set_manager(manager);\n \n // Create Subjects\n Subject sub0 = new Subject(\"Intro to Programming\");\n Subject sub1 = new Subject(\"Operating Systems and Networks\");\n Subject sub2 = new Subject(\"Web and Mobile Applications\");\n Subject sub3 = new Subject(\"Computer Architecture\");\n \n // Add subjects to Manager (chosen to only put this uni directional in the implementation since the subject does not need to know the manager, but could be added)\n ms.add_subject(sub0);\n ms.add_subject(sub1);\n ms.add_subject(sub2);\n ms.add_subject(sub3);\n \n // Create Tutors\n TutorData t0 = new TutorData(\"[email protected]\", \"John Tutor\", \"tutpass\");\n TutorData t1 = new TutorData(\"[email protected]\", \"Tutor May\", \"password\");\n TutorData t2 = new TutorData(\"[email protected]\", \"Dave Tutor\", \"tutpassword\");\n TutorData t3 = new TutorData(\"[email protected]\", \"Jane Tutor\", \"passtutor\");\n \n // Add subjects to Manager (needed based on diagram - only implemented uni directional since both directions are not needed)\n ms.add_tutor(t0);\n ms.add_tutor(t1);\n ms.add_tutor(t2);\n ms.add_tutor(t3);\n \n // Add Subjects to Tutors\n t0.add_subject(sub0);\n t0.add_subject(sub1);\n t1.add_subject(sub1);\n t2.add_subject(sub2);\n t2.add_subject(sub3);\n t3.add_subject(sub3);\n t3.add_subject(sub0);\n \n // Create Appointments and add to Tutors\n Date date0 = new Date();\n Date date1 = new Date();\n Date date2 = new Date();\n Date date3 = new Date();\n Date date4 = new Date();\n Date date5 = new Date();\n for(int i = 0; i < 100000; i++){\n int x = 0;\n }\n Date date6 = new Date();\n /*\n String response0 = ma.create_appointment(date0, t0.get_email());\n String response1 = ma.create_appointment(date1, t0.get_email());\n String response2 = ma.create_appointment(date2, t1.get_email());\n String response3 = ma.create_appointment(date3, t2.get_email());\n String response4 = ma.create_appointment(date4, t2.get_email());\n String response5 = ma.create_appointment(date5, t2.get_email());\n String response6 = ma.create_appointment(date6, t2.get_email());\n */\n /* \n Appointment appt0 = new Appointment(date0, 0, t0);\n Appointment appt1 = new Appointment(date1, 1, t0);\n Appointment appt2 = new Appointment(date2, 2, t1);\n Appointment appt3 = new Appointment(date3, 3, t2);\n Appointment appt4 = new Appointment(date4, 4, t2);\n Appointment appt5 = new Appointment(date5, 5, t2);\n Appointment appt6 = new Appointment(date6, 6, t2);\n */\n /* \n // Add appointments to appointment list\n ma.add_appointment(appt0);\n ma.add_appointment(appt1);\n ma.add_appointment(appt2);\n ma.add_appointment(appt3);\n ma.add_appointment(appt4);\n ma.add_appointment(appt5);\n ma.add_appointment(appt6);\n */\n \n /*\n // Create Students\n StudentData s0 = new StudentData(\"[email protected]\", \"John Student\", \"studpass\", 5);\n StudentData s1 = new StudentData(\"[email protected]\", \"Jane Student\", \"pass\", 2);\n StudentData s2 = new StudentData(\"[email protected]\", \"Jack Student\", \"passwo\", 1);\n StudentData s3 = new StudentData(\"[email protected]\", \"Bob Student\", \"studentpass\", 0);\n */\n /* \n // Add students to list\n bookAndCancelAppointment.add_student(s0);\n bookAndCancelAppointment.add_student(s1);\n bookAndCancelAppointment.add_student(s2);\n bookAndCancelAppointment.add_student(s3);\n */\n //test create appointment\n //pass\n System.out.println(ma.create_appointment(date0, t0.get_email()));\n //fail\n System.out.println(ma.create_appointment(date0, t0.get_email()));\n //pass\n System.out.println(ma.create_appointment(date0, t1.get_email()));\n //pass\n System.out.println(ma.create_appointment(date6, t0.get_email()));\n // Add Appointments to Students\n //appt0.student = s1;\n //appt0.booked = true;\n //s1.appointments.add(appt0);\n /* \n // Test Book Appointment method\n \n // Not enough credits case\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Computer Architecture\", date0));\n \n // Already an appointment booked\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Web and Mobile Applications\", date1));\n \n // No available tutor case\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Intro to Programming\", date2));\n \n // Appointment can be booked case\n int s2Credits = s2.numCredits;\n assert(appt4.student == null);\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Web and Mobile Applications\", date3));\n assert(s2Credits - 1 == s2.numCredits);\n assert(appt4.student == s2);\n // test book by id\n // Not enough credits case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 0));\n \n // Already an appointment booked\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 6));\n \n // No available tutor case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 0));\n \n // Appointment can be booked case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 1));\n */\n }", "@Test\n\tpublic void test02() throws Throwable {\n\t\tint startHour=-15;\n\t\tint startMinute=30;\n\t\tint startDay=11;\n\t\tint startMonth=4;\n\t\tint startYear=2017;\n\t\tString title=\"Birthday Party\";\n\t\tString description=\"This is my birthday party.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt1 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t// create another appointment\n\t\tstartHour=14;\n\t\tstartMinute=30;\n\t\tstartDay=11;\n\t\tstartMonth=4;\n\t\tstartYear=2017;\n\t\ttitle=\"Class\";\n\t\tdescription=\"Rescheduled class.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt2 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t// create another appointment\n\t\tstartHour=13;\n\t\tstartMinute=30;\n\t\tstartDay=11;\n\t\tstartMonth=4;\n\t\tstartYear=2017;\n\t\ttitle=\"Meeting Today\";\n\t\tdescription=\"Meeting with the students.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt3 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t//Create CalDay objects\n\t\tCalDay today = new CalDay (new GregorianCalendar(2017,4,11));\n\t\t//Set the calender appointments\n\t\ttoday.addAppt(appt1);\n\t\ttoday.addAppt(appt2);\n\t\ttoday.addAppt(appt3);\n\t\t//Assertions\n\t\tassertTrue(today.isValid());\n\t\tassertEquals(11, today.getDay());\n\t\tassertEquals(4, today.getMonth());\n\t\tassertEquals(2017, today.getYear());\n\t\tassertEquals(2, today.getSizeAppts());\n\t\tassertEquals(\"\\t --- 4/11/2017 --- \\n\" +\n\t\t\t\t\" --- -------- Appointments ------------ --- \\n\" +\n\t\t\t\t\"\\t4/11/2017 at 1:30pm ,Meeting Today, Meeting with the students.\\n\" +\n\t\t\t\t\" \\t4/11/2017 at 2:30pm ,Class, Rescheduled class.\\n\" +\n\t\t\t\t\" \\n\", today.toString());\n\t}", "public void appendToReminders(Date reminders);", "public interface DatePropertySchema {\n /**\n * Returns source date format\n * @return Source date format\n */\n DateFormat getSourceDateFormat();\n\n /**\n * Returns display date format\n * @return Display date format\n */\n DateFormat getDisplayDateFormat();\n\n /**\n * Converts a string into a date with the source date format\n * @param date A string representing a date\n * @return Date\n */\n default Date fromSource(String date) {\n try {\n return getSourceDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getSourceDateFormat()));\n }\n }\n\n /**\n * Converts a string into a date with the display date format\n * @param date A string representing a date\n * @return Date\n */\n default Date fromDisplay(String date) {\n try {\n return getDisplayDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getDisplayDateFormat()));\n }\n }\n\n /**\n * Converts a date into a string with the display date format\n * @param date A date\n * @return A string representing a date\n */\n default String toDisplay(Date date) {\n return getDisplayDateFormat().format(date);\n }\n\n /**\n * Converts a date into a string with the source date format\n * @param date A date\n * @return A string representing a date\n */\n default String toSource(Date date) {\n return getSourceDateFormat().format(date);\n }\n}", "public void writeToConfigFile() {\n if(properties == null) {\n return;\n }\n\n properties.put(\"MAN-LATITUDE\", String.valueOf(Location.getMan_latitude()));\n properties.put(\"MAN-LONGITUDE\", String.valueOf(Location.getMan_longitude()));\n properties.put(\"CURRENT-DESTINATION-NAME\", currentDestinationName);\n properties.put(\"CURRENT-DESTINATION-ADDRESS\", currentDestination.getCSVAddress());\n properties.put(\"EVENT-START-TIME\", ClockDriver.dfFull.format(Event.globalEventStartTime));\n double[] coefficients = Location.getAdjustmentCoefficients();\n String adjustmentCoefficients = String.valueOf(coefficients[0]) + ',' +\n String.valueOf(coefficients[1]) + ',' + String.valueOf(coefficients[2]) + ',' +\n String.valueOf(coefficients[3]);\n properties.put(\"ADJUSTMENT-COEFFICIENTS\", adjustmentCoefficients);\n StringBuilder blockStringBuilder = new StringBuilder();\n for(Object[] block : Location.getBlockDistances()) {\n if(block.length == 2) {\n blockStringBuilder.append(block[0]);\n blockStringBuilder.append(',');\n blockStringBuilder.append(block[1]);\n blockStringBuilder.append(';');\n }\n }\n properties.put(\"BLOCK-DISTANCES\", blockStringBuilder.toString());\n\n try {\n properties.store(new FileOutputStream(configPath), \"\");\n } catch(IOException e) {\n logger.warning(this.getClass(),\n \"IOException while writing to config file \\'\" + configPath + \"\\': \" + e.getMessage());\n }\n }", "Event(int start, int end, String eventName) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = \"\";\r\n }", "public abstract String metadata(String property);", "void writeEvent (Event event) throws Exception {\n this.write(\"[event]\\n\");\n this.write(\"timeline \" + event.timeline.name + \"\\n\");\n this.write(\"name \" + event.name + \"\\n\");\n this.write(\"startDate \" + event.startDate[0] + \" \" + event.startDate[1] + \" \" + event.startDate[2] + \"\\n\");\n this.write(\"endDate \" + event.endDate[0] + \" \" + event.endDate[1] + \" \" + event.endDate[2] + \"\\n\");\n this.write(\"visible \" + (event.visible ? 1 : 0) + \"\\n\");\n this.write(event.notes + \"\\n[/event]\\n\");\n this.newLine();\n this.flush();\n }", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "void writeProperties(java.util.Properties p) {\n }", "public interface TimeProvider\n{\n\n\t/** property name for the time being changed\n\t * \n\t */\n\tpublic static final String TIME_CHANGED_PROPERTY_NAME = \"TIME_CHANGED\";\n\t\n\t\n\t/** propery name for the time-period being changed\n\t * \n\t */\n\tpublic static final String PERIOD_CHANGED_PROPERTY_NAME = \"PERIOD_CHANGED\";\n\n\t\n\t/**\n\t * obtain the time period covered by the data\n\t * @return the time period\n\t */\n\tpublic TimePeriod getPeriod();\n\t\n\t/** identifier for this time provider. We create this so that, when restored, an xy plot \n\t * can loop through the open plots to determine which time provider to connect to\n\t * \n\t */\n\tpublic String getId();\n\n\t/**\n\t * obtain the current time\n\t * @return now\n\t */\n\tpublic HiResDate getTime();\n\t\n\t/** let somebody start listening to our changes\n\t * \n\t * @param listener the new listener\n\t * @param propertyType the (optional) property to listen to. Use null if you don't mind\n\t */\n\tpublic void addListener(PropertyChangeListener listener, String propertyType);\n\n\t/** let somebody stop listening to our changes\n\t * \n\t * @param listener the old listener\n\t * @param propertyType the (optional) property to stop listening to. Use null if you don't mind\n\t */\n\tpublic void removeListener(PropertyChangeListener listener, String propertyType);\n\t\n}" ]
[ "0.54471296", "0.543696", "0.51593286", "0.49773026", "0.48950577", "0.48253414", "0.48243383", "0.4813533", "0.48109075", "0.4804092", "0.4788583", "0.47535983", "0.47271293", "0.47147465", "0.47123203", "0.46947125", "0.46909153", "0.46857485", "0.46803683", "0.46573794", "0.46564692", "0.46502525", "0.46502385", "0.46228486", "0.46216366", "0.46159834", "0.4614821", "0.46123907", "0.45891485", "0.45847103", "0.45782194", "0.4575795", "0.45731583", "0.45727897", "0.45623055", "0.45612422", "0.45605078", "0.45603943", "0.45537698", "0.45422554", "0.45355397", "0.4524762", "0.45242828", "0.451865", "0.45177978", "0.45147792", "0.45144242", "0.4507856", "0.45069963", "0.44950503", "0.44886598", "0.4488615", "0.4486398", "0.44730836", "0.4465051", "0.44563103", "0.4448261", "0.44442374", "0.44433337", "0.44416934", "0.44405368", "0.44328958", "0.44302717", "0.44248107", "0.44227937", "0.44199032", "0.44180706", "0.4412002", "0.44100204", "0.44084784", "0.44021273", "0.43992072", "0.4397699", "0.43959817", "0.43940988", "0.4393489", "0.43928963", "0.43924773", "0.43862954", "0.43779725", "0.43771604", "0.43753457", "0.43740186", "0.43704426", "0.4366943", "0.4365013", "0.4360374", "0.4357895", "0.4356976", "0.43564874", "0.4356444", "0.4351638", "0.43511167", "0.43508056", "0.43467638", "0.4345871", "0.4340942", "0.43379974", "0.43371958", "0.4335882" ]
0.47836348
11
Parse requested contents Used for Summary and Description properties Format: XX X can be any of the symbols below. Symbol Meaning Examples Method Used C Course Code ECSE 200 getCourseCode T Course Title Electric Circuits 1 getCourseTitle S Section 001 getSection Y Section Type Lecture getSectionType NOTES: o If multiple symbols are used for a single property, they are separated by a " ", e.g. "CS" will give : ECSE 200 001 o Parser only acts when it sees a known symbol o Lower and upper case are accepted
public String parsePattern(Course item, String pattern) { StringBuilder attributes = new StringBuilder(); pattern = pattern.toLowerCase(); for (char symbol : pattern.toCharArray()) { if (attributes.length() != 0) { attributes.append(" - "); } switch (symbol) { case 'c': attributes.append(item.getCode()); break; case 't': attributes.append(item.getTitle()); break; case 's': attributes.append(item.getSection()); break; case 'y': attributes.append(item.getType()); break; } } return attributes.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseProtocol(String protocol) {\n try (Scanner sc = new Scanner(protocol)) {\n //parse first line\n this.method = Method.valueOf(sc.next());\n this.url = sc.next();\n String httpVersion = sc.next();\n this.version = Double.parseDouble(httpVersion.substring(5));\n\n while (sc.hasNext(\".+:\")) {\n String header = sc.next();\n header = header.substring(0, header.indexOf(':'));\n String value = sc.next() + sc.nextLine();\n this.headings.put(header, value);\n }\n }\n\n }", "final public void parse() throws ParseException {\n\t\tToken x = null;\n\t\tjj_consume_token(20);\n\t\tgetColumns(true);\n\t\tjj_consume_token(REFER);\n\n\t\tx = jj_consume_token(ID);\n\t\tm_refcatalog = x.image;\n\t\tjj_consume_token(21);\n\t\tx = jj_consume_token(ID);\n\t\tm_reftable = x.image;\n\t\tjj_consume_token(20);\n\t\tgetColumns(false);\n\t\tgetActions();\n\t}", "public SymbolTable<String, SymbolData> parse() throws Exception {\n SymbolTable<String, SymbolData> symbolTable = new SymbolTable<String, SymbolData>();\n String currentJson = \"\";\n Optional<Symbol> currentSymbol = Optional.absent();\n for (String line : inputSource.readLines()) {\n //log.debug(line);\n Optional<Symbol> symbolHeader = headerParser.parseLine(line);\n // encountered a header line\n if(symbolHeader.isPresent()) {\n\n // put the accumalated json string in the map.\n if(currentSymbol.isPresent()) {\n symbolTable.put(currentSymbol.get().getName(), new SymbolData(currentSymbol.get(), currentJson));\n }\n\n // start with the new header.\n currentSymbol = symbolHeader;\n currentJson = \"\";\n continue;\n }\n\n if(!currentSymbol.isPresent()) continue;\n // detect dependencies line by line.\n for (Position dependency : referenceDetector.detectAllReferences(line)) {\n graph.addEdge(currentSymbol.get().getName(), dependency.getReferenceName().substring(1));\n }\n currentJson+=line;\n }\n\n // any remnant json has to go to the last symbol.\n if(currentSymbol.isPresent()) {\n symbolTable.put(currentSymbol.get().getName(), new SymbolData(currentSymbol.get(), currentJson));\n }\n\n\n\n return transform(symbolTable);\n\n }", "protected void parse() throws ParseException {\n String s;\n try {\n s=getFullText();\n } catch (IOException ioe) {\n if (ioe instanceof FileNotFoundException) {\n throw new DataNotFoundException (\"Could not find log file.\", ioe);\n } else {\n throw new ParseException (\"Error getting log file text.\", new File (getFileName()));\n }\n }\n StringTokenizer sk = new StringTokenizer(s);\n ArrayList switches = new ArrayList(10);\n while (sk.hasMoreElements()) {\n String el =sk.nextToken().trim();\n if (el.startsWith(\"-J\")) {\n if (!(el.equals(\"-J-verbose:gc\"))) {\n if (!(el.startsWith(\"-J-D\"))) {\n JavaLineswitch curr = new JavaLineswitch(el.substring(2));\n addElement (curr); \n }\n }\n }\n }\n }", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "protected void parseDescription(XMPMetadata metadata)\n\t\t\tthrows XmpParsingException, XMLStreamException, XmpSchemaException,\n\t\t\tXmpUnknownValueTypeException, XmpExpectedRdfAboutAttribute,\n\t\t\tBadFieldValueException {\n\t\tnsMap.resetComplexBasicTypesDeclarationInSchemaLevel();\n\t\tint cptNS = reader.get().getNamespaceCount();\n\t\tHashMap<String, String> namespaces = new HashMap<String, String>();\n\t\tfor (int i = 0; i < cptNS; i++) {\n\t\t\tnamespaces.put(reader.get().getNamespacePrefix(i), reader.get()\n\t\t\t\t\t.getNamespaceURI(i));\n\t\t\tif (nsMap.isComplexBasicTypes(reader.get().getNamespaceURI(i))) {\n\t\t\t\t// System.out.println(\"in parseDesc method: prefix:\"+reader.get().getNamespacePrefix(i)+\", nsURI:\"+reader.get().getNamespaceURI(i));\n\t\t\t\tnsMap.setComplexBasicTypesDeclarationForLevelSchema(reader\n\t\t\t\t\t\t.get().getNamespaceURI(i), reader.get()\n\t\t\t\t\t\t.getNamespacePrefix(i));\n\t\t\t}\n\t\t}\n\t\t// Different treatment for PDF/A Extension schema\n\t\t// System.out.println(PDFAExtensionSchema.PDFAEXTENSION+\";\"+PDFAExtensionSchema.PDFAPROPERTY+\";\"+PDFAExtensionSchema.PDFASCHEMA);\n\t\tif (namespaces.containsKey(PDFAExtensionSchema.PDFAEXTENSION)) {\n\t\t\tif (namespaces.containsKey(PDFAExtensionSchema.PDFAPROPERTY)\n\t\t\t\t\t&& namespaces.containsKey(PDFAExtensionSchema.PDFASCHEMA)) {\n\t\t\t\tif (namespaces\n\t\t\t\t\t\t.containsValue(PDFAExtensionSchema.PDFAEXTENSIONURI)\n\t\t\t\t\t\t&& namespaces\n\t\t\t\t\t\t.containsValue(PDFAExtensionSchema.PDFAPROPERTYURI)\n\t\t\t\t\t\t&& namespaces\n\t\t\t\t\t\t.containsValue(PDFAExtensionSchema.PDFASCHEMAURI)) {\n\t\t\t\t\tPDFAExtensionSchema schema = metadata\n\t\t\t\t\t\t\t.createAndAddPDFAExtensionSchemaWithNS(namespaces);\n\t\t\t\t\ttreatDescriptionAttributes(metadata, schema);\n\t\t\t\t\tparseExtensionSchema(schema, metadata);\n\n\t\t\t\t} else {\n\t\t\t\t\tthrow new XmpUnexpectedNamespaceURIException(\n\t\t\t\t\t\t\t\"Unexpected namespaceURI in PDFA Extension Schema encountered\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new XmpUnexpectedNamespacePrefixException(\n\t\t\t\t\t\t\"Unexpected namespace Prefix in PDFA Extension Schema\");\n\t\t\t}\n\n\t\t} else {\n\t\t\t// TODO Considering first namespace is that corresponding to the\n\t\t\t// schema (see if it must be changed)\n\t\t\tString namespaceUri = reader.get().getNamespaceURI(0);\n\t\t\tString namespacePrefix = reader.get().getNamespacePrefix(0);\n\t\t\tXMPSchema schema = nsMap.getAssociatedSchemaObject(metadata, namespaceUri, namespacePrefix);\n\t\t\tif (schema != null) {\n\t\t\t\tnamespaces.remove(namespacePrefix);\n\t\t\t} else {\n\t\t\t\tschema = metadata.createAndAddDefaultSchema(namespacePrefix,namespaceUri);\n\t\t\t}\n\t\t\tfor (int i = 1; i < cptNS; i++) {\n\t\t\t\tschema.setAttribute(new Attribute(XMPSchema.NS_NAMESPACE,\n\t\t\t\t\t\t\"xmlns\", reader.get().getNamespacePrefix(i), reader.get().getNamespaceURI(i)));\n\t\t\t}\n\t\t\ttreatDescriptionAttributes(metadata, schema);\n\t\t\twhile (reader.get().nextTag() == XMLStreamReader.START_ELEMENT) {\n\t\t\t\tparseProperty(schema, metadata);\n\t\t\t}\n\t\t}\n\n\t}", "public void parse(String content, String separator, NumberFormat numberFormat) throws Exception {\r\n\t\t\r\n\t\tScanner scanner = new Scanner(content);\r\n\t\t\r\n\t\theader = new Header();\r\n\t\t\r\n\t\tif(rows.size() > 0) {\r\n\t\t\trows.clear();\r\n\t\t}\r\n\t\t\r\n\t\tPattern metaPattern = Pattern.compile(\"'.*\");\r\n\t\tPattern headerPattern = Pattern.compile(\"'(.*)=([^;]*);*\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\twhile(scanner.hasNextLine()) {\r\n\t\t\t\tString line = scanner.nextLine();\r\n\t\t\t\r\n\t\t\t\tMatcher metaMatcher = metaPattern.matcher(line);\r\n\t\t\t\tif(metaMatcher.matches()) {\r\n\t\t\t\t\t// header or comment\r\n\t\t\t\t\t\r\n\t\t\t\t\tMatcher headerMatcher = headerPattern.matcher(line);\r\n\t\t\t\t\tif(headerMatcher.matches()) {\r\n\t\t\t\t\t\t// header\r\n\t\t\t\t\t\tString parameter = headerMatcher.group(1);\r\n\t\t\t\t\t\tString value = headerMatcher.group(2);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(parameter.equalsIgnoreCase(\"format\")) {\r\n\t\t\t\t\t\t\tif(Integer.parseInt(value) != 4) {\r\n\t\t\t\t\t\t\t\tthrow new Exception(\"Wrong format version\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if(parameter.equalsIgnoreCase(\"CheckUnit\")) {\r\n\t\t\t\t\t\t\theader.checkUnit = value;\r\n\t\t\t\t\t\t} else if(parameter.equalsIgnoreCase(\"CheckPlausibility\")) {\r\n\t\t\t\t\t\t\theader.checkPlausibility = value;\r\n\t\t\t\t\t\t} else if(parameter.equalsIgnoreCase(\"Source\")) {\r\n\t\t\t\t\t\t\theader.source = value;\r\n\t\t\t\t\t\t} else if(parameter.equalsIgnoreCase(\"TimeZone\")) {\r\n\t\t\t\t\t\t\theader.timeZone = value;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// read values\r\n\t\t\t\t\tRow row = new Row();\r\n\t\t\t\t\trow.fromCsv(line, separator, numberFormat);\r\n\t\t\t\t\trows.add(row);\r\n\t\t\t\t}\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\t\r\n\t}", "public static SeekInfoStruct parseSeekInfoLine(String line) {\n StringTokenizer tokens = new StringTokenizer(line, \" -=\");\n\n boolean canAcceptSeek;\n String identifier = tokens.nextToken();\n if (identifier.equals(\"<s>\")) // Skip the <s> identifier\n canAcceptSeek = true;\n else if (identifier.equals(\"<sn>\")) canAcceptSeek = false;\n else throw new IllegalArgumentException(\"Missing \\\"<s>\\\" or \\\"<sn>\\\" identifier\");\n\n int index = Integer.parseInt(tokens.nextToken());\n\n assertToken(tokens, \"w\"); // w=\n String name = tokens.nextToken();\n\n assertToken(tokens, \"ti\"); // ti=\n int titles = Integer.parseInt(tokens.nextToken(), 16);\n\n assertToken(tokens, \"rt\"); // rt=\n String ratingString = tokens.nextToken();\n char provShow = ' ';\n if (!Character.isDigit(ratingString.charAt(ratingString.length() - 1))) {\n provShow = ratingString.charAt(ratingString.length() - 1);\n ratingString = ratingString.substring(0, ratingString.length() - 1);\n }\n int rating = Integer.parseInt(ratingString);\n\n assertToken(tokens, \"t\"); // t=\n int time = Integer.parseInt(tokens.nextToken());\n\n assertToken(tokens, \"i\"); // i=\n int inc = Integer.parseInt(tokens.nextToken());\n\n assertToken(tokens, \"r\"); // r=\n boolean isRated = tokens.nextToken().equals(\"r\");\n\n assertToken(tokens, \"tp\"); // tp=\n String matchType = tokens.nextToken();\n\n assertToken(tokens, \"c\"); // c=\n char requestedColor = tokens.nextToken().charAt(0);\n\n assertToken(tokens, \"rr\"); // rr=\n int minRating = Integer.parseInt(tokens.nextToken());\n int maxRating = Integer.parseInt(tokens.nextToken());\n\n assertToken(tokens, \"a\"); // a=\n boolean isAutomaticAccept = tokens.nextToken().equals(\"t\");\n\n assertToken(tokens, \"f\"); // f=\n boolean isFormulaUsed = tokens.nextToken().equals(\"t\");\n\n return new SeekInfoStruct(\n canAcceptSeek,\n index,\n name,\n titles,\n rating,\n provShow,\n time,\n inc,\n isRated,\n matchType,\n requestedColor,\n minRating,\n maxRating,\n isAutomaticAccept,\n isFormulaUsed);\n }", "public void parse(final String content){\n\t\t// Datum\n\t\tdate = getDate(content);\n\t\t\n\t\twbc = getWBC(content);\n\t\trbc = getRBC(content);\n\t\thgb = getHGB(content);\n\t\thct = getHCT(content);\n\t\tmcv = getMCV(content);\n\t\tmch = getMCH(content);\n\t\tmchc = getMCHC(content);\n\t\tplt = getPLT(content);\n\t\tlym_percent = getLYMPercent(content);\n\t\tmxd_percent = getMXDPercent(content);\n\t\tneut_percent = getNEUTPercent(content);\n\t\tlym_volume = getLYMVolume(content);\n\t\tmxd_volume = getMXDVolume(content);\n\t\tneut_volume = getNEUTVolume(content);\n\t\trdw_sd = getRDWSD(content);\n\t\trdw_cv = getRDWCV(content);\n\t\tpdw = getPDW(content);\n\t\tmpv = getMPV(content);\n\t\tp_lcr = getPLCR(content);\n\t}", "public void parse(){\n\t\t//Read next line in content; timestamp++\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(instructionfile))) {\n\t\t String line;\n\t\t while ((line = br.readLine()) != null) {\n\t\t \t//divide the line by semicolons\n\t\t \tString[] lineParts = line.split(\";\");\n\t\t \tfor(String aPart: lineParts){\n\t\t\t \tSystem.out.println(\"Parser:\"+aPart);\n\n\t\t\t \t// process the partial line.\n\t\t\t \tString[] commands = parseNextInstruction(aPart);\n\t\t\t \tif(commands!=null){\n\t\t\t\t\t\t\n\t\t\t \t\t//For each instruction in line: TransactionManager.processOperation()\n\t\t\t \t\ttm.processOperation(commands, currentTimestamp);\n\t\t\t \t}\n\t\t \t}\n\t\t \t//Every new line, time stamp increases\n\t \t\tcurrentTimestamp++;\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n\t\t}\n\t}", "public String getContents()\r\n/* 156: */ {\r\n/* 157:282 */ return this.formulaString;\r\n/* 158: */ }", "public void parse() {\n if (commandSeparate.length == 1) {\n parseTaskType();\n } else if (commandSeparate.length == 2) {\n parseTaskType();\n index = commandSeparate[1];\n taskName = commandSeparate[1];\n } else {\n parseTaskType();\n parseTaskName();\n parseTaskDate();\n }\n }", "private String extractSpecial(StringBuilder description, String specialName)\n/* */ {\n/* 1440 */ String result = null;\n/* 1441 */ int lp = description.indexOf(specialName);\n/* 1442 */ if (lp != -1)\n/* */ {\n/* */ \n/* */ \n/* 1446 */ if ((lp == 0) || (description.charAt(lp - 1) == ';'))\n/* */ {\n/* */ \n/* */ \n/* 1450 */ int lpEnd = description.indexOf(\";%\", lp);\n/* */ \n/* 1452 */ if (lpEnd == -1) {\n/* 1453 */ lpEnd = description.length() - 1;\n/* */ }\n/* 1455 */ int lpStart = lp + specialName.length();\n/* 1456 */ while ((lpStart < lpEnd) && (PatternProps.isWhiteSpace(description.charAt(lpStart))))\n/* */ {\n/* 1458 */ lpStart++;\n/* */ }\n/* */ \n/* */ \n/* 1462 */ result = description.substring(lpStart, lpEnd);\n/* */ \n/* */ \n/* 1465 */ description.delete(lp, lpEnd + 1);\n/* */ }\n/* */ }\n/* 1468 */ return result;\n/* */ }", "public void parse() {\n }", "public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "CParser getParser();", "@Test\n void testParseTestcaseFrom50Specification(){\n String testcase = \"\\r\\n\" +\n \"/ISk5\\\\2MT382-1000\\r\\n\" +\n \"\\r\\n\" +\n \"1-3:0.2.8(50)\\r\\n\" +\n \"0-0:1.0.0(101209113020W)\\r\\n\" +\n \"0-0:96.1.1(4B384547303034303436333935353037)\\r\\n\" +\n \"1-0:1.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:1.8.2(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.2(123456.789*kWh)\\r\\n\" +\n \"0-0:96.14.0(0002)\\r\\n\" +\n \"1-0:1.7.0(01.193*kW)\\r\\n\" +\n \"1-0:2.7.0(00.000*kW)\\r\\n\" +\n \"0-0:96.7.21(00004)\\r\\n\" +\n \"0-0:96.7.9(00002)\\r\\n\" +\n \"1-0:99.97.0(2)(0-0:96.7.19)(101208152415W)(0000000240*s)(101208151004W)(0000000301*s)\\r\\n\" +\n \"1-0:32.32.0(00002)\\r\\n\" +\n \"1-0:52.32.0(00001)\\r\\n\" +\n \"1-0:72.32.0(00000)\\r\\n\" +\n \"1-0:32.36.0(00000)\\r\\n\" +\n \"1-0:52.36.0(00003)\\r\\n\" +\n \"1-0:72.36.0(00000)\\r\\n\" +\n \"0-0:96.13.0(303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F30313233343536373839\" +\n \"3A3B3C3D3E3F303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F)\\r\\n\" +\n \"1-0:32.7.0(220.1*V)\\r\\n\" +\n \"1-0:52.7.0(220.2*V)\\r\\n\" +\n \"1-0:72.7.0(220.3*V)\\r\\n\" +\n \"1-0:31.7.0(001*A)\\r\\n\" +\n \"1-0:51.7.0(002*A)\\r\\n\" +\n \"1-0:71.7.0(003*A)\\r\\n\" +\n \"1-0:21.7.0(01.111*kW)\\r\\n\" +\n \"1-0:41.7.0(02.222*kW)\\r\\n\" +\n \"1-0:61.7.0(03.333*kW)\\r\\n\" +\n \"1-0:22.7.0(04.444*kW)\\r\\n\" +\n \"1-0:42.7.0(05.555*kW)\\r\\n\" +\n \"1-0:62.7.0(06.666*kW)\\r\\n\" +\n \"0-1:24.1.0(003)\\r\\n\" +\n \"0-1:96.1.0(3232323241424344313233343536373839)\\r\\n\" +\n \"0-1:24.2.1(101209112500W)(12785.123*m3)\\r\\n\" +\n \"!EF2F\\r\\n\" +\n \"\\r\\n\";\n DSMRTelegram dsmrTelegram = ParseDsmrTelegram.parse(testcase);\n\n // CHECKSTYLE.OFF: ParenPad\n assertEquals(\"/ISk5\\\\2MT382-1000\", dsmrTelegram.getRawIdent());\n assertEquals(\"ISK\", dsmrTelegram.getEquipmentBrandTag());\n assertEquals(\"MT382-1000\", dsmrTelegram.getIdent());\n\n assertEquals(\"5.0\", dsmrTelegram.getP1Version());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:30:20+01:00\"), dsmrTelegram.getTimestamp());\n\n assertEquals(\"K8EG004046395507\", dsmrTelegram.getEquipmentId());\n assertEquals(\"0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?\", dsmrTelegram.getMessage());\n\n assertEquals( 2, dsmrTelegram.getElectricityTariffIndicator());\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedNormalTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedNormalTariff(), 0.001);\n assertEquals( 1.193, dsmrTelegram.getElectricityPowerReceived(), 0.001);\n assertEquals( 0.0, dsmrTelegram.getElectricityPowerReturned(), 0.001);\n assertEquals( 4, dsmrTelegram.getPowerFailures());\n assertEquals( 2, dsmrTelegram.getLongPowerFailures());\n\n assertEquals(2, dsmrTelegram.getPowerFailureEventLogSize());\n\n List<PowerFailureEvent> powerFailureEventLog = dsmrTelegram.getPowerFailureEventLog();\n assertEquals(2, powerFailureEventLog.size());\n assertPowerFailureEvent(powerFailureEventLog.get(0), \"2010-12-08T15:20:15+01:00\", \"2010-12-08T15:24:15+01:00\", \"PT4M\");\n assertPowerFailureEvent(powerFailureEventLog.get(1), \"2010-12-08T15:05:03+01:00\", \"2010-12-08T15:10:04+01:00\", \"PT5M1S\");\n\n assertEquals( 2, dsmrTelegram.getVoltageSagsPhaseL1());\n assertEquals( 1, dsmrTelegram.getVoltageSagsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSagsPhaseL3());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL1());\n assertEquals( 3, dsmrTelegram.getVoltageSwellsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL3());\n assertEquals( 220.1, dsmrTelegram.getVoltageL1(), 0.001);\n assertEquals( 220.2, dsmrTelegram.getVoltageL2(), 0.001);\n assertEquals( 220.3, dsmrTelegram.getVoltageL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getCurrentL1(), 0.001);\n assertEquals( 2, dsmrTelegram.getCurrentL2(), 0.001);\n assertEquals( 3, dsmrTelegram.getCurrentL3(), 0.001);\n assertEquals( 1.111, dsmrTelegram.getPowerReceivedL1(), 0.001);\n assertEquals( 2.222, dsmrTelegram.getPowerReceivedL2(), 0.001);\n assertEquals( 3.333, dsmrTelegram.getPowerReceivedL3(), 0.001);\n assertEquals( 4.444, dsmrTelegram.getPowerReturnedL1(), 0.001);\n assertEquals( 5.555, dsmrTelegram.getPowerReturnedL2(), 0.001);\n assertEquals( 6.666, dsmrTelegram.getPowerReturnedL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getMBusEvents().size());\n\n assertEquals( 3, dsmrTelegram.getMBusEvents().get(1).getDeviceType());\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getMBusEvents().get(1).getEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getMBusEvents().get(1).getTimestamp());\n assertEquals( 12785.123, dsmrTelegram.getMBusEvents().get(1).getValue(), 0.001);\n assertEquals( \"m3\", dsmrTelegram.getMBusEvents().get(1).getUnit());\n\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getGasEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getGasTimestamp());\n assertEquals(12785.123, dsmrTelegram.getGasM3(), 0.001);\n\n assertEquals(\"EF2F\", dsmrTelegram.getCrc());\n\n // The CRC of this testcase is invalid.\n // Or better: I have not been able to copy it from the documentation and\n // recreate the \"original\" record for which the provided CRC was calculated.\n // assertTrue(dsmrTelegram.isValidCRC());\n }", "@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}", "private void parseData() {\n\t\t\r\n\t}", "public void parse(Scanner S) {\n if (!S.expectedToken(Core.INPUT)) {\n Utility.expectedhelper(Core.INPUT, S.currentToken());\n System.exit(-1);\n }\n if (S.currentToken() == Core.ID) {\n id = S.getID();\n S.nextToken();\n } else {\n Utility.expectedhelper(Core.ID, S.currentToken());\n System.exit(-1);\n }\n if (!S.expectedToken(Core.SEMICOLON)) {\n Utility.expectedhelper(Core.SEMICOLON, S.currentToken());\n System.exit(-1);\n }\n }", "@Test\n public void validHeaderTest(){\n //test for a complete header with some missing values\n Header h;\n SimpleReader sr = new SimpleReader();\n String fileForLexer = sr.FileToString(\"sample_abc/piece1.abc\");\n abcLexer lex = new abcLexer(fileForLexer);\n abcParser parser = new abcParser(lex);\n h=parser.parseHeader();\n assertEquals(h.getIndex(),\"1\");\n assertEquals(h.getTitle(),\"PieceNo.1\");\n assertEquals(h.getComposer(),\"Unknown\");//uses a default value\n assertEquals(h.getIndex(),\"1\");\n assertEquals(h.getMeter(),\"4/4\");\n assertEquals(h.getNoteLength(),\"1/4\");\n assertEquals(h.getTempo(),\"140\");\n assertEquals(h.getKey(),\"C\");\n }", "protected final void parses() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n default:\n return;\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n }\n \n float x2 = parseNumber();\n skipCommaSpaces();\n float y2 = parseNumber();\n skipCommaSpaces();\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n float smoothX = currentX * 2 - smoothCCenterX;\n float smoothY = currentY * 2 - smoothCCenterY;\n smoothCCenterX = currentX + x2;\n smoothCCenterY = currentY + y2;\n currentX += x;\n currentY += y;\n\n p.curveTo(smoothX, smoothY,\n smoothCCenterX, smoothCCenterY,\n currentX, currentY);\n\n smoothQCenterX = currentX;\n smoothQCenterY = currentY;\n skipCommaSpaces();\n }\n }", "private static String[] parseNameAndDescription(String s) {\n Pattern p = Pattern.compile(\"([\\\\w ]*) - ([\\\\w* ]*)\", Pattern.CASE_INSENSITIVE);\n Matcher matcher = p.matcher(s);\n String name = null;\n String description = null;\n if (matcher.find()) {\n name = matcher.group(1);\n description = matcher.group(2);\n return new String[]{name, description};\n } else {\n return new String[]{name, null};\n }\n }", "private void parse(String _content){\n\t\tString[] segmts = _content.split(\"\\\\s+\");\n\t\trelKeyTimes = new double[segmts.length + 2];\n\t\tfor(int i = 0; i < segmts.length; i++){\n\t\t\ttry{\n\t\t\t\tif(timingIsAbsolute){\n\t\t\t\t\trelKeyTimes[i + 1] = (float)(new CMsgTime(segmts[i])).getTotalMillis();\n\t\t\t\t} else {\n\t\t\t\t\trelKeyTimes[i + 1] = Float.parseFloat(segmts[i]);\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException e){;\n\t\t\t} catch (ScriptMsgException e){;}\n\t\t\t\n\t\t}\n\t\t// make sure the last keyTime is a perfect 1.0:\n\t\trelKeyTimes[0] = 0.0f;\n\t\trelKeyTimes[relKeyTimes.length - 1] = 1.0f;\n\t}", "private void parsePropertyDefinition(SchemaDescription desc)\n\t\t\tthrows XmpParsingException, XMLStreamException,\n\t\t\tBadFieldValueException {\n\t\t// <rdf:Seq>\n\t\texpectNextSpecificTag(XMLStreamReader.START_ELEMENT, \"Seq\",\n\t\t\t\t\"Expected Seq Declaration\");\n\t\t// Each property definition\n\t\tint elmtType = reader.get().nextTag();\n\t\tString name, type, category, description;\n\t\twhile (elmtType == XMLStreamReader.START_ELEMENT) {\n\t\t\texpectCurrentLocalName(\"li\");\n\t\t\telmtType = reader.get().nextTag();\n\t\t\tname = null;\n\t\t\ttype = null;\n\t\t\tcategory = null;\n\t\t\tdescription = null;\n\n\t\t\twhile (elmtType == XMLStreamReader.START_ELEMENT) {\n\t\t\t\tif (reader.get().getLocalName().equals(\"name\")) {\n\t\t\t\t\tname = reader.get().getElementText();\n\t\t\t\t} else if (reader.get().getLocalName().equals(\"valueType\")) {\n\t\t\t\t\ttype = reader.get().getElementText();\n\t\t\t\t} else if (reader.get().getLocalName().equals(\"category\")) {\n\t\t\t\t\tcategory = reader.get().getElementText();\n\t\t\t\t} else if (reader.get().getLocalName().equals(\"description\")) {\n\t\t\t\t\tdescription = reader.get().getElementText();\n\t\t\t\t} else {\n\t\t\t\t\tthrow new XmpUnexpectedElementException(\n\t\t\t\t\t\t\t\"Unexpected property definition in one of Properties Descriptions of PDF/A Extension schemas description\");\n\t\t\t\t}\n\t\t\t\telmtType = reader.get().nextTag();\n\t\t\t}\n\t\t\tif ((name != null) && (type != null) && (category != null)\n\t\t\t\t\t&& (description != null)) {\n\t\t\t\tdesc.addProperty(name, type, category, description);\n\t\t\t} else {\n\t\t\t\tthrow new XmpRequiredPropertyException(\n\t\t\t\t\t\t\"one property declaration in PDF/A Extension is not complete\");\n\t\t\t}\n\t\t\t// expectNextTag(XMLStreamReader.END_ELEMENT,\"Expected element end\");\n\t\t\telmtType = reader.get().nextTag();\n\t\t}\n\t\texpectNextSpecificTag(XMLStreamReader.END_ELEMENT, \"property\",\n\t\t\t\t\"Expected End of Properties Declaration\");\n\t}", "public void testParsing2() throws Exception {\n String data = \"8=FIX.4.2\\0019=76\\001\";\n data += \"35=6\\001\";\n data += \"23=IDENTIFIER\\001\";\n data += \"28=N\\001\";\n data += \"55=MSFT\\001\";\n data += \"54=1\\001\";\n data += \"711=2\\001\";\n data += \"311=DELL\\001\";\n data += \"318=USD\\001\";\n data += \"311=IBM\\001\";\n data += \"318=CAD\\001\";\n data += \"10=037\\001\";\n Message message = new Message(data, DataDictionaryTest.getDictionary());\n \n assertHeaderField(message, \"FIX.4.2\", BeginString.FIELD);\n assertHeaderField(message, \"76\", BodyLength.FIELD);\n assertHeaderField(message, MsgType.INDICATION_OF_INTEREST, MsgType.FIELD);\n assertBodyField(message, \"IDENTIFIER\", IOIid.FIELD);\n assertTrailerField(message, \"037\", CheckSum.FIELD);\n IndicationOfInterest.NoUnderlyings valueMessageType = new IndicationOfInterest.NoUnderlyings();\n message.getGroup(1, valueMessageType);\n assertEquals(\"wrong value\", \"DELL\", valueMessageType.getString(UnderlyingSymbol.FIELD));\n assertEquals(\"wrong value\", \"USD\", valueMessageType.getString(UnderlyingCurrency.FIELD));\n message.getGroup(2, valueMessageType);\n assertEquals(\"wrong value\", \"IBM\", valueMessageType.getString(UnderlyingSymbol.FIELD));\n assertEquals(\"wrong value\", \"CAD\", valueMessageType.getString(UnderlyingCurrency.FIELD));\n }", "List<Object> parse(String inputLine) {\n List<Object> lo = new ArrayList<>();\n int lineLength = inputLine.length();\n for (int i = 0; i < lineLength; i++) {\n char c = inputLine.charAt(i);\n //creator of constant:\n if (isPartOfNumber(c)) {\n String constantValue = \"\";\n for (; i < lineLength; i++) {\n c = inputLine.charAt(i);\n if (!isPartOfNumber(c)) {\n break;\n }\n constantValue += c;\n }\n //assign constant\n lo.add(new Constant(Double.parseDouble(constantValue)));\n if (i == lineLength) {\n break;\n }\n }\n switch (c) {\n case '(':\n lo.add(Brackets.OPENING);\n break;\n case ')':\n lo.add(Brackets.CLOSING);\n break;\n case '²':\n lo.add(Operators.SQUARE);\n break;\n case '√':\n lo.add(Operators.SQUARE_ROOT);\n break;\n case '÷':\n lo.add(Operators.DIVIDE);\n break;\n case '×':\n lo.add(Operators.MULTIPLY);\n break;\n case '%':\n lo.add(Operators.PERCENTAGE);\n break;\n case '+':\n lo.add(Operators.ADD);\n break;\n case '−':\n lo.add(Operators.SUBTRACT);\n break;\n default:\n throw new IllegalArgumentException(\"Unknown symbol used as input string\");\n }\n }\n return lo;\n }", "private SourceFile _parseString(String txt) throws ParseException {\n ACParser p = new ACParser(txt);\n return p.SourceFile();\n }", "private Symbol parse(Expression e) {\n Symbol ret = null;\n if (e instanceof AccessExpression) {\n ret = new AccessSymbol((AccessExpression)e);\n } else if (e instanceof Identifier) {\n ret = ((Identifier)e).getSymbol();\n } else if (e instanceof ArrayAccess) {\n ret = parse(((ArrayAccess)e).getArrayName());\n } else if (e instanceof Typecast) {\n ret = parse((Expression)e.getChildren().get(0));\n ////////////////////////////////////////////////////////////////////////\n // ConditionalExpression, FunctionCall, CommaExpression, and\n // BinaryExpression is not handled in general. Temporarily, the most\n // representative expression is parsed, which may be incorrect, so the\n // high-level passes that uses AccessSymbol must handle these cases\n // properly.\n } else if (e instanceof ConditionalExpression) {\n PrintTools.printlnStatus(1, \"[WARNING] Symbol is obscure for\", e);\n ret = parse(((ConditionalExpression)e).getTrueExpression());\n } else if (e instanceof FunctionCall) {\n PrintTools.printlnStatus(1, \"[WARNING] Symbol is obscure for\", e);\n ret = parse(((FunctionCall)e).getName());\n } else if (e instanceof CommaExpression) {\n PrintTools.printlnStatus(1, \"[WARNING] Symbol is obscure for\", e);\n ret = parse((Expression)e.getChildren().get(\n e.getChildren().size() - 1));\n } else if (e instanceof BinaryExpression) {\n PrintTools.printlnStatus(1, \"[WARNING] Symbol is obscure for\", e);\n ret = parse(((BinaryExpression)e).getLHS());\n ////////////////////////////////////////////////////////////////////////\n } else if (e instanceof UnaryExpression) {\n UnaryOperator op = ((UnaryExpression)e).getOperator();\n Expression ue = ((UnaryExpression)e).getExpression();\n ret = parse(ue);\n if (op == UnaryOperator.DEREFERENCE) {\n ret = new DerefSymbol(ret);\n }\n } else {\n throw new InternalError(\"failed to parse \" + e + \"(\" +\n e.getClass().getName() + \")\");\n }\n return ret;\n }", "@Override\n public RecordType parseMetadata() {\n \n this.stationIndex = StationLookup.lookup(getStationId(this.filename));\n \n try {\n reader.mark(READ_AHEAD_LIMIT);\n String line = null;\n boolean headerRead = false;\n List<Variable> vars = null;\n while (null != (line = reader.readLine())) {\n Matcher matcher = headerLinePattern.matcher(line);\n if (matcher.matches()) {\n vars = headerVariables(matcher.group(1));\n reader.mark(READ_AHEAD_LIMIT);\n headerRead = true;\n }\n else if (headerRead) {\n matcher = dataLinePattern.matcher(line);\n if (matcher.matches()) {\n String date = matcher.group(1);\n Instant timestep = Instant.parse(date, getInputDateFormatter());\n this.baseDate = timestep;\n \n RecordType recordType = new RecordType(\"days since \" + baseDate.toString());\n for (Variable var : vars) {\n recordType.addType(var);\n }\n \n reader.reset();\n return recordType;\n }\n }\n }\n \n }\n catch (IOException ex) {\n LOG.debug(\"Error reading metadata\", ex);\n }\n return null;\n }", "@Test\n public void voicesAndvarMeterHeaderTest(){\n Header h;\n SimpleReader sr = new SimpleReader();\n String fileForLexer = sr.FileToString(\"sample_abc/invention.abc\");\n abcLexer lex = new abcLexer(fileForLexer);\n abcParser parser = new abcParser(lex);\n h=parser.parseHeader();\n assertEquals(h.getMeter(),\"4/4\");// this will test for M:C\n ArrayList<String> voice = new ArrayList<String>();\n voice.add(\"V:1\");\n voice.add(\"V:2\");\n assertEquals(h.getVoice(),voice);\n }", "private TraceParser genParser() throws ParseException {\n TraceParser parser = new TraceParser();\n parser.addRegex(\"^(?<VTIME>)(?<TYPE>)$\");\n parser.addPartitionsSeparator(\"^--$\");\n return parser;\n }", "private void parseMaterialProperties(String line) {\n int colonIdx = line.indexOf(\":\");\n //find matdef file\n if (colonIdx != -1) {\n line = line.replaceFirst(\"Material\", \"\");\n line = line.replace(\"{\", \"\");\n String[] lines = line.split(\":\");\n setName(lines[0].trim());\n setMatDefName(lines[1].trim());\n }\n }", "public MultimediaPart parse(CompositionInstruction instruction) throws IOException{\n for (MultimediaParser parser : parsers) {\n try {\n return parser.parse(instruction);\n } catch (Exception e) {\n log.debug(\"{} could not parse {}\", parser.getClass().getSimpleName(), instruction.dvl().url());\n log.debug(\"Parsing error: \", e);\n }\n }\n String parserList = \"\";\n for (MultimediaParser parser : parsers) {\n parserList += parser.getClass().getSimpleName() + \" \";\n }\n throw new IOException(\"No parsers able to parse \" + instruction.dvl().url() + \", check debug log! Tried parsers: \" + parserList);\n }", "private void processTag(String p_content)\n {\n StringBuffer tagName = new StringBuffer();\n Hashtable attributes = new Hashtable();\n boolean bEndTag;\n\n int i = eatWhitespaces(p_content, 0);\n\n bEndTag = i < p_content.length() && p_content.charAt(i) == '/';\n\n //read the tag name...\n while (i < p_content.length() &&\n !Character.isWhitespace(p_content.charAt(i)))\n {\n tagName.append(p_content.charAt(i));\n\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n\n //read the attributes...\n StringBuffer attributeName = new StringBuffer();\n StringBuffer attributeValue = new StringBuffer();\n\n while (i < p_content.length())\n {\n try\n {\n i = eatWhitespaces(p_content, i);\n\n //read the name...\n while (!Character.isWhitespace(p_content.charAt(i)) &&\n p_content.charAt(i) != '=')\n {\n attributeName.append(p_content.charAt(i));\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n if (p_content.charAt(i) == '=')\n {\n while (p_content.charAt(i) != '\"')\n {\n i++;\n }\n i++;\n while (p_content.charAt(i) != '\"')\n {\n attributeValue.append(p_content.charAt(i));\n i++;\n }\n i++;\n }\n\n attributes.put(attributeName.toString(),\n attributeValue.toString());\n\n attributeName.setLength(0);\n attributeValue.setLength(0);\n }\n catch (IndexOutOfBoundsException e)\n {\n // tough luck the TMX wasn't as well written as we thought...\n // CvdL: TODO: throw an exception!!\n }\n }\n\n if (bEndTag)\n {\n m_handler.processEndTag(tagName.substring(1),\n \"<\" + p_content + \">\");\n }\n else\n {\n m_handler.processTag(tagName.toString(), attributes,\n \"<\" + p_content + \">\");\n }\n }", "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparsePageForPageObjects();\n\t\tparsePageForSections();\n\t}", "public void testParser() {\n\n String[] accessNetworkInfo = {\n\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd]; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; a-b.c1; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; 127.0.0.1; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\"\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\";\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\"ip=123.123.123.123\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd];rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd]\\n\",\n \"P-Access-Network-Info: IEEE-802.11\\n\",\n \"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE\\n\"\n\n };\n\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo);\n \n //test one more\n String[] accessNetworkInfo_2 = {\n \"P-Access-Network-Info: IEEE-802.11\\n\",\n \"P-Access-Network-Info: IEEE-802.11, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE\\n\",\n \"P-Access-Network-Info: IEEE-802.11, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDF\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN; utran-cell-id-3gpp=262010063F423802;network-provided,3GPP-E-UTRAN-FDD; utran-cell-id-3gpp=262010063F423802\\n\",\n \"P-Access-Network-Info: IEEE-802.11;i-wlan-node-id=74da38582ba4\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=262010063f423802\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN;utran-cell-id-3gpp=\\\"262010063F423802\\\";network-provided,3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=262010063f423802\\n\"\n };\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo_2);\n String token = \"A1-.%*_+`'~\";\n String[] accessNetworkInfo_3 = {\n \"P-Access-Network-Info: IEEE-802.11; network-provided\\n\",\n \"P-Access-Network-Info: IEEE-802.11; ipv4=[2345:3456::]\\n\",\n //token\n \"P-Access-Network-Info: \"+token+\"\\n\",\n //hostname\n \"P-Access-Network-Info: IEEE-802.11;AaB123=www.example-test.example.com\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=www.example-test.example.com.\\n\",\n //IPv4address \n \"P-Access-Network-Info: IEEE-802.11;AaB123=1.1.1.1\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=0.0.0.0\\n\",\n //IPv6reference\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A::99B]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C:22D]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[::11C]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[11C::22D]\\n\",\n //hexpart [ \":\" IPv4address ]\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[11C::12.04.02.99]\\n\",\n //IPv6reference quoted\n \"P-Access-Network-Info: IEEE-802.11;AaB123=\\\"[11C::12.04.02.99]\\\"\\n\",\n //Multiple IP6\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C:22D];cc231=[11C::12.04.02.99]\\n\",\n };\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo_3);\n\n }", "public abstract void sessionDescription(String sd) throws ParseException;", "public void parseHeader() {\n\t\tthis.release = (Integer) this.headerData.get(0);\n\t\tthis.endian = (ByteOrder) this.headerData.get(1);\n\t\tthis.K = (Short) this.headerData.get(2);\n\t\tthis.datasetLabel = (String) this.headerData.get(4);\n\t\tthis.datasetTimeStamp = (String) this.headerData.get(5);\n\t\tthis.mapOffset = (Integer) this.headerData.get(6);\n\t}", "public void parse() throws Exception {\r\n\t\tToken token;\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\ttry {\r\n\t\t\t// Loop over each token until the end of file.\r\n\t\t\twhile (!((token = nextToken()) instanceof EofToken)) {\r\n\t\t\t\tTokenType tokenType = token.getType();\r\n\t\t\t\tif (tokenType != ERROR) {\r\n\t\t\t\t\t// Format each token.\r\n\t\t\t\t\tsendMessage(new Message(TOKEN, new Object[] {\r\n\t\t\t\t\t\t\ttoken.getLineNumber(), token.getPosition(),\r\n\t\t\t\t\t\t\ttokenType, token.getText(), token.getValue() }));\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorHandler.flag(token,\r\n\t\t\t\t\t\t\t(OracleErrorCode) token.getValue(), this);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Send the parser summary message.\r\n\t\t\tfloat elapsedTime = (System.currentTimeMillis() - startTime) / 1000f;\r\n\t\t\tsendMessage(new Message(PARSER_SUMMARY, new Number[] {\r\n\t\t\t\t\ttoken.getLineNumber(), getErrorCount(), elapsedTime }));\r\n\t\t} catch (java.io.IOException ex) {\r\n\t\t\terrorHandler.abortTranslation(IO_ERROR, this);\r\n\t\t}\r\n\t}", "String getContentFormat();", "private static List<TokenInfo> parsePara(String args) {\n\t\tList<TokenInfo> tokens = new ArrayList<TokenInfo>();\n\t\tStringBuffer token = new StringBuffer();\n\t\tint status = 0;\n\t\tfor_bp: for (int i = 0; i < args.length(); i++) {\n\t\t\tchar c = args.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase ' ': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '-': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstatus = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\tcase 'd':\n\t\t\tcase 'e':\n\t\t\tcase 'f':\n\t\t\tcase 'g':\n\t\t\tcase 'h':\n\t\t\tcase 'i':\n\t\t\tcase 'j':\n\t\t\tcase 'k':\n\t\t\tcase 'l':\n\t\t\tcase 'm':\n\t\t\tcase 'n':\n\t\t\tcase 'o':\n\t\t\tcase 'p':\n\t\t\tcase 'q':\n\t\t\tcase 'r':\n\t\t\tcase 's':\n\t\t\tcase 't':\n\t\t\tcase 'u':\n\t\t\tcase 'v':\n\t\t\tcase 'w':\n\t\t\tcase 'x':\n\t\t\tcase 'y':\n\t\t\tcase 'z':\n\t\t\tcase 'A':\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'D':\n\t\t\tcase 'E':\n\t\t\tcase 'F':\n\t\t\tcase 'G':\n\t\t\tcase 'H':\n\t\t\tcase 'I':\n\t\t\tcase 'J':\n\t\t\tcase 'K':\n\t\t\tcase 'L':\n\t\t\tcase 'M':\n\t\t\tcase 'N':\n\t\t\tcase 'O':\n\t\t\tcase 'P':\n\t\t\tcase 'Q':\n\t\t\tcase 'R':\n\t\t\tcase 'S':\n\t\t\tcase 'T':\n\t\t\tcase 'U':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'X':\n\t\t\tcase 'Y':\n\t\t\tcase 'Z': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '0':\n\t\t\tcase '1':\n\t\t\tcase '2':\n\t\t\tcase '3':\n\t\t\tcase '4':\n\t\t\tcase '5':\n\t\t\tcase '6':\n\t\t\tcase '7':\n\t\t\tcase '8':\n\t\t\tcase '9': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\ttoken.append('-');\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttokenIn(tokens, token, status);\n\n\t\treturn tokens;\n\t}", "public LinkedList scannerTRS(String content) {\n \n Errors.clear();\n tokens.clear();\n char[] chars = content.toCharArray();\n\n int state = 0;\n Token t = new Token();\n String aux = \"\";\n int row = 0;\n int column = 0;\n //recorre todos los caracteres \n for (int i = 0; i < chars.length; i++) {\n\n switch (state) {\n case 0:\n // Estado 0 del automata\n if (chars[i] == '#') {\n tokens.add(new Token(0, \"#\", row, column,\"Caracter especial #\"));\n row++;\n } else if (chars[i] == '*') {\n tokens.add(new Token(1, \"*\", row, column,\"Caracter especial *\"));\n row++;\n } else if (chars[i] == '-') {\n tokens.add(new Token(4, \"-\", row, column,\"Caracter especial -\"));\n aux = \"\";\n\n } else if (Character.isLetter(chars[i])) {\n //Reconociendo un id\n aux += Character.toString(chars[i]);\n state = 6;\n row++;\n } else if (Character.isDigit(chars[i])) {\n //numero\n aux += Character.toString(chars[i]);\n state = 7;\n row++;\n\n } else if (chars[i] == 10 || chars[i] == 11 || chars[i] == 9 || chars[i] == 13 || chars[i] == 65535) {//Salto de linea\n column++;\n row = 0;\n } else if (chars[i] == 32) {\n\n row++;\n } else if (chars[i] == '/') {\n state = 1;\n aux += Character.toString(chars[i]);\n row++;\n } else if (chars[i] == '<') {\n aux += Character.toString(chars[i]);\n state = 3;\n row++;\n\n } else {\n int a = chars[i];\n System.out.println(a);\n Errors.add(new Erro(\"Error lexico\", row, column, String.valueOf(chars[i])));\n System.out.println(\"Error: \" + String.valueOf(chars[i]));\n }\n\n break;\n case 1:\n // code block\n if (chars[i] == '/') {\n state = 2;\n aux += Character.toString(chars[i]);\n row++;\n } else {\n Errors.add(new Erro(\"Error lexico\", row, column, \"/\"));\n i--;\n aux=\"\";\n state = 0;\n\n }\n break;\n case 2:\n if (chars[i] == 10 || chars[i] == 11 || chars[i] == 9 || chars[i] == 13) {\n state = 0;\n column++;\n row = 0;\n tokens.add(new Token(5, aux, row, column,\"Comentario unilinea\"));\n aux=\"\";\n }else{\n aux += Character.toString(chars[i]);\n row++;\n }\n break;\n case 3:\n if (chars[i] == '!') {\n state = 4;\n row++;\n aux += Character.toString(chars[i]);\n } else {\n \n Errors.add(new Erro(\"Error lexico\", row, column, \"<\"));\n aux=\"\";\n row++;\n i--;\n\n }\n break;\n case 4:\n if (chars[i] == '!') {\n state = 5;\n aux += Character.toString(chars[i]);\n row++;\n } else {\n aux += Character.toString(chars[i]);\n if (chars[i] == 13 || chars[i] == 13) {\n column++;\n row = 0;\n } else {\n row++;\n }\n }\n break;\n case 5:\n if (chars[i] == '>') {\n state = 0;\n row++;\n aux += Character.toString(chars[i]);\n tokens.add(new Token(5, aux, row, column,\"Comentario multilinea\"));\n aux=\"\";\n\n } else {\n state = 4;\n aux += Character.toString(chars[i]);\n row++;\n }\n break;\n case 6://IDENTIFICADOR\n if (Character.isDigit(chars[i]) || Character.isLetter(chars[i]) || chars[i] == '_') {\n aux += String.valueOf(chars[i]);\n row++;\n } else {\n tokens.add(new Token(3, aux, row, column,\"Identificador\"));\n aux = \"\";\n state = 0;\n i--;\n }\n break;\n case 7:\n if (Character.isDigit(chars[i])) {\n aux += String.valueOf(chars[i]);\n row++;\n } else {\n tokens.add(new Token(2, aux, row, column, \"Numero\"));\n aux = \"\";\n state = 0;\n i--;\n }\n\n break;\n\n }\n }\n\n return tokens;\n }", "private StockDividend parse(String symbol) throws IOException, ParseException {\n File input = new File(this.directory, symbol + \".html\");\n if (!input.exists()) {\n return null;\n }\n\n // result object\n StockDividend dividend = new StockDividend();\n\n // parse title\n Document doc = Jsoup.parse(input, \"UTF-8\", \"http://www.aastocks.com\");\n String title = doc.select(\"title\").first().text();\n int i = title.lastIndexOf(\"(\");\n dividend.setName(StringUtils.trim(title.substring(0, i)));\n dividend.setCode(title.substring(i + 1, i + 6));\n\n // parse table\n Element table = doc.select(\"#cp_repDHData_Panel1_0 + table\").first();\n Element tbody = table.select(\"tbody + tbody\").first();\n Element row = tbody.select(\"tr\").first();\n if (row.child(0).ownText().length() >= 10) {\n dividend.setPublicDate(DateUtils.parseDate(row.child(0).ownText(), \"yyyy/MM/dd\"));\n }\n if (row.child(1).ownText().length() >= 4) {\n dividend.setYear(row.child(1).ownText());\n }\n dividend.setReason(row.child(2).ownText());\n dividend.setDescription(row.child(3).text());\n dividend.setMethod(row.child(4).ownText());\n if (row.child(5).ownText().length() >= 10) {\n dividend.setRightsOffDate(DateUtils.parseDate(row.child(5).ownText(), \"yyyy/MM/dd\"));\n }\n if (row.child(6).ownText().length() >= 20) {\n String text = row.child(6).ownText();\n dividend.setTransferBegin(\n DateUtils.parseDate(text.substring(0, text.indexOf(\"-\")), \"yyyy/MM/dd\"));\n dividend\n .setTransferEnd(DateUtils.parseDate(text.substring(text.indexOf(\"-\") + 1), \"yyyy/MM/dd\"));\n } else if (row.child(6).ownText().length() >= 10) {\n dividend.setTransferEnd(DateUtils.parseDate(row.child(6).ownText(), \"yyyy/MM/dd\"));\n }\n if (row.child(7).ownText().length() >= 10) {\n dividend.setDivideDate(DateUtils.parseDate(row.child(7).ownText(), \"yyyy/MM/dd\"));\n }\n\n return dividend;\n }", "void Parse(Source source);", "@Test\n public void test() throws ParseException {\n String test1 = \"klasse Test{ voeruit() { getal number is 1; } }\";\n parse(test1, \"program\");\n }", "public String getContent(String content)\n\t{\n\t\treturn prop.getProperty(content);\n\t}", "public String getContents()\r\n/* 40: */ {\r\n/* 41:104 */ return \"\";\r\n/* 42: */ }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "private void readHeader(byte[] content){\n StringBuilder header = new StringBuilder();\n char c;\n int j = 0;\n for (int i = 0; i < 3; ++i){\n c = (char) content[j];\n header.append(c);\n ++j;\n if(c == '#')--i;\n while((c = (char) content[j]) != '\\n') {\n header.append(c);\n ++j;\n }\n header.append(c);\n ++j;\n }\n this.header = header.toString();\n this.headerSize = header.length();\n\n j = 0;\n for(int i = 0; i < 3; ++i){\n c = header.charAt(j);\n if(c == '#'){\n while(header.charAt(j) != '\\n')++j;\n ++j;\n --i;\n } else{\n if(i == 0){\n while(header.charAt(j) != '\\n')++j;\n ++j;\n } else if(i==1){\n StringBuilder width = new StringBuilder();\n StringBuilder height = new StringBuilder();\n while(c != ' '){\n width.append(c);\n ++j;\n c = header.charAt(j);\n }\n ++j;\n c = header.charAt(j);\n while(c != '\\n' && c != '#' && c != ' '){\n height.append(c);\n ++j;\n c = header.charAt(j);\n }\n while(header.charAt(j)!='\\n')++j;\n ++j;\n this.width = Integer.parseInt(width.toString());\n this.height = Integer.parseInt(height.toString());\n } else {\n StringBuilder resolution = new StringBuilder();\n while(c != '\\n'){\n resolution.append(c);\n ++j;\n c = header.charAt(j);\n }\n this.resolution = Integer.parseInt(resolution.toString());\n }\n }\n }\n }", "public void startAnalysis() throws IOException {\n if (line.length() == 0)\n return;\n\n for (String item : breakDown()) {\n if (Condition.isKeyword(item)) {\n wordArray.addWord(item, Symbol.valueOf(item + \"sym\"));\n } else if (item.equals(Condition.Semicolon)) {\n wordArray.addWord(Condition.Semicolon, Symbol.semicolon);\n } else {\n int count = item.codePointCount(0, item.length());\n\n for (int i = 0; i < count; i++) {\n int[] point = {item.codePointAt(i)};\n String character = new String(point, 0, 1);\n\n if (Condition.isLetter(character)) {\n i = generateToken(count, i, item, character, \"Identifier\", Condition.toIdentifier());\n } else if (Condition.isDigit(character)) {\n i = generateToken(count, i, item, character, \"Number\", Condition.toNumber());\n } else if (Condition.isOperator(character)) {\n i = generateToken(count, i, item, character, \"Symbol\", Condition.toSymbol());\n } else if (Condition.isParentheses(character)) {\n wordArray.addWord(character, legalCharMap.get(character));\n } else {\n throw new IOException(\"Position \" + line.indexOf(character) +\n \" occur the unexpected char \\'\" + character + \"\\'.\");\n }\n }\n }\n }\n wordArray.addWord(\".\", Symbol.period);\n }", "public List<ReceiptLineItem> Parse() {\n List<ReceiptLineItem> receiptLineItems = new ArrayList<>();\n\n ArrayList<String> order_content = GetOrderContent();\n resolveInlined(order_content);\n ArrayList<Integer> categoryPositions = FindEachCategoryPosition(order_content);\n\n //Resolve the item sections for each category\n // startLine, endLine: start and end of each category\n for (int categoryIndex = 0; categoryIndex < categoryPositions.size() - 1; categoryIndex++) {\n int startLine = categoryPositions.get(categoryIndex);\n int endLine = categoryPositions.get(categoryIndex + 1);\n if ((endLine - startLine - 2) % ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE != 0) {\n ResolveTheItemSection(order_content, startLine + 1, endLine - 1);\n }\n }\n\n RemoveCategoryNameChunk(order_content);\n\n // Add to receiptLineItems for each item section\n for (int index = 0; index < order_content.size(); index = index + ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE)\n receiptLineItems.add(ParseItem(order_content.subList(index, index + ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE)));\n\n return receiptLineItems;\n }", "private String parse(String fileText) throws InvalidFileContentsException {\n if (!validFileText(fileText)) {\n throw new InvalidFileContentsException(\"Invalid text found in file.\");\n }\n\n return fileText.substring(fileText.indexOf(\"{\") + 1, fileText.indexOf(\"}\"));\n }", "public void parse()\n {\n FormulaScanner scanner = new FormulaScanner(myFormulaText);\n\n FormulaScanner.Token token = scanner.getNextToken();\n if (token == FormulaScanner.Token.TOKEN_WHITESPACE)\n token = scanner.getNextToken();\n\n // Parse any cell references found.\n while (token.getCode() >= 0 && token != FormulaScanner.Token.TOKEN_EOI)\n {\n switch(token)\n {\n case TOKEN_WHITESPACE:\n addCellReferenceIfFound();\n mySheetName = null;\n myCellReference = null;\n break;\n case TOKEN_STRING:\n if (amIExpectingADefaultValue)\n {\n // Default value.\n if (myDefaultValue == null)\n myDefaultValue = scanner.getCurrLexeme();\n else\n myDefaultValue += scanner.getCurrLexeme();\n amIExpectingADefaultValue = false;\n }\n else\n {\n // For now, store it in the cell reference field. Upon finding an\n // exclamation, the value will be stored in the sheet name field.\n myCellReference = myCellReference == null ? scanner.getCurrLexeme() : myCellReference + scanner.getCurrLexeme();\n }\n logger.debug(\" parse: Token String: \\\"{}\\\".\", scanner.getCurrLexeme());\n break;\n case TOKEN_EXCLAMATION:\n // If we had text from before the \"!\", then the text that's\n // currently in \"myCellReference\" is really the sheet reference.\n // Move it to the sheet name field.\n if (myCellReference == null)\n throw new FormulaParseException(\"Sheet name delimiter (\\\"!\\\") found with no sheet name: \" + myFormulaText\n + SheetUtil.getCellLocation(myCell));\n if (amIExpectingADefaultValue)\n throw new FormulaParseException(\"Sheet name delimiter (\\\"!\\\") found while expecting a default value: \"\n + myFormulaText + SheetUtil.getCellLocation(myCell));\n mySheetName = myCellReference;\n myCellReference = null;\n break;\n case TOKEN_LEFT_PAREN:\n // This can turn a potential cell reference into a function call!\n mySheetName = null;\n myCellReference = null;\n break;\n case TOKEN_OPERATOR:\n if (amIExpectingADefaultValue && scanner.getCurrLexeme().charAt(0) == '-')\n {\n // Allow a \"-\" to indicate a negative default value.\n myDefaultValue = \"-\";\n break;\n }\n // Allow operators to \"continue\" a sheet name (currently stored in myCellReference).\n if (addCellReferenceIfFound())\n {\n myCellReference = myCellReference + scanner.getCurrLexeme();\n }\n break;\n case TOKEN_RIGHT_PAREN:\n case TOKEN_COMMA:\n case TOKEN_DOUBLE_QUOTE:\n // Just delimiters between strings. Validate the cell reference.\n addCellReferenceIfFound();\n mySheetName = null;\n myCellReference = null;\n break;\n case TOKEN_SINGLE_QUOTE:\n // Must keep track of whether a sheet reference occurs within single quotes.\n amIInsideSingleQuotes = !amIInsideSingleQuotes;\n break;\n case TOKEN_DOUBLE_PIPE:\n if (amIExpectingADefaultValue)\n throw new FormulaParseException(\"Cannot have two default values for a cell reference: \" + myFormulaText\n + SheetUtil.getCellLocation(myCell));\n if (myCellReference == null)\n throw new FormulaParseException(\"Default value indicator (\\\"||\\\") found without a cell reference: \"\n + myFormulaText + SheetUtil.getCellLocation(myCell));\n amIExpectingADefaultValue = true;\n break;\n default:\n throw new FormulaParseException(\"Parse error occurred: \" + myFormulaText + SheetUtil.getCellLocation(myCell));\n }\n token = scanner.getNextToken();\n\n if (token == FormulaScanner.Token.TOKEN_EOI)\n break;\n }\n // Found end of input but something else was expected.\n if (token.getCode() < 0)\n throw new FormulaParseException(\"Found end of input while scanning formula text: \" + myFormulaText + SheetUtil.getCellLocation(myCell));\n // Don't forget any last cell reference!\n addCellReferenceIfFound();\n }", "protected String readParams(Hashtable<String,String> params, String errors,\n EdaContext xContext) throws IcofException {\n\tif (params.containsKey(\"-c\")) {\n\t setComponent(xContext, params.get(\"-c\"));\n\t}\n\telse {\n\t errors += \"Component (-c) is a required parameter\\n\";\n\t}\n\n\t// Read the Branch name\n\tif (params.containsKey(\"-b\")) {\n\t setName((String) params.get(\"-b\"));\n\t}\n\telse {\n\t errors += \"Branch name (-n) is a required parameter\\n\";\n\t}\n\treturn errors;\n }", "private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}", "java.lang.String getContents();", "java.lang.String getContents();", "public Content<T> parseFrom(Collection<T> content, T left, T right) {\n /*\n Ideally, this function is going to be getting information that looks something like this:\n\n obj1{obj2}moreinfo\n\n So, the strategy for parsing something like this is to make a data structure with the representation:\n\n [Literal(\"obj1\"), Scope([Literal(\"obj2\")]), Content(\"moreinfo\")]\n\n So we parse everything up to a delimiter, parse everything within the delimiters, and then everything after it\n */\n\n // Get all current information\n Literal<T> literal = new Literal<T>(\n left,\n right,\n FlatParser.untilNextDelimiter(content, left));\n\n\n // We are at the end of the statement to parse, just return the literal\n if(literal.value.size() == content.size())\n return literal;\n else {\n Scope<T> scopedElement = new Scope();\n Scope<T> rest = new Scope();\n\n\n // If there is more content other than the literal, we have to parse the inner elements and outer elements\n return new Content<>(\n Util.concatenate(\n Util.wrap(literal),\n\n Util.wrap(scopedElement.parseFrom(\n FlatParser.withinDelim(content, left, right).get(0),\n left, right)),\n\n Util.wrap(rest.parseFrom(\n FlatParser.afterNextScope(content, left, right),\n left, right))\n )\n );\n\n }\n }", "@Override\n\tpublic void parse() throws IOException {\n\t}", "public Map<String, Object> getProgramDetails() throws ParseException;", "private Term parseImpl() throws ParseException {\n final Term expr = parseTerm(false);\n final int tt = _tokenizer.next();\n if (tt != Tokenizer.TT_EOS) {\n reportError(\"Incomplete expression.\"); /*I18N*/\n }\n return expr;\n }", "String getExpressionDescription(String expression, ParseType parseType);", "private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "SAPL parse(String saplDefinition);", "void parse();", "@Test\n\tpublic void probandoConParser() {\n\t\tString dBoxUrl = \"/home/julio/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_4_text_mining/material/tp3/\";\n\t\tString modelUrl = dBoxUrl + \"NER/models/es-ner-person.bin\";\n\t\tString filesUrl = dBoxUrl + \"NER/archivoPrueba\";\n\t\tString sampleFile = filesUrl + \"/viernes-23-05-14-alan-fitzpatrick-gala-cordoba.html\";\n\t\tList<String> docs = getMyDocsFromSomewhere(filesUrl);\n\n\t\ttry {\n\t\t\t// detecting the file type\n\t\t\tBodyContentHandler handler = new BodyContentHandler();\n\t\t\tMetadata metadata = new Metadata();\n\t\t\tFileInputStream inputstream = new FileInputStream(new File(sampleFile));\n\t\t\tParseContext pcontext = new ParseContext();\n\n\t\t\t// Html parser\n\t\t\tHtmlParser htmlparser = new HtmlParser();\n\t\t\thtmlparser.parse(inputstream, handler, metadata, pcontext);\n\t\t\tSystem.out.println(\"Contents of the document:\" + handler.toString());\n\t\t\tSystem.out.println(\"Metadata of the document:\");\n\t\t\tString[] metadataNames = metadata.names();\n\n\t\t\tfor (String name : metadataNames) {\n\t\t\t\tSystem.out.println(name + \": \" + metadata.get(name));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\n\t}", "private void scanToken() {\n char c = advance();\n switch (c) {\n case '(':\n addToken(LEFT_PAREN);\n break;\n case ')':\n addToken(RIGHT_PAREN);\n break;\n case '{':\n addToken(LEFT_BRACE);\n break;\n case '}':\n addToken(RIGHT_BRACE);\n break;\n case ',':\n addToken(COMMA);\n break;\n case '.':\n addToken(DOT);\n break;\n case '-':\n addToken(MINUS);\n break;\n case '+':\n addToken(PLUS);\n break;\n case ';':\n addToken(SEMICOLON);\n break;\n case '*':\n addToken(STAR);\n break;\n case '?':\n addToken(QUERY);\n break;\n case ':':\n addToken(COLON);\n break;\n\n case '!': // These characters could be part of a 2-char lexeme, so must check the second char.\n addToken(secondCharIs('=') ? BANG_EQUAL : BANG);\n break;\n case '=':\n addToken(secondCharIs('=') ? EQUAL_EQUAL : EQUAL);\n break;\n case '<':\n addToken(secondCharIs('=') ? LESS_EQUAL : LESS);\n break;\n case '>':\n addToken(secondCharIs('=') ? GREATER_EQUAL : GREATER);\n break;\n\n case '/': // The / char could be the beginning of a comment\n handleSlash();\n break;\n\n case ' ': // Ignore whitespace\n case '\\r':\n case '\\t':\n break;\n\n case '\\n': // Ignore newline but increase line count\n line++;\n break;\n\n case '\"': // Beginning of a string\n handleString();\n break;\n\n default:\n if (isDigit(c)) {\n handleNumber();\n } else if (isAlpha(c)) {\n handleIdentifier();\n } else {\n Rune.error(line, \"Unexpected character.\");\n }\n break;\n }\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 }", "protected TypeSpec parseTypeSpec(Token token) throws Exception {\n\t\t// Synchronize on the : token.\n\t\ttoken = synchronize(COLON_SET);\n\t\tif (token.getType() == COLON) {\n\t\t\ttoken = nextToken(); // consume the :\n\t\t} else {\n\t\t\terrorHandler.flag(token, MISSING_COLON, this);\n\t\t}\n\n\t\t// Parse the type specification.\n\t\tTypeSpecificationParser typeSpecificationParser = new TypeSpecificationParser(\n\t\t\t\tthis);\n\t\tTypeSpec type = typeSpecificationParser.parse(token);\n\n\t\treturn type;\n\t}", "public String parseTitle(String goods) {\n return goods.split(\"\\\\s+\")[1];\n }", "@Override\n\tpublic void parse(String s) throws MalformedFileException {\n\t\t\n\t}", "private void ResolveTheItemSection(ArrayList<String> order_content, int startLine, int endLine) {\n int currentLine = endLine;\n while (currentLine > startLine) {\n // End of each item section must be the line with \" price PER unit\"\n if (!ColesReceiptItem.Is_Per_Unit_Price_Line(order_content.get(currentLine))) {\n StringBuilder temp = new StringBuilder();\n while (!ColesReceiptItem.Is_Per_Unit_Price_Line(order_content.get(currentLine))) {\n temp.insert(0, order_content.get(currentLine) + \" \");\n order_content.set(currentLine, \"\");\n currentLine--;\n }\n\n // Identify the first line of description\n int lineGapBetweenDescriptionParts = 0;\n for (int i = 1; i < ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE - 1; i++) {\n String line = order_content.get(currentLine - i);\n if (!ColesReceiptItem.Is_Price(line) && !ColesReceiptItem.Is_Quantity(line)) {\n lineGapBetweenDescriptionParts = i;\n break;\n }\n }\n // Assign and concat the full description for item\n String fullItemDescription = order_content.get(currentLine - lineGapBetweenDescriptionParts) + \" \" + temp;\n order_content.set(currentLine - lineGapBetweenDescriptionParts, fullItemDescription.trim());\n }\n\n currentLine -= ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE;\n }\n\n }", "@Override\r\n public String characters(final String s, final StartElement element) throws InvalidStatusException {\r\n\r\n final String curPath = parser.getCurPath();\r\n if (curPath.equals(XPATH_CONTENT_RELATION_PROPERTIES + '/' + Elements.ELEMENT_PID)) {\r\n this.properties.setPid(s);\r\n }\r\n else if (curPath.equals(XPATH_CONTENT_RELATION_PROPERTIES + '/' + Elements.ELEMENT_PUBLIC_STATUS)) {\r\n this.properties.setStatus(StatusType.getStatusType(s));\r\n }\r\n else if (this.parsingDescription) {\r\n this.tmpDescription += s;\r\n }\r\n\r\n return s;\r\n }", "public void testParse() throws Exception\r\n {\r\n System.out.println(\"parse\");\r\n \r\n String context1 = \"package test.testpack;\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n String context2 = \"package test.test.testpack;\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n String context3 = \"\\npack age test.test.testpack ;\\n class TestClass \\n{\\n\\tdouble d;\\n}\";\r\n String context4 = \"package test.test.testpack\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n \r\n String context5 = \"package test.test.testpack;\\n class TestClass {\\n\\tdouble d;\\n}\";\r\n String context6 = \"package test.test.testpack;\\n class Test Class{\\n\\tdouble d;\\n}\";\r\n String context7 = \"package test.test.testpack;\\n class TestClass\\n{\\n\" +\r\n \"\\t//Det här är en double\\n\" +\r\n \"\\tdouble d;\\n\" +\r\n \"\\tdouble[] ds;\\n\" +\r\n \"\\tidltype test.test2.Test2Class idlTestObject;\" +\r\n \"\\n}\";\r\n \r\n \r\n FileParser instance = new FileParser();\r\n \r\n IDLClass expResult = null;\r\n \r\n IDLClass result = instance.parse(context1);\r\n assertEquals(result.getPackageName(), \"test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n result = instance.parse(context2);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context3);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 2: Invalid package declaration.\", ex.getMessage());\r\n }\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context4);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 1: Missing ; .\", ex.getMessage());\r\n }\r\n \r\n result = instance.parse(context5);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context6);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 2: Invalid class declaration.\", ex.getMessage());\r\n }\r\n \r\n result = instance.parse(context7);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n assertEquals(result.getFields().get(0).getComment(), \"//Det här är en double\");\r\n \r\n \r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "public interface ParserMASConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int SINGLE_LINE_COMMENT = 9;\r\n /** RegularExpression Id. */\r\n int FORMAL_COMMENT = 10;\r\n /** RegularExpression Id. */\r\n int MULTI_LINE_COMMENT = 11;\r\n /** RegularExpression Id. */\r\n int COLON = 13;\r\n /** RegularExpression Id. */\r\n int AT = 14;\r\n /** RegularExpression Id. */\r\n int COMMA = 15;\r\n /** RegularExpression Id. */\r\n int NRAGENTS = 16;\r\n /** RegularExpression Id. */\r\n int IDENTIFIER = 17;\r\n /** RegularExpression Id. */\r\n int FILENAME = 18;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_SINGLE_LINE_COMMENT = 1;\r\n /** Lexical state. */\r\n int IN_FORMAL_COMMENT = 2;\r\n /** Lexical state. */\r\n int IN_MULTI_LINE_COMMENT = 3;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"%\\\"\",\r\n \"\\\"//\\\"\",\r\n \"<token of kind 7>\",\r\n \"\\\"/*\\\"\",\r\n \"<SINGLE_LINE_COMMENT>\",\r\n \"\\\"*/\\\"\",\r\n \"\\\"*/\\\"\",\r\n \"<token of kind 12>\",\r\n \"\\\":\\\"\",\r\n \"\\\"@\\\"\",\r\n \"\\\",\\\"\",\r\n \"<NRAGENTS>\",\r\n \"<IDENTIFIER>\",\r\n \"<FILENAME>\",\r\n };\r\n\r\n}", "private void parse(Reader reader) throws IOException {\n/* 260 */ BufferedReader buf_reader = new BufferedReader(reader);\n/* 261 */ String line = null;\n/* 262 */ String continued = null;\n/* */ \n/* 264 */ while ((line = buf_reader.readLine()) != null) {\n/* */ \n/* */ \n/* 267 */ line = line.trim();\n/* */ \n/* */ try {\n/* 270 */ if (line.charAt(0) == '#')\n/* */ continue; \n/* 272 */ if (line.charAt(line.length() - 1) == '\\\\') {\n/* 273 */ if (continued != null) {\n/* 274 */ continued = continued + line.substring(0, line.length() - 1); continue;\n/* */ } \n/* 276 */ continued = line.substring(0, line.length() - 1); continue;\n/* 277 */ } if (continued != null) {\n/* */ \n/* 279 */ continued = continued + line;\n/* */ \n/* */ try {\n/* 282 */ parseLine(continued);\n/* 283 */ } catch (MailcapParseException e) {}\n/* */ \n/* */ \n/* 286 */ continued = null;\n/* */ \n/* */ continue;\n/* */ } \n/* */ try {\n/* 291 */ parseLine(line);\n/* */ }\n/* 293 */ catch (MailcapParseException e) {}\n/* */ \n/* */ \n/* */ }\n/* 297 */ catch (StringIndexOutOfBoundsException e) {}\n/* */ } \n/* */ }", "String getExpressionDescription(String expression, ParseType parseType, DataType dataType);", "public void parse(String information) {\n //$NON-NLS-1$\n String[] split = information.split(\":\", 2);\n if (split.length != 1) {\n //$NON-NLS-1$\n split = split[1].split(\":\");\n for (int i = 0; i < split.length; i++) {\n final String[] blockInfo = //$NON-NLS-1$\n split[i].split(//$NON-NLS-1$\n \"-\");\n final int index = Integer.parseInt(blockInfo[0]);\n final int blockLength = Integer.parseInt(blockInfo[1]) - index;\n addDownloadedBlock(index, blockLength);\n }\n }\n }", "protected final void parseS() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n default:\n return;\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n }\n \n float x2 = parseNumber();\n skipCommaSpaces();\n float y2 = parseNumber();\n skipCommaSpaces();\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n float smoothX = currentX * 2 - smoothCCenterX;\n float smoothY = currentY * 2 - smoothCCenterY;\n currentX = x;\n currentY = y;\n p.curveTo(smoothX, smoothY,\n x2, y2,\n currentX, currentY);\n smoothCCenterX = x2;\n smoothCCenterY = y2;\n smoothQCenterX = currentX;\n smoothQCenterY = currentY;\n\n skipCommaSpaces();\n }\n }", "public void parseHeader()\n {\n\n Hashtable table = new Hashtable();\n String[] lines = Utilities.splitString(header, \"\\r\\n\"); //Break everything into lines\n String[] line1 = Utilities.splitString(header, \" \"); //Break the 1st header line Ex: GET / HTTP/1.1\n method = line1[0].trim();\n file = line1[1].trim();\n Utilities.debugLine(\"WebServer.parseHeader(): \" + lines[0], DEBUG);\n\n //For the remainder of the headers, parse the requestFields.\n for (int i = 1; i < lines.length - 1; i++)\n {\n String[] tempLine = Utilities.splitStringOnce(lines[i], \":\");\n table.put(tempLine[0].trim(), tempLine[1].trim());\n }\n headerFields = table;\n }", "public void readDescription() throws IOException {\n while (!shouldStop()) {\n String word = next();\n if (word != \"\") {\n // System.out.println(word);\n temps.add(word);\n }\n }\n c = r.read();\n }", "public void extract() throws Exception{\n //because when this is called, Scanner had already determined the first character\n char currentChar = getCurrentChar();\n\n do {\n this.text += Character.toString(currentChar);\n currentChar = getNextChar();\n } while (Character.isLetterOrDigit(currentChar) || currentChar == '_');\n\n this.value = this.text;\n\n //find token type. For words, the type is either IDENTIFIER, or the specific reserved word\n\n if (TokenType.getReservedWords().contains(this.text.toLowerCase())) {\n this.type = TokenType.valueOf(this.text.toUpperCase());\n }\n else {\n this.type = TokenType.IDENTIFIER;\n }\n }", "public Map<String, Object> getFirstDisplayedProgramDetails() throws ParseException;", "public void testParsing() throws Exception {\n Message message = new Message(\"8=FIX.4.2\\0019=40\\00135=A\\001\"\n + \"98=0\\001384=2\\001372=D\\001385=R\\001372=8\\001385=S\\00110=96\\001\",\n DataDictionaryTest.getDictionary());\n \n assertHeaderField(message, \"FIX.4.2\", BeginString.FIELD);\n assertHeaderField(message, \"40\", BodyLength.FIELD);\n assertEquals(\"wrong field value\", 40, message.getHeader().getInt(BodyLength.FIELD));\n assertHeaderField(message, \"A\", MsgType.FIELD);\n assertBodyField(message, \"0\", EncryptMethod.FIELD);\n assertTrailerField(message, \"96\", CheckSum.FIELD);\n NoMsgTypes valueMessageType = new Logon.NoMsgTypes();\n message.getGroup(1, valueMessageType);\n assertEquals(\"wrong value\", \"D\", valueMessageType.getString(RefMsgType.FIELD));\n assertEquals(\"wrong value\", \"R\", valueMessageType.getString(MsgDirection.FIELD));\n message.getGroup(2, valueMessageType);\n assertEquals(\"wrong value\", \"8\", valueMessageType.getString(RefMsgType.FIELD));\n assertEquals(\"wrong value\", \"S\", valueMessageType.getString(MsgDirection.FIELD));\n }", "public void extractProperties(File file) {\n\t\tFile input = file;\n\t\tBufferedReader stream;\n\t\ttry {\n\t\t\tString line;\n\t\t\tMatcher m_title, m_subtitle, m_spacing;\n\t\t\tStringBuffer extractable = new StringBuffer();\n\t\t\tstream = new BufferedReader(new FileReader(input));\n\t\t\t\n\t\t\t/* Read all comment lines from the input file and concatenate them */\n\t\t\twhile ((line = stream.readLine()) != null) {\n\t\t\t\tline = line.replaceAll(\"\\\\s+$\", \"\");\n\t\t\t\tTabString temp = new TabString(line);\n\t\t\t\tif (!line.isEmpty()) {\n\t\t\t\t\tif (temp.checkError() == TabString.ERROR_COMMENT)\n\t\t\t\t\t\textractable.append(\"%\" + line + \"%\");\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t/* Return if nothing was found */\n\t\t\tif (extractable.length() == 0) {\n\t\t\t\tstream.close();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tm_title = TITLE_PATTERN.matcher(extractable.toString());\n\t\t\tm_subtitle = SUBTITLE_PATTERN.matcher(extractable.toString());\n\t\t\tm_spacing = SPACING_PATTERN.matcher(extractable.toString());\n\t\t\t\n\t\t\t/* Set the title to the extracted title */\n\t\t\tif (m_title.find())\n\t\t\t\tthis.setTitle(m_title.group(VALUE_POSITION));\n\t\t\t\n\t\t\t/* Set the subtitle to the extracted subtitle */\n\t\t\tif (m_subtitle.find())\n\t\t\t\tthis.setSubtitle(m_subtitle.group(VALUE_POSITION));\n\t\t\t\n\t\t\t/* Set the spacing to the extracted spacing */\n\t\t\tif (m_spacing.find())\n\t\t\t\tthis.setSpacing(Float.parseFloat(m_spacing.group(VALUE_POSITION)));\n\t\t\t\t\n\t\t\tstream.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void tokenizeAndParse(){\n StringTokenizer st1 = new StringTokenizer(Strinput, \" \");\n while (st1.hasMoreTokens()){\n String temp = st1.nextToken();\n if(!temp.equals(\"Rs\")&&!temp.equals(\"Ri\")){\n melody.add(Integer.decode(temp.substring(0,2)));\n }\n\n }\n\n }", "public MetadataContext parseMetadata(KXmlParser myParser)\n\t{\n\t\tMetadataContext metadata = new MetadataContext();\n\t\t\n\t\t//<contextMetadata>\n\t\ttry {\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\t//<description>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\tmetadata.setM_description( myParser.nextText());\n\t\t\t\n\t\t\t//<positionInfo>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\tmetadata.setM_latitude( Double.parseDouble( myParser.getAttributeValue(0)));\n\t\t\tmetadata.setM_longitude( Double.parseDouble( myParser.getAttributeValue(1)));\n\t\t\t\n\t\t\t//</positionInfo>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\t//<temporalInfo>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\t\n\t\t\tmetadata.setM_time( myParser.nextText());\n\t\t\t\n\t\t\t//<version>\n\t\t\tmyParser.nextTag();\n\t\t\tmetadata.setM_time( myParser.nextText());\n\t\t\t\n\t\t\t\n\t\t\t//<unit>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\tmetadata.setM_unit(myParser.nextText());\n\t\t\t\n\t\t\t//</contextMetadata>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t} catch (XmlPullParserException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn metadata;\n\t\t\n\t}", "@Test\n\tpublic void testParse() {\n\t\tSentence s = new Sentence();\n\t\ts.parseSentence(BASE_STRING);\n\t\tassertEquals(19, s.getSentenceComponents().size());\n\n\t\t// verify that a string of whitespace count as one token\n\t\ts = new Sentence();\n\t\ts.parseSentence(WHITESPACE_STRING);\n\t\tassertEquals(1, s.getSentenceComponents().size());\n\n\t\t// verify that leading and trailing space is kept\n\t\ts = new Sentence();\n\t\ts.parseSentence(ENDSPACE_STRING);\n\t\tassertEquals(7, s.getSentenceComponents().size());\n\n\t\t// verify parsing works as expected\n\t\ts = new Sentence();\n\t\ts.parseSentence(PARSE_VALIDATION_STRING);\n\t\tList<SentenceComponent> tokens = s.getSentenceComponents();\n\t\tassertEquals(5, tokens.size());\n\t\tassertEquals(\"hello\", tokens.get(0).getValue());\n\t\tassertEquals(\",\", tokens.get(1).getValue());\n\t\tassertEquals(\" \", tokens.get(2).getValue());\n\t\tassertEquals(\"world\", tokens.get(3).getValue());\n\t\tassertEquals(\"!\", tokens.get(4).getValue());\n\t}", "public void parsePerformanceMeasurements(RawMessage msg)\n\t\tthrows HeaderParseException\n\t{\n\t\tbeginTimeHasTz = false;\n\t\tbyte data[] = msg.getData();\n\t\tint len = data.length;\n\n\t\tboolean inNotes = false;\n\t\tString beginDate = null;\n\t\tString beginTime = null;\n\t\tString endTime = null;\n\t\tString station = null;\n\t\tString device = null;\n\t\tStringBuffer notes = new StringBuffer();\n\t\tint e=0;\n\t\tfor(int p=0; p<len-3; p = e)\n\t\t{\n\t\t\t// Find the beginning of the next line.\n\t\t\tfor(e = p; e < len && data[e] != (byte)'\\n'; e++);\n\t\t\te++;\n\n\t\t\t// Check for start of new tag.\n\t\t\tif (data[p] == (byte)'/' && data[p+1] == (byte)'/')\n\t\t\t{\n\t\t\t\tp += 2;\n\t\t\t\tString s = new String(data, p, e-p);\n\t\t\t\ts = s.toUpperCase().trim();\n\t\t\t\tif (s.length() == 0)\n\t\t\t\t\tcontinue;\t// Skip comment line with just '//'\n\t\t\t\tif (s.startsWith(\"STATION\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(7).trim();\n\t\t\t\t\tmsg.setPM(STATION, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DEVICE END TIME\")) // do before DEVICE !!\n\t\t\t\t{\n\t\t\t\t\tif (endTime == null)\n\t\t\t\t\t\tendTime = s.substring(15).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DEVICE\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(6).trim();\n\t\t\t\t\tint hyphen = val.indexOf('-');\n\t\t\t\t\tint space = val.indexOf(' ');\n\t\t\t\t\tif (hyphen >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (space > 0 && hyphen < space)\n\t\t\t\t\t\t\tval = val.substring(0, space);\n\t\t\t\t\t\telse if (space > 0 && space < hyphen)\n\t\t\t\t\t\t\tval = val.substring(0, space) + \"-\"\n\t\t\t\t\t\t\t\t+ val.substring(space+1);\n\t\t\t\t\t}\n\t\t\t\t\telse // no hyphen\n\t\t\t\t\t{\n\t\t\t\t\t\tif (space >= 0)\n\t\t\t\t\t\t\tval = val.substring(0,space) + \"-\"\n\t\t\t\t\t\t\t\t+ val.substring(space+1);\n\t\t\t\t\t}\n\t\t\t\t\tspace = val.indexOf(' ');\n\t\t\t\t\tif (space > 0)\n\t\t\t\t\t\tval = val.substring(0,space);\n\t\t\t\t\tmsg.setPM(DEVICE, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"SOURCE\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(6).trim();\n\t\t\t\t\tmsg.setPM(SOURCE, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"BEGIN DATE\"))\n\t\t\t\t{\n\t\t\t\t\tbeginDate = s.substring(10).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"BEGIN TIME\"))\n\t\t\t\t{\n\t\t\t\t\tbeginTime = s.substring(10).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"ACTUAL END TIME\"))\n\t\t\t\t{\n\t\t\t\t\tendTime = s.substring(15).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"EDL NOTES\")\n\t\t\t\t || s.startsWith(\"PFC NOTES\")\n\t\t\t\t || s.startsWith(\"DEVICE NOTES\"))\n\t\t\t\t{\n\t\t\t\t\tinNotes = true;\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DATA\"))\n\t\t\t\t{\n\t\t\t\t\tinNotes = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (inNotes)\n\t\t\t\tnotes.append(new String(data, p, e-p));\n\t\t\telse // this is the end of the header!\n\t\t\t{\n\t\t\t\tmsg.setHeaderLength(p);\n\t\t\t\tmsg.setPM(MESSAGE_LENGTH, new Variable((long)(len - p)));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (beginDate != null)\n\t\t{\n\t\t\tif (beginTime != null)\n\t\t\t{\n\t\t\t\t// begin time can optionally contain time zone.\n\t\t\t\tint idx = beginTime.lastIndexOf('S');\n\t\t\t\tif (idx != -1)\n\t\t\t\t{\n\t\t\t\t\tbeginTimeHasTz = true;\n\t\t\t\t\tbeginTime = beginTime.substring(0, idx) + \"00\";\n\t\t\t\t}\n\t\t\t\telse // Add dummy offset to UTC\n\t\t\t\t{\n\t\t\t\t\tbeginTimeHasTz = false;\n\t\t\t\t\tbeginTime += \" +0000\";\n\t\t\t\t}\n\t\t\t\tbeginDate += beginTime;\n\t\t\t}\n\t\t\telse\n\t\t\t\tbeginDate += \"0000 +0000\"; // HHMM & TZ\n\t\t\ttry\n\t\t\t{\n\t\t\t\tLogger.instance().debug1(\"Parsing begin date/time '\"\n\t\t\t\t\t+ beginDate + \"'\");\n\t\t\t\tDate d = beginDateTimeSdf.parse(beginDate);\n\t\t\t\tmsg.setPM(BEGIN_TIME_STAMP, new Variable(d));\n\t\t\t}\n\t\t\tcatch(ParseException ex)\n\t\t\t{\n\t\t\t\tLogger.instance().log(Logger.E_FAILURE, \n\t\t\t\t\t\"Unparsable begin time '\" + beginTime + \"': Ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tif (endTime != null)\n\t\t{\n\t\t\t// Check for start of timezone.\n\t\t\tint idx = endTime.indexOf('-');\n\t\t\tif (idx == -1)\n\t\t\t\tidx = endTime.indexOf('+');\n\n\t\t\tif (idx == -1) // No time zone at all, add one.\n\t\t\t\tendTime += \" +0000\";\n\t\t\telse\n\t\t\t{\n\t\t\t\tint i = ++idx; // idx points to first digit after sign.\n\n\t\t\t\tfor(; i < endTime.length() \n\t\t\t\t\t&& i-idx <= 4\n\t\t\t\t\t&& Character.isDigit(endTime.charAt(i)); i++);\n\t\t\t\t// i now points to first non-digit after TZ\n\n\t\t\t\tswitch(i-idx) // i-idx is # of digits after sign.\n\t\t\t\t{\n\t\t\t\tcase 0: \n\t\t\t\t\tendTime = endTime.substring(0,idx) + \"0000\"; \n\t\t\t\t\tbreak;\n\t\t\t\tcase 1: // 1 digit hour? move to position 2 in HHMM:\n\t\t\t\t\tendTime = endTime.substring(0,idx) + \"0\" \n\t\t\t\t\t\t+ endTime.charAt(idx) + \"00\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: // HH only, add MM\n\t\t\t\t\tendTime = endTime.substring(0,i) + \"00\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: // HHM, ad lcd\n\t\t\t\t\tendTime = endTime.substring(0,i) + \"0\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // complete. Just truncate at 4 digits.\n\t\t\t\t\tendTime = endTime.substring(0, idx+4);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmsg.setPM(END_TIME_STAMP, new Variable(\n\t\t\t\t\tendTimeSdf.parse(endTime)));\n\t\t\t}\n\t\t\tcatch(ParseException ex)\n\t\t\t{\n\t\t\t\tLogger.instance().log(Logger.E_FAILURE, \"Unparsable end time '\"\n\t\t\t\t\t+ endTime + \"': Ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tif (notes.length() > 0)\n\t\t{\n\t\t\tmsg.setPM(EDL_NOTES, new Variable(notes.toString()));\n\t\t}\n\n\t\t// Construct medium ID by concatenating station to device.\n\t\tif (msg.getMediumId() == null)\n\t\t{\n\t\t\tString mid = System.getProperty(\"MEDIUMID\");\n\t\t\tif (mid == null)\n\t\t\t{\n\t\t\t\tVariable v = msg.getPM(STATION);\n\t\t\t\tif (v == null)\n\t\t\t\t\tthrow new HeaderParseException(\"No STATION in EDL file.\");\n\t\t\t\tmid = v.getStringValue();\n\t\t\t\tv = msg.getPM(DEVICE);\n\t\t\t\tif (v != null)\n\t\t\t\t\tmid = mid + \"-\" + v.getStringValue();\n\t\t\t}\n\t\t\tLogger.instance().log(Logger.E_DEBUG3,\n\t\t\t\t\"Setting EDL File Medium ID to '\" + mid + \"'\");\n\t\t\tmsg.setMediumId(mid);\n\t\t}\n\t}", "private void LL1Parser() throws IOException {\n\n LA.ReadLine(0);\n ParsStack.push(\"$\");\n ParsStack.push(\"P\");\n int prod;\n token = LA.Scanner();\n while (token.getValue() == null)\n {\n token = LA.Scanner();\n }\n// System.out.println(\"in ll1 parser\");\n// System.out.println(token.getValue() + \" \" + token.getType());\n while (true)\n {\n// System.out.println(ParsStack.peek());\n if (!CheckTerminal(ParsStack.peek()) && (!ParsStack.peek().equals(\"$\")) && (ParsStack.peek().charAt(0) != '@'))\n {\n /**inja be nazarm bayad BUparser run she agar BE bashe sare parse stack**/\n if (ParsStack.peek().equals(\"BE\"))\n {\n// System.out.println(\"go to SLR parser\");\n SLRParser();\n// System.out.println(\"Come back from SLR parser\");\n// System.out.println(ParsStack.peek());\n ParsStack.pop();\n token = LA.Scanner();\n// System.out.println(token.getValue());\n }\n else\n {\n prod = getProduction(ParsStack.peek(), token);\n// System.out.println(ParsStack.peek() + \" \" + token.getValue() + \" \" + prod);\n if (prod == 0) {\n error(4);\n break;\n } else {\n ParsStack.pop();\n for (int i = TempGrammer.get(prod - 1).getRight().length - 2 ; i > 0 ; i--) {\n if (TempGrammer.get(prod - 1).getRight()[i].equals(\"!\"))\n break;\n ParsStack.push(TempGrammer.get(prod - 1).getRight()[i]);\n// System.out.println(\"fill stack \" + ParsStack.peek());\n }\n }\n }\n }\n else if (CheckTerminal(ParsStack.peek()))\n {\n if (!CheckTerminal(token.getValue()))\n {\n if (ParsStack.peek().equals(\"id\"))\n {\n// System.out.println(token.getValue() + \" pop\");\n ParsStack.pop();\n token = LA.Scanner();\n while (token.getValue() == null)\n {\n token = LA.Scanner();\n }\n// System.out.println(\"new token is \" + token.getValue());\n }\n else\n {\n if (token.getValue().equals(\"$\"))\n {\n error(1);\n break;\n }\n }\n }\n else if (ParsStack.peek().equals(token.getValue()))\n {\n// System.out.println(token.getValue() + \" pop\");\n ParsStack.pop();\n token = LA.Scanner();\n while (token.getValue() == null)\n {\n token = LA.Scanner();\n }\n// System.out.println(\"new token is \" + token.getValue());\n\n }\n else\n {\n error(1);\n break;\n }\n }\n /**inja ham ye else if dige bashe baraye @semanticrule ha ke codeGenerator seda zade beshe**/\n /** nazar man ro injast **/\n else if (ParsStack.peek().charAt(0) == '@')\n {\n// System.out.println(\"see semantic role\");\n if (ParsStack.peek().equals(\"@push\"))\n terminat = CodeGen.run( ParsStack.pop() , token.getValue() , LA.Line - 1);\n else\n terminat = CodeGen.run( ParsStack.pop() , ParsStack.peek() , LA.Line - 1);\n\n\n if(terminat)\n Terminate();\n /** code generation inja seda mishe **/\n }\n else if (ParsStack.peek().equals(\"$\"))\n {\n if (token.getValue().equals(\"$\"))\n {\n Accept();\n break;\n }\n else {\n error(2);\n break;\n }\n }\n else {\n error(3);\n break;\n }\n }\n\n }", "public GenToken scan(ParseString ps, GenToken token) throws ParserException {\n if (token != null) {\n //a token is already found, so handle it here\n GenToken result = token;\n if (token.getType().equals(\"id\")) {\n //token is an identifier\n String name = (String)token.get(\"name\");\n if ((name.equals(\"true\")) || (name.equals(\"false\"))) {\n //token is a boolean constant\n result = new GenToken(\"const\");\n result.add(\"value\", new Boolean(name));\n }\n if (name.equals(\"hash\")) {\n //token is a hash operator\n result = opToken(\"~\");\n }\n }\n return result;\n }\n //no token is found yet\n char ch = ps.nextChar();\n GenToken result = null;\n if (ch == ';') {\n result = new GenToken(\"semicol\");\n } else if (ch == ',') {\n result = new GenToken(\"comma\");\n } else if (ch == '(') {\n result = new GenToken(\"lbrack\");\n } else if (ch == ')') {\n result = new GenToken(\"rbrack\");\n } else if (ch == '{') {\n result = new GenToken(\"lacc\");\n } else if (ch == '}') {\n result = new GenToken(\"racc\");\n } else if (ch == '+') {\n char ach = ps.nextChar();\n if (ach=='=') result = new GenToken(\"plusassign\"); else {\n ps.returnChar(ach);\n result = opToken(\"+\");\n }\n } else if (ch == '-') {\n char ach = ps.nextChar();\n if (ach=='=') result = new GenToken(\"minusassign\"); else {\n ps.returnChar(ach);\n result = opToken(\"-\");\n }\n } else if (ch == '*') {\n result = opToken(\"*\");\n } else if (ch == '/') {\n result = opToken(\"/\");\n } else if (ch == '%') {\n result = opToken(\"%\");\n } else if (ch == '~') {\n result = opToken(\"~\");\n } else if (ch == '|') {\n char ach = ps.nextChar();\n if (ach == '|') result = opToken(\"||\"); else ps.returnChar(ach);\n } else if (ch == '&') {\n char ach = ps.nextChar();\n if (ach == '&') result = opToken(\"&&\"); else ps.returnChar(ach);\n } else if (ch == '=') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"==\"); else\n if (ach == '>') result = opToken(\"=>\"); else {\n ps.returnChar(ach);\n result = new GenToken(\"assign\");\n }\n } else if (ch == '!') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"!=\"); else {\n ps.returnChar(ach);\n result = opToken(\"!\");\n }\n } else if (ch == '<') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"<=\"); else {\n ps.returnChar(ach);\n result = opToken(\"<\");\n }\n } else if (ch == '>') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\">=\"); else {\n ps.returnChar(ach);\n result = opToken(\">\");\n }\n } else if (ch == '\"') {\n StringBuffer aconst = new StringBuffer();\n char ach = ps.nextChar();\n while ( ach != '\"' ) {aconst.append(ach); ach = ps.nextChar();}\n result = new GenToken(\"const\");\n result.add(\"value\", aconst.toString());\n } else if (Character.isDigit(ch)) {\n StringBuffer aconst = new StringBuffer();\n aconst.append(ch);\n char ach = ps.nextChar();\n while ( (Character.isDigit(ach)) || (ch == '.') ) {aconst.append(ach); ach = ps.nextChar();}\n ps.returnChar(ach);\n\n float f = Float.parseFloat(aconst.toString());\n result = new GenToken(\"const\");\n result.add(\"value\", new Float(f));\n } else {\n ps.returnChar(ch);\n }\n return result;\n }", "Collection<MeterRead> parseSimpleNem12(File simpleNem12File) throws SimpleNemParserException;", "private ReceiptLineItem ParseItem(List<String> itemSection) {\n ReceiptLineItem receiptLineItem = new ReceiptLineItem();\n for (int i = 1; i < ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE - 1; i++) {\n String line = itemSection.get(i);\n if (ColesReceiptItem.Is_Price(line))\n receiptLineItem.price = Float.parseFloat(line.substring(1));\n else if (ColesReceiptItem.Is_Quantity(line))\n receiptLineItem.quantity = Integer.parseInt(line);\n else\n receiptLineItem.itemDescription = line;\n }\n receiptLineItem.unitPrice = receiptLineItem.price / receiptLineItem.quantity;\n\n return receiptLineItem;\n }", "final String parseForTitle(String rawInput,String input, DataInputStream dis)\r\n {\r\n int i,j,k,l; \r\n\tint titleLength=0; // Keep track of title length as only first 25 characters are displayed.\r\n\tint start=0;\r\n\tString temp;\r\n\tStringBuffer title=new StringBuffer(\"\");\r\n\tboolean foundTag=false;\r\n\r\n\ttry\r\n\t{\r\n\t // Search for <TITLE> tag. Can the TITLE tag have spaces? e.g < TITLE > (assume not!)\r\n\t i=input.indexOf(\"<TITLE\");\r\n\t if(i!=-1)\r\n\t {\r\n\t // Allow for <HTML><HEAD><TITLE>Title</TITLE></HEAD>\r\n\t\tj=input.indexOf(\">\",i);\r\n\t\tif(j!=-1)\r\n\t\t{\r\n\t\t while(titleLength<=25 && foundTag==false)\r\n\t\t {\r\n\t\t start=j+1;\r\n\t\t\tfor(k=start;k<rawInput.length();k++)\r\n\t\t\t{\r\n\t\t\t if(foundTag==false && rawInput.charAt(k)!='<')\r\n\t\t\t {\r\n\t\t\t titleLength++;\r\n\t\t\t\ttitle.append(rawInput.charAt(k));\r\n\t\t\t }\r\n\t\t\t else foundTag=true;\r\n\t\t\t}\r\n\t\t\t// Continue reading from doc if </title> not found.\r\n\t\t\tif(foundTag==false)\r\n\t\t\t{\r\n\t\t\t rawInput=dis.readLine();\r\n\t\t\t j=-1;\r\n\t\t\t}\r\n\t\t }\r\n\t\t // Remove leading and trailing spaces.\r\n\t\t temp=title.toString();\r\n\t\t return(temp.trim());\r\n\t\t}\r\n\t }\r\n\t}\r\n\tcatch(IOException e){}\r\n\treturn (null); // No title found.\r\n }", "private static void handleParser(char c) {\n if(c == '\\n'){\r\n return;\r\n }\r\n switch (state){\r\n case OUT_OF_TAG:{\r\n if(c == '<'){\r\n if(SAXParsedData.innerText.trim().length() != 0) {\r\n parserHandler.innerText(SAXParsedData.innerText);\r\n }\r\n SAXParsedData.innerText = \"\";\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n } else if (c == '>') {\r\n state = SAXParserState.SYNTAX_ERROR;\r\n } else {\r\n SAXParsedData.innerText += c;\r\n }\r\n break;\r\n }\r\n case BEGIN_START_OR_END_TAG:{\r\n if(c == '/') {\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.IN_END_TAG;\r\n }else if(c == '?' || c == '!'){\r\n state = SAXParserState.METADATA;\r\n }else{\r\n SAXParsedData.tagName += c;\r\n state = SAXParserState.IN_START_TAG;\r\n }\r\n break;\r\n }\r\n case IN_START_TAG:{\r\n if(c == ' '){\r\n state = SAXParserState.SPACE_IN_START_TAG;\r\n }else if(c == '>'){\r\n // callback startElement event;\r\n parserHandler.startElement(SAXParsedData.tagName, SAXParsedData.attributes);\r\n SAXParsedData.clear();\r\n state = SAXParserState.CLOSE_START_TAG;\r\n }else {\r\n SAXParsedData.tagName += c;\r\n }\r\n break;\r\n }\r\n case SPACE_IN_START_TAG:{\r\n if(SAXParsedData.tagName.length() > 0){\r\n if(c != ' '){\r\n SAXParsedData.attribKey += c;\r\n state = SAXParserState.IN_ATTRIB_KEY;\r\n }\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_KEY:{\r\n if(c == '='){\r\n state = SAXParserState.IN_ATTRIB_EQUAL;\r\n }else{\r\n SAXParsedData.attribKey += c;\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_EQUAL:{\r\n if(c == '\"'){\r\n state = SAXParserState.IN_ATTRIB_VALUE;\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_VALUE:{\r\n if(c == '\"'){\r\n SAXParsedData.newAttribute();\r\n state = SAXParserState.IN_START_TAG;\r\n }else{\r\n SAXParsedData.attribValue += c;\r\n }\r\n break;\r\n }\r\n case CLOSE_START_TAG:{\r\n if(c == '<') {\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n }else{\r\n SAXParsedData.innerText += c;\r\n state = SAXParserState.OUT_OF_TAG;\r\n }\r\n break;\r\n }\r\n case IN_END_TAG:{\r\n if(c == '>'){\r\n // callback endElement event\r\n parserHandler.endElement(SAXParsedData.tagName);\r\n state = SAXParserState.CLOSE_END_TAG;\r\n }else{\r\n SAXParsedData.tagName += c;\r\n }\r\n break;\r\n }\r\n case CLOSE_END_TAG:{\r\n if(c == ' '){\r\n state = SAXParserState.OUT_OF_TAG;\r\n }else if(c == '<'){\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n }\r\n break;\r\n }\r\n case METADATA:{\r\n if(c == '>'){\r\n state = SAXParserState.CLOSE_END_TAG;\r\n }\r\n break;\r\n }\r\n case SYNTAX_ERROR:{\r\n try {\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }\r\n }\r\n\r\n }" ]
[ "0.53936136", "0.5177148", "0.51110363", "0.51014453", "0.50671494", "0.50549763", "0.49954346", "0.49807504", "0.4956165", "0.49353772", "0.48868674", "0.4864629", "0.48306614", "0.48299056", "0.48098013", "0.47745997", "0.47740385", "0.47386903", "0.47195327", "0.47110665", "0.4704005", "0.47037023", "0.46796235", "0.4676671", "0.46729985", "0.4672001", "0.4656606", "0.46514082", "0.46511838", "0.46468714", "0.46399173", "0.4637262", "0.46365514", "0.4625395", "0.45931774", "0.45852995", "0.45845288", "0.4582132", "0.45734346", "0.45679885", "0.45668685", "0.45655534", "0.45635507", "0.45605677", "0.45596007", "0.45582134", "0.45552897", "0.45538384", "0.45536783", "0.45536783", "0.45536783", "0.45536783", "0.45536783", "0.45536783", "0.45508444", "0.45388606", "0.45306033", "0.4528375", "0.45188123", "0.45080596", "0.4498057", "0.44850904", "0.44850904", "0.4482136", "0.4475573", "0.4475499", "0.44731393", "0.44618237", "0.4461452", "0.44607508", "0.44537225", "0.44498935", "0.44489926", "0.44466564", "0.444592", "0.44457763", "0.44400313", "0.44311094", "0.44261876", "0.44253725", "0.44238573", "0.4415847", "0.44110766", "0.44071183", "0.44070923", "0.44066587", "0.44032818", "0.44011068", "0.43883026", "0.43859422", "0.4385254", "0.43798754", "0.43764782", "0.43742803", "0.4373634", "0.43735892", "0.43691027", "0.43678316", "0.4365201", "0.43605894", "0.43591207" ]
0.0
-1
Write SUMMARY property of event
private String makeEventSummary(String name) { return "SUMMARY:" + name + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSummary();", "public java.lang.String getSummary(){\r\n return this.summary;\r\n }", "public String getSummary();", "public String getSummary() {\r\n return summary;\r\n }", "void setSummary(java.lang.String summary);", "public String getSummary() {\n return summary;\n }", "public native final String summary() /*-{\n\t\treturn this[\"summary\"];\n\t}-*/;", "public String getSummary() {\n\t\treturn summary;\n\t}", "public String getSummary() {\n\t\treturn summary;\n\t}", "public void setSummary(String summary) {\n this.summary = summary;\n }", "@Override\n public String getSummary() {\n return super.getSummary() + SYMBOL_SEPARATOR + getTimingString();\n }", "@Override\r\n\tpublic String getSummary() {\n\t\treturn null;\r\n\t}", "@Test\n public void testSummaryChange() throws Exception {\n String changedSumamry = \"New summary\";\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setSummary(changedSumamry);\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that summary has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL, changedSumamry, 1);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, changedSumamry);\n }", "public void setSummary(String summary) {\n this.summary = summary;\n }", "@Override\n\tpublic String getSummary() {\n\t\treturn null;\n\t}", "public String getEventDescription() {\n\t\treturn description;\n\t}", "public abstract CharSequence getSummary();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}", "@JsonProperty(\"summary\")\n public String getSummary() {\n return summary;\n }", "public void setSummary(String summary) {\n\t\tthis.summary = summary;\n\t}", "public java.lang.String getSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public void summary (java.io.PrintStream out) { throw new RuntimeException(); }", "public String getSummaryStatistics() {\n String format = \"%-50s \\t %12d \\t %12f \\t %12f %n\";\n int n = (int) getCount();\n double avg = getAverage();\n double std = getStandardDeviation();\n String name = getName();\n return String.format(format, name, n, avg, std);\n }", "public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}", "@Override\n public void printDetails() {\n super.printDetails(); // uses its superclass version of the method to print the basic attributes\n System.out.print(\"Time: \" + this.getTime()); // printing the time of the event\n }", "public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }", "protected void printEvent(Event event) {\n System.out.println(\"\\t\" + event.getName());\n System.out.println(\"\\t\" + event.getDate().getDate());\n System.out.println(\"\\t\" + event.getTime().get12HTime());\n\n if (event.getDuration() != 0) {\n System.out.println(\"\\tFor \" + event.getDuration() + \" minutes\");\n }\n }", "@JsonProperty(\"summary\")\n public void setSummary(String summary) {\n this.summary = summary;\n }", "public void setSummary(java.lang.String summary)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SUMMARY$18);\n }\n target.setStringValue(summary);\n }\n }", "public final void mSUMMARY() throws RecognitionException {\r\n try {\r\n int _type = SUMMARY;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:21:9: ( 'SUMMARY' )\r\n // Satmc.g:21:11: 'SUMMARY'\r\n {\r\n match(\"SUMMARY\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "String getOfferSummary();", "public String toString(){\n return \"Eventtype: \" + eventType + \", event time: \" + eventTime + \", Tally time: \" + tallyTime + \", cash: \" + cash;\n }", "public String getSummaryStatisticsHeader() {\n return String.format(\"%-50s \\t %12s \\t %12s \\t %12s %n\", \"Name\", \"Count\", \"Average\", \"Std. Dev.\");\n }", "public java.lang.Boolean getSummary() {\n return summary;\n }", "@Override\n public void title(SinkEventAttributes attributes)\n {\n }", "private void displayTestResultSummary() {\n int passNum = mSessionLog.getTestList(CtsTestResult.CODE_PASS).size();\n int failNum = mSessionLog.getTestList(CtsTestResult.CODE_FAIL).size();\n int notExecutedNum =\n mSessionLog.getTestList(CtsTestResult.CODE_NOT_EXECUTED).size();\n int timeOutNum = mSessionLog.getTestList(CtsTestResult.CODE_TIMEOUT).size();\n int total = passNum + failNum + notExecutedNum + timeOutNum;\n \n println(\"Test summary: pass=\" + passNum\n + \" fail=\" + failNum\n + \" timeOut=\" + timeOutNum\n + \" notExecuted=\" + notExecutedNum\n + \" Total=\" + total);\n }", "public native final Calendar summary(String val) /*-{\n\t\tthis[\"summary\"] = val;\n\t\treturn this;\n\t}-*/;", "public String getTableSummary() {\n return \"A summary description of table data\";\n }", "public void setSummary(boolean summary) {\n\n this.summary = summary;\n }", "public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }", "public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }", "@Override\n\tpublic String toString() {\n\t\t\n\t\treturn \"[ \"+ event_code + \",\"+ insert_ts + \" ] = \" + short_description ;\n\t\t\n//\t\treturn \"[ \\\"event_code\\\" : \" + \"\\\"\" + event_code + \"\\\" , \\\"update_TS\\\" : \" + \"\\\"\" + insert_ts + \"\\\", \\\"short_Description\\\" : \\\" \"\n//\t\t\t\t+ \"\\\"\" + short_description + \"\\\"\" + \" ]\";\n\t}", "public void setSummary(java.lang.Boolean summary) {\n this.summary = summary;\n }", "@Override\n\tpublic String formatEvent(Event event) {\n\t\treturn event.getStartingTime() + \":00 - \"\n\t\t\t + event.getEndingTime() + \":00: \" + event.getEventName() + '\\n';\n\t}", "public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId()+\"-\"+this.getOccurrenceMark();\n\t}", "@Override\n public void emit(MetricEvent metricEvent) {\n }", "public void xsetSummary(org.apache.xmlbeans.XmlString summary)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SUMMARY$18);\n }\n target.set(summary);\n }\n }", "public void setSummary(String summary) {\n this.summary = summary == null ? null : summary.trim();\n }", "private String makeEventDescription(String description) {\n return \"DESCRIPTION:\" + description + \"\\n\";\n }", "@Test public void summaryInfoTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(\"summary Test\", true, \n pList.summaryInfo().contains(\"Total\"));\n \n }", "private String getEventDescription(Event event) {\n String day = getDayDescription(event);\n String typeOfEvent = getEventType(event);\n String description = day + \" \" + typeOfEvent + event.getName();\n if (description.length() > 18) {\n return description.substring(0, 16) + \"...\";\n }\n return description;\n }", "private void showPropertyDescription(MouseEvent event) {\r\n\t\tPropertyDescriptionStage propertyDescriptionStage = new PropertyDescriptionStage(property);\r\n\t\tpropertyDescriptionStage.show();\r\n\t}", "public String toString() {\r\n\treturn \"DataEvent: \"\r\n\t\t+\"source=\"+getSource()\r\n\t\t+\", jobID=\"\r\n\t\t+ vcDataJobID\r\n\t\t+ \", progress=\\\"\"\r\n\t\t+ getProgress();\r\n}", "public void setSummary(String summary) {\r\n this.summary = summary == null ? null : summary.trim();\r\n }", "public void Print_event_value(String v)\n {\n\n System.out.println(v + \": \" + event_value);\n }", "ExpressionExperimentDetailsValueObject generateSummary( Long id );", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.SUMMARY,\n jname = \"summary\",\n adderName = \"summary\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setSummaries(final Set<BwString> val) {\n summaries = val;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"Statistical output: \"\n\t\t\t\t+\"replication size = \"+this.replicationSize+\"; \"\n\t\t\t\t+\"sample size = \"+this.sampleSize+\"; \"\n\t\t\t\t+\"mean = \"+this.mean+\"; \"\n\t\t\t\t+\"std. dev. = \"+this.stDev+\"; \"\n\t\t\t\t+\"CI width (alpha = \"+this.alpha+\"; \"+this.nameOfStatisticalTest+\" ) = \"+this.CIWidth+\".\";\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.element +\" \"+duplicateCount+\" \"+probeCount;\n\t}", "@Override\n\tpublic void event( final NetWorthEvent event, final SimulationState state ) {\n\t\tif (SimulationState.COMPLETE == state) {\n\t\t\tfile.write(output(event));\n\t\t}\n\t}", "org.apache.xmlbeans.XmlString xgetSummary();", "public void printVenueCharges (Event _event) {\n\t}", "public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }", "public String getSummary() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append( \"<html> Carrying <b>\");\r\n\t\tsb.append( getEquipmentCount() );\r\n\t\tsb.append( \"</b> weighing <b>\" );\r\n\t\tsb.append( getEquipmentWeight() );\r\n\t\tsb.append( \"</b>lbs</html>\");\r\n\t\treturn sb.toString();\r\n\t}", "@ApiModelProperty(value = \"The event long description\")\n public String getDescription() {\n return description;\n }", "public void testUpdateSummary() throws Exception {\r\n System.out.println(\"updateSummary\");\r\n LocalDate date = null;\r\n Summarizer instance = null;\r\n instance.updateSummary(date);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Override\n public String toString() {\n StringBuilder newString = new StringBuilder();\n newString.append(\"Event{\" +\n \"eventID: \" + eventID + \", \" +\n \"descendant: \" + descendant + \", \" +\n \"personID: \" + personID + \", \" +\n \"eventType: \" + eventType + \", latitude: \" + latitude +\n \", longitude: \" + longitude +\n \", country: \" + country +\n \", city: \" + city +\n \", year: \" + year + \"}\");\n return newString.toString();\n }", "public org.apache.xmlbeans.XmlString xgetSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SUMMARY$18);\n return target;\n }\n }", "public String getModifiedSummary() {\r\n\t\treturn modifiedSummary;\r\n\t}", "void writeEvent (Event event) throws Exception {\n this.write(\"[event]\\n\");\n this.write(\"timeline \" + event.timeline.name + \"\\n\");\n this.write(\"name \" + event.name + \"\\n\");\n this.write(\"startDate \" + event.startDate[0] + \" \" + event.startDate[1] + \" \" + event.startDate[2] + \"\\n\");\n this.write(\"endDate \" + event.endDate[0] + \" \" + event.endDate[1] + \" \" + event.endDate[2] + \"\\n\");\n this.write(\"visible \" + (event.visible ? 1 : 0) + \"\\n\");\n this.write(event.notes + \"\\n[/event]\\n\");\n this.newLine();\n this.flush();\n }", "public String getEventTypeDescription()\n {\n return eventTypeDescription;\n }", "@Override\r\n\tpublic String getToolTipText(MouseEvent event) {\r\n return toolTipWriter.write(getToolTipText(), event.getPoint());\r\n }", "public String getEventInfo() {\n\t\treturn String.format(\"%s, which now has %s participant(s)\",\n\t\t\tthis.title, this.participants);\n\t}", "public String toString() {\n StringBuffer buffer = new StringBuffer(\"\\t<semantic_event\");\n\n if (transactionId != null) {\n buffer.append(\" transaction_id=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(transactionId));\n buffer.append(\"\\\"\");\n }\n\n if (name != null) {\n buffer.append(\" name=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(name));\n buffer.append(\"\\\"\");\n }\n\n if (trigger != null) {\n buffer.append(\" trigger=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(trigger));\n buffer.append(\"\\\"\");\n }\n\n if (subtype != null) {\n buffer.append(\" subtype=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(subtype));\n buffer.append(\"\\\"\");\n }\n\n buffer.append(\"/>\\n\");\n\n return buffer.toString();\n }", "java.lang.String getDescribe();", "String evel_json_encode_event()\r\n\t {\r\n\t\tEVEL_ENTER();\r\n\t\t\r\n\t\tassert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t \r\n\t JsonObject obj = Json.createObjectBuilder()\r\n\t \t .add(\"event\", Json.createObjectBuilder()\r\n\t\t \t .add( \"commonEventHeader\",eventHeaderObject() )\r\n\t\t \t .add( \"thresholdCrossingAlert\",evelThresholdCrossingObject() )\r\n\t\t \t ).build();\r\n\r\n\t EVEL_EXIT();\r\n\t \r\n\t return obj.toString();\r\n\r\n\t }", "public String summaryStats() {\n\t\treturn new StringBuilder()\n\t\t\t\t.append(\"Documents: \"+countCorpusDocuments()+\", \")\n\t\t\t\t.append(\"Terms: \"+countCorpusTerms()+\", \")\n\t\t\t\t.append(\"Unique terms: \"+countUniqueTerms()).toString();\n\t}", "public String getEventInfo()\n {\n return \"Event ID: \" + this.hashCode() + \" | Recorded User\\n\" + String.format(\"\\tName %s \\n\\tDate of Birth %s \\n\\tEmail %s \\n\\tContact Number %s \\n\\tAge %d \\nDate %s \\nTime %s \\nParty Size %d \\nEstablishment \\n\\tName: %s \\n\\tAddress: %s\",\n user.getName(), user.getDateOfBirthAsString(), user.getEmail(), user.getPhoneNumber(), \n user.getAge(), getEventDateAsString(), getEventTimeAsString(), partyNumber, establishment.getName(), establishment.getAddress());\n }", "@Override\n\tpublic void describe(Map<String, String> out) {\n\t\tsuper.describe(out);\n\t\tout.put(\"Type\", \"New Highway \" + roadID);\n\t}", "void xsetSummary(org.apache.xmlbeans.XmlString summary);", "public String summary()\n {\n String summary = mName;\n \n if(isARuleBreaker())\n {\n summary += \" – \" + numberOfBrokenRules() + \" st regelbrott, \" + fineAmountOfBrokenRules() + \" kronor\";\n }\n else\n {\n summary += \" – INGA regelbrott!\";\n }\n \n return summary;\n }", "SummaryStatusEnum getSummaryStatus();", "public void getSummary() { \n int randomTableNumber = (int)(Math.random() * 7) + 1;\n System.out.println(\"============================\");\n\n if (blnTakeOut == true) {\n System.out.println(\"Takeout order: \");\n } else if (blnTakeOut == false) {\n System.out.println(\"Table #\" + randomTableNumber + \"'s order: \");\n }\n\n for (int i = 0; i < itemsInOrder.size(); i++) {\n itemsInOrder.get(i).getSummary();\n }\n\n System.out.println(\"============================\");\n }", "public String getEventTitle() {\n\t\treturn title;\n\t}", "String getDescribe();", "String getDescribe();", "IParser setSummaryMode(boolean theSummaryMode);", "public String printSummary(){\n String ans=\"\";\n for(Sentence sentence : contentSummary){\n //tv_output.setText(sentence.value);\n ans+=sentence.value + \".\";\n }\n return ans;\n }", "@Override\n\tpublic String getSummary(Locale locale) {\n\t\treturn \"Title: \" + _dataset.getTitle();\n\t}", "@NonNull\n public Optional<String> getSummary() {\n return Optional.ofNullable(this.summary);\n }", "public boolean is_set_summary() {\n return this.summary != null;\n }", "void emit() {\n counter.increment(METRIC_VALUE);\n }", "@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"Seorang yang mengendarai kendaraan dan bekerja\");\r\n\t}", "public String toString() {\n StringBuilder sb = new StringBuilder();\n return sb.append(summary).append(\" is \").append(getValueDescription()).toString();\n }", "public String getDescribe() {\n return describe;\n }", "@Override\n public final String toString()\n {\n StringBuilder sb = new StringBuilder(64);\n appendDesc(sb);\n return sb.toString();\n }", "public void setSummary(Preference pref) {\n }", "public String getDescription() {\n \treturn metricMetadata.getDescription();\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId();\n\t}" ]
[ "0.6453525", "0.6439895", "0.637623", "0.63493824", "0.62962985", "0.6289795", "0.6247808", "0.61689883", "0.61689883", "0.61329776", "0.6084321", "0.6040706", "0.6012189", "0.5999938", "0.59680605", "0.5920639", "0.58938146", "0.58822215", "0.5867878", "0.5828077", "0.5744759", "0.5738132", "0.5719398", "0.57187456", "0.5703837", "0.5672829", "0.56705064", "0.5666599", "0.5634155", "0.5551745", "0.54990655", "0.5488998", "0.5487513", "0.5464083", "0.5463648", "0.5436792", "0.542628", "0.54040843", "0.5402089", "0.5378457", "0.53757906", "0.5365266", "0.53561795", "0.53430986", "0.53311753", "0.5331164", "0.5322609", "0.5320187", "0.5316398", "0.5315041", "0.5308312", "0.53018075", "0.5301335", "0.53000367", "0.5296882", "0.5294177", "0.5292133", "0.52854365", "0.5280762", "0.5280568", "0.52700895", "0.52668446", "0.52335185", "0.52301264", "0.52229017", "0.5207266", "0.5201831", "0.519674", "0.5178023", "0.5176245", "0.51708657", "0.5164342", "0.5159948", "0.5149146", "0.51333374", "0.5129056", "0.5121298", "0.51158094", "0.51017416", "0.50898105", "0.50861216", "0.50805837", "0.50729877", "0.5072528", "0.50722504", "0.5067501", "0.5067501", "0.5064778", "0.50630265", "0.5053822", "0.50397503", "0.50373155", "0.50341564", "0.503078", "0.5013476", "0.5007725", "0.5004669", "0.5002876", "0.50003684", "0.49958053" ]
0.71241087
0
Write SUMMARY property of Course
@SuppressWarnings("unused") private String makeEventSummmary(Course item, String pattern) { String summary = parsePattern(item, pattern); return makeEventSummary(summary); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSummary();", "public String displayCourse(){\n return \"\\tCourse Id: \" + id + \"\\n\" +\n \"\\tCourse Name: \" + name + \"\\n\" +\n \"\\tCourse Description: \" + description + \"\\n\" +\n \"\\tCourse Teacher(s): \" + teacherString() + \"\\n\";\n }", "public String getCourseDesc() {\n return courseDesc;\n }", "public java.lang.String getSummary(){\r\n return this.summary;\r\n }", "public String getSummary();", "public void printCourseDetails()\n {\n // put your code here\n System.out.println(\"Course \" + codeNo + \" - \" + title);\n }", "public void courseInfo() {\n\t\tList<Course> unfinishedCourses = super.getUnfinishedCourses();\n\t\tList<Course> finishedCourses = super.getFinishedCourses();\n\n\t\tString retStr = \"Unfinished Courses: \";\n\t\tfor (int i = 0; i < unfinishedCourses.size(); i++) {\n \tretStr += unfinishedCourses.get(i);\n \tif (i != unfinishedCourses.size()-1) {\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nFinished Courses: \";\n\t\tfor (int i = 0; i < finishedCourses.size(); i++) {\n \tretStr += finishedCourses.get(i);\n \tif (i != finishedCourses.size()-1) {\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nHP: \" + this.hp;\n\t\tSystem.out.println(retStr);\n\t}", "public String toString() {\r\n return COURSE_ID + \"-\" + COURSE_NAME;\r\n }", "public String studentInfo()\n\t{\n\t\tString strStudentInfo;\n\t\tDecimalFormat percent = new DecimalFormat(\"0.0%\");\n\t\tdouble dRoundedCourseAverage;\n\t\tdouble dCourseAverage;\n\t\tdCourseAverage= courseAverage();\n\t\t\t\n\t\tdRoundedCourseAverage= Math.round(dCourseAverage);\n\t\tstrStudentInfo =\n\t\t(\"\\nName: \" + name +\n\t\t\"\\nCourse: \" + courseDesc +\n\t\t\"\\nNumber: \" + courseNum +\n\t\t\"\\nInstructor:\" + instructor +\n\t\t\"\\nGrades:\" +\n\t\t\"\\nTest: \\tAverage: \"+ average('t') +\"\\tPercent: \" + pctT +\n\t\t\"\\nQuizzes: \\tAverage: \"+ average('q') +\"\\tPercent: \" + pctQ +\n\t\t\"\\nProject: \\tAverage: \"+ average('p') +\"\\tPercent: \" + pctP +\n\t\t\"\\nCourse Average: \" + dCourseAverage + \"(or \"+\n\t\t\tpercent.format(dRoundedCourseAverage/100) + \")\");\n\t\treturn strStudentInfo;\n\t}", "private void _generateACourse(int index) {\n\t String id = _getId(CS_C_COURSE, index);\n writer_.startSection(CS_C_COURSE, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#Course\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_NAME,\n _getRelativeName(CS_C_COURSE, index), false);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#name\", _getRelativeName(CS_C_COURSE, index), false);\t \t \t \t \n }\n writer_.endSection(CS_C_COURSE);\n }", "public abstract CharSequence getSummary();", "public String getSummary() {\r\n return summary;\r\n }", "public String getSummary() {\n return summary;\n }", "public String toString() {\r\n String string; //a string is created to hold the information about the student\r\n string = \"Name: \" + getName(); //the name is added to the string\r\n string = string + \", Gender: \" + getGender(); //gender is added\r\n string = string + \", Age: \" + getAge(); //age is added\r\n string = string + \", Courses enroled: \";\r\n if (getCourse().length == 0) {\r\n string = string + \"None\"; //returns none if the student is not enroled into a course\r\n } else {\r\n for (Course course : getCourse())\r\n string = string + course.getSubject().getDescription() + \" \"; //adds the subject description if theyre in a course\r\n }\r\n string = string + \", Certificates: \";\r\n if (getCertificates().size() == 0) {\r\n string = string + \"None\"; //displays none if the student has no certificates\r\n }\r\n for (Integer id : getCertificates().toArray(new Integer[getCertificates().size()])) {\r\n string = string + id + \" \"; //adds each id of each course completed\r\n }\r\n return string + \"\\n\";\r\n }", "@Override\n public String toString() {\n String str = \"\";\n \n str += String.format(\"%-20s: %s\\n\", \"Name\", name);\n str += String.format(\"%-20s: %s\\n\", \"Gender\", gender);\n str += String.format(\"%-20s: %s\\n\\n\", \"Email\", email);\n \n str += String.format(\"%-20s %-30s %-10s %s\\n\", \"Course\", \"Name\", \"Credit\", \"Score\");\n str += \"---------------------------------------------------------------\\n\";\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 1\", \n course1.getCourseName(), course1.getCredit(), course1.calcFinalScore());\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 2\", \n course2.getCourseName(), course2.getCredit(), course3.calcFinalScore());\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 3\", \n course3.getCourseName(), course3.getCredit(), course3.calcFinalScore());\n str += String.format(\"%-20s: %d\\n\", \"Passed Courses\", calcPassedCourseNum());\n str += String.format(\"%-20s: %.1f\\n\", \"Passed Courses\", calcTotalCredit());\n \n return str;\n }", "public String toString(){\n\t\tString temp = new String();\n\n\t\tif(cancelled){\n\t\t\ttemp+=\"WARNING COURSE SHOULD BE CANCELLED!\\n\";\n\t\t}\n\n\t\ttemp += \" Course subject ID: \" + subject.getID();\n\t\ttemp += \"\\n \" + (getStatus() < 0 ? \"Due to start\" : \"Finishes\") + \" in: \" + Math.abs(getStatus());\n\t\ttemp += \"\\n \" + (instructor == null ? \"Instructor not assigned\" : \"Instructor: \" + instructor.getName());\n\t\ttemp += \"\\n Amount of students enrolled: \" + enrolled.size() + \"\\n Enrolled list:\\n\";\n\n\t\tfor(Student student : enrolled){\n\t\t\ttemp+= \" * \" + student.getName() + \"\\n\";\n\t\t}\n\t\treturn temp;\n\t}", "private void detailedCoursePrint(Course course) {\n System.out.println(\"Name: \" + course.getName());\n for (String subCourse : course.getSubClassNames()) {\n printNameWithTimes(course, subCourse, \"Section\");\n }\n for (String lab : course.getLabNames()) {\n printNameWithTimes(course, lab, \"Lab\");\n }\n for (String tutorial : course.getTutorialNames()) {\n printNameWithTimes(course, tutorial, \"Tutorial\");\n }\n }", "private static String courseLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, COURSE_STR, COURSE);\n }", "public String toString() {\n return \"\"+courseID;\n }", "@Override\r\n\tpublic double getCourse() {\n\t\treturn this.course;\r\n\t}", "public String toString() \n {\n String outString = \"\\nCourse Id: \" + courseId;\n outString += \"\\nClass Name: \" + className;\n outString += \"\\nAssignments: \\n\";\n for (Assignment assignment : assignments) \n {\n outString += assignment.toString();\n }\n return outString;\n }", "public String getSummary() {\n\t\treturn summary;\n\t}", "public String getSummary() {\n\t\treturn summary;\n\t}", "public String getCourse() {\n\t\treturn Course;\n\t}", "public java.lang.String getCourseProperty() {\n return courseProperty;\n }", "public String toString() {\n String s = \"Computer Science Courses for \" + semester + \":\\n\";\n for (int i = 0; i < courseList.size(); i++) {\n s += courseList.get(i) + \"\\n\";\n }\n return s;\n }", "public String toString() {\n\t\t\tString ret = header + \":\";\n\t\t\tfor (Iterator i = practices.iterator(); i.hasNext();) {\n\t\t\t\tret += \"\\n\\t\" + (String) i.next();\n\t\t\t}\n\t\t\treturn ret;\n\t\t}", "public String printStudentCourses() {\r\n String s = \"Completed courses: \\n\";\r\n for (Registration r : completeCourses) {\r\n s += r.toString();\r\n }\r\n s += \"Current courses: \\n\";\r\n for (Registration r : studentRegList) {\r\n s += r.toString();\r\n }\r\n s += \"\\0\";\r\n return s;\r\n }", "private void showCourseCatalogue()\r\n {\r\n \tCourseCatalogue courseCat = this.getDBManager().getCourseCat();\r\n \tthis.getClientOut().printf(\"SUCCESS\\n%s\\n\", courseCat.toString());\r\n \tthis.getClientOut().flush();\r\n }", "public String getCourseTitle() {\n return courseTitle;\n }", "@Override\r\n\tpublic String getSummary() {\n\t\treturn null;\r\n\t}", "void setSummary(java.lang.String summary);", "public String toString() {\r\n \treturn \"Course: \"+courseName+\"|\"+cid+\"|\"+start+\"|\"+end+\"|\"+modules.size()+\" modules\";\r\n }", "public void printReport(){\n\t\tSystem.out.println(\"This is \" + name + \", UPENN \" + graduationYear);\n\t\tSystem.out.println(\"Their GPA is \" + GPA);\n\t\tString numCoursesString = \"\";\n\t\tif (numCoursesCompleted == 1){\n\t\t\tnumCoursesString=\"course\";\t//if the student has only taken one course, just print course\n\t\t}\n\t\telse{\n\t\t\tnumCoursesString=\"courses\"; //if the student has taken more than one course, print courses when called\n\t\t}\n\t\tSystem.out.println(\"They have taken \" + numCoursesCompleted + \" \" + numCoursesString); \n\t}", "public String toString() {\r\n\t\tthis.gpaConverter();\r\n\t\treturn (\"Course Name: \" + this.name + \" Credits: \" + this.credithours + \" GPA: \" + this.letterGrade);\r\n\t}", "public String getcourse() {\n\t\treturn course;\n\t}", "@Override\n\tpublic String getSummary() {\n\t\treturn null;\n\t}", "public String getSummary() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append( \"<html> Carrying <b>\");\r\n\t\tsb.append( getEquipmentCount() );\r\n\t\tsb.append( \"</b> weighing <b>\" );\r\n\t\tsb.append( getEquipmentWeight() );\r\n\t\tsb.append( \"</b>lbs</html>\");\r\n\t\treturn sb.toString();\r\n\t}", "private void viewSavedCourseList() {\n boolean detailed = yesNoQuestion(\"Would you like to look at the detailed version? (just names if no)\");\n\n System.out.println(\"The current active courses are:\\n \");\n for (int i = 0; i < courseList.getCourseList().size(); i++) {\n if (detailed) {\n System.out.println((i + 1) + \":\");\n detailedCoursePrint(courseList.getCourseList().get(i));\n } else {\n System.out.println((i + 1) + \": \" + courseList.getCourseList().get(i).getName());\n }\n }\n }", "@Override\n public String toFile() {\n String isDoneString = (isDone) ? \"1\" : \"0\";\n return getDescription() + \" | \" + getGrade() + \" | \" + getMc() + \" | \" + getSemester() + \" | \" + isDoneString;\n }", "public String toString () {\r\n String display = courseCode;\r\n display += \"\\nDepartment: \" + department;\r\n display += \"\\nGrade: \" + grade;\r\n return display;\r\n }", "public java.lang.String getSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getCourse() {\n return courseName;\n }", "java.lang.String getDesc();", "public String getInformation() {\n \treturn \"This is a Maths Assessment\" +\n \t\t\t \"\\nNumber of questions: \" + Integer.toString(numQuestions) + \n \t\t\t \"\\nClosing Date: \" + closingDate;\n }", "public void setSummary(String summary) {\n this.summary = summary;\n }", "@AutoEscape\n\tpublic String getCourse();", "public void printAllcourses() {\n\t\tfor (int i = 0; i < CourseManager.courses.size(); i++) {\n\t\t\tSystem.out.println(i + 1 + \". \" + CourseManager.courses.get(i).getName() + \", Section: \" + CourseManager.courses.get(i).getSection());\n\t\t}\n\t}", "public String getStudentsInCourse() {\n String output = \"\"; \n for (Student student : students) { // enhanced for\n output += student.toString() + \"\\n\";\n } // end for\n return output;\n }", "public String toString() {\n\t\treturn \"Student's name is \" + getname() + \".\" + System.lineSeparator() + \"Their Student ID number is \" \n\t\t\t\t+ getid() + \" while their course is \"+ getcourse() + System.lineSeparator();\n\t}", "private void _generateAGraduateCourse(int index) {\n\t String id = _getId(CS_C_GRADCOURSE, index);\n writer_.startSection(CS_C_GRADCOURSE, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#GraduateCourse\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_NAME,\n _getRelativeName(CS_C_GRADCOURSE, index), false);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#name\", _getRelativeName(CS_C_GRADCOURSE, index), false);\t \t \t \t \n }\n writer_.endSection(CS_C_GRADCOURSE);\n }", "public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }", "String getDesc();", "@JsonProperty(\"summary\")\n public String getSummary() {\n return summary;\n }", "public String getCourseName(){//getCourseName body start\n\t\treturn CourseName;\n\t}", "public String toString() {\n\t\tNumberFormat formatter = NumberFormat.getPercentInstance();\n\t\tformatter.setMinimumFractionDigits(1);\n\n\t\treturn (\"\\nStudent Name: \" + lastName + \", \" + firstName + \"\\nWID: \" + wId + \"\\nOverall Pct: \"\n\t\t\t\t+ formatter.format(scorePercent) + \"\\nFinal Grade: \" + calcFinalGrade());\n\t}", "public String toString () {\r\n\t\t\r\n\t\treturn \"Title: \"+this.title +\", Company: \"+company+\", Annual Salary: \"+annualSalary;\r\n\t}", "public String toString(){\r\n String text = String.format(\"%-20s %s %-20s %d\", \"Undergrad Student: \", super.toString(), \"\\n\\tYear level:\", getYearLevel());\r\n return text;\r\n }", "public void printCourseInfo() {\r\n\t\r\n\tString temp =CoursesList.get(0);\r\n\tSystem.out.println(temp);\r\n}", "public String toString() {\r\n\t\tString retVal = \"Description: \" + getDescription()+ \" Cost: \" + getCost() + \" Calories: \" + getCalories() ;\r\n\t\treturn retVal;\r\n\t}", "@Override\n public final String toString()\n {\n StringBuilder sb = new StringBuilder(64);\n appendDesc(sb);\n return sb.toString();\n }", "public native final String summary() /*-{\n\t\treturn this[\"summary\"];\n\t}-*/;", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\treturn description;\r\n\t\t}", "public abstract String getSummaryForDatabase();", "public String toString() {\n StringBuilder sb = new StringBuilder();\n return sb.append(summary).append(\" is \").append(getValueDescription()).toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn description;\n\t}", "public void setSummary(String summary) {\n this.summary = summary;\n }", "public void setCourseProperty(java.lang.String courseProperty) {\n this.courseProperty = courseProperty;\n }", "public String toString() {\n return description;\n }", "public String toString(){\n\t\t \n\t\treturn this.scholarship + \": \" + this.student + \", Date Submitted: \" + this.date + \", GPA: \" + this.gpa + \", Education Level: \" + this.edulvl + \", Priority: \" + this.priority + \", Status: \" + this.status;\n\t}", "public String getCourseName(){\n return courseName;\n }", "public String toString() {\r\n\t\treturn getDescription();\r\n\t}", "public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }", "public void printStudentInfo(){\r\n System.out.println(\"Name: \" + getName());\r\n System.out.println(\"Student Id: \" + getId());\r\n printMarks();\r\n System.out.println(\"\\nAverage \" + getAverage() + \"%\");\r\n printNumberOfCoursesInEachLetterGradeCategory();\r\n }", "@Override\npublic ArrayList<String> courses() {\n\tArrayList<String> studentCourses = new ArrayList<String>();\n\tstudentCourses.add(\"CMPE - 273\");\n\tstudentCourses.add(\"CMPE - 206\");\n\tstudentCourses.add(\"CMPE - 277\");\n\tSystem.out.println(this.name+\" has take these courses\");\n\tfor(int i = 0 ; i < studentCourses.size() ; i++){\n\t\tSystem.out.println( studentCourses.get(i));\n\t}\n\treturn null;\n}", "@Override\r\n public String toString() \r\n {\r\n return (String.format(\"#%d\\t %-20s\\t %-10s\\n\", this.studentId, this.studentName, this.studentMajor));\r\n }", "public String toString() {\r\n\t\treturn description;\r\n\t}", "public String getCourseName()\n {\n return courseName;\n }", "public String getDescription() {\n return sdesc;\n }", "public String printSummary(){\n String ans=\"\";\n for(Sentence sentence : contentSummary){\n //tv_output.setText(sentence.value);\n ans+=sentence.value + \".\";\n }\n return ans;\n }", "public Course getCourse() {\n return course;\n }", "public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}", "public static String courseDescription(long idCorso) {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.COURSE_DESCRIPTION;\n\t\trp.parameters = new Object[] { idCorso };\n\t\tReceiveContent rpc = sendReceive(rp);\n\t\tString descr = (String) rpc.parameters[0];\n\t\treturn descr;\n\t\t\n\t}", "public String getCourseName() {\r\n return COURSE_NAME;\r\n }", "public String roll() {\n String roll = courseName;\n for (Student student : studentList) {\n roll += \"\\n\\n\" + student.toString();\n }\n return roll;\n }", "public String getCourseNum() {\n return this.courseNum;\n }", "public void writeProperties(Properties prop) {\n writeProperties(prop, \"[ No description provided! ]\");\n }", "public String toString() {\r\n\t\treturn \"** Book \" + id + \"**\\nPlayground ID:\" + getPlaygroundID() + \"\\nPlayer ID: \" + getPlayerID() + \"\\nHour: \" + hour.toString() + \"\\nTotal Cost: \" + getCost() + \"\\nStatus: \" + status.toString();\r\n\t}", "public String toString() {\n\t\treturn description;\n\t}", "public String getDescription() {\n return (desc);\n }", "@Override\n public String toString() {\n return description;\n }", "public String toString() {\n\t\t\treturn description;\n\t\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Schedule with \" + this.courses.size() + \" courses.\";\n\t}", "@Override\n public String toString() {\n String toStr = String.format(\"ChiefExecutiveOfHA | %s, leadership %d, medicine %d, experience %d\", isReady() ? \"READY\" : \"DONE\",leadership, medicine, experience);\n return toStr;\n }", "@Override\r\n public String toString() {\r\n return String.format(\"%s\",\r\n description);\r\n }", "public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }", "public String getCourseName() {\n return this.courseName;\n }", "public String getStudyDescription()\n {\n return studyDescription;\n }", "protected String description() {\r\n\t\treturn \"Exam: duration \" + duration + \" minutes, weight \" + this.getWeight() + \"%\";\r\n\t}", "public String getDescription(){\n \n return\"\";\n }", "public String toString(Grade grade) {\n String Value = String.valueOf(grade.getValue());\n String final_value = teachingUnitName+\" : \" + Value + \"/20\";\n return final_value;\n }" ]
[ "0.6467494", "0.63388157", "0.6307562", "0.62863296", "0.62665474", "0.61881244", "0.6171919", "0.61078477", "0.60638064", "0.6050424", "0.6026987", "0.6019045", "0.59702355", "0.59474355", "0.5921164", "0.5885872", "0.58790874", "0.5855117", "0.5849203", "0.583794", "0.5814247", "0.58075327", "0.58075327", "0.5797355", "0.57935464", "0.5788469", "0.5774605", "0.5748387", "0.5742423", "0.5737692", "0.5735198", "0.5725675", "0.5724017", "0.5714306", "0.5712763", "0.57060546", "0.5677996", "0.5660692", "0.5606251", "0.5591906", "0.55864686", "0.55848604", "0.55676717", "0.5566846", "0.55661416", "0.5562606", "0.55538654", "0.5551213", "0.5550291", "0.5540529", "0.55389494", "0.55298936", "0.5522566", "0.5520511", "0.5519096", "0.5513099", "0.5511288", "0.55021554", "0.5498847", "0.54947966", "0.5494095", "0.54922116", "0.54905194", "0.54864734", "0.54775107", "0.54717296", "0.54644996", "0.5451991", "0.544977", "0.5447826", "0.5447012", "0.5441847", "0.5435107", "0.5433515", "0.54207945", "0.5419277", "0.5416112", "0.5413439", "0.5409368", "0.540453", "0.54043365", "0.54030925", "0.539525", "0.53935134", "0.53881586", "0.53836185", "0.53763086", "0.53702295", "0.5367953", "0.53675145", "0.536428", "0.5361393", "0.53518355", "0.53498685", "0.53485596", "0.5338743", "0.5337825", "0.53371376", "0.533606", "0.5328424", "0.532599" ]
0.0
-1
Write DESCRIPTION property of event
private String makeEventDescription(String description) { return "DESCRIPTION:" + description + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEventDescription() {\n\t\treturn description;\n\t}", "public void setEventDescription(String newDesc) {\n\t\tthis.description = newDesc;\n\t}", "private String getEventDescription(Event event) {\n String day = getDayDescription(event);\n String typeOfEvent = getEventType(event);\n String description = day + \" \" + typeOfEvent + event.getName();\n if (description.length() > 18) {\n return description.substring(0, 16) + \"...\";\n }\n return description;\n }", "public String getDESCRIPTION() {\r\n return DESCRIPTION;\r\n }", "@ApiModelProperty(value = \"The event long description\")\n public String getDescription() {\n return description;\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "public java.lang.CharSequence getDESCRIPTION() {\n return DESCRIPTION;\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn description;\n\t}", "public java.lang.CharSequence getDESCRIPTION() {\n return DESCRIPTION;\n }", "public String getDescription() {\r\n return DESCRIPTION;\r\n }", "public String getDescription()\r\n {\r\n\treturn desc;\r\n }", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "@Override\n public String getDescription() {\n return descriptionText;\n }", "public String getDescription() {\n return sdesc;\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "@Override\n public String getDescription() {\n return description;\n }", "@Override\n public String getDescription() {\n return description;\n }", "public String getDescription() {\n return (desc);\n }", "@Override\n public String getDescription() {\n return this.description;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "public String getDescription() {\n return desc;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\n return DESCRIPTION;\n }", "public String getDescription() {\n return desc;\n }", "public String getDesc()\r\n {\r\n return description;\r\n }", "@Override\n public String getDescription()\n {\n return m_description;\n }", "public String getDescription() throws Exception{\n\treturn strDesc;\n }", "public String getDescription() { return description; }", "public String getDescription() {\n return (String) getAttributeInternal(DESCRIPTION);\n }", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getDescription() {\r\n return Description; \r\n }", "public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }", "public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }", "public String description(){\n return this.DESCRIPTION;\n }", "public String getDescription() {\n return getString(KEY_DESCRIPTION);\n }", "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription() {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "@Override\r\n public String toString() {\r\n return String.format(\"%s\",\r\n description);\r\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn \"\";\r\n\t}", "java.lang.String getDesc();", "public String getDescription() {\r\n return _description;\r\n }", "public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}", "@Override\n\tpublic String getDesc() {\n\t\treturn auto.getDesc() + AC_DESCRIPTION;\n\t}", "public String getDescription() {\n return description; \n }", "public void setDESCRIPTION(java.lang.CharSequence value) {\n this.DESCRIPTION = value;\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String description() {\n return this.descr;\n }" ]
[ "0.7840988", "0.71036065", "0.7099149", "0.7014362", "0.6995904", "0.6917045", "0.69037354", "0.6868693", "0.68676335", "0.6863071", "0.6842243", "0.6841835", "0.6838325", "0.68279755", "0.6817884", "0.68098855", "0.68052566", "0.68039197", "0.67965156", "0.6775673", "0.6771371", "0.67672324", "0.6763076", "0.6754227", "0.67532974", "0.67453754", "0.6720091", "0.67179644", "0.6705562", "0.6704403", "0.66968125", "0.6696573", "0.6686947", "0.66783595", "0.66768545", "0.66768545", "0.66730046", "0.66640264", "0.66616684", "0.6651712", "0.6651712", "0.6651712", "0.6651712", "0.6651712", "0.6651712", "0.6651712", "0.6651712", "0.66396403", "0.66377413", "0.66351825", "0.6631452", "0.66265434", "0.6622298", "0.66201764", "0.66194963", "0.661857", "0.6612395", "0.66059256", "0.6591595", "0.6587801", "0.6587801", "0.6587801", "0.6587801", "0.6587801", "0.6587801", "0.6587801", "0.6587801", "0.6587801", "0.6587801", "0.6576969", "0.65764594", "0.65764594", "0.65764594", "0.65747344", "0.65747344", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.656918", "0.6565883" ]
0.7849792
0
Write DESCRIPTION property of Course
@SuppressWarnings("unused") private String makeEventDescription(Course item, String pattern) { String description = parsePattern(item, pattern); return makeEventDescription(description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCourseDesc() {\n return courseDesc;\n }", "public String getDESCRIPTION() {\r\n return DESCRIPTION;\r\n }", "java.lang.String getDesc();", "public String getDescription() {\n return (desc);\n }", "public String getDesc()\r\n {\r\n return description;\r\n }", "public String getDescription()\r\n {\r\n\treturn desc;\r\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "String getDesc();", "public String getDesc() {\n ListIterator<Item> roomContents = contents.listIterator();\n String contentString = \"\";\n while (roomContents.hasNext()) {\n contentString\n = contentString + (roomContents.next()).getDesc() + \" \";\n }\n\n return description + '\\n' + '\\n'\n + \"Room Contents: \" + contentString + '\\n';\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}", "public String getDescription() {\n return sdesc;\n }", "public String getDescription() {\n return desc;\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public String getDescription(){\n return description;\n }", "public String getDescription(){\n return description;\n }", "public java.lang.CharSequence getDESCRIPTION() {\n return DESCRIPTION;\n }", "public CharSequence getDescription() {\n return description;\n }", "public static String courseDescription(long idCorso) {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.COURSE_DESCRIPTION;\n\t\trp.parameters = new Object[] { idCorso };\n\t\tReceiveContent rpc = sendReceive(rp);\n\t\tString descr = (String) rpc.parameters[0];\n\t\treturn descr;\n\t\t\n\t}", "public String getDescription() {\n return description; \n }", "public java.lang.CharSequence getDESCRIPTION() {\n return DESCRIPTION;\n }", "public String getDescription() throws Exception{\n\treturn strDesc;\n }", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "public CharSequence getDescription() {\n return description;\n }", "public String getDescription() {\n return desc;\n }", "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "public String getDescription(){return description;}", "public String getDescription(){return description;}", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public String\ntoString() {\n\treturn DESCRIPTION;\n}", "@Override\n\tpublic String getDesc() {\n\t\treturn auto.getDesc() + AC_DESCRIPTION;\n\t}", "protected String getDescription()\n {\n return description;\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription() {\r\n return Description; \r\n }", "public String getDescription() {\r\n return DESCRIPTION;\r\n }", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getDescription() { return description; }", "public String getDescription() {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription() {\n return DESCRIPTION;\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public java.lang.Object getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "@Updatable\n public String getDescription() {\n return description;\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription(){ return description; }", "public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }", "public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}", "public String getDescription()\n {\n return description;\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription () {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\n\t\treturn description;\n\t}" ]
[ "0.7637517", "0.7129732", "0.712064", "0.71031797", "0.70403", "0.7016723", "0.7010004", "0.6991184", "0.6976342", "0.697048", "0.69501215", "0.69350183", "0.6920181", "0.6919091", "0.691474", "0.691474", "0.69088054", "0.69074607", "0.69025624", "0.6901263", "0.69010794", "0.69001865", "0.68980956", "0.68980956", "0.68980956", "0.68980956", "0.68980956", "0.68980956", "0.68980956", "0.68980956", "0.68980956", "0.6898081", "0.68963313", "0.68937606", "0.6889988", "0.6889988", "0.6887574", "0.6871512", "0.68707806", "0.6870589", "0.68672496", "0.6858298", "0.6850141", "0.684252", "0.6837187", "0.68342507", "0.6830227", "0.68294406", "0.68225455", "0.681881", "0.68185586", "0.68185586", "0.68185586", "0.68185586", "0.68185586", "0.68185586", "0.68185586", "0.68185586", "0.6804341", "0.6804341", "0.6804341", "0.6804341", "0.6795051", "0.6795036", "0.67935884", "0.67935884", "0.67935884", "0.6790091", "0.6789476", "0.6789476", "0.6789476", "0.6789476", "0.6789476", "0.6789476", "0.6789476", "0.6789476", "0.6789476", "0.6789476", "0.6788672", "0.6785756", "0.6785756", "0.6779357", "0.6775825", "0.6774633", "0.67741483", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771635", "0.6771359", "0.6771359", "0.6771359", "0.6771359" ]
0.0
-1
Write LOCATION property of event
private String makeEventLocation(String location) { return "LOCATION:" + location + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEventLocation() {\n\t\treturn location;\n\t}", "public String getEventLocation() {\n\t\treturn eventLocation;\n\t}", "public void setEventLocation(String newLoc) {\n\t\tthis.location = newLoc;\n\t}", "public void setEventLocation(String eventLocation) {\n\t\tthis.eventLocation = eventLocation;\n\t}", "@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}", "public EventHandle createReportLocationEvent(){\n reportLocationEventName = name+\"_reportLocactionEvnt\";\n reportLocation = ECAAgent.getDefaultECAAgent().createPrimitiveEvent(\n reportLocationEventName, // Event name\n \"MAKEFITS.Track\", // class Name\n EventModifier.END, // Event Modifier\n \"void setLatitudeLongitude(Latitude,Longitude)\", // Method signature\n this); // Instance (track1, track2,...,or trackN)\n return (PrimitiveEventHandle) reportLocation;\n }", "@Override\n public String getLocation() {\n return location;\n }", "@Override\n\tpublic String getLocation() {\n\t\treturn this.location;\n\t}", "private void writeActualLocation(Location location)\n {\n //textLat.setText( \"Lat: \" + location.getLatitude() );\n //textLong.setText( \"Long: \" + location.getLongitude() );\n //T.t(MapsActivity.this, \"\" + \"Lat: \" + location.getLatitude() + \"\" + \"Long: \" + location.getLongitude());\n markerLocation(new LatLng(location.getLatitude(), location.getLongitude()));\n }", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "@Override\n\tpublic void setLocation(String l) {\n\t\tlocation = l;\n\t\t\n\t}", "public String getLocation(){\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "@Override\n public void setLocation(String location) {\n this.location = location;\n }", "public String location() {\n return this.location;\n }", "public String location() {\n return this.location;\n }", "public native final String location() /*-{\n\t\treturn this[\"location\"];\n\t}-*/;", "public String getLocation() {\n return this.location;\n }", "public void setLocation(String location){\n this.location = location;\n }", "public void setLocation(String location){\n this.location = location;\n }", "public void setLocation(String location);", "public String getLocation() {\r\n return location;\r\n }", "public String getLocation() {\r\n return location;\r\n }", "public String getLocation() {\r\n\t\treturn location; \r\n\t}", "public void setLocation(String location) {\r\n this.location = location;\r\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\r\n\t\treturn location;\r\n\t}", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location)\n {\n this.location = location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}", "public String getLocation()\n {\n return location;\n }", "public String getLocation() {\n\t\treturn location;\n\t}", "public void setLocation(String location) {\r\n this.location = location;\r\n }", "public String getLocation(){\r\n return location;\r\n }", "protected void setLocation(String location){\r\n this.location = location;\r\n }", "@SuppressWarnings(\"unused\")\n private String makeEventLocation(Course item) {\n String location = item.getLocation();\n return makeEventLocation(location);\n }", "@Override\r\n\tpublic Location getEventLocation() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Location getEventLocation() {\n\t\treturn null;\r\n\t}", "public void setLocation(URI location)\r\n/* 288: */ {\r\n/* 289:432 */ set(\"Location\", location.toASCIIString());\r\n/* 290: */ }", "public void onLocationChanged(Location location) {\n \t\tprintMyCurrentLocationAsString(location);\n \t\t\n\t\t\n \t}", "public java.lang.String getLocation() {\n return location;\n }", "public java.lang.String getLocation() {\n return location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\r\n\t\tthis.location = location;\r\n\t}", "public String getLocation() {\n\t\t\treturn location;\n\t\t}", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:location\")\n public String getLocation() {\n return getProperty(LOCATION);\n }", "public String getLocation(){\n return location;\n }", "@Override\n\tpublic void office_location() {\n\t\tSystem.out.println(\"Office location is Gurgaon\");\n\t}", "public void setLocation(Location loc) {\n this.location = loc;\n }", "protected String getLocation(){\r\n return this.location;\r\n }", "protected void writeLoc(IPositionable loc)\n\t{\n\t\twriteD(loc.getX());\n\t\twriteD(loc.getY());\n\t\twriteD(loc.getZ());\n\t}", "public final String getLocation() {\n return location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public String getLocation(){\r\n return Location;\r\n }", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public int getLocation()\r\n {\r\n return location;\r\n }", "public byte[] getLocation() {\r\n return location;\r\n }", "@Override\n \tpublic void onLocationChanged(Location location) {\n \t\tthis.location = location;\n \t}", "public String getLocationString() {\r\n\t\treturn \"Location = (\" + Math.round(getLocationX() * 10) / 10.0 + \", \" + Math.round(getLocationY() * 10) / 10.0 + \")\";\r\n\t}", "public final void setLocation(String value) {\n location = value;\n }", "public native final Calendar location(String val) /*-{\n\t\tthis[\"location\"] = val;\n\t\treturn this;\n\t}-*/;", "public String getLocation() {\n\t\treturn mLocation;\n\t}", "@Override\n public void setLocation(geo_location p) {\n this.location.setX(p.x());\n this.location.setY(p.y());\n this.location.setZ(p.z());\n }", "public String getLocation() {\n return mLocation;\n }", "public void setLocation(Point loc){\n\t\tthis.location = loc;\n\t}", "@AutoEscape\n\tpublic String getLocation();", "public void setLocation(Location location) \n\t{\n\t\tthis.location = location;\n\t}", "public void setLocation(Location location) {\r\n\t\tthis.location = location;\r\n\t}", "public void setLocation(final String location) {\n this.location = location;\n }", "public com.google.protobuf.ByteString\n getLocationBytes() {\n java.lang.Object ref = location_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n location_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public PointF getLocation() {\n return location;\n }", "public void setLocation(Point location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n inputParameters.Location = location;\n\n }", "private void getLocation() {\n\n }" ]
[ "0.7166158", "0.6979817", "0.6912944", "0.68659294", "0.63218963", "0.630373", "0.629359", "0.62909585", "0.6282368", "0.6280389", "0.6280389", "0.62483346", "0.61996293", "0.6192846", "0.6192846", "0.6192846", "0.6192846", "0.6192846", "0.61863154", "0.61774397", "0.61774397", "0.6168364", "0.6161572", "0.61559916", "0.61559916", "0.6151492", "0.613182", "0.61199105", "0.6107146", "0.6104022", "0.60974133", "0.60801154", "0.6077384", "0.60728085", "0.6061668", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.60580695", "0.6054713", "0.6053584", "0.60484946", "0.6041715", "0.6040848", "0.60158825", "0.6014708", "0.60012394", "0.5998653", "0.5998653", "0.59956896", "0.5972469", "0.5971797", "0.5970327", "0.596656", "0.596656", "0.596656", "0.596656", "0.5958018", "0.5957952", "0.5952588", "0.5942049", "0.5941583", "0.59225196", "0.5918425", "0.5909986", "0.5905336", "0.5899573", "0.5899573", "0.5899573", "0.5895452", "0.587999", "0.587999", "0.587999", "0.587359", "0.58574283", "0.5856195", "0.58484685", "0.58475363", "0.5846203", "0.5843986", "0.5838527", "0.58351946", "0.5830889", "0.58217114", "0.58040047", "0.58020496", "0.57809645", "0.57753026", "0.5752755", "0.57350254", "0.57325363", "0.5730663" ]
0.75216365
0
Write LOCATION property of Course
@SuppressWarnings("unused") private String makeEventLocation(Course item) { String location = item.getLocation(); return makeEventLocation(location); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocation(String location);", "public void setLocation(String location){\n this.location = location;\n }", "public void setLocation(String location){\n this.location = location;\n }", "@Override\n\tpublic void setLocation(String l) {\n\t\tlocation = l;\n\t\t\n\t}", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location)\n {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\r\n this.location = location;\r\n }", "public void setLocation(String location) {\r\n this.location = location;\r\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "protected void setLocation(String location){\r\n this.location = location;\r\n }", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "@ApiModelProperty(value = \"The company location associated with the claim.\")\n public DtoValueString getLocation() {\n return location;\n }", "@Override\n public void setLocation(String location) {\n this.location = location;\n }", "public String getLocation(){\n return this.location;\n }", "@ApiModelProperty(required = true, value = \"store address and geographical coordinates\")\n @JsonProperty(\"location\")\n public Location getLocation() {\n return location;\n }", "private void writeActualLocation(Location location)\n {\n //textLat.setText( \"Lat: \" + location.getLatitude() );\n //textLong.setText( \"Long: \" + location.getLongitude() );\n //T.t(MapsActivity.this, \"\" + \"Lat: \" + location.getLatitude() + \"\" + \"Long: \" + location.getLongitude());\n markerLocation(new LatLng(location.getLatitude(), location.getLongitude()));\n }", "public void setLocation(String location) {\r\n\t\tthis.location = location;\r\n\t}", "public void setLocation(entity.PolicyLocation value);", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n inputParameters.Location = location;\n\n }", "public String getLocation(){\r\n return location;\r\n }", "public String location() {\n return this.location;\n }", "public String location() {\n return this.location;\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:location\")\n public String getLocation() {\n return getProperty(LOCATION);\n }", "public String getLocation(){\n return location;\n }", "public java.lang.String getLocation() {\n return location;\n }", "public void setLocation(Location location) \n\t{\n\t\tthis.location = location;\n\t}", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public void saveLocation(Location newLocation) {\n FileOutputStream outputStream = null;\n Log.d(\"debugMode\", \"writing new location to memory\");\n byte[] writeLine = (\"\\n\"+ newLocation.returnFull()).getBytes();\n try {\n outputStream = openFileOutput(\"Locations.txt\", MODE_APPEND);\n outputStream.write(writeLine);\n outputStream.close();\n Log.d(\"debugMode\", \"New location saved\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void setLocation(URI location)\r\n/* 288: */ {\r\n/* 289:432 */ set(\"Location\", location.toASCIIString());\r\n/* 290: */ }", "@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}", "public java.lang.String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\r\n return location;\r\n }", "public String getLocation()\n {\n return location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\r\n return location;\r\n }", "public final void setLocation(String value) {\n location = value;\n }", "public void setLocation(Location loc) {\n this.location = loc;\n }", "@Override\n\tpublic String getLocation() {\n\t\treturn this.location;\n\t}", "public void setLocation(final String location) {\n this.location = location;\n }", "public void setLocation(Location location) {\r\n\t\tthis.location = location;\r\n\t}", "@Override\n public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "protected String getLocation(){\r\n return this.location;\r\n }", "protected void writeLoc(IPositionable loc)\n\t{\n\t\twriteD(loc.getX());\n\t\twriteD(loc.getY());\n\t\twriteD(loc.getZ());\n\t}", "public String getLocation() {\r\n\t\treturn location; \r\n\t}", "public String getLocation(){\r\n return Location;\r\n }", "public void setCourseProperty(java.lang.String courseProperty) {\n this.courseProperty = courseProperty;\n }", "public String getLocation() {\n return location;\n }", "public void setLocationType(String locationType);", "public void setDocumentLocation(L documentLocation);", "private String makeEventLocation(String location) {\n return \"LOCATION:\" + location + \"\\n\";\n }", "public String getLocation() {\r\n\t\treturn location;\r\n\t}", "public int saveLocation(Location location){\n return 0;\n }", "public String getLocation() {\n\t\treturn location;\n\t}", "public String getStore_location()\n {\n \treturn store_location;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}", "public void setLocationId(String locationId);", "public void setLocation(String location){\n mLocation = location;\n loadData();\n }", "public String getLocation() {\n return mLocation;\n }", "public abstract void saveLocationXml(Location location);", "public void setLocation(Resource location) {\n\t\tthis.locations = new Resource[] {location};\n\t}", "public int getLocation()\r\n {\r\n return location;\r\n }", "public String getLocation() {\n\t\t\treturn location;\n\t\t}", "public final String getLocation() {\n return location;\n }", "public java.lang.String getCourseProperty() {\n return courseProperty;\n }", "@Test\n\tpublic void testLocation() {\n\t\tString location = \"A-3\";\n\t\tString notes = \"vetran\";\n\t\tPlot plot = new Plot();\n\t\t\n\t\tplot.setLocation(location);\n\t\tassertEquals(plot.getLocation(), \"A-3\");\n\t\t\n\t\tplot.setNotes(\"vetran\");\n\t\tassertEquals(plot.getNotes(), notes);\n\t\t\n\t\tSystem.out.println(\"Location, notes were successsful.\");\n\t}", "public Location getLocation(){\n return location;\n }", "public void setLocationType(LocationType value) { _locationType = value; }", "public void setObjectLocation(WotlasLocation objectLocation) { this.objectLocation=objectLocation; }", "public String getCourse() {\n\t\treturn Course;\n\t}", "public void setLocation(Coordinate coordinate);", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"us/las\", value = \"Location of that image/snapshot. \")\n\n public String getLocation() {\n return location;\n }", "public String getLocationCategory(){\r\n return this.locationCategory;\r\n }" ]
[ "0.6471765", "0.6318786", "0.6318786", "0.62523913", "0.62142605", "0.61846375", "0.6170888", "0.616559", "0.61167556", "0.6072708", "0.6072708", "0.6072708", "0.6072708", "0.60412806", "0.60299635", "0.60299635", "0.602131", "0.5992035", "0.59778285", "0.5971782", "0.5963223", "0.5950356", "0.5943472", "0.5928862", "0.5928862", "0.5928862", "0.5928322", "0.5928322", "0.5928322", "0.5905076", "0.58930504", "0.5883172", "0.5883172", "0.5870289", "0.5855341", "0.581522", "0.58067274", "0.58064157", "0.58064157", "0.58064157", "0.58064157", "0.58064157", "0.58035755", "0.5800794", "0.57831705", "0.5782581", "0.5779524", "0.5773241", "0.57698464", "0.5757546", "0.5755959", "0.57481194", "0.57456785", "0.5739366", "0.5737266", "0.57203144", "0.5715455", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.57133514", "0.5711511", "0.5706799", "0.56995654", "0.568274", "0.567528", "0.56727463", "0.5670324", "0.56646276", "0.566279", "0.56534374", "0.5649181", "0.561979", "0.561577", "0.55738425", "0.5562588", "0.55342656", "0.5533725", "0.55316716", "0.55314726", "0.552983", "0.55270123", "0.55212575", "0.5511526", "0.55102605", "0.5508286", "0.55074847", "0.55071867", "0.54946774", "0.54933494", "0.5489176", "0.5471917" ]
0.5481812
99
Write DTSTART property of event
private String makeEventStart(LocalDateTime date) { String name = "DTSTART"; return formatTimeProperty(date, name) + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.DTSTART,\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INDEX_START,\n jname = \"indexStart\",\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n @NoProxy\n public void setDtstart(final BwDateTime val) {\n dtstart = val;\n }", "public void setStart(){\n\t\tthis.isStart=true;\n\t}", "StartEvent createStartEvent();", "public String getStart() {\r\n\t\treturn this.start;\r\n\t}", "public String getStart(){\n\t\treturn mStart;\n\t}", "public String getStart(){\n\t\treturn start;\n\t}", "public synchronized void writeStart(Transaction t) {\n\t\tpw.println(t.transactionId() + \" start\");\n\t}", "public boolean getStart(){\n\t\treturn this.isStart;\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "public void setDtStart(Date dtStart) {\r\n this.dtStart = dtStart;\r\n }", "public Date getDtStart() {\r\n return dtStart;\r\n }", "@Override\n\tpublic boolean getStart() {\n\t\treturn true;\n\t}", "public String getStart() {\n return start;\n }", "void eventStart(String key);", "public String get_start() {\n\t\treturn start;\n\t}", "public void setStart(int start) {\n this.start=start;\n }", "public M csseStartStart(Object start){this.put(\"csseStartStart\", start);return this;}", "public void setStart(int start) {\r\n this.start = start;\r\n }", "public void setStart(long start) { this.start = start; }", "public void tableStarted(int position) {\r\n }", "public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }", "void setStaStart(double staStart);", "public void setStart(int start) {\n\t\tthis.start = start;\n\t}", "public DraggableBehavior setStartEvent(JsScopeUiEvent start)\n\t{\n\t\tthis.options.put(\"start\", start);\n\t\treturn this;\n\t}", "@Override\n\tpublic void start() {\n\t\tMouseEvtHandler handler = new MouseEvtHandler();\n\t\ttable.addMouseListener(handler);\n\n\t}", "public int getStart() {\n return this.start;\n }", "public int getStart() {\r\n\t\treturn start;\r\n\t}", "public int getStart ()\n {\n\n return this.start;\n\n }", "public void operationStart(BGMEvent e);", "public int getStart() {\n\t\treturn start;\n\t}", "public String getStartStr() {\r\n return startStr;\r\n }", "ButEnd getStart();", "public int getStart() {\n\t\t\treturn start;\n\t\t}", "public StrColumn getDateBeginProcessing() {\n return delegate.getColumn(\"date_begin_processing\", DelegatingStrColumn::new);\n }", "public String getDayStartString() {\n return dayStartString;\n }", "@JSProperty(\"startOnTick\")\n void setStartOnTick(boolean value);", "public int getStart() {\r\n return start;\r\n }", "public String setStart(String newStart){\n\t\tmStart = newStart;\n\t\treturn mStart;\n\t}", "public int getStart() {\n return start;\n }", "public void handleDocumentStart(long startTimeNanos, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"Start of document\");\r\n }", "public long getStart() {\n return start;\n }", "public void start(String event) {\n started.put(event, System.currentTimeMillis());\n }", "public int getStart() {\n return start;\n }", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tdisplayEvent();\n\t}", "public String getStartCommand() {\n return startCommand;\n }", "public int getStart()\n {\n return start;\n }", "public void setStartCommand(String startCommand) {\n this.startCommand = startCommand;\n }", "public void setStarted(boolean started){\n \tthis.started = started;\n }", "public int start() { return _start; }", "public String getStartNode()\r\n\t{\r\n\t\treturn startNode;\r\n\t}", "public String eventBeginString() {\n return DateUtils.formatExtDate(this.beginDate);\n }", "public char getStart(){\n return start_c;\n }", "public void setDateStart (Timestamp DateStart);", "public Node getStart(){\n return start;\n }", "public final ObjectProperty<EventHandler<ListView.EditEvent<T>>> onEditStartProperty() {\n\n return this.getWrappedControl().onEditStartProperty();\n }", "@objid (\"c3f1412d-ca73-479b-8bf7-561601b3f34c\")\n void setStart(CommunicationNode value);", "public Date getStart() {\n return start;\n }", "public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}", "public void handleStart()\n {\n }", "ActualStartType getActualStart();", "public String getStartNodeID()\r\n {\r\n return startNodeID;\r\n }", "public double getStart() {\n return start;\n }", "void setStartSegment(int startSegment);", "public int getStartField()\n {\n return this.startField;\n }", "public final DtStart getStartDate() {\n return getProperty(Property.DTSTART);\n }", "public static void setStart(Node n) {\n if (n == null) {\n } else {\n startLabel.setBackground(Color.white);\n n.setBackground(Color.green);\n startLabel = n;\n //startSet = true;\n }\n }", "public void setSeriesStart(int aValue) { _dataSet.setSeriesStart(aValue); }", "public void componentStartInfo(INode node) {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_16);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_17);\n \n\t\t\t}\n\t\t}", "public Integer getDayStart() {\n return dayStart;\n }", "@objid (\"afa7354b-88c4-40d5-b8dd-215055f8955c\")\n CommunicationNode getStart();", "public static void setDragStart() {\n\t\tblockContext.dragStart = new Date();\n\n\t\tblockContext.dragStartTimeStamp = (int) (blockContext.dragStart.getTime()\n\t\t\t\t- blockContext.instructionEnd.getTime());\n\t}", "public void onStart() {\n super.onStart();\n this.eventDelegate.onStart();\n }", "void commandStarted(Command c);", "public static ControlCommand evalStart() {\r\n\t\treturn new ControlCommand(CommandType.EvalStart);\r\n\t}", "@DISPID(-2147412075)\n @PropGet\n java.lang.Object onselectstart();", "public boolean getMyStartBoolean(){\n return myStartBoolean;\n }", "protected void writeDataStartPtrHeader(long dataStartPtr) throws IOException {\n file.seek(DATA_START_HEADER_LOCATION);\n file.writeLong(dataStartPtr);\n }", "public void setDayStart(Integer dayStart) {\n this.dayStart = dayStart;\n }", "int getStart();", "public void setStarted(boolean started){\n\t\tthis.started = started;\n\t}", "public Timestamp getDateStart();", "public int start() {\n return start;\n }", "public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }", "public boolean isStart() {\n\t\treturn start;\n\t}", "void onStartRecord();", "@Override\r\n\tpublic void start() {\n\t\tSystem.out.println(\"H1型号是这样启动的.....\");\r\n\t}", "public long getStartTimestamp() {\n\t\treturn this.startTimestamp;\n\t}", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public T caseStartEvent(StartEvent object) {\n\t\treturn null;\n\t}", "public int getEVENTCD() {\n return eventcd;\n }", "public void setStartStr(String startStr) {\r\n this.startStr = startStr;\r\n }", "public int getSeriesStart() { return _dataSet.getSeriesStart(); }", "public DateTime getStartDateTime() {\r\n\t\treturn start;\r\n\t}", "public DataLoadedEvent(DataEventType type) {\n\t\tthis.eventType = type;\t\t\n\t}", "public void setStart( Calendar start );", "double getStaStart();", "public int getStartLine() {\r\n \r\n return startLine;\r\n }", "public void start() {\n \tupdateHeader();\n }", "public final void setOnEditStart(EventHandler<ListView.EditEvent<T>> value) {\n\n this.getWrappedControl().setOnEditStart(value);\n }" ]
[ "0.59400403", "0.5921023", "0.5834002", "0.5693475", "0.5676934", "0.56669295", "0.5653659", "0.563876", "0.56295323", "0.56295323", "0.56263083", "0.55761445", "0.55635303", "0.55197513", "0.5453265", "0.54349977", "0.5427821", "0.5375662", "0.5347336", "0.53350353", "0.53230435", "0.531565", "0.5313463", "0.52713364", "0.5252321", "0.52351093", "0.52346706", "0.51988864", "0.5191542", "0.51902574", "0.51804197", "0.51720876", "0.51584744", "0.5154119", "0.5151169", "0.51389396", "0.51267993", "0.51203233", "0.51188415", "0.509511", "0.5087495", "0.5076796", "0.5068381", "0.5067852", "0.5033939", "0.5019779", "0.5011894", "0.5005931", "0.4998511", "0.49912775", "0.49779072", "0.49737263", "0.49711606", "0.4957556", "0.4949289", "0.4945921", "0.49387252", "0.49385494", "0.49240518", "0.4916647", "0.4915499", "0.49067247", "0.49011278", "0.49006695", "0.48952", "0.4893103", "0.48908836", "0.48810515", "0.48549414", "0.4846062", "0.48442364", "0.48439047", "0.48335096", "0.4831523", "0.48217446", "0.4817833", "0.48127884", "0.48121753", "0.48090404", "0.48079342", "0.4803387", "0.47985893", "0.47965968", "0.47931114", "0.47892362", "0.47882348", "0.47872227", "0.47734797", "0.47725153", "0.47692227", "0.47665346", "0.47660667", "0.47628582", "0.4760619", "0.47572917", "0.47569486", "0.47522745", "0.47481427", "0.47472727", "0.474445" ]
0.6309778
0
Write DTSTART property of Course
@SuppressWarnings("unused") private String makeEventStart(Course item) { LocalTime startTime; if (mRounded) { startTime = item.getRoundedStartTime(); } else { startTime = item.getStartTime(); } return makeEventStart(LocalDateTime.of(item.getStartDate(), startTime)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.DTSTART,\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INDEX_START,\n jname = \"indexStart\",\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n @NoProxy\n public void setDtstart(final BwDateTime val) {\n dtstart = val;\n }", "private String makeEventStart(LocalDateTime date) {\n String name = \"DTSTART\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "public String getStart(){\n\t\treturn start;\n\t}", "public void setDtStart(Date dtStart) {\r\n this.dtStart = dtStart;\r\n }", "public void setStart(long start) { this.start = start; }", "public String getStart(){\n\t\treturn mStart;\n\t}", "public String getStart() {\n return start;\n }", "public M csseStartStart(Object start){this.put(\"csseStartStart\", start);return this;}", "public Date getDtStart() {\r\n return dtStart;\r\n }", "public String getStart() {\r\n\t\treturn this.start;\r\n\t}", "public void setStart(int start) {\n this.start=start;\n }", "public String setStart(String newStart){\n\t\tmStart = newStart;\n\t\treturn mStart;\n\t}", "public void setDateStart (Timestamp DateStart);", "public void setStart(int start) {\r\n this.start = start;\r\n }", "void setStaStart(double staStart);", "protected void writeDataStartPtrHeader(long dataStartPtr) throws IOException {\n file.seek(DATA_START_HEADER_LOCATION);\n file.writeLong(dataStartPtr);\n }", "public void setStart(){\n\t\tthis.isStart=true;\n\t}", "public void setStart(int start) {\n\t\tthis.start = start;\n\t}", "public String get_start() {\n\t\treturn start;\n\t}", "public M csseAddTimeStart(Object start){this.put(\"csseAddTimeStart\", start);return this;}", "void setBegin(net.opengis.gml.x32.TimeInstantPropertyType begin);", "public void setStart( Calendar start );", "public int getStart ()\n {\n\n return this.start;\n\n }", "void setStartAt(final Long startAt);", "public void setBegin(int begin)\n {\n this.begin = begin;\n this.beginSpecified = true;\n }", "public long getStart() {\n return start;\n }", "void setStartSegment(int startSegment);", "public String getDate(){ return this.start_date;}", "public String getStartStr() {\r\n return startStr;\r\n }", "public int getStart() {\r\n return start;\r\n }", "public int getStart() {\r\n\t\treturn start;\r\n\t}", "void xsetStaStart(org.landxml.schema.landXML11.Station staStart);", "public Date getStart() {\n return start;\n }", "public String getDayStartString() {\n return dayStartString;\n }", "public StrColumn getDateBeginProcessing() {\n return delegate.getColumn(\"date_begin_processing\", DelegatingStrColumn::new);\n }", "public StrColumn getDateBeginDeposition() {\n return delegate.getColumn(\"date_begin_deposition\", DelegatingStrColumn::new);\n }", "public int getStart() {\n return this.start;\n }", "public synchronized void writeStart(Transaction t) {\n\t\tpw.println(t.transactionId() + \" start\");\n\t}", "public int getStart() {\n return start;\n }", "public int getStart() {\n return start;\n }", "public boolean getStart(){\n\t\treturn this.isStart;\n\t}", "public int getStart() {\n\t\treturn start;\n\t}", "public M csolAddTimeStart(Object start){this.put(\"csolAddTimeStart\", start);return this;}", "public int getStart()\n {\n return start;\n }", "public char getStart(){\n return start_c;\n }", "public final DtStart getStartDate() {\n return getProperty(Property.DTSTART);\n }", "String toStringStartValues();", "public DateTime getStartDateTime() {\r\n\t\treturn start;\r\n\t}", "public int getStart() {\n\t\t\treturn start;\n\t\t}", "public double getStart() {\n return start;\n }", "public Node getStart(){\n return start;\n }", "public Timestamp getDateStart();", "@Override\n\tpublic boolean getStart() {\n\t\treturn true;\n\t}", "public String getStartDateTimeString() {\n return startDateTimeString;\n }", "net.opengis.gml.x32.TimeInstantPropertyType getBegin();", "public String getStarttime() {\n return starttime;\n }", "long getStartTimestamp();", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "public void setDayStart(Integer dayStart) {\n this.dayStart = dayStart;\n }", "public void setStartDateTime(String s) {\n this.setStartDateTime(AppUtility.getUTCTimestamp(s));\n }", "public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }", "public void setStart_time(long start_time) {\n this.start_time = start_time;\n }", "public long getStartTimestamp();", "ActualStartType getActualStart();", "private void _generateACourse(int index) {\n\t String id = _getId(CS_C_COURSE, index);\n writer_.startSection(CS_C_COURSE, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#Course\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_NAME,\n _getRelativeName(CS_C_COURSE, index), false);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#name\", _getRelativeName(CS_C_COURSE, index), false);\t \t \t \t \n }\n writer_.endSection(CS_C_COURSE);\n }", "public void handleDocumentStart(long startTimeNanos, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"Start of document\");\r\n }", "@objid (\"c3f1412d-ca73-479b-8bf7-561601b3f34c\")\n void setStart(CommunicationNode value);", "public M csseUpdateTimeStart(Object start){this.put(\"csseUpdateTimeStart\", start);return this;}", "TTC getSTART_STATION() {\n return START_STATION;\n }", "public M csseFinishStart(Object start){this.put(\"csseFinishStart\", start);return this;}", "public StrColumn getDateBeginReleasePreparation() {\n return delegate.getColumn(\"date_begin_release_preparation\", DelegatingStrColumn::new);\n }", "public void setBeginTime(String time){beginTime = time;}", "@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupStartValues() {\n }", "public M csseStartNull(){if(this.get(\"csseStartNot\")==null)this.put(\"csseStartNot\", \"\");this.put(\"csseStart\", null);return this;}", "ButEnd getStart();", "public void setStartTimestamp(long value) {\n this.startTimestamp = value;\n }", "public int getStartLine() {\r\n \r\n return startLine;\r\n }", "public void setStartStr(String startStr) {\r\n this.startStr = startStr;\r\n }", "public long getStartTimestamp() {\n return startTimestamp;\n }", "public M csmiAddTimeStart(Object start){this.put(\"csmiAddTimeStart\", start);return this;}", "public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}", "@ApiModelProperty(value = \"Start of the range\")\n public String getDateStart() {\n return dateStart;\n }", "@objid (\"afa7354b-88c4-40d5-b8dd-215055f8955c\")\n CommunicationNode getStart();", "public long getStartTimestamp() {\n\t\treturn this.startTimestamp;\n\t}", "public void setStartSoc(Integer startSoc) {\n this.startSoc = startSoc;\n }", "public Long getTimestampStart();", "public String getTime_start() {\n return time_start;\n }", "Long getStartAt();", "@Test\n public void testSetStartDate() {\n System.out.println(\"setStartDate\");\n Calendar newStart = new GregorianCalendar(2000, 01, 01);\n String startDate = newStart.toString();\n DTO_Ride instance = dtoRide;\n instance.setStartDate(startDate);\n \n String result = instance.getStartDate();\n assertEquals(newStart, newStart);\n }", "public int getSubjectStart()\n\t{\n\t\treturn mySubjectStart;\n\t}", "org.landxml.schema.landXML11.Station xgetStaStart();", "@Nullable\n public DpProp getStart() {\n if (mImpl.hasStart()) {\n return DpProp.fromProto(mImpl.getStart());\n } else {\n return null;\n }\n }", "public M csseStartEnd(Object end){this.put(\"csseStartEnd\", end);return this;}", "public int getTimeStart() {\r\n return timeStart;\r\n }", "public void setStartLine(final int startLine) {\n this.startLine = startLine;\n }", "public void setDayStartString(String dayStartString) {\n this.dayStartString = dayStartString;\n }", "public String getBeginTime(){return beginTime;}", "public long getStart_time() {\n return start_time;\n }", "public int getStartStation() {\n\t\treturn startStation;\n\t}", "protected void setStartTimestamp(long timestamp) {\n\t\tthis.startTimestamp = timestamp;\n\t\tsetDirty(true);\n\t}" ]
[ "0.6222683", "0.5941195", "0.576053", "0.5735484", "0.56849974", "0.5646186", "0.55817115", "0.55793136", "0.55613744", "0.554933", "0.55313075", "0.54976785", "0.54669666", "0.5437136", "0.5355764", "0.53360176", "0.53262013", "0.53231746", "0.5309615", "0.5304138", "0.53026074", "0.527666", "0.5264442", "0.5232079", "0.522363", "0.51757556", "0.5174486", "0.51692164", "0.51656747", "0.51485515", "0.51454824", "0.5144239", "0.51434356", "0.5141232", "0.5141009", "0.51219183", "0.5119117", "0.5118119", "0.511496", "0.51113814", "0.5109246", "0.51017076", "0.5093501", "0.50922364", "0.5073737", "0.50656146", "0.5051957", "0.5042662", "0.5037737", "0.5036207", "0.5035381", "0.5029189", "0.5016573", "0.50109047", "0.50004715", "0.49814987", "0.49797368", "0.49645215", "0.49626848", "0.4957429", "0.49551988", "0.4949564", "0.49401766", "0.49399394", "0.49395904", "0.49385768", "0.49304077", "0.49194458", "0.49108228", "0.49080503", "0.49021372", "0.48981172", "0.48924696", "0.48912448", "0.48875687", "0.4881663", "0.48733813", "0.48720038", "0.48673204", "0.48672485", "0.48642108", "0.48640382", "0.4857934", "0.48557872", "0.48541406", "0.48540026", "0.48511648", "0.48383796", "0.48374048", "0.48366448", "0.48339775", "0.48229596", "0.48199654", "0.4818768", "0.481767", "0.48173612", "0.48161975", "0.4807582", "0.48061273", "0.48051694" ]
0.51751035
26
Write DTEND property of event
private String makeEventEnd(LocalDateTime date) { String name = "DTEND"; return formatTimeProperty(date, name) + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EndEvent createEndEvent();", "private void sendDrawEndEvent() {\n\t\tint type = this.drawType;\n\t\tthis.deactivate();\n\t\tthis.activate(type);\n\t}", "public void setEnd(){\n\t\tthis.isEnd=true;\n\t}", "public GuideEnd() {\n super(\"endEvent\");\n setName(\"End Event\");\n }", "public T caseEndEvent(EndEvent object) {\n\t\treturn null;\n\t}", "public String eventEndString() {\n return DateUtils.formatExtDate(this.endDate);\n }", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "public void operationEnd(BGMEvent e);", "public GuideEnd(String id) {\n super(\"endEvent\", id);\n setName(\"End Event\");\n }", "ButEnd getEnd();", "public boolean getEnd(){\n\t\treturn this.isEnd;\n\t}", "public String getEnd(){\n\t\treturn end;\n\t}", "public void setDtEnd(Date dtEnd) {\r\n this.dtEnd = dtEnd;\r\n }", "public abstract void endDataField(String tag);", "public boolean getEnd()\n\t{\n\t\treturn getBooleanIOValue(\"End\", true);\n\t}", "@Override\n\tpublic void eventFinished() {\n\t\tstatus=EventCompleted;\n\t}", "public String getEnd() {\n return end;\n }", "public void setEnd(java.lang.Boolean value)\n\t{\n\t\tsetDigitalOutput(\"End\", value);\n\t}", "public Date get_end() {\n\t\treturn this.end;\n\t}", "public Label getEndLabel() {\n\treturn endLabel;\n }", "@objid (\"a401b5aa-a324-4104-b9f3-8aa6e8adc133\")\n CommunicationNode getEnd();", "@Override\r\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tdateend = txt_dateEnd.getText();\r\n\t\t\t}", "public String getEndAction() { return _endAction; }", "public void fireEndMeetingEvent(DSMPHandler h, byte flags, byte handle, \n int meetingid) {\n if (printdebug && dodebug) {\n System.out.println(\"-----fireEndMeetingEvent: \" + \n \"\\n\\tflags[\" +flags+\"] hand[\"+handle+\"]\");\n System.out.println(\"\\tmeetingid [\" + meetingid + \"]\");\n }\n }", "@Override\n\t@Transient\n\tpublic String getEventType() {\n\t\treturn \"AFTER\";\n\t}", "public Event setDone() {\n return new Event(this.name, this.date, true);\n }", "@JSProperty(\"endOnTick\")\n void setEndOnTick(boolean value);", "public void endDataField(String tag) {\n \t record.add(datafield);\n }", "public synchronized boolean getEnd(){\n\treturn end;\n }", "public String getEndLine() {\r\n return this.endLine;\r\n }", "public String getEndStr() {\r\n return endStr;\r\n }", "public void endDTD() throws SAXException {\n this.saxHandler.endDTD();\n }", "public IntervalEndEventNode(String id, int occurencemark) {\n\t\tsuper(id, occurencemark);\n\t}", "public void dragEnd() {\n\t \n\t super.dragEnd();\n\t view.dragEnd();\n\t }", "public int getEnd() {\n return this.end;\n }", "public String getEndAt() {\n return endAt;\n }", "public StrColumn getDateEndProcessing() {\n return delegate.getColumn(\"date_end_processing\", DelegatingStrColumn::new);\n }", "String getEnd();", "public long getEndTimestamp() {\n\t\treturn this.endTimestamp;\n\t}", "protected void end() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" ending\");\r\n\t\t }", "public void fireTraceEndEvent(ElemTemplateElement styleNode)\r\n {\r\n\r\n if (hasTraceListeners())\r\n {\r\n int sourceNode = m_transformer.getXPathContext().getCurrentNode();\r\n Node source = m_transformer.getXPathContext().getDTM(\r\n sourceNode).getNode(sourceNode);\r\n\r\n fireTraceEndEvent(new TracerEvent(m_transformer, source,\r\n m_transformer.getMode(), /*sourceNode, mode,*/\r\n styleNode));\r\n }\r\n }", "private void endProperty()\n {\n\n }", "public void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"End of document\");\r\n }", "public void setEnded(){\n\t\tended=true;\n\t}", "DoneEvent(double time, Customer cust, Server sv) {\n this.time = time;\n this.cust = cust;\n this.sv = sv;\n }", "public String getEndNode()\r\n\t{\r\n\t\treturn endNode;\r\n\t}", "@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}", "public static void end() {\n Log.writeln(\"<xml-end/> <!-- Non-xml data follows ... -->\");\n }", "public String getEndMarker() {\n return endMarker;\n }", "public void endData()\n\t\t\t{\n\t\t\t\tsend(\"</data>\", false);\n\t\t\t}", "@objid (\"cfed1cf5-bd4d-45f7-9acf-65e9e11fac88\")\n void setEnd(CommunicationNode value);", "public void elementEnd() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "protected void onEnd() {}", "public boolean getEnd() {\n return end_;\n }", "public void fireSelectedEndEvent(\r\n int sourceNode, ElemTemplateElement styleNode, String attributeName, \r\n XPath xpath, XObject selection)\r\n throws javax.xml.transform.TransformerException\r\n {\r\n\r\n if (hasTraceListeners())\r\n {\r\n Node source = m_transformer.getXPathContext().getDTM(\r\n sourceNode).getNode(sourceNode);\r\n \r\n fireSelectedEndEvent(new EndSelectionEvent(m_transformer, source, styleNode,\r\n attributeName, xpath, selection));\r\n }\r\n }", "public int getEndLIne() {\r\n return this.endLine;\r\n }", "public void setEndPt(final int dataPointer) {\n this.endPt=dataPointer;\n }", "public double getEnd() {\n return end;\n }", "@Override\r\n\tpublic void finishEvent() {\n\t\tif(!mEventStarted)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tmEventStarted = false;\r\n\t\t\r\n\t\txmlStreamTracerService.postObsel(mURL, mTraceID, mCookie, mRoot.toString(),\r\n\t\t\t\tnew AsyncCallback<String>() {\r\n\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t// Show the RPC error message to the user\r\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Failed to post the event.\");\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Event posted.\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmDocument.removeChild(mRoot);\r\n\t}", "public int getEnd() {\r\n\t\treturn end;\r\n\t}", "public void fireTraceEndEvent(TracerEvent te)\r\n {\r\n\r\n if (hasTraceListeners())\r\n {\r\n int nListeners = m_traceListeners.size();\r\n\r\n for (int i = 0; i < nListeners; i++)\r\n {\r\n TraceListener tl = (TraceListener) m_traceListeners.elementAt(i);\r\n if(tl instanceof TraceListenerEx2)\r\n {\r\n ((TraceListenerEx2)tl).traceEnd(te);\r\n }\r\n }\r\n }\r\n }", "public int getEnd() {\n\t\treturn end;\n\t}", "@Override\n\tprotected void end() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" end\");\n\t}", "public void notifyEnd() {\n\n\t}", "@Override\r\n public void dragExit(DropTargetEvent dte) {}", "@DISPID(-2147412070)\n @PropGet\n java.lang.Object ondatasetcomplete();", "public char getEndEndModifier() {\n\t\treturn (end_end_modifier);\n\t}", "public void setEndAction(String anAction) { _endAction = anAction; }", "public String getControlSequenceEnd() {\n\t\treturn null;\n\t}", "public boolean omitEnd() {\n return oEnd;\n }", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "public int getEnd() {\n return end;\n }", "public int getEnd() {\r\n return end;\r\n }", "public Date getEndTimestamp() {\r\n return endTimestamp;\r\n }", "public void dragExit(DropTargetEvent dte) {\n\t\t\n\t}", "public void dragExit(DropTargetEvent dte) {\n // empty\n }", "public Long getTimestampEnd();", "public java.lang.String getEndDay() {\r\n return localEndDay;\r\n }", "@Override\n public void end() {\n }", "@Override\r\n\t\tpublic void dragExit(DropTargetEvent dte) {\n\t\t\t\r\n\t\t}", "private void finishLine(MouseEvent e) {\n\t\txEnd = e.getX();\n\t\tyEnd = e.getY();\n\t}", "public int getEndNode(){\n\t\treturn endNode;\n\t}", "@Override\r\n public boolean appendEnd(final Appendable out , final Object... OtherData) {\r\n return false;\r\n }", "public double getEnd();", "public boolean getEnd() {\n return end_;\n }", "public String getEndtime() {\n return endtime;\n }", "@JSProperty(\"endOnTick\")\n boolean getEndOnTick();", "Node getEndNode() {\n return end;\n }", "void endEntry();", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void end() {\n\t\t\n\t}", "public int getEnd()\n {\n return end;\n }", "@DISPID(-2147412070)\n @PropPut\n void ondatasetcomplete(\n java.lang.Object rhs);", "public abstract void notifyEntityEnd();", "public Point end() {\r\n return this.end;\r\n }", "public int getEndLine() {\r\n \r\n return endLine;\r\n }", "public int end() {\n return end;\n }", "public M csseFinishEnd(Object end){this.put(\"csseFinishEnd\", end);return this;}", "public void setEnd(int end) {\r\n this.end = end;\r\n }" ]
[ "0.6637341", "0.6506736", "0.62236756", "0.61873287", "0.6113905", "0.60793287", "0.59928876", "0.59433746", "0.591862", "0.5905542", "0.583058", "0.5776167", "0.5770471", "0.57692766", "0.5696864", "0.5680977", "0.5674744", "0.5637608", "0.56006324", "0.5562581", "0.554781", "0.55357647", "0.5528764", "0.5504848", "0.549336", "0.54903215", "0.5482446", "0.546585", "0.54519224", "0.5444863", "0.54440284", "0.54382646", "0.5430975", "0.5407984", "0.5406231", "0.54044604", "0.5395273", "0.5390891", "0.5386039", "0.5364797", "0.535925", "0.5350578", "0.53434974", "0.53430605", "0.53351533", "0.5327606", "0.53220934", "0.5320718", "0.53192794", "0.53178406", "0.52970296", "0.52916014", "0.5284403", "0.5276334", "0.5274284", "0.52725244", "0.5268731", "0.52653193", "0.5264985", "0.52641165", "0.526238", "0.52614015", "0.52597904", "0.52575", "0.52490044", "0.52394485", "0.5239002", "0.5235865", "0.5235221", "0.52340806", "0.5233549", "0.5233549", "0.5230179", "0.5228651", "0.52250063", "0.52215904", "0.5218149", "0.5205979", "0.5200859", "0.51990354", "0.5198827", "0.5186908", "0.51825273", "0.5180646", "0.51805526", "0.51800394", "0.5179682", "0.5177954", "0.51776147", "0.516342", "0.51621705", "0.51617914", "0.51565856", "0.5156146", "0.5154182", "0.51535237", "0.5139549", "0.5127686", "0.5127523", "0.512673" ]
0.668793
0
Write DTEND property of Course
@SuppressWarnings("unused") private String makeEventEnd(Course item) { LocalTime endTime; if (mRounded) { endTime = item.getRoundedEndTime(); } else { endTime = item.getEndTime(); } return makeEventEnd(LocalDateTime.of(item.getEndDate(), endTime)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String makeEventEnd(LocalDateTime date) {\n String name = \"DTEND\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "public String getEnd(){\n\t\treturn end;\n\t}", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "public String getEndAt() {\n return endAt;\n }", "public String getEnd() {\n return end;\n }", "public void setDtEnd(Date dtEnd) {\r\n this.dtEnd = dtEnd;\r\n }", "String getEnd();", "public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }", "public String getEndLine() {\r\n return this.endLine;\r\n }", "public Date get_end() {\n\t\treturn this.end;\n\t}", "public String getEndStr() {\r\n return endStr;\r\n }", "String toStringEndValues();", "public Timestamp getCEndTs() {\r\n return (Timestamp) getAttributeInternal(CENDTS);\r\n }", "net.opengis.gml.x32.TimeInstantPropertyType getEnd();", "public String eventEndString() {\n return DateUtils.formatExtDate(this.endDate);\n }", "public static int getThymioEndField_Y() {\n\t\treturn THYMIO_ENDFIELD_Y;\n\t}", "@objid (\"a401b5aa-a324-4104-b9f3-8aa6e8adc133\")\n CommunicationNode getEnd();", "private void endProperty()\n {\n\n }", "public GuideEnd() {\n super(\"endEvent\");\n setName(\"End Event\");\n }", "public void setEnd(){\n\t\tthis.isEnd=true;\n\t}", "void setEnd(net.opengis.gml.x32.TimeInstantPropertyType end);", "net.opengis.gml.x32.TimeInstantPropertyType addNewEnd();", "public int getEndLIne() {\r\n return this.endLine;\r\n }", "public WorldCoordinate getEnd() {\r\n\t\treturn this.end;\r\n\t}", "String getDefiningEnd();", "public int getEndy(){\n\t\treturn endy;\n\t}", "public int getEndLine() {\r\n \r\n return endLine;\r\n }", "public void setEndAt(String endAt) {\n this.endAt = endAt == null ? null : endAt.trim();\n }", "public double getEnd() {\n return end;\n }", "@NonNull\n public Builder setEnd(@NonNull DpProp end) {\n if (end.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setEnd doesn't support dynamic values.\");\n }\n mImpl.setEnd(end.toProto());\n mFingerprint.recordPropertyUpdate(\n 1, checkNotNull(end.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "@Pure\n public int getEndLine() {\n return this.endLine;\n }", "@ApiModelProperty(value = \"End of the range\")\n public String getDateEnd() {\n return dateEnd;\n }", "public String getEndMarker() {\n return endMarker;\n }", "public int getEnd() {\n return this.end;\n }", "public void setEnd(int end) {\r\n this.end = end;\r\n }", "public void setEndLine(int endLine) {\r\n this.endLine = endLine;\r\n }", "public StrColumn getDateEndProcessing() {\n return delegate.getColumn(\"date_end_processing\", DelegatingStrColumn::new);\n }", "public void setEndColumnNumber(int endColumn) {\n this.endColumn = endColumn;\n }", "public void setEndStr(String endStr) {\r\n this.endStr = endStr;\r\n }", "public M csseAddTimeEnd(Object end){this.put(\"csseAddTimeEnd\", end);return this;}", "@objid (\"cfed1cf5-bd4d-45f7-9acf-65e9e11fac88\")\n void setEnd(CommunicationNode value);", "public boolean getEnd()\n\t{\n\t\treturn getBooleanIOValue(\"End\", true);\n\t}", "public String getEnd() {\n\t\t\t\t\n\t\t\t\t\tString vS = \"NONE\";\n\t\t\t\t\tSystem.out.println(vS + \" l \" + length);\n\t\t\t\t\tif (length != 0) vS = tail.getPrev().getValue();\n\t\t\t\t\tSystem.out.println(vS + \" l2 \" + length);\n\t\t\t\treturn vS;\n\t\t\t\t}", "public int getEndColumnNumber() {\n return this.endColumn;\n }", "public void setEnd(int end) {\n\t\tthis.end = end;\n\t}", "public char getEndEndModifier() {\n\t\treturn (end_end_modifier);\n\t}", "private String addEnd() {\n\t\t// NO PARAMETERS\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|End\");\n\t\treturn tag.toString();\n\t}", "void setEndStation(TTC endStation) {\n this.endStation = endStation;\n }", "public long getEndTimestamp() {\n\t\treturn this.endTimestamp;\n\t}", "public String getEndString() {\n return String.format(\"e» %s ms%s\", getTotalTime(), getFreemarkerFormattedTime());\n }", "public GuideEnd(String id) {\n super(\"endEvent\", id);\n setName(\"End Event\");\n }", "@Nullable\n public DpProp getEnd() {\n if (mImpl.hasEnd()) {\n return DpProp.fromProto(mImpl.getEnd());\n } else {\n return null;\n }\n }", "ButEnd getEnd();", "public boolean getEnd(){\n\t\treturn this.isEnd;\n\t}", "public Label getEndLabel() {\n\treturn endLabel;\n }", "public String getEndtime() {\n return endtime;\n }", "public double getEnd();", "public Date getEndDate()\n {\n return (Date)getAttributeInternal(ENDDATE);\n }", "public Coordinate getEnd( )\n\t{\n\t\treturn endLocation;\n\t}", "public String getBlockEnd () {\n return BLOCK_END_PREFIX + objectName + BLOCK_END_SUFFIX;\n }", "public String getEndNode()\r\n\t{\r\n\t\treturn endNode;\r\n\t}", "public int getEndNum() {\r\n return this.endNum;\r\n }", "public void setEndDateTime(String s) {\n this.setEndDateTime(AppUtility.getUTCTimestamp(s));\n }", "public String endYear() throws IOException {\r\n File file = new File(\"evidence.ods\");\r\n SpreadSheet spreadSheet = SpreadSheet.createFromFile(file);\r\n int year = actualYear();\r\n if (!checkIfYearExist(spreadSheet, year)) {\r\n return \"NOTSTARTED\";\r\n }\r\n \r\n Sheet sheet = spreadSheet.getSheet(String.valueOf(year));\r\n \r\n BigDecimal income = (BigDecimal) sheet.getCellAt(\"B1\").getValue();\r\n BigDecimal expense = (BigDecimal) sheet.getCellAt(\"B2\").getValue();\r\n BigDecimal sum = (BigDecimal) sheet.getCellAt(\"B3\").getValue();\r\n\r\n \r\n String string =\"year: \" + year + \"\\nsum of income: \" + income + \"\\nsum of expenses: \" + expense\r\n + \"\\nbilance: \" + sum; \r\n int row = sheet.getRowCount() + 1;\r\n sheet.ensureRowCount(row);\r\n sheet.getCellAt(\"A\" + row).setValue(\"end\");\r\n \r\n saveFile(sheet);\r\n return string;\r\n }", "public M csolAddTimeEnd(Object end){this.put(\"csolAddTimeEnd\", end);return this;}", "public Date getEnddate() {\r\n return enddate;\r\n }", "public String getENDTooltip(int endCost);", "public java.lang.String getEndDay() {\r\n return localEndDay;\r\n }", "public Long getTimestampEnd();", "public void setEndLine(final int endLine) {\n this.endLine = endLine;\n }", "public java.lang.String getTime_end() {\r\n return time_end;\r\n }", "public Chamber getEnd() {\n return end;\n }", "public Date getEndTimestamp() {\r\n return endTimestamp;\r\n }", "public int getEnd() {\n return end;\n }", "public long getEndTimestamp();", "Node getEndNode() {\n return end;\n }", "void setStaEnd(double staEnd);", "public int getEnd() {\r\n\t\treturn end;\r\n\t}", "public boolean omitEnd() {\n return oEnd;\n }", "public int getEnd() {\n\t\treturn end;\n\t}", "void xsetStaEnd(org.landxml.schema.landXML11.Station staEnd);", "public int getEnd() {\r\n return end;\r\n }", "public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }", "private String closeDefinitionTag (char last) {\n if (last == ';') {\n return \"</dt>\";\n }\n else\n if (last == ':') {\n return \"</dd>\";\n } else {\n return \"\";\n }\n }", "protected void addEndDatePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_endDate_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_endDate_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__END_DATE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public final String getEnddate() {\n\t\treturn enddate;\n\t}", "private ConfigurationHTMLPrinter endTable() {\n return decrementIndent().println(\"</table>\");\n }", "public org.omg.uml.behavioralelements.commonbehavior.LinkEnd getLinkEnd();", "public int getEnd()\n {\n return end;\n }", "org.hl7.fhir.Integer getEnd();", "public abstract void endDataField(String tag);", "void setEndPosition(net.opengis.gml.x32.TimePositionType endPosition);", "public DateTime getEnd() {\r\n return new DateTime(getEndMillis(), getChronology());\r\n }", "public Date getEndtime() {\n return endtime;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "public String getEndDayKey() {\n return endDayKey;\n }", "public void setEndMarker(String endMarker) {\n this.endMarker = endMarker;\n }", "public void setEndSoc(Integer endSoc) {\n this.endSoc = endSoc;\n }", "public void setCEndTs(Timestamp value) {\r\n setAttributeInternal(CENDTS, value);\r\n }" ]
[ "0.62819344", "0.60461843", "0.6025474", "0.59123254", "0.5898341", "0.5851425", "0.5792759", "0.5753853", "0.57425463", "0.5708768", "0.5683451", "0.56526434", "0.5644223", "0.56403935", "0.5637164", "0.56048423", "0.5603104", "0.5598716", "0.5579252", "0.5559744", "0.55596554", "0.5554478", "0.5528619", "0.5518487", "0.5508398", "0.5484854", "0.5483376", "0.5477854", "0.54751754", "0.5471805", "0.54699516", "0.5459271", "0.5455234", "0.5450549", "0.54490876", "0.5443906", "0.5438994", "0.5433782", "0.54323", "0.54320073", "0.54256386", "0.5425455", "0.5416301", "0.5410251", "0.540962", "0.5407502", "0.53817755", "0.5380344", "0.5376653", "0.53626865", "0.5360425", "0.5358019", "0.5354702", "0.5349167", "0.53487307", "0.53467065", "0.5344472", "0.5337663", "0.5334658", "0.53334963", "0.53327703", "0.5319461", "0.5317744", "0.53176594", "0.5309708", "0.5283218", "0.5278439", "0.5267225", "0.5266502", "0.52569866", "0.5246829", "0.5238781", "0.5236707", "0.5233575", "0.52310556", "0.5229218", "0.5226957", "0.52224857", "0.52196574", "0.52160126", "0.5209657", "0.52021646", "0.51997316", "0.5196473", "0.51886433", "0.5182678", "0.51806974", "0.51749265", "0.51724225", "0.5171169", "0.51656634", "0.51631904", "0.5162887", "0.5159513", "0.51541555", "0.51541555", "0.5152372", "0.5151765", "0.5145121", "0.5139573" ]
0.5679233
11
Write DTSTAMP property of event Stamp should be date created. DateTime constructor returns today's date.
private String makeEventStamp() { String name = "DTSTAMP"; return formatTimeProperty(LocalDateTime.now(), name) + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NoProxy\n public void updateDtstamp() {\n setDtstamp(new DtStamp(new DateTime(true)).getValue());\n }", "Date getTimeStamp();", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "@NoProxy\n public void setDtstamps(final Timestamp val) {\n DateTime dt = new DateTime(val);\n setDtstamp(new DtStamp(dt).getValue());\n setLastmod(new LastModified(dt).getValue());\n setCtoken(getLastmod() + \"-\" + hex4FromNanos(val.getNanos()));\n\n if (getCreated() == null) {\n setCreated(new Created(dt).getValue());\n }\n }", "public long getStamp() {\n return stamp;\n }", "public DateTime getTimeStamp(){\n\t\treturn (DateTime) getObject(DateTime.class, KEY_TIMESTAMP);\n\t}", "public String getTimeStamp() {\n return timeStamp;\n }", "protected final static String getDateStamp() {\n\n\t\treturn\n\n\t\tnew SimpleDateFormat(\"MMM d, yyyy h:mm:ss a zzz\").format(new Date());\n\n\t}", "public static String createTimeStamp(){\n return new SimpleDateFormat( \"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n }", "Calendar getTimeStamp();", "public TimeStamp(){\n\t\tdateTime = LocalDateTime.now();\n\t}", "private Timestamp getDatetimeTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime((Date) spDate.getValue());\n\n\t\tCalendar cal_temp = Calendar.getInstance();\n\t\tcal_temp.setTime((Date) spTime.getValue());\n\n\t\tcal.set(Calendar.HOUR_OF_DAY, cal_temp.get(Calendar.HOUR_OF_DAY));\n\t\tcal.set(Calendar.MINUTE, cal_temp.get(Calendar.MINUTE));\n\t\treturn new Timestamp(cal.getTimeInMillis());\n\t}", "Date getTimestamp();", "public void setTimeStamp(@NonNull DateTime timeStamp){\n\t\tsetValue(KEY_TIMESTAMP, timeStamp);\n\t}", "public java.lang.String getDate_stamp_descr() {\n return date_stamp_descr;\n }", "public void setTimestamp(IWTimestamp stamp) {\n \t\tthis.stamp = stamp;\n \t}", "public long getTimeStamp() {return timeStamp;}", "public Date getDBTimeStamp() throws Exception;", "public int getTimeStamp() {\n return timeStamp;\n }", "public void setTimeStamp(long t)\n\t{attributes.add(TIMESTAMP,String.valueOf(t));}", "public void setTimeStamp(String timeStamp) {\n this.timeStamp = timeStamp;\n }", "private void updateTimeStamp() {\n\t\tthis.timeStamp = new Timestamp(System.currentTimeMillis());\n\t}", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public String getTimeStamp()\n\t{\n\t\tString timeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(Calendar.getInstance().getTime());\n\t\treturn timeStamp; \n\t}", "public Long getTimeStamp() {\n return this.TimeStamp;\n }", "public static void AddDateTimeAttribute( DataSet DS, long date)\n {\n if( date <= 0 )\n date = System.currentTimeMillis( );\n \n Util.AddDateTimeAttribute( DS, new Date( date ));\n }", "public Date getTimestamp() {\r\n return mTimestamp;\r\n }", "static String createNormalDateTimeString() {\n return NORMAL_STROOM_TIME_FORMATTER.format(ZonedDateTime.now(ZoneOffset.UTC));\n }", "String getTimestamp();", "String getTimestamp();", "public final void testSetTimeStamp() {\n Notification n = new Notification(\"type\", \"src\", 1);\n n.setTimeStamp(123);\n assertEquals(123, n.getTimeStamp());\n }", "public int getTimeStamp() {\r\n return fTimeStamp;\r\n }", "public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\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 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 }", "@Override\n\tpublic String getTimestamp()\n\t{\n\t\treturn new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\").format(new Date());\n\t}", "java.lang.String getTimestamp();", "java.lang.String getTimestamp();", "long getTimeStamp();", "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}", "public boolean getStamp() {\r\n return Stamp;\r\n }", "Date getTimestamp()\n{\n return time_stamp;\n}", "public void setStatementDate (Timestamp StatementDate);", "private java.sql.Timestamp getCurrentTimeStamp() {\n\n\t\tjava.util.Date today = new java.util.Date();\n\t\treturn new java.sql.Timestamp(today.getTime());\n\n\t}", "public static void AddDateTimeAttribute( DataSet DS, Date date )\n {\n if( date == null )\n date = new Date( System.currentTimeMillis( ));\n \n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat();\n \n sdf.applyPattern( \"dd-MMM-yy\" );\n \n DS.setAttribute( new StringAttribute( Attribute.END_DATE , sdf\n .format( date ) ) );\n \n sdf.applyPattern( \"HH:mm:ss\" );\n \n DS.setAttribute( new StringAttribute( Attribute.END_TIME , sdf\n .format( date ) ) );\n }", "public long getTimeStamp() {\n return timestamp;\n }", "public static String getTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t//define the format of time stamp\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\treturn sdf.format(cal.getTime());\n\n\t}", "public Date getCreateTimestamp() {\r\n return createTimestamp;\r\n }", "TimeStamp getT();", "public String getTimeStamp() {\n return new SimpleDateFormat(\"dd.MM.yyyy HH.mm.ss\").format(new Date());\n }", "public long getTimeStamp() {return attributes.getLongValue(TIMESTAMP,-1);}", "private String getcurrentTimeStamp() {\n\t\tDateTimeFormatter format = DateTimeFormatter\n\t\t\t\t.ofPattern(RidGeneratorPropertyConstant.TIMESTAMP_FORMAT.getProperty());\n\t\treturn LocalDateTime.now().format(format);\n\t}", "public static Timestamp getNowTimestamp()\n {\n return new Timestamp(System.currentTimeMillis());\n }", "public static Timestamp getNowTimestamp() {\n return new Timestamp(System.currentTimeMillis());\n }", "public long getTimeStamp() {\n return 1370918376296L;\n }", "private void stamp() {\n mInternalStamp = SystemClock.elapsedRealtime();\n }", "public Date getCreateTimestamp() {\n return createTimestamp;\n }", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "UtcT time_stamp () throws BaseException;", "public Date getTimestamp() {\n return timestamp;\n }", "public Date getTimestamp() {\n return timestamp;\n }", "public Date getTimestamp() {\n return timestamp;\n }", "public void setsaledate(Timestamp value) {\n setAttributeInternal(SALEDATE, value);\n }", "public Date getTimestamp() {\r\n return this.timestamp;\r\n }", "@SuppressWarnings(\"unused\")\n private String makeEventStamp(Course item) {\n return makeEventStamp();\n }", "public long getTimestamp();", "public long getTimestamp();", "public StampRes stamp(Stamp stamp) {\n\n\t\t// check validity of arguments\n\t\tcheckStampObjectValidity(stamp);\n\t\t// execute\n\t\tStampRes res = (StampRes) pdf4meClient.customHttp.postUniversalObject(stamp, StampRes.class, \"Stamp/Stamp\");\n\t\t// check response for errors\n\t\tif (res == null) {\n\t\t\tthrow new Pdf4meBackendException(\"Server Error\");\n\t\t} else {\n\t\t\tResponseChecker.checkDocumentForErrors(res.getDocument());\n\t\t}\n\t\treturn res;\n\t}", "public void createTimeStamp (Object timeStamp) {\n LineTranslations.getTranslations().createTimeStamp(timeStamp);\n }", "@Override\n public final long getTimeStamp() {\n synchronized (TIMESTAMP_LOCK) {\n return this.timeStamp;\n }\n }", "public String getMSDT() {\r\n for (int i = 0; i < eventFields.size(); i++) {\r\n EventDataEntry currentEntry = eventFields.get(i);\r\n if (currentEntry.getColumnName().equalsIgnoreCase(\"msdt\")) {\r\n return currentEntry.getValues().getFirst().toString();\r\n }\r\n }\r\n return null;\r\n }", "public DateTime timestamp() {\n\n\t\tif (timestamp == null) {\n\n\t\t\tfinal DateTimeValue dt = ProtoDateUtil.fromDecimalDateTime(message.getBaseTimeStamp());\n\n\t\t\ttimestamp = new DateTime(dt.getYear(), dt.getMonth(), dt.getDay(), dt.getHour(), dt.getMinute(),\n\t\t\t\t\tdt.getSecond(), dt.getMillis(), ISOChronology.getInstanceUTC());\n\n\t\t}\n\n\t\treturn timestamp;\n\n\t}", "private String getTimestamp() {\n return Calendar.getInstance().getTime().toString();\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn this.createdTimestamp;\n\t}", "OffsetDateTime createdDateTime();", "public void setDateInvoiced (Timestamp DateInvoiced);", "public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }", "public DateTime(final DateTime timeStamp) {\n this(null, timeStamp);\n }", "public void setDateStart (Timestamp DateStart);", "public static String fn_GetCurrentTimeStamp() {\n\t\tDate dte = new Date();\n\t\tDateFormat df = DateFormat.getDateTimeInstance();\n\t\tString strdte = df.format(dte);\n\t\tstrdte = strdte.replaceAll(\":\", \"_\");\n\t\treturn strdte;\n\t}", "private long makeTimestamp() {\n return new Date().getTime();\n }", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "private Date getTestListingDateTimeStamp() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1, 17, 0);\n return new Date(calendar.getTimeInMillis());\n }", "int getTimestamp();", "public ImagingStudy setDateTime(DateTimeDt theValue) {\n\t\tmyDateTime = theValue;\n\t\treturn this;\n\t}", "public String getTimestamp()\n {\n return timestamp;\n }", "public Timestamp getTimestamp() {\n\n\t\treturn new Timestamp(new Date().getTime());\n\n\t}", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }", "@NonNull\n public Date getTimestamp() {\n return timestamp;\n }", "public void setDateTrx (Timestamp DateTrx);", "public void setDateTrx (Timestamp DateTrx);", "public void write(long timeStampFirst, long timestampLast);", "public OffsetDateTime getTimestamp() {\n return this.timestamp;\n }", "public DateTime(final BusinessObject parent, final DateTime timeStamp) {\n super(parent);\n date = timeStamp.date;\n isNull = timeStamp.isNull;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public Long getCreatedAtDD() {\n return getCreatedAt() == null ? null : getCreatedAt().getTime();\n }", "public long getTimestamp_() {\n return timestamp_;\n }", "public static String getTimestamp() {\r\n\t\t\r\n\t\treturn new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t}", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();" ]
[ "0.62773204", "0.6054344", "0.550092", "0.54687405", "0.54663116", "0.54614776", "0.54247975", "0.5417788", "0.5397193", "0.5396918", "0.5377473", "0.535481", "0.5340865", "0.5310247", "0.53080875", "0.52875394", "0.52841973", "0.52220935", "0.52211523", "0.5213594", "0.52129024", "0.5171132", "0.51344097", "0.5133146", "0.5123928", "0.5112418", "0.5092423", "0.50777245", "0.50733453", "0.50733453", "0.5071873", "0.5053406", "0.50515956", "0.5049175", "0.5046774", "0.5045272", "0.50421476", "0.50421476", "0.5040432", "0.50357985", "0.503523", "0.50331783", "0.50259316", "0.50171614", "0.501176", "0.49912247", "0.49800402", "0.4976504", "0.49629366", "0.49625862", "0.49590173", "0.49433604", "0.49354243", "0.49338332", "0.49290657", "0.49211022", "0.49132046", "0.49124017", "0.49100047", "0.4908795", "0.4908795", "0.4908795", "0.49085328", "0.49082047", "0.48942238", "0.48920104", "0.48920104", "0.48907372", "0.48895007", "0.488689", "0.48782876", "0.48640195", "0.4854397", "0.48492515", "0.48486507", "0.48473045", "0.484728", "0.48437944", "0.4842522", "0.48374513", "0.48327944", "0.48323512", "0.48321307", "0.48210144", "0.48183957", "0.4812017", "0.4811664", "0.48115656", "0.4811185", "0.48105517", "0.48105517", "0.48072702", "0.48010617", "0.47981974", "0.47911993", "0.4782645", "0.47787964", "0.47630703", "0.47630703", "0.47630703" ]
0.7248516
0
Write DTSTAMP property given Course
@SuppressWarnings("unused") private String makeEventStamp(Course item) { return makeEventStamp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "public void setTimeStamp(long t)\n\t{attributes.add(TIMESTAMP,String.valueOf(t));}", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "@Override\r\n\tpublic void save(org.holtz.eve.jpa.entity.TCsCourse course) {\n\r\n\t}", "public void setDateAcct (Timestamp DateAcct);", "public void setDateAcct (Timestamp DateAcct);", "@NoProxy\n public void updateDtstamp() {\n setDtstamp(new DtStamp(new DateTime(true)).getValue());\n }", "public void write(long timeStampFirst, long timestampLast);", "@NoProxy\n public void setDtstamps(final Timestamp val) {\n DateTime dt = new DateTime(val);\n setDtstamp(new DtStamp(dt).getValue());\n setLastmod(new LastModified(dt).getValue());\n setCtoken(getLastmod() + \"-\" + hex4FromNanos(val.getNanos()));\n\n if (getCreated() == null) {\n setCreated(new Created(dt).getValue());\n }\n }", "public long getTimeStamp() {return timeStamp;}", "long getTimeStamp();", "Date getTimeStamp();", "public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }", "public static void updatestudentAttendance(String courseId,String studentId){\n String value= Prefs.getString(courseId+\"+\"+ studentId, \"\");\n String latestData=value;\n if(!value.contains(Utils.getDate())){\n latestData = Utils.getDate()+\"+\"+value;\n }\n Prefs.putString(courseId+\"+\"+ studentId, latestData);\n\n\n }", "private void saveTLZ(String dateTime) {\n try {\n Logger.writeLog(\"TESTCASERUNNER: Saving TLZ\");\n// File tlzPath = Globals.mainActivity.getFilesDir();\n File tlzPath = Globals.mainActivity.getExternalFilesDir(null);\n client.saveLog(new File(tlzPath, MessageFormat.format(\"{0}_{1}.tlz\", this.currentTestCase, dateTime)));\n } catch (IOException ioex) {\n Logger.writeLog(\"TESTCASERUNNER: Error while saving TLZ: \" + ioex.getMessage());\n }\n }", "public 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 void setTimeStamp(String timeStamp) {\n this.timeStamp = timeStamp;\n }", "public long getStamp() {\n return stamp;\n }", "@Override\n public void create(Course t) {\n String statement = INSERT;\n data.makeUpdateStatement(statement,new Object[]{(Object)t.getTitle(),(Object)t.getStream(), (Object)t.getType(),\n (Object)t.getStart_date(),(Object)t.getEnd_date()});\n Course lastCreatedCourse = getByMaxId(); //after the course creation, we get back the last course with the id\n t.setId(lastCreatedCourse.getId()); //and set the id to the given course\n data.closeConnections(data.ps, data.conn);\n \n }", "String getTimestamp();", "String getTimestamp();", "public String getTimeStamp() {\n return timeStamp;\n }", "public long getTimeStamp() {return attributes.getLongValue(TIMESTAMP,-1);}", "public void setDateTrx (Timestamp DateTrx);", "public void setDateTrx (Timestamp DateTrx);", "java.lang.String getTimestamp();", "java.lang.String getTimestamp();", "public void setDateDoc (Timestamp DateDoc);", "public void setDateDoc (Timestamp DateDoc);", "public void setDateDoc (Timestamp DateDoc);", "public void setTimestamp(IWTimestamp stamp) {\n \t\tthis.stamp = stamp;\n \t}", "public int getTimeStamp() {\n return timeStamp;\n }", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "private void _generateACourse(int index) {\n\t String id = _getId(CS_C_COURSE, index);\n writer_.startSection(CS_C_COURSE, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#Course\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_NAME,\n _getRelativeName(CS_C_COURSE, index), false);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#name\", _getRelativeName(CS_C_COURSE, index), false);\t \t \t \t \n }\n writer_.endSection(CS_C_COURSE);\n }", "public void toBeAttending (int studentID, Date date);", "public long getTimestamp();", "public long getTimestamp();", "public void setMovementDate (Timestamp MovementDate);", "long getTimestamp();", "Date getTimestamp()\n{\n return time_stamp;\n}", "public Integer getCoursePassTime() {\n\t\treturn coursePassTime;\n\t}", "@POST\r\n\t@Path(\"/ta\")\r\n\tpublic void assignTAtoCourse(@QueryParam(\"studentID\") String studentID, @QueryParam(\"courseID\") String courseID) {\r\n\r\n\t\tStudent student = InMemoryDataStore.getStudent(studentID);\r\n\t\tCourse course = InMemoryDataStore.getCourse(courseID);\r\n\r\n\t\tif (student == null || course == null) {\r\n\t\t\tthrow new WebApplicationException(Response.Status.BAD_REQUEST);\r\n\t\t}\r\n\r\n\t\tcourse.setTaStudentID(studentID);\r\n\t}", "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 static String getDatesListbystudentCourseandstID(String courseId,String studentId){\n String value= Prefs.getString(courseId+\"+\"+ studentId, \"\");\n\n return value;\n\n }", "public void createTimeStamp (Object timeStamp) {\n LineTranslations.getTranslations().createTimeStamp(timeStamp);\n }", "@Override\n\tpublic String getTimestamp()\n\t{\n\t\treturn new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\").format(new Date());\n\t}", "public void setDateTrx (Timestamp DateTrx)\n{\nif (DateTrx == null) throw new IllegalArgumentException (\"DateTrx is mandatory\");\nset_Value (\"DateTrx\", DateTrx);\n}", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "private void updateTimeStamp() {\n\t\tthis.timeStamp = new Timestamp(System.currentTimeMillis());\n\t}", "public static String createTimeStamp(){\n return new SimpleDateFormat( \"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n }", "public int getTimeStamp() {\r\n return fTimeStamp;\r\n }", "Calendar getTimeStamp();", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "Source updateDatasourceZ3950Timestamp(Source ds) throws RepoxException;", "public void setIdCourse(Long idCourse) {\n this.idCourse = idCourse;\n }", "public void setCEndTs(Timestamp value) {\r\n setAttributeInternal(CENDTS, value);\r\n }", "void addRecord(String[] propertyValues, Date timestamp) throws IOException;", "public Long getTimeStamp() {\n return this.TimeStamp;\n }", "int getTimestamp();", "public java.lang.String getDate_stamp_descr() {\n return date_stamp_descr;\n }", "public long getTimeStamp() {\n return timestamp;\n }", "public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);", "public void setStatementDate (Timestamp StatementDate);", "public void setTimeStamp(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localTimeStampTracker = true;\r\n } else {\r\n localTimeStampTracker = false;\r\n \r\n }\r\n \r\n this.localTimeStamp=param;\r\n \r\n\r\n }", "private void writePref() {\n SharedPreferences.Editor editor = sp.edit();\n long currentTime = System.currentTimeMillis();\n editor.putLong(UPDATE, currentTime);\n editor.commit();\n System.out.println(\"Time of current update: \" + getDateFromLong(currentTime));\n }", "abstract public void writeTrack(Student student);", "public void setDateInvoiced (Timestamp DateInvoiced);", "private static void seTimeStamps() {\n MDC.put(MDC_INSTANCE_UUID, \"\");\n MDC.put(MDC_ALERT_SEVERITY, \"\");\n\n var startTime = Instant.now();\n var endTime = Instant.now();\n\n seTimeStamps(startTime, endTime);\n\n MDC.put(PARTNER_NAME, \"N/A\");\n\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n MDC.put(RESPONSE_CODE, \"N/A\");\n MDC.put(RESPONSE_DESCRIPTION, \"N/A\");\n\n }", "public ClockTime(Timestamp d) {\n super(Property.CLOCKTIME_PROPERTY);\n calValue = Calendar.getInstance();\n calValue.setTimeInMillis(d.getTime());\n normalize();\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 }", "public abstract void setDate(Timestamp uneDate);", "@Override\n protected void setGeneratedDateIfRequired(SscsCaseData sscsCaseData, EventType eventType) {\n if (eventType == EventType.WRITE_FINAL_DECISION) {\n sscsCaseData.getSscsFinalDecisionCaseData().setWriteFinalDecisionGeneratedDate(LocalDate.now().toString());\n }\n }", "public int getTimestamp(){\r\n\t\treturn timestamp;\r\n\t}", "long getDateTime();", "private void setSmsTimeStamp(Context context, String timeStamp) {\n SharedPreferences sp = context.getSharedPreferences(\"sms_time_stamp\", Context.MODE_PRIVATE);\n sp.edit().putString(\"sms_time_stamp\", timeStamp).commit(); \n }", "public LocalDateTime getTimeStampSecObj(int columnIndex) {\n TimeStampSecVector vector = (TimeStampSecVector) table.getVector(columnIndex);\n return vector.getObject(rowNumber);\n }", "TimeStamp getT();", "Source createDatasourceZ3950Timestamp(Source ds, Provider prov) throws RepoxException;", "public String getTimestamp()\n {\n return timestamp;\n }", "public Date getDBTimeStamp() throws Exception;", "public long getTimestamp_() {\n return timestamp_;\n }", "public void setTimestamp(long value) {\r\n this.timestamp = value;\r\n }", "public String getTimeStamp() {\n return new SimpleDateFormat(\"dd.MM.yyyy HH.mm.ss\").format(new Date());\n }", "@BeforeEach\r\n void createCourse() {\r\n date = new Date(1220227200L * 1000);\r\n lecture = new Lecture();\r\n lecture.setCourseId(\"CSE1230\");\r\n lecture.setDuration(50);\r\n lecture.setLectureId(9);\r\n lecture.setScheduledDate(date);\r\n }", "private String getTimestamp() {\n return Calendar.getInstance().getTime().toString();\n }" ]
[ "0.6036931", "0.53786737", "0.53351825", "0.53211534", "0.5319624", "0.5319624", "0.5300827", "0.5293375", "0.5279102", "0.5252087", "0.5248911", "0.51837766", "0.51651335", "0.5137341", "0.5122272", "0.50754607", "0.507284", "0.5057675", "0.50575155", "0.50545996", "0.50545996", "0.503072", "0.5011039", "0.49944577", "0.49944577", "0.496817", "0.496817", "0.4963652", "0.4963652", "0.4963652", "0.49567503", "0.49557874", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49385145", "0.49136254", "0.49120027", "0.48832592", "0.48832592", "0.48778373", "0.48764417", "0.48687163", "0.48575106", "0.48553896", "0.48440304", "0.48394725", "0.4833316", "0.4832154", "0.4827341", "0.48233658", "0.48131782", "0.4807786", "0.4782317", "0.47809568", "0.477332", "0.4772843", "0.4758769", "0.47546816", "0.4745013", "0.4737887", "0.47344705", "0.47246566", "0.4722561", "0.4720036", "0.47148165", "0.47146562", "0.47088775", "0.4707537", "0.47070676", "0.47034258", "0.47010773", "0.46924612", "0.46922445", "0.46909368", "0.46842963", "0.46827647", "0.46801084", "0.46797803", "0.46764553", "0.46714512", "0.46709546", "0.4654393", "0.46466985", "0.46324602", "0.46320724", "0.46315867", "0.46262032" ]
0.546009
1
/ ICS FORMATTING METHODS Write RRULE property of event given an UNTIL date The frequency of the recurrence is hardcoded to WEEKLY
private String makeEventRecurrence(LocalDateTime lastDay) { return "RRULE:FREQ=WEEKLY;UNTIL=" + formatTimeToICS(lastDay) + "Z" + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void repeatingTask_changeRepeatPeriod_nextWeekDate() {\n LocalDate testDate = LocalDateTime.now().minusWeeks(1).minusDays(1).toLocalDate();\n LocalTime testTime = LocalTime.of(8, 30);\n LocalDateTime testDateTime = LocalDateTime.of(testDate, testTime);\n Event testEvent = new Event(\"8 days ago\", \"CS2113T\", testDateTime, testDateTime.plusHours(4),\n \"testing\");\n testTaskList.addTask(testEvent);\n // Set to 1w\n RepeatCommand testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.WEEKLY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n RepeatEvent repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n // Set to 1d\n testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.DAILY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n\n assertEquals(repeatEvent.getPeriodCounter(), 0);\n assertEquals(repeatEvent.getNextDateTime(), LocalDateTime.of(LocalDate.now().plusWeeks(1), testTime));\n }", "@Test\n public void testRecuccrenceRuleChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n int occurences = 10;\n String rrule = RRuleFactory.getFrequencyWithOccurenceLimit(RecurringFrequency.DAILY, occurences);\n deltaEvent.setRrule(rrule);\n\n /*\n * Update as organizer\n */\n long now = now().longValue();\n String fromStr = DateTimeUtil.getZuluDateTime(new Date(now - TimeUnit.DAYS.toMillis(1)).getTime()).getValue();\n String untilStr = DateTimeUtil.getZuluDateTime(new Date(now + TimeUnit.DAYS.toMillis(30)).getTime()).getValue();\n\n ChronosCalendarResultResponse calendarResultResponse = chronosApi.updateEvent(deltaEvent.getFolder(), deltaEvent.getId(), now(), getUpdateBody(deltaEvent), deltaEvent.getRecurrenceId(), null, null, null, null, null, null, fromStr, untilStr, Boolean.TRUE, null);\n assertNull(calendarResultResponse.getError());\n assertTrue(calendarResultResponse.getData().getUpdated().size() == 0);\n assertTrue(calendarResultResponse.getData().getCreated().size() == occurences);\n assertTrue(calendarResultResponse.getData().getDeleted().size() == 1);\n\n /*\n * Check that end date has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.NEEDS_ACTION, CustomConsumers.ALL);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertThat(\"Recurrence ID is not correct.\", change.getNewEvent().getRrule(), is(rrule));\n }", "private void nextWeek() {\r\n tmp.setDay(tmp.getDay() + daysInWeek);\r\n upDMYcountDMYcount();\r\n }", "E7Rule createE7Rule();", "@SuppressWarnings(\"unused\")\n private String makeEventRecurrence(Course item) {\n return makeEventRecurrence(LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0)));\n }", "public static void createWeeklyReminderAlarm(Context context) {\n String prefWeekStart = PreferenceUtils.readString(PreferenceUtils.SNOOZE_WEEK_START, context);\n int weekStartDay = DateUtils.weekdayFromPrefValue(prefWeekStart);\n int dayBeforeWeekStart = weekStartDay - 1 == 0 ? Calendar.SATURDAY : weekStartDay - 1;\n\n // Load evening start preference.\n String prefEveningStart = PreferenceUtils.readString(PreferenceUtils.SNOOZE_EVENING_START, context);\n int eveningStartHour = TimePreference.getHour(prefEveningStart);\n int eveningStartMinute = TimePreference.getMinute(prefEveningStart);\n\n // Set alarm time based on preference.\n Calendar alarmTime = getBaseCalendar();\n alarmTime.set(Calendar.HOUR_OF_DAY, eveningStartHour);\n alarmTime.set(Calendar.MINUTE, eveningStartMinute);\n alarmTime.set(Calendar.DAY_OF_WEEK, dayBeforeWeekStart);\n\n // Check if alarm should be in the next week.\n if (alarmTime.before(Calendar.getInstance())) {\n alarmTime.setTimeInMillis(alarmTime.getTimeInMillis() + 604800000);\n }\n\n // Create reminders intent.\n PendingIntent alarmIntent = getRemindersIntent(context, Intents.WEEKLY_REMINDER);\n\n // Cancel existing alarms.\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarmManager.cancel(alarmIntent);\n\n // Trigger the alarm weekly on the given time.\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, alarmTime.getTimeInMillis(), 604800000, alarmIntent);\n }", "static void addtoReminder(String j, String date) {\n if (j.equals(\"None\")) {\n } else if (j.equals(\"1 Day Before\")) {\n L.add(new Day(date, 1));\n } else if (j.equals(\"2 Day Before\")) {\n L.add(new Day(date, 2));\n } else if (j.equals(\"3 Day Before\")) {\n L.add(new Day(date, 3));\n } else if (j.equals(\"4 Day Before\")) {\n L.add(new Day(date, 4));\n } else if (j.equals(\"1 Week Before\")) {\n L.add(new Week(date, 1));\n } else if (j.equals(\"2 Week Before\")) {\n L.add(new Week(date, 2));\n } else {\n System.out.println(\"remindera ekleme yapılamadı....\");\n }\n }", "public RecordBuilder weekending(String date) {\n\t\tDate properDate = null;\n\t\ttry {\n\t\t\tproperDate = new SimpleDateFormat(\"MM/dd/yyyy\").parse(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (properDate == null) {\n\t\t\tSystem.out.println(\"incorrect form of String parameter\");\n\t\t}\n\t\trecord.setWeekending(properDate);\n\t\treturn this;\n\t}", "public void generateWeeklySchedule(){\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.get(i).clear();\r\n\r\n int day = 0;\r\n int workHrs = 0;\r\n\r\n for (Task unfinishedTask: unfinished){\r\n if (day > numDayWorkWeek - 1) break;\r\n\r\n //if there is room for this task --> add it. Else, move to the next day\r\n if (workHrs + unfinishedTask.getHrsLeft() <= dailyWorkload){\r\n weeklySchedule.get(day).add(unfinishedTask);\r\n workHrs += unfinishedTask.getHrsLeft();\r\n }\r\n else{\r\n day++;\r\n weeklySchedule.get(day).add(unfinishedTask);\r\n workHrs = unfinishedTask.getHrsLeft();\r\n }\r\n }\r\n }", "org.hl7.fhir.Period addNewAppliesPeriod();", "public void createRecurringFromFile(String name, String[] arr) {\n\t\t// TODO Auto-generated method stub\n\t\tchar[] days = arr[0].toCharArray();\n\t\tLocalTime stime = LocalTime.parse(arr[1]);\n\t\tLocalTime etime = LocalTime.parse(arr[2]);\n\t\tLocalDate sdate = LocalDate.parse(arr[3]);\n\t\tLocalDate edate = LocalDate.parse(arr[4]);\n\n\t\tint[] dayNum = new int[days.length];\n\t\tfor(int i = 0; i<days.length; i++) {\n\t\t\tif(days[i] == 'M') {\n\t\t\t\tdayNum[i] = 1;\n\t\t\t}\n\t\t\telse if(days[i] == 'T') {\n\t\t\t\tdayNum[i] = 2;\n\t\t\t}\n\t\t\telse if(days[i] == 'W') {\n\t\t\t\tdayNum[i] = 3;\n\t\t\t}\n\t\t\telse if(days[i] == 'R') {\n\t\t\t\tdayNum[i] = 4;\n\t\t\t}\n\t\t\telse if(days[i] == 'F') {\n\t\t\t\tdayNum[i] = 5;\n\t\t\t}\n\t\t\telse if(days[i] == 'A') {\n\t\t\t\tdayNum[i] = 6;\n\t\t\t}\n\t\t\telse if(days[i] == 'S') {\n\t\t\t\tdayNum[i] = 7;\n\t\t\t}\n\t\t}\n\n\t\tfor(LocalDate d = sdate; !d.isAfter(edate); d = d.plusDays(1)) {\n\t\t\tfor(int i = 0; i<dayNum.length; i++) {\n\t\t\t\tif(d.getDayOfWeek().getValue() == dayNum[i]) {\n\t\t\t\t\tEvent e = new Event(name, sdate, d, edate, stime, etime, arr[0]);\n\t\t\t\t\tcreateEvent(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEvent rEvent = new Event(name, sdate, null, edate, stime, etime, arr[0]);\n\t\trecurringEvents.add(rEvent);\n\t}", "@Scheduled(cron = \"0 0 9-17 * * MON-FRI\")\n\tpublic void scheduleTaskWeekly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 9 - 17 O'clock Every Weekdays - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "DayOfWeek getUserVoteSalaryWeeklyDayOfWeek();", "@Override\n\tpublic RecurrenceRule newRecurrence(String frequency, int interval,\n\t\t\tTime until) {\n\t\treturn null;\n\t}", "protected void setDateTime(LocalDateTime date) {\n updateDateTime(date);\n //isWeekly = true;\n }", "@FXML\n private void incrementWeek() {\n date = date.plusWeeks(1);\n updateDates();\n }", "@Override\n public void appendRecurringDate(TaskOccurrence componentToBeAdded) {\n assert !recurringType.equals(RecurringType.NONE) : \"You cannot append new dates to non recurring tasks\";\n recurringDates.add(componentToBeAdded);\n recurringDates.get(recurringDates.size() - INDEX_OFFSET).setTaskReferrence(this);\n }", "private RepeatWeekdays() {}", "@Override\n public DateParameter toReportingParameter(LocalDate date) {\n\n final TemporalField temporalField = WeekFields.of(DayOfWeek.MONDAY, 7).dayOfWeek();\n final LocalDateTime firstDayOfWeek = date.with(temporalField, 1).atStartOfDay();\n final LocalDateTime lastDayOfWeek = date.with(temporalField, 7).atTime(23, 59, 59);\n\n return new DateParameter(firstDayOfWeek, lastDayOfWeek);\n }", "public void setNextWeek()\n\t{\n\t\tm_calendar.set(Calendar.WEEK_OF_MONTH,getWeekOfMonth()+1);\n\n\t}", "@JSProperty(\"startOfWeek\")\n void setStartOfWeek(double value);", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "@Override\n\tpublic RecurrenceRule newRecurrence(String frequency) {\n\t\treturn null;\n\t}", "private Builder() {\n super(referential.store.v2.WeekPattern.SCHEMA$);\n }", "@Override\n public long checkFrequencyMillis()\n {\n return TimeUnit.DAYS.toMillis( 1 );\n }", "protected abstract void calcNextDate();", "private static void test27(){\n LocalDateTime newWorkingDay = LocalDateTime.now().with((temporal) -> {\n LocalDateTime localDateTime = (LocalDateTime) temporal;\n DayOfWeek dayOfWeek = localDateTime.getDayOfWeek();\n if(DayOfWeek.FRIDAY.equals(dayOfWeek)){\n return localDateTime.plusDays(1);\n }else if(DayOfWeek.SATURDAY.equals(dayOfWeek)) {\n return localDateTime.plusDays(2);\n }else {\n return localDateTime.plusDays(1);\n }\n });\n System.out.println(newWorkingDay);\n}", "private void dayOfWeek(HplsqlParser.Expr_func_paramsContext ctx) {\n Integer v = getPartOfDate(ctx, Calendar.DAY_OF_WEEK);\n if (v != null) {\n evalInt(v);\n }\n else {\n evalNull();\n }\n }", "public void createWeekScenarioBug10265_ParChangeWithFreeP()\n throws Exception {\n long usageStartTime = DateTimeHandling\n .calculateMillis(\"2013-02-28 06:00:00\");\n BillingIntegrationTestBase.setDateFactoryInstance(usageStartTime);\n\n VOServiceDetails serviceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"RARCHANGE_WEEK_FREEP\", TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_WEEK_ROLES_PARS_FREEP,\n technicalServiceAsync, supplierMarketplace);\n\n setCutOffDay(basicSetup.getSupplierAdminKey(), 1);\n\n VORoleDefinition role = VOServiceFactory.getRole(serviceDetails,\n \"ADMIN\");\n\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n VOSubscriptionDetails subDetails = subscrSetup.subscribeToService(\n \"RARCHANGE_WEEK_FREEP\", serviceDetails,\n basicSetup.getCustomerUser1(), role);\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-28 07:00:00\"));\n subDetails = subscrSetup.completeAsyncSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-28 23:00:00\"));\n subDetails = subscrSetup.modifyParameterForSubscription(subDetails,\n DateTimeHandling.calculateMillis(\"2013-02-28 23:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"7\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-01 00:00:00\"));\n subDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n subDetails = subscrSetup.modifyParameterForSubscription(subDetails,\n DateTimeHandling.calculateMillis(\"2013-03-01 01:00:01\"),\n \"MAX_FOLDER_NUMBER\", \"3\");\n // ASYNC - update one second later because not possible otherwise\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-01 01:00:02\"));\n subDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n long usageEndTime = DateTimeHandling\n .calculateMillis(\"2013-03-03 07:00:00\");\n BillingIntegrationTestBase.setDateFactoryInstance(usageEndTime);\n subscrSetup.unsubscribeToService(subDetails.getSubscriptionId());\n\n resetCutOffDay(basicSetup.getSupplierAdminKey());\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"RARCHANGE_WEEK_FREEP\", subDetails);\n }", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.RECURRING)\n public void setRecurring(final Boolean val) {\n recurring = val;\n }", "public Trigger createTrigger(ConfigProperties cprop){\n\t\tint repeat;\n\t\tlong interval;\n\t\tCalendar sd = calculateStartTime(cprop);\n\t\tCalendar ed = calculateEndTime(cprop);\n\t\tString name = cprop.getProperty(\"PROJ.name\");\n\n\t\tString rstr = cprop.getProperty(\"TIME.repeat\");\n\t\tString istr = cprop.getProperty(\"TIME.interval\");\n\t\tString fstr = cprop.getProperty(\"TIME.frequency\");\n\n\t\t//repeat this many times or forever\n\t\tif(rstr!=null)\n\t\t\trepeat = Integer.parseInt(rstr);\n\t\telse\n\t\t\trepeat = SimpleTrigger.REPEAT_INDEFINITELY;\n\n\t\t//repeat every interval milliseconds or daily\n\t\t//interval overrides frequency\n\t\tif(istr!=null)\n\t\t\tinterval = Long.parseLong(istr);\n\t\telse if (fstr!=null)\n\t\t\tinterval = ONE_DAY/Long.parseLong(fstr);\n\t\telse\n\t\t\tinterval = ONE_DAY;\n\n\t\tjlog.info(\"Create Trigger n=\"+name+\" sd=\"+sd.getTime()+\" ed=\"+ed.getTime()+\" r=\"+repeat+\" i=\"+interval);\n\n\t\tTrigger trigger = new SimpleTrigger(name, null,sd.getTime(),ed.getTime(),repeat,interval);\n\t\ttrigger.setMisfireInstruction(SimpleTrigger.MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT);\n\t\treturn trigger;\n\n\n\t}", "@Override\n\tpublic RecurrenceRule newRecurrence(String frequency, int interval,\n\t\t\tint count) {\n\t\treturn null;\n\t}", "void setUserVoteSalaryWeeklyDayOfWeek(DayOfWeek voteSalaryDayOfWeek);", "void xsetSearchRecurrenceRule(org.apache.xmlbeans.XmlString searchRecurrenceRule);", "private Constraint scheduleTasksWithDueDates(ConstraintFactory factory) {\n return factory.from(TaskAssignment.class)\n .filter(TaskAssignment::isTaskAssignedWithDueDate)\n .rewardConfigurable(\"Schedule tasks with due dates\");\n }", "public static String addWeeksToDate(String date, int numberOfWeeks) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.UK);\r\n\t\t\tDateTime dt = new DateTime((Date) sdf.parse(date));\r\n\t\t\tDateTime dt2 = dt.plusWeeks(numberOfWeeks);\r\n\t\t\treturn dt2.toString(\"yyyy-MM-dd\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn date;\r\n\t\t}\r\n\t}", "void setRecurrenceFrequency(long seconds) throws NoUserSelectedException;", "void setRecurrenceDuration(int recurrenceDuration);", "void setSearchRecurrenceRule(java.lang.String searchRecurrenceRule);", "org.hl7.fhir.DateTime addNewAppliesDateTime();", "java.lang.String getSearchRecurrenceRule();", "public void publish() throws BusinessRuleException\n {\n this.testSetPublicationDate();\n this.doSetPublicationDate(new Date());\n }", "public Builder(Recurrence recur) {\n\t\t\tfrequency = recur.frequency;\n\t\t\tinterval = recur.interval;\n\t\t\tcount = recur.count;\n\t\t\tuntil = recur.until;\n\t\t\tbySecond = new ArrayList<Integer>(recur.bySecond);\n\t\t\tbyMinute = new ArrayList<Integer>(recur.byMinute);\n\t\t\tbyHour = new ArrayList<Integer>(recur.byHour);\n\t\t\tbyDay = new ArrayList<ByDay>(recur.byDay);\n\t\t\tbyMonthDay = new ArrayList<Integer>(recur.byMonthDay);\n\t\t\tbyYearDay = new ArrayList<Integer>(recur.byYearDay);\n\t\t\tbyWeekNo = new ArrayList<Integer>(recur.byWeekNo);\n\t\t\tbyMonth = new ArrayList<Integer>(recur.byMonth);\n\t\t\tbySetPos = new ArrayList<Integer>(recur.bySetPos);\n\t\t\tworkweekStarts = recur.workweekStarts;\n\n\t\t\tMap<String, List<String>> map = new HashMap<String, List<String>>(recur.xrules);\n\t\t\txrules = new ListMultimap<String, String>(map);\n\t\t}", "public void setHourlyRecurrence(com.exacttarget.wsdl.partnerapi.HourlyRecurrence hourlyRecurrence)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.HourlyRecurrence target = null;\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().find_element_user(HOURLYRECURRENCE$0, 0);\n if (target == null)\n {\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().add_element_user(HOURLYRECURRENCE$0);\n }\n target.set(hourlyRecurrence);\n }\n }", "@Override\n\tpublic RecurrenceRule newRecurrence(String frequency, int interval) {\n\t\treturn null;\n\t}", "DefinedProperty relAddProperty( long relId, int propertyKey, Object value );", "public void addToReminders(Date reminders);", "@JSProperty(\"startOfWeek\")\n double getStartOfWeek();", "public void createCalShift() {\n\t\tString yes = \"Y\";\n\t\tString effectiveToDate = getProperty(\"EFFECTIVE_TO_DATE\");\n\t\tString defShiftStartTime = getProperty(\"SHIFT_START_TIME\");\n\t\tString defShiftEndTime = getProperty(\"SHIFT_END_TIME\");\n\t\tYFCElement effectivePeriodsEle = docCreateCalenderInXml.getDocumentElement().getChildElement(XMLLiterals.EFFECTIVE_PERIODS);\n\t\tYFCElement effectivePeriodEle = effectivePeriodsEle.getChildElement(XMLLiterals.EFFECTIVE_PERIOD);\n\t\teffectivePeriodEle.setAttribute(XMLLiterals.EFFECTIVE_TO_DATE, effectiveToDate);\n\t\tYFCElement shiftEle=effectivePeriodEle.createChild(XMLLiterals.SHIFTS).createChild(XMLLiterals.SHIFT);\n\t\tshiftEle.setAttribute(XMLLiterals.WEDNESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.TUESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.THURSDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SUNDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SATURDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.MONDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.FRIDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_START_TIME,defShiftStartTime);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_END_TIME,defShiftEndTime);\n\t}", "@Override\n\tpublic boolean isRecurring() {\n\t\treturn true;\n\t}", "public void testApply() {\n \t\tCalendar dateTime = new GregorianCalendar();\n \t\tdateTime.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);\t\t// Monday\n \t\tSystem.out.println(dateTime.toString());\n\t\tForecastData data = new ForecastData(dateTime, 35.0, 0.0, 0.0, 0.0, 0.0, 0.0, 37.0, 0.0, 0.0);\n \t\t\n \t\tFilter shouldPass = new Filter(\"pass\");\n \t\tFilter shouldFail = new Filter(\"fail\");\n \t\tFilter emptyFilter = new Filter(\"empty\");\n \t\tFilter multipleDays = new Filter(\"multipleDays\");\n \t\tFilter wrongDay = new Filter(\"wrongDay\");\n \t\tFilter noConditions = new Filter(\"noConditions\");\n \t\tFilter noTimes = new Filter(\"noTimes\");\n \t\t\n \t\tConditionRule cR = new ConditionRule(ConditionRule.conditions[0], 30, 45);\t\t// Temperature 30 -> 45\n \t\tTimeRule tR = new TimeRule(TimeRule.days[0]);\t\t\t// Monday\n \t\tTimeRule tR2 = new TimeRule(TimeRule.days[1]);\t\t\t// Tuesday\n \t\tConditionRule cR2 = new ConditionRule(ConditionRule.conditions[4], 35, 45);\t\t// Cloud Cover 35 -> 45\n \t\tConditionRule bad = new ConditionRule(ConditionRule.conditions[0], 0, 5);\t\t// Temperature 0 -> 5\n \t\t\n \t\tshouldPass.addRule(cR);\n \t\tshouldPass.addRule(cR2);\n \t\tshouldPass.addRule(tR);\n \t\t\n \t\tshouldFail.addRule(cR2);\n \t\tshouldFail.addRule(bad);\n \t\tshouldFail.addRule(tR2);\n \t\t\n \t\tmultipleDays.addRule(cR);\n \t\tmultipleDays.addRule(tR);\n \t\tmultipleDays.addRule(tR2);\n \t\t\n \t\twrongDay.addRule(cR);\n \t\twrongDay.addRule(cR2);\n \t\twrongDay.addRule(tR2);\n \t\t\n \t\tnoConditions.addRule(tR);\n \t\tnoConditions.addRule(tR2);\n \t\t\n \t\tnoTimes.addRule(cR);\n \t\tnoTimes.addRule(cR2);\n \t\t\n \t\tassertTrue(shouldPass.apply(data));\n \t\tassertFalse(emptyFilter.apply(data));\n \t\tassertFalse(shouldFail.apply(data));\n \t\tassertTrue(multipleDays.apply(data));\n \t\tassertFalse(wrongDay.apply(data));\n \t\tassertFalse(noConditions.apply(data));\n \t\tassertFalse(noTimes.apply(data));\t\n \t}", "@IcalProperty(pindex = PropertyInfoIndex.XPROP,\n jname = \"xprop\",\n adderName = \"xproperty\",\n nested = true,\n keyindex = PropertyInfoIndex.NAME,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.CALSCALE,\n jname = \"calscale\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.AFFECTS_FREE_BUSY,\n jname = \"affectsFreeBusy\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.ALIAS_URI,\n jname = \"aliasURI\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.CALTYPE,\n jname = \"caltype\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.COL_PROPERTIES,\n jname = \"colProperties\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.COLPATH,\n jname = \"colPath\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.DISPLAY,\n jname = \"display\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.FILTER_EXPR,\n jname = \"filterExpr\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.IGNORE_TRANSP,\n jname = \"ignoreTransp\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.LAST_REFRESH,\n jname = \"lastRefresh\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.LAST_REFRESH_STATUS,\n jname = \"lastRefreshStatus\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REFRESH_RATE,\n jname = \"refreshRate\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REMOTE_ID,\n jname = \"remoteId\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REMOTE_PW,\n jname = \"remotePw\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.UNREMOVEABLE,\n jname = \"unremoveable\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n \n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_CONTACT,\n jname = \"xbwcontact\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_LOCATION,\n jname = \"xbwlocation\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_CATEGORIES,\n jname = \"xbwcategories\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_END,\n jname = \"eventregEnd\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_MAX_TICKETS,\n jname = \"eventregMaxTickets\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_MAX_TICKETS_PER_USER,\n jname = \"eventregMaxTicketsPerUser\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_START,\n jname = \"eventregStart\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_WAIT_LIST_LIMIT,\n jname = \"eventregWaitListLimit\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.IMAGE,\n jname = \"image\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INSTANCE,\n jname = \"instance\",\n annotationRequired = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.METHOD,\n jname = \"method\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.PARAMETERS,\n jname = \"pars\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.PRODID,\n jname = \"prodid\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.SUGGESTED_TO,\n jname = \"suggestedTo\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.THUMBIMAGE,\n jname = \"thumbimage\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.TAG,\n jname = \"tag\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.TOPICAL_AREA,\n jname = \"topicalArea\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.UNKNOWN_PROPERTY,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.URI,\n jname = \"uri\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VERSION,\n jname = \"version\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VIEW,\n jname = \"view\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VPATH,\n jname = \"vpath\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n public void setXproperties(final List<BwXproperty> val) {\n xproperties = val;\n }", "public Builder(Frequency frequency) {\n\t\t\tthis.frequency = frequency;\n\t\t\tbySecond = new ArrayList<Integer>(0);\n\t\t\tbyMinute = new ArrayList<Integer>(0);\n\t\t\tbyHour = new ArrayList<Integer>(0);\n\t\t\tbyDay = new ArrayList<ByDay>(0);\n\t\t\tbyMonthDay = new ArrayList<Integer>(0);\n\t\t\tbyYearDay = new ArrayList<Integer>(0);\n\t\t\tbyWeekNo = new ArrayList<Integer>(0);\n\t\t\tbyMonth = new ArrayList<Integer>(0);\n\t\t\tbySetPos = new ArrayList<Integer>(0);\n\t\t\txrules = new ListMultimap<String, String>(0);\n\t\t}", "private void populateWeeks(YearlySchedule yearlySchedule) {\n\t\tMap<Integer, Set<DailySchedule>> weeksMap = yearlySchedule.getWeeks();\n\t\t\n\t\tfor (Iterator<MonthlySchedule> iterator = yearlySchedule.getMonthlySchedule().values().iterator(); iterator.hasNext();) {\n\t\t\tMonthlySchedule monthSchedule = (MonthlySchedule) iterator.next();\n\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tcalendar.set(Calendar.YEAR, yearlySchedule.getYearValue());\n\t\t\tcalendar.set(Calendar.MONTH, monthSchedule.getMonthValue());\n\t\t\tcalendar.set(Calendar.DATE, 1);\n\t\t\tint numDays = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\t\t\n\t\t\tfor(int day=1;day<=numDays;day++){ // ITERATE THROUGH THE MONTH\n\t\t\t\tcalendar.set(Calendar.DATE, day);\n\t\t\t\tint dayofweek = calendar.get(Calendar.DAY_OF_WEEK);\n\t\t\t\tint weekofyear = calendar.get(Calendar.WEEK_OF_YEAR);\n\n\t\t\t\tSet<DailySchedule> week = null;\n\t\t\t\tif(monthSchedule.getMonthValue() == 11 && weekofyear == 1){ // HANDLE 1st WEEK OF NEXT YEAR\n\t\t\t\t\tYearlySchedule nextyear = getYearlySchedule(yearlySchedule.getYearValue()+1);\n\t\t\t\t\tif(nextyear == null){\n\t\t\t\t\t\t// dont generate anything \n\t\t\t\t\t\t// advance iterator to end\n\t\t\t\t\t\tday = numDays;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tweek = nextyear.getWeeks().get(weekofyear);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tweek = weeksMap.get(weekofyear);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(week == null){\n\t\t\t\t\tweek = new HashSet<DailySchedule>();\n\t\t\t\t\tweeksMap.put(weekofyear, week);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(dayofweek == 1 && day+6 <= numDays){ // FULL 7 DAYS\n\t\t\t\t\tfor(int z=day; z<=day+6;z++){\n\t\t\t\t\t\tweek.add(monthSchedule.getDailySchedule().get(z));\n\t\t\t\t\t}\n\t\t\t\t\tday += 6; // Increment to the next week\n\t\t\t\t}else if (dayofweek == 1 && day+6 > numDays){ // WEEK EXTENDS INTO NEXT MONTH\n\t\t\t\t\tint daysInNextMonth = (day+6) - numDays;\n\t\t\t\t\t\n\t\t\t\t\t// GET DAYS IN NEXT MONTH\n\t\t\t\t\tif(monthSchedule.getMonthValue()+1 <= 11){ // IF EXCEEDS CURRENT CALENDAR HANDLE IN ESLE BLOCK \n\t\t\t\t\t\tMonthlySchedule nextMonthSchedule = getScheduleForMonth(monthSchedule.getMonthValue()+1, yearlySchedule.getYearValue()); // GET NEXT MONTH\n\t\t\t\t\t\tfor(int n = 1; n<=daysInNextMonth; n++){\n\t\t\t\t\t\t\tweek.add(nextMonthSchedule.getDailySchedule().get(n));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// GET DAYS IN CURRENT MONTH\n\t\t\t\t\t\tfor(int n = day; n<=numDays; n++){\n\t\t\t\t\t\t\tweek.add(monthSchedule.getDailySchedule().get(n));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t// TODO HANDLE ROLL OVER INTO NEXT YEAR\n\t\t\t\t\t\t// TODO SHOULD SCHEDULE CONSIDER ROLLING OVER INTO NEXT AND PREVIOUS YEARS???\n\t\t\t\t\t\tif(!exceedRange(yearlySchedule.getYearValue()-1)){\n\t\t\t\t\t\t\tMonthlySchedule nextMonthScheudle = getScheduleForMonth(0, yearlySchedule.getYearValue()+1); // GET JANUARY MONTH OF NEXT YEAR\n\t\t\t\t\t\t\tfor(int n = 1; n<=daysInNextMonth; n++){\n\t\t\t\t\t\t\t\tweek.add(nextMonthScheudle.getDailySchedule().get(n));\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 DAYS IN CURRENT MONTH\n\t\t\t\t\t\t\tfor(int n = day; n<=numDays; n++){\n\t\t\t\t\t\t\t\tweek.add(monthSchedule.getDailySchedule().get(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\tbreak; // DONE WITH CURRENT MONTH NO NEED TO CONTINUE LOOPING OVER MONTH\n\t\t\t\t}else if(day-dayofweek < 0){ // WEEK EXTENDS INTO PREVIOUS MONTH\n\t\t\t\t\tint daysInPreviousMonth = dayofweek-day;\n\t\t\t\t\tint daysInCurrentMonth = 7-daysInPreviousMonth;\n\t\t\t\t\t\n\t\t\t\t\t// GET DAYS IN PREVIOUS MONTH\n\t\t\t\t\tif(monthSchedule.getMonthValue()-1 >= 0){ // IF PRECEEDS CURRENT CALENDAR HANDLE IN ESLE BLOCK\n\t\t\t\t\t\tMonthlySchedule previousMonthSchedule = getScheduleForMonth(monthSchedule.getMonthValue()-1, yearlySchedule.getYearValue()); // GET PREVIOUS MONTH\n\t\t\t\t\t\tcalendar.set(Calendar.MONTH, previousMonthSchedule.getMonthValue());\n\t\t\t\t\t\tint numDaysInPreviousMonth = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int n = numDaysInPreviousMonth-(daysInPreviousMonth-1); n<=numDaysInPreviousMonth; n++){ // WHICH DAY TO START ON IN PREVIOUS MONTH\n\t\t\t\t\t\t\tweek.add(previousMonthSchedule.getDailySchedule().get(n));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcalendar.set(Calendar.MONTH, monthSchedule.getMonthValue()); // RESET CALENDAR MONTH BACK TO CURRENT\n\t\t\t\t\t\t\n\t\t\t\t\t\t// GET DAYS IN CURRENT MONTH\n\t\t\t\t\t\tfor(int n = day; n<day+daysInCurrentMonth; n++){\n\t\t\t\t\t\t\tweek.add(monthSchedule.getDailySchedule().get(n));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t// TODO HANDLE ROLL OVER INTO PREVIOUS YEAR **DONE**\n\t\t\t\t\t\tif(!exceedRange(yearlySchedule.getYearValue()-1)){\n\t\t\t\t\t\t\tMonthlySchedule previousMonthSchedule = getScheduleForMonth(11, yearlySchedule.getYearValue()-1); // GET DECEMEBER MONTH OF PREVIOUS YEAR\n\t\t\t\t\t\t\tcalendar.set(Calendar.MONTH, previousMonthSchedule.getMonthValue());\n\t\t\t\t\t\t\tcalendar.set(Calendar.YEAR, previousMonthSchedule.getYearValue());\n\t\t\t\t\t\t\tint numDaysInPreviousMonth = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int n = numDaysInPreviousMonth-(daysInPreviousMonth-1); n<=numDaysInPreviousMonth; n++){ // WHICH DAY TO START ON IN PREVIOUS MONTH\n\t\t\t\t\t\t\t\tweek.add(previousMonthSchedule.getDailySchedule().get(n));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcalendar.set(Calendar.MONTH, monthSchedule.getMonthValue()); // RESET CALENDAR MONTH BACK TO CURRENT\n\t\t\t\t\t\t\tcalendar.set(Calendar.YEAR, monthSchedule.getYearValue()); // RESET CALENDAR YEAR BACK TO CURRENT\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// GET DAYS IN CURRENT MONTH\n\t\t\t\t\t\t\tfor(int n = day; n<day+daysInCurrentMonth; n++){\n\t\t\t\t\t\t\t\tweek.add(monthSchedule.getDailySchedule().get(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\tday += (daysInCurrentMonth-1); // Increment to the next week (-1 because ITERATION WITH DO A ++ )\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setOnWeekRecurrenceChangeListener(OnWeekRecurrenceChangeListener recurrenceListener) {\n this.recurrenceListener = recurrenceListener;\n }", "public void setOnWeekRecurrenceChangeListener(OnWeekRecurrenceChangeListener recurrenceListener) {\n this.recurrenceListener = recurrenceListener;\n }", "private void getTimeConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (RuleInstance ri : rules) {\n getTimeConditions(ri,rules,conds);\n }\n}", "public void setWdate(String string) {\n\t\t\r\n\t}", "private void saveRule(){\n\t\tRule newRule = new Rule();\n\t\tnewRule.setDescription(desc.getText().toString().trim());\n\t\tnewRule.setMode(selectedMode);\n\t\tnewRule.setIsEnabled(\"true\");\n\t\tString sHour, sMin, eHour, eMin;\n\t\t\n\t\tif(startTimePicker.getCurrentHour()<10)\n\t\t\tsHour = \"0\"+startTimePicker.getCurrentHour();\n\t\telse\n\t\t\tsHour = \"\" +startTimePicker.getCurrentHour();\n\t\t\n\t\tif(startTimePicker.getCurrentMinute()<10)\n\t\t\tsMin = \"0\"+startTimePicker.getCurrentMinute();\n\t\telse\n\t\t\tsMin = \"\" +startTimePicker.getCurrentMinute();\n\t\t\n\t\tif(endTimePicker.getCurrentHour()<10)\n\t\t\teHour = \"0\"+endTimePicker.getCurrentHour();\n\t\telse\n\t\t\teHour = \"\" +endTimePicker.getCurrentHour();\n\t\t\n\t\tif(endTimePicker.getCurrentMinute()<10)\n\t\t\teMin = \"0\"+endTimePicker.getCurrentMinute();\n\t\telse\n\t\t\teMin = \"\" +endTimePicker.getCurrentMinute();\n\t\t\n\t\tnewRule.setStartTime(sHour+\":\"+sMin);\n\t\tnewRule.setEndTime(eHour+\":\"+eMin);\n\t\n\t\tnewRule.setSelectedDays(getSelectedDays(days));\n\t\tif(getIntent().getStringExtra(\"eventId\")!=null)\n\t\t{\n\t\t\tnewRule.setEventID(getIntent().getStringExtra(\"eventId\"));\n\t\t\t}\n\t\telse if(trigger.equalsIgnoreCase(\"edit\")){\n\t\t\tnewRule.setEventID(rule.getEventID());\n\t\t}\n\t\telse{\n\t\t\tnewRule.setEventID(\"-1\");\n\t\t}\n\t\t\n\t\tArrayList<TimingsData> timingsData = new ArrayList<TimingsData>();\n\t\t\n\t\tTimingsData startTime, endTime, tempStartTime, tempEndTime;\n\t\t\n\t\tfor(int j = 0; j < days.size(); j++){\n\t\t\ttry{\n//\t\t\t\tDate sDate = formatter.parse(rData.getStartDateTime());\n\t\t\t\tint day = days.get(j);\n\t\t\t\t\n\t\t\t\tstartTime = new TimingsData();\n\t\t\t\tendTime = new TimingsData();\n\t\t\t\tstartTime.setTimings(newRule.getStartTime());\n\t\t\t\tstartTime.setMode(newRule.getMode());\n\t\t\t\tstartTime.setRuleId(newRule.getId());\n\t\t\t\tstartTime.setDay(day);\n\t\t\t\tstartTime.setType(TaskMongoAlarmReceiver.ACTION_START);\n\t\t\t\tstartTime.setEndTimings(newRule.getEndTime());\n\t\t\t\t\n\t\t\t\tif(!isTimeCorrect()){\n\n\t\t\t\t\tstartTime.setEndTimings(\"23:59\");\n\t\t\t\t\ttempEndTime = new TimingsData();\n\t\t\t\t\ttempEndTime.setTimings(\"23:59\");\n\t\t\t\t\ttempEndTime.setMode(newRule.getMode());\n\t\t\t\t\ttempEndTime.setRuleId(newRule.getId());\n\t\t\t\t\ttempEndTime.setType(TaskMongoAlarmReceiver.ACTION_END);\n\t\t\t\t\ttempEndTime.setDay(day);\n\t\t\t\t\t\n\t\t\t\t\tLog.e(\"time greater than start time\", \"adding one \"+day);\n\t\t\t\t\tif(day == Calendar.SATURDAY)\n\t\t\t\t\t\tday = Calendar.SUNDAY;\n\t\t\t\t\telse\n\t\t\t\t\t\tday += 1;\n\t\t\t\t\t\n\t\t\t\t\ttempStartTime = new TimingsData();\n\t\t\t\t\ttempStartTime.setTimings(\"00:00\");\n\t\t\t\t\ttempStartTime.setMode(newRule.getMode());\n\t\t\t\t\ttempStartTime.setRuleId(newRule.getId());\n\t\t\t\t\ttempStartTime.setDay(day);\n\t\t\t\t\ttempStartTime.setType(TaskMongoAlarmReceiver.ACTION_START);\n\t\t\t\t\ttempStartTime.setEndTimings(newRule.getEndTime());\n\t\t\t\t\t\n\t\t\t\t\ttimingsData.add(tempEndTime);\n\t\t\t\t\ttimingsData.add(tempStartTime);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tDate eDate = formatter.parse(rData.getEndDateTime());\n\t\t\t\t\n\t\t\t\tendTime.setTimings(newRule.getEndTime());\n\t\t\t\tendTime.setMode(newRule.getMode());\n\t\t\t\tendTime.setRuleId(newRule.getId());\n\t\t\t\tendTime.setType(TaskMongoAlarmReceiver.ACTION_END);\n\t\t\t\tendTime.setDay(day);\n\t\t\t\t\n\t\t\t\ttimingsData.add(startTime);\n\t\t\t\ttimingsData.add(endTime);\n\t\t\t}catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*ArrayList<RuleData> ruleData = new ArrayList<RuleData>();\n\t\t\n\t\tfor(int i = 0; i<selectedDays.size(); i++){\n\t\t\tRuleData rule_data = new RuleData();\n\t\t\tint day = selectedDays.get(i);\n\t\t\t\n\t\t\trule_data.setDay(day);\n\t\t\t\n\t\t\t// Get start time\n\t\t\tCalendar startTime = Calendar.getInstance();\n\t\t\tstartTime.setTimeZone(TimeZone.getDefault());\n\t\t\t\n\t\t\tint alarmStartDay = 0;\n\t\t\tint curDay = startTime.get(Calendar.DAY_OF_WEEK);\n\t\t\t\n\t\t\tif(day == curDay){\n\t\t\t\talarmStartDay = 0;\t\t\t\t\n\t\t\t}else if(day < curDay){\n\t\t\t\talarmStartDay = day + (7 - curDay); // how many days until Sunday\n\t\t\t}else{\n\t\t\t\talarmStartDay = day - curDay;\n\t\t\t}\n\t\t\t\n\t\t\trule_data.setStartDateTime(getDate(startTime, alarmStartDay, startTimePicker));\n\t\t\t\n\t\t\t//Get end time\n\t\t\tCalendar endTime = Calendar.getInstance();\n\t\t\t\n\t\t\tif(!isTimeCorrect()){\n\t\t\t\tLog.e(\"time greater than start time\", \"adding one \"+alarmStartDay);\n\t\t\t\talarmStartDay += 1;\n\t\t\t}\n\t\t\t\n\t\t\trule_data.setEndDateTime(getDate(endTime, alarmStartDay, endTimePicker));\n\t\t\t\n\t\t\tLog.e(\"schedule\", rule_data.getStartDateTime()\t+ \" , \" + rule_data.getEndDateTime());\n\t\t\t\n\t\t\truleData.add(rule_data);\n\t\t}\n\t\trule.setRuleData(ruleData);*/\n\t\tnewRule.setTimingsData(timingsData);\n\t\t\n\t\tSettingsDatabaseHandler dbHandler = new SettingsDatabaseHandler(SettingsActivity.this);\n\t\tint id = dbHandler.saveRule(newRule, ruleId);\n\t\t\n\t\tif(id!=-1){\n//\t\t\tRule savedRule = dbHandler.getRule(id);\n\t\t\t\n//\t\t\tUtil.setRule(SettingsActivity.this, savedRule);\n\t\t\tUtil.refreshAllAlarms(SettingsActivity.this);\n\t\t\t\n\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(SettingsActivity.this);\n\t\t\talert.setTitle(\"Congratulations!!!\");\n\t\t\talert.setMessage(\"Mongo saved successfully\");\n\t\t\talert.setPositiveButton(\"Okay\", new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(trigger.equalsIgnoreCase(\"calendar\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tIntent intent = new Intent(SettingsActivity.this,ListRulesActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\talert.show();\n\t\t}\n\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "private void updateRecurringTaskWithRecurringPeriod(RecurringType type, int recurringPeriod,\n String nextStartDate, String nextEndDate) throws Exception {\n TestTask testData = helper.buildRecurringTaskWithoutStartDate(type, recurringPeriod);\n Task tryUpdate = new Task(testData);\n executeAddAndArchive(tryUpdate);\n TaskOccurrence nextDayTaskOccurrence = helper.buildTaskOccurrenceFromTask(tryUpdate, nextStartDate, nextEndDate);\n assertUpdateRecurringTasks(tryUpdate, nextDayTaskOccurrence, recurringPeriod);\n }", "private void updateRecurringTask(RecurringType type, String nextStartDate, String nextEndDate) throws Exception {\n TestTask testData;\n if (nextStartDate == null) {\n testData = helper.buildRecurringTaskWithoutStartDate(type);\n } else {\n testData = helper.buildRecurringTask(type);\n }\n Task tryUpdate = new Task(testData);\n executeAddAndArchive(tryUpdate);\n TaskOccurrence nextDayTaskOccurrence = helper.buildTaskOccurrenceFromTask(tryUpdate, nextStartDate, \n nextEndDate);\n assertUpdateRecurringTasks(tryUpdate, nextDayTaskOccurrence, UPDATE_OCCURRENCE_SIZE);\n }", "public void createWeatherConditionChangedNotification (Users user, Event event) {\n Notification notification = new Notification();\n notification.setGenerationDate(new Date());\n notification.setNotificatedUser(user);\n notification.setRelatedEvent(event);\n notification.setSeen(false);\n notification.setType(NotificationType.weatherConditionChanged);\n em.persist(notification);\n \n }", "@Subscribe\n public void ruleSuspended(BuildRuleEvent.Suspended suspended) {\n if (suspended instanceof RuleKeyCalculationEvent.Finished) {\n return;\n }\n writeRuleSuspended(suspended);\n }", "public com.exacttarget.wsdl.partnerapi.HourlyRecurrence addNewHourlyRecurrence()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.HourlyRecurrence target = null;\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().add_element_user(HOURLYRECURRENCE$0);\n return target;\n }\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "E6Rule createE6Rule();", "DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );", "private LocalDate parseWeekLevel(String token) {\n\t\tString[] tokens = token.split(\"\\\\s+\");\n\t\tboolean next = false;\n\t\tLocalDate rtnDate = LocalDate.now();\n\t\tif (tokens[0].equals(\"next\")) {\n\t\t\tnext = true;\n\t\t}\n\t\tif (tokens.length == 0 || tokens.length > 2) {\n\t\t\treturn null;\n\t\t}\n\t\tString weekday = next ? tokens[1] : tokens[0];\n\t\tCalendar cal = new GregorianCalendar();\n\t\tswitch (weekday) {\n\t\t\t\n\t\t\tcase \"tmr\" :\n\t\t\tcase \"tomorrow\" :\n\t\t\t\treturn rtnDate.plusDays(1);\n\t\t\t\t\n\t\t\tcase \"week\" :\n\t\t\t\treturn next ? rtnDate.plusWeeks(1) : null;\n\t\t\t\t\n\t\t\tcase \"sun\" :\n\t\t\tcase \"sunday\" :\n\t\t\t\tcal.set(DAY_OF_WEEK, SUNDAY);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"mon\" :\n\t\t\tcase \"monday\" :\n\t\t\t\tcal.set(DAY_OF_WEEK, MONDAY);\n\t\t\t\tbreak;\n\t\t\tcase \"tue\" :\n\t\t\tcase \"tues\" :\n\t\t\tcase \"tuesday\" :\n\t\t\t\tcal.set(DAY_OF_WEEK, TUESDAY);\n\t\t\t\tbreak;\n\t\t\tcase \"wed\" :\n\t\t\tcase \"wednesday\" :\n\t\t\t\tcal.set(DAY_OF_WEEK, WEDNESDAY);\n\t\t\t\tbreak;\n\t\t\tcase \"thu\" :\n\t\t\tcase \"thur\" :\n\t\t\tcase \"thurs\" :\n\t\t\tcase \"thursday\" :\n\t\t\t\tcal.set(DAY_OF_WEEK, THURSDAY);\n\t\t\t\tbreak;\n\t\t\tcase \"fri\" :\n\t\t\tcase \"friday\" :\n\t\t\t\tcal.set(DAY_OF_WEEK, FRIDAY);\n\t\t\t\tbreak;\n\t\t\tcase \"sat\" :\n\t\t\tcase \"saturday\" :\n\t\t\t\tcal.set(DAY_OF_WEEK, SATURDAY);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t\tif (next) {\n\t\t\tcal.add(WEEK_OF_YEAR, 1);\n\t\t}\n\t\treturn AbsoluteDateParser.toLocalDate(cal.getTime());\n\t}", "public Frequency(Date startdate, Date enddate,String frequencyday,\n String frequencymonth, String counter_of_end, \n StartFrequencyType frequencytype, EndFrequencyType endft) {\n \n init();\n frequencyDay = frequencyday;\n frequencyMonth = frequencymonth;\n endcounter = counter_of_end;\n startingType = frequencytype;\n endingType = endft;\n \n SimpleDateFormat ft = new SimpleDateFormat (\"ddMMYYYY\"); \n startDate = ft.format(startdate);\n endDate = ft.format(enddate);\n }", "PropertyRule createPropertyRule();", "private void nextDay() {\r\n tmp.setDay(tmp.getDay() + 1);\r\n int nd = tmp.getDayOfWeek();\r\n nd++;\r\n if (nd > daysInWeek) nd -= daysInWeek;\r\n tmp.setDayOfWeek(nd);\r\n upDMYcountDMYcount();\r\n }", "public void createWeekScenarioBug10265_UpgradeAndParChange()\n throws Exception {\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-22 23:00:00\"));\n\n VOServiceDetails serviceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10265_UPG_PARCHG\", TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_WEEK_ROLES_PARS2, 3,\n technicalServiceAsync, supplierMarketplace);\n\n setCutOffDay(basicSetup.getSupplierAdminKey(), 1);\n\n VOSubscriptionDetails subDetails = subscrSetup.subscribeToService(\n basicSetup.getCustomerAdminKey(), \"BUG10265_UPG_PARCHG\",\n serviceDetails, basicSetup.getCustomerUser1(),\n VOServiceFactory.getRole(serviceDetails, \"ADMIN\"));\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-23 00:00:00\"));\n subDetails = subscrSetup.completeAsyncSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n subDetails = subscrSetup.modifyParameterForSubscription(subDetails,\n DateTimeHandling.calculateMillis(\"2013-02-24 23:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"3\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-25 00:00:00\"));\n subDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n // Upgrade the subscription\n VOServiceDetails perUnitService = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10265_UPG_PARCHG_SERVICE2\",\n TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_WEEK_ROLES_PARS3, 2,\n technicalServiceAsync, supplierMarketplace);\n\n serviceSetup.registerCompatibleServices(\n basicSetup.getSupplierAdminKey(), serviceDetails,\n perUnitService);\n\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-27 23:00:00\"));\n VOSubscriptionDetails upgradedSubDetails = subscrSetup\n .copyParametersAndUpgradeSubscription(\n basicSetup.getCustomerAdminKey(), subDetails,\n perUnitService);\n // ASYNC - check this (upgrade hidden in method above)\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-02-28 00:00:00\"));\n upgradedSubDetails = subscrSetup.completeAsyncUpgradeSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), upgradedSubDetails);\n\n upgradedSubDetails = subscrSetup.modifyParameterForSubscription(\n upgradedSubDetails,\n DateTimeHandling.calculateMillis(\"2013-02-28 23:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"5\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-01 00:00:00\"));\n upgradedSubDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), upgradedSubDetails);\n\n upgradedSubDetails = subscrSetup.modifyParameterForSubscription(\n upgradedSubDetails,\n DateTimeHandling.calculateMillis(\"2013-03-01 06:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"7\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-01 07:00:00\"));\n upgradedSubDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), upgradedSubDetails);\n\n upgradedSubDetails = subscrSetup.modifyParameterForSubscription(\n upgradedSubDetails,\n DateTimeHandling.calculateMillis(\"2013-03-02 11:00:00\"),\n \"MAX_FOLDER_NUMBER\", \"4\");\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-02 12:00:00\"));\n upgradedSubDetails = subscrSetup.completeAsyncModifySubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), upgradedSubDetails);\n\n BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling\n .calculateMillis(\"2013-03-03 07:00:00\"));\n subscrSetup\n .unsubscribeToService(upgradedSubDetails.getSubscriptionId());\n\n resetCutOffDay(basicSetup.getSupplierAdminKey());\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10265_UPG_PARCHG\", subDetails);\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10265_UPG_PARCHG\", upgradedSubDetails);\n }", "com.czht.face.recognition.Czhtdev.Week getWeekday();", "public void displayNextWeek() {\n setDisplayedDateTime(currentDateTime.plusWeeks(1));\n }", "org.hl7.fhir.Period addNewValuePeriod();", "public static void SetToNextDayOfWeek(int dayOfWeekToSet, Calendar c){\r\n c.add(Calendar.DAY_OF_YEAR, 1);\r\n int currentDayOfWeek = c.get(Calendar.DAY_OF_WEEK);\r\n Log.d(\"currentDay\", String.valueOf(currentDayOfWeek));\r\n Log.d(\"setDay\", String.valueOf(dayOfWeekToSet));\r\n DateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n Log.d(\"addDay\", sdf.format(c.getTime()));\r\n //add 1 day to the current day until we get to the day we want\r\n while(currentDayOfWeek != dayOfWeekToSet){\r\n c.add(Calendar.DAY_OF_YEAR, 1);\r\n currentDayOfWeek = c.get(Calendar.DAY_OF_WEEK);\r\n }\r\n }", "public void generateSchedule(){\n\t\t\n\t}", "public void appendToReminders(Date reminders);", "public void setEndRecurrence(Temporal startRecurrence) { this.endRecurrence = startRecurrence; }", "private int getRecurrence() {\n\t\tint recurrence = 0;\n\t\tif (mondayCheckBox.isSelected()) recurrence |= 1;\n\t\tif (tuesdayCheckBox.isSelected()) recurrence |= 1 << 1;\n\t\tif (wednesdayCheckBox.isSelected()) recurrence |= 1 << 2;\n\t\tif (thursdayCheckBox.isSelected()) recurrence |= 1 << 3;\n\t\tif (fridayCheckBox.isSelected()) recurrence |= 1 << 4;\n\t\tif (saturdayCheckBox.isSelected()) recurrence |= 1 << 5;\n\t\tif (sundayCheckBox.isSelected()) recurrence |= 1 << 6;\n\n\t\treturn recurrence;\n\t}", "public void setOnWeekend(boolean b) {\r\n\t\tthis.onWeekend=b;\r\n\t}", "protected void processTemporalRule(){\n RuleThread currntThrd;\n Thread currntThrdParent; // the parent of the current thread;\n int currntOperatingMode;\n int currntThrdPriority ;\n\n if( temporalRuleQueue.getHead()!= null){\n\n //If the rule thread is the top level, trigger the rule.\n currntThrd=temporalRuleQueue.getHead();\n while(currntThrd!= null){\n currntThrdPriority = currntThrd.getPriority ();\n currntThrdParent = currntThrd.getParent();\n\n if (currntThrd.getOperatingMode() == RuleOperatingMode.READY\n && !(currntThrd.getParent() == applThrd ||\n currntThrd.getParent().getClass().getName().equals(\"EventDispatchThread\")||\n currntThrd.getParent().getName ().equals (Constant.LEDReceiverThreadName)\n )){\n if(ruleSchedulerDebug)\n\t\t \t\t System.out.println(\"Changing mode of \"+currntThrd.getName()+\"from READY to EXE\");\n\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\t\t\t\t currntThrd.setScheduler(this);\n currntThrd.start();\n int rulePriority = 0;\n currntThrdParent = currntThrd;\n if(currntThrdParent instanceof RuleThread){\n rulePriority = currntThrd.getRulePriority();\n }\n currntThrd = currntThrd.next;\n while(currntThrd != null && currntThrd instanceof RuleThread &&\n currntThrd.getRulePriority() == rulePriority\n \t\t\t\t\t\t\t && currntThrd.getParent() == currntThrdParent ){\n if(ruleSchedulerDebug)\n \t\t\t System.out.print(\" start child thread =>\");\n\n currntThrd.print();\n currntThrd.setScheduler(this);\n if(\tcurrntThrd.getOperatingMode()== RuleOperatingMode.READY ){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n currntThrd.start();\n }\n \t\t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n // case 1.2:\n else if (currntThrd != null &&\tcurrntThrd.getOperatingMode() == RuleOperatingMode.EXE){\n \t\t\t\tcurrntThrd = currntThrd.next;\n\n }\n // case 1.3:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.WAIT){\n\t\t\t\t if(currntThrd.next == null){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\n// ;\n // All its childs has been completed.\n // This currntThread's operating mode will be changed to FINISHED.\n }\n\t\t\t\t\telse{\n // check whether its neighbor is its child\n\t\t\t\t\t\tif(currntThrd.next.getParent() == currntThrdParent){\n if(ruleSchedulerDebug){\n\t \t\t\t\t\t System.out.println(\"\\n\"+currntThrd.getName()+\" call childRecurse \"+currntThrd.next.getName());\n\t\t \t\t\t\t\tcurrntThrd.print();\n }\n\n childRecurse(currntThrd, temporalRuleQueue);\n }\n }\n currntThrd = currntThrd.next;\n }\n // case 1.4:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.FINISHED){\n if(ruleSchedulerDebug){\n\t\t\t\t\t System.out.println(\"delete \"+currntThrd.getName() +\" rule thread from rule queue.\");\n\t\t\t\t\t\tcurrntThrd.print();\n }\n processRuleList.deleteRuleThread(currntThrd,temporalRuleQueue);\n \tcurrntThrd = currntThrd.next;\n }\n else{\n \t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n }\n }", "public void create(Rule event);", "@Test\n public void testCreateBookingReportJob() throws Exception {\n LocalDate currentDate = LocalDate.parse(\"2018-05-28\");\n LocalDate endDate = LocalDate.parse( \"2018-10-23\" );\n while ( currentDate.isBefore( endDate ) ) {\n BookingReportJob workerJob = new BookingReportJob();\n workerJob.setStatus( JobStatus.submitted );\n workerJob.setStartDate( currentDate );\n workerJob.setEndDate( currentDate.plusDays( 4 ) );\n dao.insertJob( workerJob );\n currentDate = currentDate.plusDays( 5 ); // dates are inclusive, +1\n }\n }", "org.apache.xmlbeans.XmlString xgetSearchRecurrenceRule();", "public void applyToSchedule(Schedule sched) {\n String repeat = m_repeatCombo.getSelectedItem().toString();\n for (Schedule.Repeat r : Schedule.Repeat.values()) {\n if (r.toString().equals(repeat)) {\n sched.setRepeatUnit(r);\n break;\n }\n }\n if (m_intervalField.getText() != null\n && m_intervalField.getText().length() > 0) {\n sched.setRepeatValue(Integer.parseInt(m_intervalField.getText()));\n } else if (sched.getRepeatUnit() == Schedule.Repeat.MINUTES\n || sched.getRepeatUnit() == Schedule.Repeat.HOURS\n || sched.getRepeatUnit() == Schedule.Repeat.DAYS) {\n // set a default value of 5\n sched.setRepeatValue(5);\n m_intervalField.setText(\"5\");\n }\n\n java.util.List<Integer> dow = new java.util.ArrayList<Integer>();\n if (m_sunCheck.isSelected()) {\n dow.add(Calendar.SUNDAY);\n }\n if (m_monCheck.isSelected()) {\n dow.add(Calendar.MONDAY);\n }\n if (m_tueCheck.isSelected()) {\n dow.add(Calendar.TUESDAY);\n }\n if (m_wedCheck.isSelected()) {\n dow.add(Calendar.WEDNESDAY);\n }\n if (m_thuCheck.isSelected()) {\n dow.add(Calendar.THURSDAY);\n }\n if (m_friCheck.isSelected()) {\n dow.add(Calendar.FRIDAY);\n }\n if (m_satCheck.isSelected()) {\n dow.add(Calendar.SATURDAY);\n }\n sched.setDayOfTheWeek(dow);\n\n if (sched.getRepeatUnit() == Schedule.Repeat.MONTHLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched.setDayOfTheMonth(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n }\n }\n\n if (sched.getRepeatUnit() == Schedule.Repeat.YEARLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched\n .setRepeatValue(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n // day of the week is already set\n\n sched.setMonthOfTheYear(m_month.getSelectedIndex());\n }\n }\n }", "public String makeEvent(Course item) {\n // TODO: Make recurrence and rounding handling more elegant\n // (use lambda?)\n\n String event;\n\n //----------------\n //Parse summary-description request\n String[] splitted = mPattern.split(\"-\");\n String summary = parsePattern(item, splitted[0]);\n String description;\n try {\n description = parsePattern(item, splitted[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n description = \"\";\n }\n String location = item.getLocation();\n\n //-----------------\n //Get start and end date time\n //NOTES :\n // o firstClassBegin and firstClassEnd represent the date-time\n // \t object for the beginning and end of the first lecture of\n //\t the course.\n // o lastDay is the last day of the semester (used for recurrence)\n LocalDate startDate;\n LocalTime startTime, endTime;\n LocalDateTime firstClassBegin, firstClassEnd, lastDay;\n if (mRounded) {\n startTime = item.getRoundedStartTime();\n endTime = item.getRoundedEndTime();\n } else {\n startTime = item.getStartTime();\n endTime = item.getEndTime();\n }\n startDate = item.getStartDate();\n firstClassBegin = LocalDateTime.of(startDate, startTime);\n firstClassEnd = LocalDateTime.of(startDate, endTime);\n lastDay = LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0));\n if (mRecurring) {\n event = makeEvent(summary, description, location, firstClassBegin,\n firstClassEnd, lastDay);\n } else {\n event = makeEvent(summary, description, location, firstClassBegin,\n firstClassEnd);\n }\n return event;\n }", "@Test\n public void computeFactor_WinterTimeWeek() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-10-17 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-10-27 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-10-01 00:00:00\", \"2012-11-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.WEEK,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then\n assertEquals(2, factor, 0);\n }", "ConferenceScheduleBuilderService createEventsFromStartToLunch();", "private Date getFrom(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n switch(ph) {\n case TODAY:\n return date.getTime();\n case YESTERDAY:\n date.add(Calendar.DAY_OF_MONTH, -1);\n return date.getTime();\n case THIS_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n return date.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n date.add(Calendar.DAY_OF_MONTH, -7);\n return date.getTime();\n case THIS_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case LAST_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n date.add(Calendar.MONTH, -1);\n return date.getTime();\n case T12_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -12);\n return date.getTime();\n case T24_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -24);\n return date.getTime();\n case T2_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -48);\n return date.getTime();\n case T3_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -72);\n return date.getTime();\n case T4_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -96);\n return date.getTime();\n case T5_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -120);\n return date.getTime();\n case T6_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -144);\n return date.getTime();\n case T7_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -168);\n return date.getTime();\n }\n return null;\n }", "public interface TimeRule extends Predicate<DateTime>{\n \n}", "public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }", "public void setCalDay() {\n\t\tfloat goal_bmr;\n\t\tif(gender==\"male\") {\n\t\t\tgoal_bmr= (float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age + 5);\n\t\t}\n\t\telse {\n\t\t\tgoal_bmr=(float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age - 161);\n\t\t}\n\t\tswitch (gymFrequency) {\n\t\tcase 0:calDay = goal_bmr*1.2;\n\t\t\t\tbreak;\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 3:calDay = goal_bmr*1.375;\n\t\t\t\tbreak;\n\t\tcase 4:\n\t\tcase 5:calDay = goal_bmr*1.55;\n\t\t\n\t\t\t\tbreak;\n\t\tcase 6:\n\t\tcase 7:calDay = goal_bmr*1.725;\n\t\t\t\tbreak;\n\t\t}\n\t}", "private void weekDateUpdate(GregorianCalendar reference) {\n\t\treference = (GregorianCalendar) reference.clone();\n\t\tthis.weekdates.removeAll();\n\t\treference = DateCalc.startOf(reference, Calendar.WEEK_OF_YEAR);\n\t\tint day = 1;\n\t\tJLabel current;\n\t\twhile (day <= 7) {\n\t\t\tStringBuilder date = new StringBuilder();\n\t\t\tdate.append(reference.getDisplayName(Calendar.DAY_OF_WEEK,\n\t\t\t\t\tCalendar.SHORT, DEFAULT_LOCALE)\n\t\t\t\t\t+ \" \");\n\t\t\tdate.append(reference.get(Calendar.DAY_OF_MONTH));\n\t\t\tdate.append('.');\n\t\t\tdate.append((reference.get(Calendar.MONTH) + 1));\n\n\t\t\tcurrent = new JLabel(date.toString());\n\t\t\tthis.weekdates.add(current);\n\t\t\tthis.weekdates.addSeparator();\n\t\t\treference.add(Calendar.DAY_OF_WEEK, 1);\n\t\t\tday++;\n\t\t}\n\t}", "void xsetSearchRecurrenceStart(org.apache.xmlbeans.XmlDateTime searchRecurrenceStart);", "@Override\n public StreamRule<ItemCollection> defineRule() {\n return s -> s.peek(p -> {\n if (p.getPrecio() > ((Integer) this.getParameters().get(\"precio\")).intValue()) {\n p.setPrecio(DiscountedPriceRule.PRICE_99);\n }\n });\n }", "@Override\n public HangarMessages addConstraintsTypeLocalDateMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_TypeLocalDate_MESSAGE));\n return this;\n }", "boolean getWeek7();", "public void checkEndOfWeek() {\n }" ]
[ "0.55953425", "0.53643847", "0.525345", "0.51570296", "0.5105692", "0.50699085", "0.5050729", "0.5016844", "0.5004263", "0.49889055", "0.49321887", "0.49014223", "0.48643222", "0.48607072", "0.48540893", "0.48508877", "0.47961888", "0.47808155", "0.47770378", "0.47697198", "0.47485456", "0.47299108", "0.4716735", "0.46992782", "0.46788996", "0.46631733", "0.46629572", "0.46618372", "0.46568856", "0.4629582", "0.46088582", "0.45970997", "0.45865998", "0.45708388", "0.45624214", "0.45608577", "0.45605403", "0.45526975", "0.45498767", "0.45443726", "0.454168", "0.45413074", "0.45319957", "0.45296872", "0.45223382", "0.45201096", "0.45135844", "0.4510633", "0.45005473", "0.44900888", "0.44865727", "0.44769233", "0.44712016", "0.44706342", "0.44687718", "0.44687718", "0.44687155", "0.44596973", "0.4446064", "0.44449925", "0.44303456", "0.44229585", "0.44187573", "0.44163403", "0.4410629", "0.4407625", "0.4404193", "0.43987846", "0.43980673", "0.43948054", "0.43891042", "0.43852472", "0.4384261", "0.43803012", "0.43788496", "0.43722588", "0.43688837", "0.43671456", "0.43664947", "0.43628684", "0.43625146", "0.43608704", "0.4351341", "0.43506086", "0.43473837", "0.4346198", "0.43356103", "0.4320249", "0.43179384", "0.4314511", "0.43095204", "0.430868", "0.43074965", "0.4306975", "0.4304888", "0.43043858", "0.4299759", "0.42966303", "0.42951557", "0.42878908" ]
0.64703256
0
Write RRULE property of event given Course using getEndDate()
@SuppressWarnings("unused") private String makeEventRecurrence(Course item) { return makeEventRecurrence(LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setEventEndDate(Date endEventDate);", "@SuppressWarnings(\"unused\")\n private String makeEventEnd(Course item) {\n LocalTime endTime;\n if (mRounded) {\n endTime = item.getRoundedEndTime();\n } else {\n endTime = item.getEndTime();\n }\n return makeEventEnd(LocalDateTime.of(item.getEndDate(), endTime));\n }", "String getEndDate();", "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "long getEndDate();", "long getEndDate();", "public String getEndDate();", "public void setEndDate(String date){\n\t\tthis.endDate = date;\n\t}", "@Test\n public void testSetEndDate() {\n System.out.println(\"setEndDate\");\n Calendar newEnd = new GregorianCalendar(2000, 01, 01);\n String endDate = newEnd.toString();\n DTO_Ride instance = dtoRide;\n instance.setEndDate(endDate);\n \n String result = endDate.toString();\n assertEquals(newEnd, newEnd);\n }", "public void setEnddate(Date enddate) {\r\n this.enddate = enddate;\r\n }", "public void setEndDate(java.lang.String value) {\n this.endDate = value;\n }", "@ApiModelProperty(value = \"The event end date in the event or site timezone\")\n public String getEndDate() {\n return endDate;\n }", "public void setEndDate(Date value) {\r\n this.endDate = value;\r\n }", "@Test\n\tpublic void testSetEndDate() {\n\t\tassertNotEquals(calTest, initialJob.getEndDate());\n\t\tinitialJob.setEndDate(calTest.get(Calendar.YEAR), calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertEquals(calTest, initialJob.getEndDate());\n\t}", "void setEndDate(Date endDate);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndDate();", "public String getEndDate(){\n\t\treturn this.endDate;\n\t}", "public Calendar calculateEndTime(ConfigProperties cprop){\n\t\tCalendar d = Calendar.getInstance();\n\t\tString ed = cprop.getProperty(\"TIME.enddate\");\n\t\tString et = cprop.getProperty(\"TIME.endtime\");\n\t\t\n\t\t//ED defined\n\t\tif(ed!=null){\n\t\t\td.setTime(df.parse(ed,new ParsePosition(0)));\n\t\t}\n\t\t//ED not defined, set to 1 year ahead\n\t\telse {\n\t\t\td.add(Calendar.YEAR,1);\n\t\t}\n\t\t\n\t\t//ET defined\n\t\tif(et!=null){\n\t\t\tCalendar t = Calendar.getInstance();\n\t\t\tt.setTime(tf.parse(et,new ParsePosition(0)));\n\t\t\t//take the endtime and add it to enddate\n\t\t\td.add(Calendar.HOUR_OF_DAY,t.get(Calendar.HOUR_OF_DAY));\n\t\t\td.add(Calendar.MINUTE,t.get(Calendar.MINUTE));\n\t\t\td.add(Calendar.SECOND,t.get(Calendar.SECOND));\n\t\t}\n\t\t//ET not defined, use current time\n\t\t\n\t\treturn d;\n\t\t\n\t}", "Date getEndDate();", "Date getEndDate();", "public void setEndDate(String endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "public Date getEnddate() {\r\n return enddate;\r\n }", "public abstract void setEndTime(Date endTime);", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public String getEndDate() {\n return endDate;\n }", "public TaskOccurrence changeEndDate(TaskOccurrence occurrence, String endDate) {\n TaskOccurrence toChange = new TaskOccurrence(occurrence);\n toChange.setEndDate(new TaskDate(endDate));\n return toChange;\n }", "public Date getEndDate()\n {\n return (Date)getAttributeInternal(ENDDATE);\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public java.lang.String getEndDate() {\n return endDate;\n }", "public String eventEndString() {\n return DateUtils.formatExtDate(this.endDate);\n }", "@Override\n\tpublic java.util.Date getEndDate() {\n\t\treturn _esfTournament.getEndDate();\n\t}", "public Date getEndDate();", "public Date getEndDate();", "public java.lang.String getEndDate() {\n return endDate;\n }", "public void setEndDate(Long endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public void setEndDate(java.util.Date value);", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "public void setEndDate(java.util.Calendar endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public long getEndDate() {\n return endDate_;\n }", "@Test\n\tpublic void testGetEndDate() {\n\t\tassertEquals(cal2, initialJob.getEndDate());\n\t}", "java.lang.String getEndDateYYYY();", "public Long getEndDate() {\n\t\treturn endDate;\n\t}", "private String makeEventEnd(LocalDateTime date) {\n String name = \"DTEND\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "public long getEndDate() {\n return endDate_;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "public java.util.Calendar getEndDate() {\n return endDate;\n }", "@Override\n public String getCourseName() {\n return this.deadline.getCourseName();\n }", "public Date getEndDate() {\n\t\treturn this.endDate;\n\t}", "public void setEndDate(Date value)\n {\n\n validateEndDate(value);\n setAttributeInternal(ENDDATE, value);\n \n }", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "@Test\n public void testEndDateChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n Calendar date = Calendar.getInstance();\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(4));\n deltaEvent.setEndDate(DateTimeUtil.getDateTime(date));\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that end date has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.NEEDS_ACTION, CustomConsumers.ACTIONS);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment was rescheduled.\");\n }", "public long getEndDate() {\n return endDate_;\n }", "public void setEndDate (java.util.Date endDate) {\r\n\t\tthis.endDate = endDate;\r\n\t}", "void setEndTime(java.util.Calendar endTime);", "public long getEndDate() {\n return endDate_;\n }", "public java.util.Date getEndDate () {\r\n\t\treturn endDate;\r\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "public void setEND_DATE(Date END_DATE) {\n this.END_DATE = END_DATE;\n }", "public final String getEnddate() {\n\t\treturn enddate;\n\t}", "void setReminder(int eventId, String eventEndDate, String eventType);", "@Override\n\tpublic void setEndDate(java.util.Date endDate) {\n\t\t_esfTournament.setEndDate(endDate);\n\t}", "private void saveRule(){\n\t\tRule newRule = new Rule();\n\t\tnewRule.setDescription(desc.getText().toString().trim());\n\t\tnewRule.setMode(selectedMode);\n\t\tnewRule.setIsEnabled(\"true\");\n\t\tString sHour, sMin, eHour, eMin;\n\t\t\n\t\tif(startTimePicker.getCurrentHour()<10)\n\t\t\tsHour = \"0\"+startTimePicker.getCurrentHour();\n\t\telse\n\t\t\tsHour = \"\" +startTimePicker.getCurrentHour();\n\t\t\n\t\tif(startTimePicker.getCurrentMinute()<10)\n\t\t\tsMin = \"0\"+startTimePicker.getCurrentMinute();\n\t\telse\n\t\t\tsMin = \"\" +startTimePicker.getCurrentMinute();\n\t\t\n\t\tif(endTimePicker.getCurrentHour()<10)\n\t\t\teHour = \"0\"+endTimePicker.getCurrentHour();\n\t\telse\n\t\t\teHour = \"\" +endTimePicker.getCurrentHour();\n\t\t\n\t\tif(endTimePicker.getCurrentMinute()<10)\n\t\t\teMin = \"0\"+endTimePicker.getCurrentMinute();\n\t\telse\n\t\t\teMin = \"\" +endTimePicker.getCurrentMinute();\n\t\t\n\t\tnewRule.setStartTime(sHour+\":\"+sMin);\n\t\tnewRule.setEndTime(eHour+\":\"+eMin);\n\t\n\t\tnewRule.setSelectedDays(getSelectedDays(days));\n\t\tif(getIntent().getStringExtra(\"eventId\")!=null)\n\t\t{\n\t\t\tnewRule.setEventID(getIntent().getStringExtra(\"eventId\"));\n\t\t\t}\n\t\telse if(trigger.equalsIgnoreCase(\"edit\")){\n\t\t\tnewRule.setEventID(rule.getEventID());\n\t\t}\n\t\telse{\n\t\t\tnewRule.setEventID(\"-1\");\n\t\t}\n\t\t\n\t\tArrayList<TimingsData> timingsData = new ArrayList<TimingsData>();\n\t\t\n\t\tTimingsData startTime, endTime, tempStartTime, tempEndTime;\n\t\t\n\t\tfor(int j = 0; j < days.size(); j++){\n\t\t\ttry{\n//\t\t\t\tDate sDate = formatter.parse(rData.getStartDateTime());\n\t\t\t\tint day = days.get(j);\n\t\t\t\t\n\t\t\t\tstartTime = new TimingsData();\n\t\t\t\tendTime = new TimingsData();\n\t\t\t\tstartTime.setTimings(newRule.getStartTime());\n\t\t\t\tstartTime.setMode(newRule.getMode());\n\t\t\t\tstartTime.setRuleId(newRule.getId());\n\t\t\t\tstartTime.setDay(day);\n\t\t\t\tstartTime.setType(TaskMongoAlarmReceiver.ACTION_START);\n\t\t\t\tstartTime.setEndTimings(newRule.getEndTime());\n\t\t\t\t\n\t\t\t\tif(!isTimeCorrect()){\n\n\t\t\t\t\tstartTime.setEndTimings(\"23:59\");\n\t\t\t\t\ttempEndTime = new TimingsData();\n\t\t\t\t\ttempEndTime.setTimings(\"23:59\");\n\t\t\t\t\ttempEndTime.setMode(newRule.getMode());\n\t\t\t\t\ttempEndTime.setRuleId(newRule.getId());\n\t\t\t\t\ttempEndTime.setType(TaskMongoAlarmReceiver.ACTION_END);\n\t\t\t\t\ttempEndTime.setDay(day);\n\t\t\t\t\t\n\t\t\t\t\tLog.e(\"time greater than start time\", \"adding one \"+day);\n\t\t\t\t\tif(day == Calendar.SATURDAY)\n\t\t\t\t\t\tday = Calendar.SUNDAY;\n\t\t\t\t\telse\n\t\t\t\t\t\tday += 1;\n\t\t\t\t\t\n\t\t\t\t\ttempStartTime = new TimingsData();\n\t\t\t\t\ttempStartTime.setTimings(\"00:00\");\n\t\t\t\t\ttempStartTime.setMode(newRule.getMode());\n\t\t\t\t\ttempStartTime.setRuleId(newRule.getId());\n\t\t\t\t\ttempStartTime.setDay(day);\n\t\t\t\t\ttempStartTime.setType(TaskMongoAlarmReceiver.ACTION_START);\n\t\t\t\t\ttempStartTime.setEndTimings(newRule.getEndTime());\n\t\t\t\t\t\n\t\t\t\t\ttimingsData.add(tempEndTime);\n\t\t\t\t\ttimingsData.add(tempStartTime);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tDate eDate = formatter.parse(rData.getEndDateTime());\n\t\t\t\t\n\t\t\t\tendTime.setTimings(newRule.getEndTime());\n\t\t\t\tendTime.setMode(newRule.getMode());\n\t\t\t\tendTime.setRuleId(newRule.getId());\n\t\t\t\tendTime.setType(TaskMongoAlarmReceiver.ACTION_END);\n\t\t\t\tendTime.setDay(day);\n\t\t\t\t\n\t\t\t\ttimingsData.add(startTime);\n\t\t\t\ttimingsData.add(endTime);\n\t\t\t}catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*ArrayList<RuleData> ruleData = new ArrayList<RuleData>();\n\t\t\n\t\tfor(int i = 0; i<selectedDays.size(); i++){\n\t\t\tRuleData rule_data = new RuleData();\n\t\t\tint day = selectedDays.get(i);\n\t\t\t\n\t\t\trule_data.setDay(day);\n\t\t\t\n\t\t\t// Get start time\n\t\t\tCalendar startTime = Calendar.getInstance();\n\t\t\tstartTime.setTimeZone(TimeZone.getDefault());\n\t\t\t\n\t\t\tint alarmStartDay = 0;\n\t\t\tint curDay = startTime.get(Calendar.DAY_OF_WEEK);\n\t\t\t\n\t\t\tif(day == curDay){\n\t\t\t\talarmStartDay = 0;\t\t\t\t\n\t\t\t}else if(day < curDay){\n\t\t\t\talarmStartDay = day + (7 - curDay); // how many days until Sunday\n\t\t\t}else{\n\t\t\t\talarmStartDay = day - curDay;\n\t\t\t}\n\t\t\t\n\t\t\trule_data.setStartDateTime(getDate(startTime, alarmStartDay, startTimePicker));\n\t\t\t\n\t\t\t//Get end time\n\t\t\tCalendar endTime = Calendar.getInstance();\n\t\t\t\n\t\t\tif(!isTimeCorrect()){\n\t\t\t\tLog.e(\"time greater than start time\", \"adding one \"+alarmStartDay);\n\t\t\t\talarmStartDay += 1;\n\t\t\t}\n\t\t\t\n\t\t\trule_data.setEndDateTime(getDate(endTime, alarmStartDay, endTimePicker));\n\t\t\t\n\t\t\tLog.e(\"schedule\", rule_data.getStartDateTime()\t+ \" , \" + rule_data.getEndDateTime());\n\t\t\t\n\t\t\truleData.add(rule_data);\n\t\t}\n\t\trule.setRuleData(ruleData);*/\n\t\tnewRule.setTimingsData(timingsData);\n\t\t\n\t\tSettingsDatabaseHandler dbHandler = new SettingsDatabaseHandler(SettingsActivity.this);\n\t\tint id = dbHandler.saveRule(newRule, ruleId);\n\t\t\n\t\tif(id!=-1){\n//\t\t\tRule savedRule = dbHandler.getRule(id);\n\t\t\t\n//\t\t\tUtil.setRule(SettingsActivity.this, savedRule);\n\t\t\tUtil.refreshAllAlarms(SettingsActivity.this);\n\t\t\t\n\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(SettingsActivity.this);\n\t\t\talert.setTitle(\"Congratulations!!!\");\n\t\t\talert.setMessage(\"Mongo saved successfully\");\n\t\t\talert.setPositiveButton(\"Okay\", new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(trigger.equalsIgnoreCase(\"calendar\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tIntent intent = new Intent(SettingsActivity.this,ListRulesActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\talert.show();\n\t\t}\n\t}", "@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}", "public void setEndDate(java.sql.Date newEndDate) {\n\tendDate = newEndDate;\n}", "public final void setEnddate(final String cEnddate) {\n\t\tthis.enddate = cEnddate;\n\t}", "public void setEndDate(Date eDate) throws IllegalArgumentException {\n\t\tif (eDate == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tendDate = eDate;\n\t\tupdateAvailability(\"\");\n\t}", "public Date get_end() {\n\t\treturn this.end;\n\t}", "public static void recordAuditEventEnd(UUID eventId, String rule) {\n\n if (eventId == null) {\n return;\n }\n\n recordAuditEventEnd(eventId.toString(), rule);\n\n }", "public void setEndDateTime(java.util.Date endDateTime) {\n this.endDateTime = endDateTime;\n }", "public void setEndExecDate(java.util.Calendar endExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.setCalendarValue(endExecDate);\n }\n }", "public Calendar getLastAppendedEndDate(ReadOnlyTask task) {\n Calendar cal = new GregorianCalendar();\n cal.setTime(task.getLastAppendedComponent().getEndDate().getDate());\n return cal;\n }", "public void setEndtime(Date endtime) {\n this.endtime = endtime;\n }", "@FXML\r\n\tprivate void updateEndDate(ActionEvent event) {\r\n\t\tupdateAsset(AssetOperation.END_DATE);\r\n\t}", "Date getEndedOn();", "public void setEndTime(Date endTime) {\r\n this.endTime = endTime;\r\n }", "public static void recordAuditEventEnd(String eventId, String rule) {\n\n if (eventTracker == null) {\n return;\n }\n if (eventId == null) {\n return;\n }\n\n creatAuditEventTrackingRecord(eventId, rule, \"\");\n\n }", "@ApiModelProperty(value = \"An array of each component of the event end date\")\n public DateDetails getEndDateDetails() {\n return endDateDetails;\n }", "public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }", "protected void addEndDatePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_endDate_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_endDate_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__END_DATE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "@ApiModelProperty(value = \"End of the range\")\n public String getDateEnd() {\n return dateEnd;\n }", "public Timestamp getHC_WorkEndDate();", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }" ]
[ "0.6063647", "0.6055355", "0.6038313", "0.5930125", "0.58462346", "0.58462346", "0.5828848", "0.57953316", "0.5777869", "0.57734096", "0.57295376", "0.57076", "0.5702501", "0.56853956", "0.56703067", "0.5668815", "0.56606895", "0.56520784", "0.561833", "0.561833", "0.56175965", "0.5614632", "0.5614632", "0.5593973", "0.55844223", "0.55841464", "0.5568634", "0.55513006", "0.55513006", "0.55513006", "0.5550952", "0.5542382", "0.5536883", "0.55366904", "0.55366904", "0.5531975", "0.55240303", "0.5500604", "0.54926246", "0.54926246", "0.548643", "0.54851514", "0.548211", "0.545213", "0.545213", "0.545213", "0.545213", "0.54435194", "0.5438425", "0.54178876", "0.54178876", "0.53903145", "0.5376266", "0.5360402", "0.53565705", "0.5351687", "0.53410286", "0.5337366", "0.5337366", "0.53349227", "0.53304744", "0.5326955", "0.531765", "0.5313027", "0.5313027", "0.5312634", "0.5306463", "0.5302542", "0.5296501", "0.529531", "0.52808344", "0.52805704", "0.52805704", "0.5253367", "0.5249846", "0.52386993", "0.5237012", "0.52258617", "0.5218778", "0.520484", "0.5195012", "0.5178188", "0.5172476", "0.51652455", "0.51641047", "0.51628095", "0.5144372", "0.5143847", "0.5142174", "0.51373637", "0.5131514", "0.51285225", "0.5126362", "0.5125505", "0.51119226", "0.50916123", "0.5090601", "0.5086334", "0.5086334", "0.5086334" ]
0.5349811
56
Write general datetime property of event such as DTSTART
private String formatTimeProperty(LocalDateTime date, String name) { String property; String time = formatTimeToICS(date); property = name + ";" + mTZID + ":" + time; return property; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String makeEventStart(LocalDateTime date) {\n String name = \"DTSTART\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }", "@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.DTSTART,\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INDEX_START,\n jname = \"indexStart\",\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n @NoProxy\n public void setDtstart(final BwDateTime val) {\n dtstart = val;\n }", "private String makeEventEnd(LocalDateTime date) {\n String name = \"DTEND\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "public String getBeginTime(){return beginTime;}", "public String getDatetime() {\n return datetime;\n }", "public String getDate(){ return this.start_date;}", "public String eventBeginString() {\n return DateUtils.formatExtDate(this.beginDate);\n }", "@Override\n public void date_()\n {\n }", "public abstract long getStartTimestamp();", "Date getStartedOn();", "public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }", "public Timestamp getDateStart();", "public Date getStarttime() {\n return starttime;\n }", "public Date getStarttime() {\n return starttime;\n }", "public void setDateStart (Timestamp DateStart);", "public String getStartDateTimeString() {\n return startDateTimeString;\n }", "public String getStarttime() {\n return starttime;\n }", "@Override\n public void printDetails() {\n super.printDetails(); // uses its superclass version of the method to print the basic attributes\n System.out.print(\"Time: \" + this.getTime()); // printing the time of the event\n }", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "public String getEventTime() {\r\n return eventTime;\r\n }", "public String getTime_start() {\n return time_start;\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "public DateTime getStartDateTime() {\r\n\t\treturn start;\r\n\t}", "public java.lang.String getPymt_beg_dt() {\n\t\treturn pymt_beg_dt;\n\t}", "public Date getDtStart() {\r\n return dtStart;\r\n }", "public String getEventTime() {\r\n\t\treturn eventTime;\r\n\t}", "@Override\n public Date getBeginTime() {\n return beginTime;\n }", "public abstract long startTimestamp();", "@JsonProperty(\"EventDateTime\")\r\n\tpublic String getEventDateTime() {\r\n\t\treturn eventDateTime;\r\n\t}", "public long getDatetime() {\n return datetime;\n }", "public CtrlCmdTimeStamp() {\n\t\tsuper(LENGTH_COMMAND);\n\t\tcommandBytes[INDEX_EVENT_CODE] += GETTING_MARKER;\n\t\tvalidCommand = true;\n\t}", "public String getStartTime();", "public String getStartTime();", "public long getStart_time() {\n return start_time;\n }", "long getStartTimestamp();", "public long getStartTimestamp();", "Date getEventFiredAt();", "public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "@Override\n public void date(SinkEventAttributes attributes)\n {\n }", "@Override\n public void date()\n {\n }", "public String getEventDate() {\n\t\treturn date;\n\t}", "public java.lang.String getTime_start() {\r\n return time_start;\r\n }", "public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);", "@Override\n public String getStartInfo() {\n\n return startTime(null, DateFormat.SHORT);\n }", "public Long getTimestampStart();", "@Override\n \tprotected void appendDateType(StringBuilder sb, int fieldWidth) {\n \t\tsb.append(\"DATETIME\");\n \t}", "@Override\n\tpublic String formatEvent(Event event) {\n\t\treturn event.getStartingTime() + \":00 - \"\n\t\t\t + event.getEndingTime() + \":00: \" + event.getEventName() + '\\n';\n\t}", "@Override\n public DAttributeDatetime getAttFechaPago() { return moAttFechaPago; }", "String getSourceUsageDateTime();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "public Date getdCreatetime() {\n return dCreatetime;\n }", "public Date getStart() {\n return start;\n }", "public WorkTimeEvent() {\r\n super();\r\n }", "abstract Long getStartTimestamp();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "StartEvent createStartEvent();", "default void onCustomStartTimeChanged(LocalTime startTime) {}", "public Date getDatetime() {\n\t\treturn datetime;\n\t}", "protected void onSetDailyTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public StrColumn getDateBeginProcessing() {\n return delegate.getColumn(\"date_begin_processing\", DelegatingStrColumn::new);\n }", "public void setTime(){\r\n \r\n }", "public void onDateSelect(DateSelectEvent selectEvent) {\n event = new DefaultScheduleEvent(Math.random() + \"\", selectEvent.getDate(), selectEvent.getDate()); \r\n }", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "public String getStartTime() {\n return startTime;\n }", "public abstract Date getStartTime();", "@JSProperty\n String getDateTime();", "String getTimestamp();", "String getTimestamp();", "@XmlElement(name = \"starttime\")\n public Long getStartTime() {\n return startTime;\n }", "public String getBeginTime() {\r\n return beginTime;\r\n }", "public void setDtStart(Date dtStart) {\r\n this.dtStart = dtStart;\r\n }", "@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Subscribe\n private void handleJumpToDateTimeEvent(JumpToDateTimeEvent event) {\n logger.info(LogsCenter.getEventHandlingLogMessage(event));\n setDisplayedDateTime(event.targetLocalDateTime);\n }", "public Date getEventTime() {\n return eventTime;\n }", "public Date getEventTime() {\n return eventTime;\n }", "@Override\r\n\tpublic Date getAttr_reg_dt() {\n\t\treturn super.getAttr_reg_dt();\r\n\t}", "public String getDayStartString() {\n return dayStartString;\n }", "public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}", "public java.lang.String getDate_stamp_descr() {\n return date_stamp_descr;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "@NoProxy\n public void updateDtstamp() {\n setDtstamp(new DtStamp(new DateTime(true)).getValue());\n }", "public int getTimeStamp() {\r\n return fTimeStamp;\r\n }", "public double getStartTime();", "net.opengis.gml.x32.TimeInstantPropertyType getBegin();", "public void setStart( Calendar start );", "protected void onGetDailyTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public TimedEvent(String label, Date date, Time time) {\n super(label, date); // using the constructor of its superclass\n this.setTime(time); // assigns the time argument value to the attribute\n }", "public String getStartTime()\n {\n return this.startTime;\n }", "public String getActtime() {\r\n return acttime;\r\n }", "@DISPID(15)\r\n\t// = 0xf. The runtime will prefer the VTID if present\r\n\t@VTID(21)\r\n\tjava.util.Date executionDateTime();", "@ApiModelProperty(value = \"The date_time of the observation\")\n public OffsetDateTime getDateTime() {\n return dateTime;\n }", "public long getBeginTime() { return beginTime; }", "public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }", "OffsetDateTime usageStart();", "public static void AddDateTimeAttribute( DataSet DS, Date date )\n {\n if( date == null )\n date = new Date( System.currentTimeMillis( ));\n \n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat();\n \n sdf.applyPattern( \"dd-MMM-yy\" );\n \n DS.setAttribute( new StringAttribute( Attribute.END_DATE , sdf\n .format( date ) ) );\n \n sdf.applyPattern( \"HH:mm:ss\" );\n \n DS.setAttribute( new StringAttribute( Attribute.END_TIME , sdf\n .format( date ) ) );\n }" ]
[ "0.67094195", "0.6435745", "0.62187487", "0.59473664", "0.58490807", "0.5810563", "0.57633424", "0.57583827", "0.5741876", "0.5711099", "0.5631904", "0.5631496", "0.5622466", "0.56108725", "0.559792", "0.559792", "0.559472", "0.55743045", "0.55738467", "0.5567436", "0.5565674", "0.55578727", "0.5550818", "0.55442035", "0.5533213", "0.551673", "0.5478685", "0.5445356", "0.5444915", "0.5438284", "0.5433933", "0.5422093", "0.5417679", "0.5398775", "0.5398775", "0.53982", "0.5375043", "0.53745794", "0.537073", "0.53643745", "0.5353075", "0.5343777", "0.5339628", "0.5334775", "0.5316628", "0.5315508", "0.5314889", "0.5311833", "0.53000325", "0.5297705", "0.52933097", "0.52917457", "0.52917457", "0.52892256", "0.5285309", "0.52752954", "0.52698374", "0.5261723", "0.5261723", "0.5259246", "0.5248318", "0.52418625", "0.5236002", "0.5233079", "0.5232743", "0.5229219", "0.52218527", "0.5217221", "0.52112174", "0.5210055", "0.52054644", "0.52054644", "0.5200686", "0.5200218", "0.51975244", "0.51861995", "0.51823455", "0.5173772", "0.5169725", "0.5169725", "0.51552707", "0.5154575", "0.5150236", "0.51461995", "0.51407975", "0.51407975", "0.51391816", "0.5137639", "0.5133373", "0.51256436", "0.51043373", "0.5103446", "0.51029265", "0.5097767", "0.5094834", "0.5093601", "0.5092609", "0.50921714", "0.5088054", "0.5085903", "0.5084429" ]
0.0
-1
Make ICScompatible time out of date
private String formatTimeToICS(LocalDateTime date) { return DateTimeFormatter.ofPattern("YYYYMMddTHHmmss").format(date); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "private TimeUtil() {}", "long getInhabitedTime();", "@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}", "abstract public int getTime();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.288 -0500\", hash_original_method = \"01A3FB6B1C784C6B589498BF3E72AF89\", hash_generated_method = \"39FC440E592AD958D3DA1840FF8C82F1\")\n \nprivate static long normalizeTime(long theTime) {\n return theTime;\n }", "@Override\n\tpublic long getInhabitedTime()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}", "public Coursetime() {\n\t}", "private AbsTime(RelTime dt) throws Time.Ex_TimeNotAvailable, IllegalArgumentException\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n itsValue = (System.currentTimeMillis() * 1000L) + DUTC.get() * 1000000L + 3506716800000000L;\n\n // Add the specified time offset.\n itsValue = itsValue + dt.itsValue;\n }", "int getIO_time();", "public AbsTime() throws Time.Ex_TimeNotAvailable\n {\n itsValue = timeNow();\n }", "@Override\r\n\tpublic int requiredTime() {\n\t\treturn 0;\r\n\t}", "public int getTime() { return _time; }", "public abstract double sensingTime();", "@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "@DSSafe(DSCat.UTIL_FUNCTION)\n \n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.275 -0500\", hash_original_method = \"58DD96CFC8DDA00016DEC24CC6519017\", hash_generated_method = \"1F810C618BA62488684578EB05C3C6A1\")\n \n@Override\n public void setTime(long theTime) {\n /*\n * Store the Date based on the supplied time after removing any time\n * elements finer than the day based on zero GMT\n */\n super.setTime(normalizeTime(theTime));\n }", "int getTime();", "int getTime();", "private static final int implicitTimezoneMinutes() { return 0; }", "long getTime() throws Exception;", "public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}", "protected Time() {\n\t}", "public HiResDate getTime();", "UtcT time_stamp () throws BaseException;", "@SuppressWarnings(\"deprecation\")\n private void initTime() {\n //Time time = new Time(System.currentTimeMillis());\n time = new Date().getTime();\n }", "public void resetTimeUncertaintyInNs() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.resetTimeUncertaintyInNs():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetTimeUncertaintyInNs():void\");\n }", "public abstract long now();", "public void setDealingTime(Date dealingTime)\n/* */ {\n/* 171 */ this.dealingTime = dealingTime;\n/* */ }", "private AbsTime(Date date)\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n itsValue = date.getTime() * 1000L + DUTC.get() * 1000000L + 3506716800000000L;\n }", "private Date getLowerTime(Date date){\n\t\tdate.setHours(0);\n\t\tdate.setMinutes(0);\n\t\tdate.setSeconds(0);\n\t\t\n\t\treturn date;\n\t}", "public void mo23018c() {\n this.f26122b.edit().putLong(\"last.last.show.attend\", System.currentTimeMillis()).apply();\n }", "@Override\n\tpublic Date timeAdjust() throws ParseException {\n\t\treturn null;\n\t}", "@Override\n\tpublic Date timeAdjust() throws ParseException {\n\t\treturn null;\n\t}", "public DERUTCTime(String time) {\n\t}", "public synchronized long getTime() {\n return -1L;\n }", "long ctime() {\n return ctime;\n }", "@Override\r\n\tpublic long getExitDateTime() {\n\t\treturn 0;\r\n\t}", "public DERUTCTime(java.util.Date time) {\n\t}", "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 }", "public Date getDealingTime()\n/* */ {\n/* 159 */ return this.dealingTime;\n/* */ }", "public synchronized void resetTime() {\n }", "@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}", "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}", "@Override\n\tpublic int getStartTime() {\n\t\treturn 0;\n\t}", "java.lang.String getServerTime();", "public String toValidTimeString(int time) throws IllegalValueException {\n String updatedString = String.valueOf(time);\n if (time < 1000) {\n while (updatedString.length() < 4) {\n updatedString = \"0\" + updatedString;\n }\n } else {\n updatedString = String.valueOf(time);\n }\n if (this.isValidTime(updatedString)) {\n return updatedString;\n } else {\n throw new IllegalValueException(INVALID_TIME_FORMAT);\n }\n }", "public static void main(String[] args) {\n\n\t\t SimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\");\n\t\t// for(int i=0; i<100; i++) {\n\t\t// String strDT = sf.format(new Date(System.currentTimeMillis()));\n\t\t// System.out.println(strDT);\n\t\t// }\n\n\t\t\n\t\tDate oldDate = new Date();\n\t\tCalendar gcal = new GregorianCalendar();\n\t\tgcal.setTime(oldDate);\n\t\tgcal.add(Calendar.SECOND, -4468);\n\t\tDate newDate = gcal.getTime();\n\t\tSystem.out.println(sf.format(oldDate));\n\t\tSystem.out.println(sf.format(newDate));\n\t}", "public static String fixAutoTime(String time) {\n if (time.length() < 3) {\n return fixAutoTime(\"0\".concat(time));\n }\n return time;\n }", "public void setCtime(Date ctime) {\r\n this.ctime = ctime;\r\n }", "public String getItime() {\n return itime;\n }", "public static String m128354a(String str) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd-HHmmssSSS\", Locale.US);\n Calendar instance = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+8\"));\n C7573i.m23582a((Object) instance, \"calendar\");\n Date time = instance.getTime();\n StringBuilder sb = new StringBuilder();\n sb.append(simpleDateFormat.format(time));\n sb.append(str);\n return sb.toString();\n }", "public void setTimeInNs(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.setTimeInNs(long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setTimeInNs(long):void\");\n }", "public void setCtime(Date ctime) {\n this.ctime = ctime;\n }", "private long baseTime() {\n return Bytes.getUnsignedInt(row, tsdb.metrics.width());\n }", "private Date getSamoaNow() {\n\t\t// Get the current datetime in UTC\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(new Date());\n\t\t\n\t\t// Get the datetime minus 11 hours (Samoa is UTC-11)\n\t\tcalendar.add(Calendar.HOUR_OF_DAY, -11);\n\t\t\n\t\treturn calendar.getTime();\n\t}", "@Override\n public long getTimeNeeded() {\n return timeNeeded;\n }", "@Override\n public long getTime() {\n return time;\n }", "public abstract boolean useDaylightTime();", "public abstract boolean useDaylightTime();", "private String doValidTimeCheck(String pDateTime) {\n String aDateTime = pDateTime;\n\n if (pDateTime.length() > 0) {\n String aTime = pDateTime.substring(8);\n if (aTime.matches(\"240000\")) {\n aDateTime = pDateTime.substring(0,8) + \"235900\";\n }\n }\n return aDateTime;\n }", "public java.util.Date getNotAfter() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getNotAfter():java.util.Date, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getNotAfter():java.util.Date\");\n }", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "public void testIsNewer_timeOffset() throws Exception {\n TestableAndroidNativeDevice testDevice = new TestableAndroidNativeDevice() {\n @Override\n public String getProperty(String name) throws DeviceNotAvailableException {\n return \"Asia/Seoul\";\n }\n @Override\n protected long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException {\n return -15 * 60 * 1000; // Device in advance of 15m on host.\n }\n };\n File localFile = FileUtil.createTempFile(\"timezonetest\", \".txt\");\n try {\n localFile.setLastModified(1470906000000l); // Thu, 11 Aug 2016 09:00:00 GMT\n IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class);\n EasyMock.expect(remoteFile.getDate()).andReturn(\"2016-08-11\");\n EasyMock.expect(remoteFile.getTime()).andReturn(\"18:15\");\n EasyMock.replay(remoteFile);\n // Should sync because after time offset correction, file is older.\n assertTrue(testDevice.isNewer(localFile, remoteFile));\n EasyMock.verify(remoteFile);\n } finally {\n FileUtil.deleteFile(localFile);\n }\n }", "private AbsTime(boolean t)\n {\n if (!t) {\n itsValue = ASAP_CODE;\n } else {\n itsValue = NEVER_CODE;\n }\n }", "public void setCtime(DateTime ctime) {\r\n this.ctime = ctime;\r\n }", "String getSourceUsageDateTime();", "BigInteger getResponse_time();", "private String timeConversion() {\n Calendar local = Calendar.getInstance();\n Calendar GMT = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\n //Time from the PINPoint\n int hours, minutes, seconds, day, month, year;\n hours = (record[10] & 0xF8) >> 3;\n minutes = ((record[10] & 0x07) << 3) + ((record[11] & 0xE0) >> 5);\n seconds = ((record[11] & 0x1F) << 1) + ((record[12] & 0x80) >> 7);\n seconds += (record[12] & 0x7F) / 100;\n day = (record[13] & 0xF8) >> 3;\n month = ((record[13] & 0x07) << 1) + ((record[14] & 0x80) >> 7);\n year = (record[14] & 0x7F) + 2000;\n \n month--; //Months in java are 0-11, PINPoint = 1-12;\n\n //Set GMTs time to be the time from the PINPoint\n GMT.set(Calendar.DAY_OF_MONTH, day);\n GMT.set(Calendar.MONTH, month);\n GMT.set(Calendar.YEAR, year);\n GMT.set(Calendar.HOUR_OF_DAY, hours);\n GMT.set(Calendar.MINUTE, minutes);\n GMT.set(Calendar.SECOND, seconds);\n\n //Local is set to GMTs time but with the correct timezone\n local.setTimeInMillis(GMT.getTimeInMillis());\n\n //Set Local time to be the time converted from GMT\n int lHours, lMinutes, lSeconds, lDay, lMonth, lYear;\n lHours = local.get(Calendar.HOUR_OF_DAY);\n lMinutes = local.get(Calendar.MINUTE);\n lSeconds = local.get(Calendar.SECOND);\n lDay = local.get(Calendar.DAY_OF_MONTH);\n lMonth = local.get(Calendar.MONTH);\n\n lMonth++; //Months in java are 0-11, humans read 1-12\n\n lYear = local.get(Calendar.YEAR);\n\n return hR(lMonth) + \"/\" + hR(lDay) + \"/\" + lYear + \" \" + hR(lHours) + \":\" + hR(lMinutes) + \":\" + hR(lSeconds);\n }", "private static void increment_time()\n\t{\n\t\ttime_of_day = time_of_day + 1;\n\t\tif(time_of_day>=120)\n\t\t{\n\t\t\ttime_of_day=time_of_day-120;\n\t\t}\n\t}", "int getCreateTime();", "Time save(Time time);", "private Date getUpperTime(Date date){\n\t\tdate.setHours(23);\n\t\tdate.setMinutes(59);\n\t\tdate.setSeconds(59);\n\t\t\n\t\treturn date;\n\t}", "private void clearTime() {\n bitField0_ = (bitField0_ & ~0x00000002);\n time_ = 0L;\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 }", "@Override\n\tpublic long getCurrentTime() {\n\t\treturn 0;\n\t}", "public void setItime(String itime) {\n this.itime = itime;\n }", "public M csseUpdateTimeNull(){if(this.get(\"csseUpdateTimeNot\")==null)this.put(\"csseUpdateTimeNot\", \"\");this.put(\"csseUpdateTime\", null);return this;}", "public M csmiUpdateTimeNull(){if(this.get(\"csmiUpdateTimeNot\")==null)this.put(\"csmiUpdateTimeNot\", \"\");this.put(\"csmiUpdateTime\", null);return this;}", "IDateTimeValueType normalize();", "public ShortDate(final long time) {\n super(time);\n }", "private DateTime goodLocalTimeUse2() {\n LocalTime lt = new LocalTime(8, 0, 0, 0);\n return new DateTime().toDateTime(DateTimeZone.getDefault())\n .withTime(lt)\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n }", "Clock tryGetClock();", "public interface ITimeProvider {\n\t\n\t/**\n\t * \n\t * @return time in miliseconds since epoch\n\t */\n\tlong getTime();\n}", "public java.util.Date getNotBefore() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getNotBefore():java.util.Date, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getNotBefore():java.util.Date\");\n }", "private static String timeFor(Date date)\n\t{\n\t\tDateFormat df = new InternetDateFormat();\n\t\tString theTime = df.format(date);\n\t\treturn theTime;\n\t}", "private long timeNow()\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n return (System.currentTimeMillis() * 1000L) + DUTC.get() * 1000000L + 3506716800000000L;\n }", "public String getNiceDate(){\n\t\treturn sDateFormat.format(mTime);\n\t}", "@Override\n\tpublic Date getUpdateTime() {\n\t\treturn null;\n\t}" ]
[ "0.6153647", "0.6082693", "0.5932388", "0.5851491", "0.57614315", "0.57459617", "0.57362264", "0.5721259", "0.57013494", "0.56995124", "0.56810945", "0.56601465", "0.56450456", "0.5601903", "0.56012005", "0.5597371", "0.55855435", "0.5575424", "0.5575424", "0.55208564", "0.55197877", "0.5492969", "0.54912686", "0.54870445", "0.5486199", "0.54849285", "0.5484057", "0.54699653", "0.54647404", "0.5462012", "0.54580754", "0.54530543", "0.54499036", "0.54499036", "0.54420197", "0.5439736", "0.54386055", "0.5436584", "0.5432768", "0.5430471", "0.5428807", "0.54084575", "0.54071164", "0.5389812", "0.53896904", "0.53896755", "0.538893", "0.53865933", "0.53863287", "0.5371877", "0.53524184", "0.53481513", "0.5343747", "0.53334326", "0.5321638", "0.5316466", "0.53157645", "0.5302382", "0.52993834", "0.52993834", "0.52883244", "0.52810335", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275733", "0.5275654", "0.5273802", "0.5273121", "0.5272861", "0.52692276", "0.5257835", "0.5255003", "0.524813", "0.5243539", "0.5243423", "0.5242021", "0.5240143", "0.5239122", "0.52358335", "0.52287406", "0.52210337", "0.5217691", "0.5215442", "0.5213714", "0.5210249", "0.5209727", "0.52078146", "0.52044904", "0.5204135", "0.51998156", "0.51956403" ]
0.59468025
2
Writes the trace if there were no errors
public void searchFinished(Search search) { if (this.filename.equals("")) return; this.writeTrace(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }", "private void reportTestTrace() {\n int lastNewline = mCurrentTestTrace.length();\n while (lastNewline > 0 && mCurrentTestTrace.charAt(lastNewline - 1) == '\\n') {\n lastNewline--;\n }\n mCurrentTestTrace.delete(lastNewline, mCurrentTestTrace.length());\n // Add the trace.\n TestDescription testId = new TestDescription(mCurrentTestFile, mCurrentTestName);\n mTestTraceCache.put(testId, mCurrentTestTrace.toString());\n }", "@Test\n\tpublic final void testWriteTrace() {\n\t\tLog.trace(\"This is a call to Log.Trace with no arguments\");\n\t\tLog.trace(\"This is a call to Log.Trace with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.INFORMATION, \"Unit Tests\", null, \"This is a call to Log.Write with no arguments\");\n\t\tLog.write(LogMessageSeverity.INFORMATION, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tRuntimeException exception = new GibraltarException(\"This is a dummy exception to test API calls.\");\n\n\t\tLog.trace(exception, \"This is a call to Log.Trace with an exception and no arguments\");\n\t\tLog.trace(exception, \"This is a call to Log.Trace with an exception and two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED, exception, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with an exception and no arguments\");\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED, exception, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with an exception and two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and null description\", null);\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and description\", \"with no formatting arguments\");\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and description\",\n\t\t\t\t\"formatted with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.INFORMATION, LogWriteMode.WAIT_FOR_COMMIT, null, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with WaitForCommit and null exception and with a caption and null description\",\n\t\t\t\tnull);\n\t}", "private static void outputThrowable(Throwable cause, AppendingStringBuffer sb,\n\t\t\tboolean stopAtWicketServlet)\n\t{\n\t\tsb.append(cause);\n\t\tsb.append(\"\\n\");\n\t\tStackTraceElement[] trace = cause.getStackTrace();\n\t\tfor (int i = 0; i < trace.length; i++)\n\t\t{\n\t\t\tString traceString = trace[i].toString();\n\t\t\tif (!(traceString.startsWith(\"sun.reflect.\") && i > 1))\n\t\t\t{\n\t\t\t\tsb.append(\" at \");\n\t\t\t\tsb.append(traceString);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tif (stopAtWicketServlet\n\t\t\t\t\t\t&& traceString.startsWith(\"wicket.protocol.http.WicketServlet\"))\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void testPrintStackTracePrintWriter_False() {\n ByteArrayOutputStream ba = new ByteArrayOutputStream(); \n PrintWriter ps = new PrintWriter(ba, false);\n try {\n throw new Exception(\"level1\", new Exception(\"level2\", new Exception(\"level3\", new NullPointerException())));\n } catch (Exception e) {\n e.printStackTrace(ps);\n }\n assertEquals(\"the output should be empty until flush\",\n \"\", ba.toString());\n }", "private void dbgTrace(String trace) {\n GenUtils.logCat(tag, trace);\n GenUtils.logMessageToFile(\"SessionV2.log\", trace);\n }", "public void testPrintStackTracePrintWriter_True() {\n Throwable th;\n ByteArrayOutputStream ba = new ByteArrayOutputStream(); \n PrintWriter ps = new PrintWriter(ba, true);\n th = prepareThrowables();\n th.printStackTrace(ps);\n assertEquals(\"incorrect info in printed stack trace\",\n printOutput, ba.toString());\n }", "void dumpTraceLine(String s)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"[trace] \"); //$NON-NLS-1$\n\t\tsb.append(s);\n\t\tout(sb.toString());\n\t}", "public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }", "void printStackTrace(PrintWriter writer);", "void write(final List<DDSpan> trace) {\n if (trace.isEmpty()) {\n return;\n }\n List<DDSpan> writtenTrace = trace;\n if (!interceptors.isEmpty()) {\n Collection<? extends MutableSpan> interceptedTrace = new ArrayList<>(trace);\n\n try {\n for (final TraceInterceptor interceptor : interceptors) {\n interceptedTrace = interceptor.onTraceComplete(interceptedTrace);\n }\n } catch (Exception e) {\n log.debug(\"Exception in TraceInterceptor\", e);\n return;\n }\n writtenTrace = new ArrayList<>(interceptedTrace.size());\n for (final MutableSpan span : interceptedTrace) {\n if (span instanceof DDSpan) {\n writtenTrace.add((DDSpan) span);\n }\n }\n }\n\n if (!writtenTrace.isEmpty()) {\n boolean forceKeep = metricsAggregator.publish(writtenTrace);\n\n DDSpan rootSpan = writtenTrace.get(0).getLocalRootSpan();\n setSamplingPriorityIfNecessary(rootSpan);\n\n DDSpan spanToSample = rootSpan == null ? writtenTrace.get(0) : rootSpan;\n spanToSample.forceKeep(forceKeep);\n boolean published = forceKeep || sampler.sample(spanToSample);\n if (published) {\n writer.write(writtenTrace);\n } else {\n // with span streaming this won't work - it needs to be changed\n // to track an effective sampling rate instead, however, tests\n // checking that a hard reference on a continuation prevents\n // reporting fail without this, so will need to be fixed first.\n writer.incrementDropCounts(writtenTrace.size());\n }\n if (null != rootSpan) {\n onRootSpan(rootSpan, published);\n }\n }\n }", "@Override\n\tpublic void trace(String message, Throwable t) {\n\n\t}", "public void testTraceFile02() {\n \n \t\tfinal File traceFile = OSGiTestsActivator.getContext().getDataFile(getName() + \".trace\"); //$NON-NLS-1$\n \t\tTestDebugTrace debugTrace = this.createDebugTrace(traceFile);\n \t\tTraceEntry[] traceOutput = null;\n \t\tfinal String exceptionMessage1 = \"An error 1\"; //$NON-NLS-1$\n \t\tfinal String exceptionMessage2 = \"An error 2\"; //$NON-NLS-1$\n \t\tfinal String exceptionMessage3 = \"An error 3\"; //$NON-NLS-1$\n \t\ttry {\n \t\t\tdebugTrace.trace(\"/debug\", \"testing 1\", new Exception(exceptionMessage1)); //$NON-NLS-1$ //$NON-NLS-2$ \n \t\t\tdebugTrace.trace(\"/notset\", \"testing 2\", new Exception(exceptionMessage2)); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\tdebugTrace.trace(\"/debug\", \"testing 3\", new Exception(exceptionMessage3)); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\ttraceOutput = readTraceFile(traceFile); // Note: this call will also delete the trace file\n \t\t} catch (InvalidTraceEntry invalidEx) {\n \t\t\tfail(\"Failed 'DebugTrace.trace(option, message, Throwable)' test as an invalid trace entry was found. Actual Value: '\" + invalidEx.getActualValue() + \"'.\", invalidEx); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \n \t\tfinal StringBuffer expectedThrowableText1 = new StringBuffer(\"java.lang.Exception: \"); //$NON-NLS-1$\n \t\texpectedThrowableText1.append(exceptionMessage1);\n \t\texpectedThrowableText1.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\texpectedThrowableText1.append(DebugOptionsTestCase.TAB_CHARACTER);\n \t\texpectedThrowableText1.append(\"at org.eclipse.osgi.tests.debugoptions.DebugOptionsTestCase.testTraceFile02(DebugOptionsTestCase.java:\"); //$NON-NLS-1$\t\t\n \n \t\tassertEquals(\"Wrong number of trace entries\", 2, traceOutput.length); //$NON-NLS-1$\n \t\tassertEquals(\"Thread name is incorrect\", Thread.currentThread().getName(), traceOutput[0].getThreadName()); //$NON-NLS-1$\n \t\tassertEquals(\"Bundle name is incorrect\", getName(), traceOutput[0].getBundleSymbolicName()); //$NON-NLS-1$\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug\", traceOutput[0].getOptionPath()); //$NON-NLS-1$//$NON-NLS-2$\n \t\tassertEquals(\"class name value is incorrect\", DebugOptionsTestCase.class.getName(), traceOutput[0].getClassName()); //$NON-NLS-1$\n \t\tassertEquals(\"method name value is incorrect\", \"testTraceFile02\", traceOutput[0].getMethodName()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"trace message is incorrect\", \"testing 1\", traceOutput[0].getMessage()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertNotNull(\"throwable text should not be null\", traceOutput[0].getThrowableText()); //$NON-NLS-1$\n \t\tif (!traceOutput[0].getThrowableText().startsWith(expectedThrowableText1.toString())) {\n \t\t\tfinal StringBuffer errorMessage = new StringBuffer(\"The expected throwable text does not start with the actual throwable text.\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Expected\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(expectedThrowableText1.toString());\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Actual\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(traceOutput[0].getThrowableText());\n \t\t\tfail(errorMessage.toString());\n \t\t}\n \t\tassertNotNull(\"throwable should not be null\", traceOutput[0].getThrowableText()); //$NON-NLS-1$\n \t\tassertEquals(\"Wrong number of trace entries for trace without an exception\", 2, traceOutput.length); //$NON-NLS-1$\n \n \t\tfinal StringBuffer expectedThrowableText2 = new StringBuffer(\"java.lang.Exception: \"); //$NON-NLS-1$\n \t\texpectedThrowableText2.append(exceptionMessage3);\n \t\texpectedThrowableText2.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\texpectedThrowableText2.append(DebugOptionsTestCase.TAB_CHARACTER);\n \t\texpectedThrowableText2.append(\"at org.eclipse.osgi.tests.debugoptions.DebugOptionsTestCase.testTraceFile02(DebugOptionsTestCase.java:\"); //$NON-NLS-1$\t\t\n \n \t\tassertEquals(\"Thread name is incorrect\", Thread.currentThread().getName(), traceOutput[1].getThreadName()); //$NON-NLS-1$\n \t\tassertEquals(\"Bundle name is incorrect\", getName(), traceOutput[1].getBundleSymbolicName()); //$NON-NLS-1$\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug\", traceOutput[1].getOptionPath()); //$NON-NLS-1$//$NON-NLS-2$\n \t\tassertEquals(\"class name value is incorrect\", DebugOptionsTestCase.class.getName(), traceOutput[1].getClassName()); //$NON-NLS-1$\n \t\tassertEquals(\"method name value is incorrect\", \"testTraceFile02\", traceOutput[1].getMethodName()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"trace message is incorrect\", \"testing 3\", traceOutput[1].getMessage()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertNotNull(\"throwable text should not be null\", traceOutput[1].getThrowableText()); //$NON-NLS-1$\n \t\tif (!traceOutput[1].getThrowableText().startsWith(expectedThrowableText2.toString())) {\n \t\t\tfinal StringBuffer errorMessage = new StringBuffer(\"The expected throwable text does not start with the actual throwable text.\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Expected\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(expectedThrowableText2.toString());\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Actual\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(traceOutput[1].getThrowableText());\n \t\t\tfail(errorMessage.toString());\n \t\t}\n \t\tassertNotNull(\"throwable should not be null\", traceOutput[1].getThrowableText()); //$NON-NLS-1$\n \t\t// delete the trace file\n \t\ttraceFile.delete();\n \t}", "public static void printStackTrace() {\n if (outputEnabled) {\n synchronized (out) {\n new Exception(\"Diagnostic Stack Trace\").printStackTrace(out); // NORES\n }\n }\n }", "protected void userErrorOccurred()\n {\n traceOK = false;\n }", "public static void preCrawling() {\n\t\ttry {\n\t\t\tHelper.directoryCheck(getOutputFolder());\n\t\t\toutput = new PrintStream(getOutputFolder() + getFilename());\n\n\t\t\t// Add opening bracket around whole trace\n\t\t\tPrintStream oldOut = System.out;\n\t\t\tSystem.setOut(output);\n\t\t\tSystem.out.println(\"{\");\n\t\t\tSystem.setOut(oldOut);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void traceExit() {\n\n\t}", "@Override\n\tpublic void trace(final Object message) {\t\t\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.trace(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.trace(message);\n\t\t}\n\t}", "protected void trace(String msg)\r\n\t{\r\n\t\tm_stream.println(msg);\r\n\t}", "void trace( Throwable msg );", "@Test\n\tpublic final void testWriteTraceFullFormat() {\n\t\t// do one that should be pinned on US\n\t\tLog.writeMessage(LogMessageSeverity.VERBOSE, LogWriteMode.QUEUED, 0, null, null,\n\t\t\t\t\"This message should be verbose and ascribed to the LogTests class.\", null);\n\t\tLog.writeMessage(LogMessageSeverity.CRITICAL, LogWriteMode.QUEUED, 1, null, null,\n\t\t\t\t\"This message should be critical and ascribed to whatever is calling our test class.\", null);\n\t\tLog.writeMessage(LogMessageSeverity.ERROR, LogWriteMode.QUEUED, -1, null, null,\n\t\t\t\t\"This message should be error and also ascribed to the LogTests class.\", null);\n\t}", "@Override\n\tpublic void trace(Object message, Throwable t) {\n\n\t}", "public void testTraceFile09() {\n \n \t\tfinal File traceFile = OSGiTestsActivator.getContext().getDataFile(getName() + \".trace\"); //$NON-NLS-1$\n \t\tTestDebugTrace debugTrace = this.createDebugTrace(traceFile);\n \t\tdebugOptions.setOption(getName() + \"/debug|path\", \"true\");\n \t\tTraceEntry[] traceOutput = null;\n \t\ttry {\n \t\t\tdebugTrace.trace(\"/debug|path\", \"A message with a | character.\");\n \t\t\tdebugTrace.trace(\"/debug|path\", \"|A message with | multiple || characters.|\");\n \t\t\ttraceOutput = readTraceFile(traceFile); // Note: this call will also delete the trace file\n \t\t} catch (InvalidTraceEntry invalidEx) {\n \t\t\tfail(\"Failed 'DebugTrace.trace(option, message)' test as an invalid trace entry was found. Actual Value: '\" + invalidEx.getActualValue() + \"'.\", invalidEx); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \t\tassertEquals(\"Wrong number of entries\", 2, traceOutput.length);\n\t\tString optionPath = decodeString(traceOutput[0].getOptionPath());\n\t\tString message = decodeString(traceOutput[0].getMessage());\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug|path\", optionPath); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"Trace message is not correct\", \"A message with a | character.\", message); //$NON-NLS-1$ //$NON-NLS-2$\n\t\toptionPath = decodeString(traceOutput[1].getOptionPath());\n\t\tmessage = decodeString(traceOutput[1].getMessage());\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug|path\", optionPath); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"Trace message is not correct\", \"|A message with | multiple || characters.|\", message); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t// delete the trace file\n \t\ttraceFile.delete();\n \t}", "public abstract int trace();", "void write(TraceList traceList,File file) throws IOException;", "@Override\n\tpublic void trace(Marker marker, Message msg, Throwable t) {\n\n\t}", "public void trace(String msg) {\n\t\tif (this.logLevel <= BackupLogger.TRACE) {\n\t\t\twrite(\"TRCE \" + msg);\n\t\t\tSystem.out.println(\"TRCE \" + msg);\n\t\t}\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Throwable t) {\n\n\t}", "@Override\n\tpublic void trace(Message msg, Throwable t) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, Object message, Throwable t) {\n\n\t}", "public void trace(Object message, Throwable t)\n/* */ {\n/* 107 */ debug(message, t);\n/* */ }", "public void processTrace() throws Exception {\n\n log.debug( \"\\t Processing trace for NEDBO id = \" + \n getNotesElementId() ) ;\n \n if( getNotesElementId() == -1 ) {\n log.info( \"\\t Notes element will be created.\" ) ;\n NotesElementDAO.create( this ) ;\n return ;\n }\n else if( isModified ) {\n log.info( \"\\t Notes element will be updated. id=\" + \n getNotesElementId() ) ;\n NotesElementDAO.update( this ) ;\n }\n else if( !sourceTrace ) {\n log.info( \"\\t Notes element will be deleted. id=\" + \n getNotesElementId() ) ;\n NotesElementDAO.delete( this ) ;\n return ;\n // The associated cards will be cascade deleted at the database.\n // No need to delete them explicitly.\n }\n \n for( CardDBO dbo : cards ) {\n dbo.processTrace() ;\n }\n }", "public abstract void mo13750a(Throwable th, PrintWriter printWriter);", "private static void writeLog(Exception e) {\n if (logFile == null) createLogFile();\n LogTools.trace(e);\n LogTools.flush();\n }", "public void onFailure(Throwable caught) {\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Failed to start a new trace.\");\r\n\t\t\t}", "@Override\n\tpublic void trace(Marker marker, CharSequence message, Throwable t) {\n\n\t}", "private static void printTrace(Integer runId, String traceString ) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the trace report\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".trace\";\n\t\t} else {\n\t\t\tfileName = fileName +\".trace\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(fileName, \"UTF-8\");\n\n\t\trepWriter.printf(\"%s\\n\",traceString);\n\n\t repWriter.close();\n\n\t}", "public static void writePrintStackTrace(TestContext context, Throwable e) {\n\t\tcontext.getLogger().error(getPrintStackTraceAsString(e));\n\t}", "@Override\n\tpublic void trace(CharSequence message, Throwable t) {\n\n\t}", "public void onFailure(Throwable caught) {\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Failed to end the trace.\");\r\n\t\t\t}", "public void printStackTrace(){\n\t\tprintStackTrace(System.err);\n\t}", "@Override\n\tpublic void trace(String message, Object p0) {\n\n\t}", "private static void appendToTraceFile(Integer runId, String traceString ) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the trace report\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\t\t\t\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".trace\";\n\t\t} else {\n\t\t\tfileName = fileName +\".trace\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(new FileOutputStream(fileName,true));\n\n\t\trepWriter.printf(\"%s\\n\",traceString);\n\n\t repWriter.close();\n\n\t}", "@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}", "public static void printWriteFileError() {\n System.out.println(Message.WRITE_FILE_ERROR);\n }", "public void traceStatus() {\n logger.trace(\"jvmThread: {}, jvmMethod: {}\", jvmThread, jvmMethod);\n logger.trace(\"localVariables: {}\", localVariables);\n logger.trace(\"operandStacks: {}\", operandStacks);\n }", "public void printFailure() {\n //\n }", "public void trace(String message);", "public void trace(String message);", "@Override\n\tpublic void trace(Message msg) {\n\n\t}", "public void trace(Object message, Throwable t)\n/* */ {\n/* 130 */ this.logger.trace(message, t);\n/* */ }", "private void createTraceDirectory() throws Exception {\n mRootTrace = new File(mTraceDirectoryStr);\n if (!mRootTrace.exists() && !mRootTrace.mkdirs()) {\n throw new Exception(\"Unable to create the trace directory\");\n }\n mAtraceLogger = AtraceLogger.getAtraceLoggerInstance(getInstrumentation());\n }", "public void trace(Object message)\n/* */ {\n/* 141 */ this.logger.trace(message);\n/* */ }", "private void _debugSystemOutAndErr() {\n try {\n File outF = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \"out.txt\");\n FileWriter wo = new FileWriter(outF);\n final PrintWriter outWriter = new PrintWriter(wo);\n File errF = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \"err.txt\");\n FileWriter we = new FileWriter(errF);\n final PrintWriter errWriter = new PrintWriter(we);\n System.setOut(new PrintStream(new edu.rice.cs.util.OutputStreamRedirector() {\n public void print(String s) {\n outWriter.print(s);\n outWriter.flush();\n }\n }));\n System.setErr(new PrintStream(new edu.rice.cs.util.OutputStreamRedirector() {\n public void print(String s) {\n errWriter.print(s);\n errWriter.flush();\n }\n }));\n }\n catch (IOException ioe) {}\n }", "@Override\n public String getTrace() {\n return trace;\n }", "@Override\n\tpublic void trace(Marker marker, String message, Object p0) {\n\n\t}", "public static void writeError(Throwable JError, String JFilePath) {\n /*\n try\n\t\t{\n\t\tString JSdcardPath = JFilePath;\n\t\tif(JFilePath == null)\n\t\t{\n\t\t\tJSdcardPath = FILE_ROOT + \".Error/\";\n\t\t}\n\t\tmkdirs(FILE_ROOT);\n\t\tmkdirs(JSdcardPath);\n\n\t\tint JTotalError = new File(JSdcardPath).listFiles().length;\n\t\tString JNewFileName = JTotalError + \".txt\" ;\n\t\twriteObject( getStackTrace(JError), FILE_ROOT + \".Error/\", JNewFileName);\n\t\t}catch(IOException JE)\n\t\t{ }\n\t */\n }", "@Override\n\tpublic void trace(Object message) {\n\n\t}", "private void log(Throwable t) {\r\n StringWriter sw = new StringWriter();\r\n PrintWriter w = new PrintWriter(sw);\r\n t.printStackTrace(w);\r\n w.close();\r\n log(sw.toString(), Project.MSG_ERR);\r\n }", "@Override\n\tpublic void trace(Marker marker, String message) {\n\n\t}", "public void testPrintStackTracePrintStream() {\n Throwable th;\n ByteArrayOutputStream ba = new ByteArrayOutputStream(); \n PrintStream ps = new PrintStream(ba);\n th = prepareThrowables();\n th.printStackTrace(ps);\n assertEquals(\"incorrect info printed in stack trace\",\n printOutput, ba.toString());\n }", "@Override\n\t\tpublic void flush() throws IOException {\n\t\t\twriteBlock(true);\n\t\t\tout.flush();\n\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\tif (debug) {\n\t\t\t\tlog.flush();\n\t\t\t}\n\t\t}", "public final void printStackTrace( PrintWriter writer )\r\n {\r\n super.printStackTrace( writer );\r\n // Only print causal stack traces if pre-JDK 1.4.\r\n if ( !JDK1_4 ) {\r\n Throwable t = getCause();\r\n while ( t != null ) {\r\n writer.println( \"Caused by: \" + t );\r\n t.printStackTrace( writer );\r\n if ( t instanceof CanyonException ) {\r\n t = ( ( CanyonException ) t ).getCause();\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n }", "public static void writePrintStackTrace(TestContext context, Exception e) {\n\t\tcontext.getLogger().error(getPrintStackTraceAsString(e));\n\t}", "@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}", "private void traceInfo(String info) {\n if (trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }", "public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}", "protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }", "public static void traceOff() {\r\n\t\ttraceOn = false;\r\n\r\n\t}", "public Builder withTraceAnnotations() {\n this.traceAll = false;\n return this;\n }", "public void printStackTrace(final PrintWriter writer) {\n if (nested == null || NestedThrowable.PARENT_TRACE_ENABLED) {\n super.printStackTrace(writer);\n }\n NestedThrowable.Util.print(nested, writer);\n }", "public void save(XmlWriter w) throws Throwable {\n w.add(\"log\", new String[] { \"type\", type().toString(), \"time\",\n new SimpleDateFormat(DateTime.DATE_TIME_FORMAT).format(time()) }, message());\n }", "public static void exceptionDescriptive(String errorCause, StackTraceElement l) throws IOException {\n\t\t\t String secondLine = \"Browser Shut-Down\", location = \"\";\n\t\t\t String packageNameOnly, classNameOnly, xml, detected, runtime, subtotal;\n\n\t\t\t packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t\t classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t\t location = packageNameOnly + File.separator + classNameOnly + File.separator + l.getMethodName() + \", line # \" + l.getLineNumber();\n\t\t xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t detected = getCurrentDateTimeFull();\n\t\t runtime = testRunTime(\"start.time\", System.currentTimeMillis());\n\t\t subtotal = testRunTime(\"ini.time\", System.currentTimeMillis());\n\t\t \t \n\t\t // APPEND A NEW LOG RECORDS:\n\t\t fileWriterPrinter(\"\\nError Cause: ---> \" + errorCause + \"\\nDescription: ---> \" + secondLine + \"\\n Location: ---> \" + location);\t\n\t\t if (fileExist(\"run.log\", false)) {\n\t\t\t fileWriter(\"run.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"run.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"run.log\", \" Location: ---> \" + location);\t \t \n\t\t }\n\t\t \n\t\t // APPEND AN ERROR RECORD:\n\t\t\t fileWriter(\"failed.log\", \" Failure: #\" + fileScanner(\"failed.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Test: #\" + fileScanner(\"test.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Start: \" + convertCalendarMillisecondsAsStringToDateTimeHourMinSec(fileScanner(\"start.time\")));\n fileWriter(\"failed.log\", \" XML Path: \" + xml);\n\t\t\t fileWriter(\"failed.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"failed.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"failed.log\", \" Location: ---> \" + location);\n\t\t\t fileWriter(\"failed.log\", \" Detected: \" + detected);\n\t\t \t fileWriter(\"failed.log\", \" Runtime: \" + runtime);\n\t\t \t fileWriter(\"failed.log\", \" Subtotal: \" + subtotal);\n\t\t \t fileWriter(\"failed.log\", \"\");\n\t\t \t \n\t\t // APPEND DESCRIPTIVE RECORD:\n\t\t\t Assert.assertFalse(true, \"\\n Error Cause: ---> \" + errorCause\n\t\t\t\t\t + \"\\n Description: ---> \" + secondLine\n\t\t\t\t\t + \"\\n Location: ---> \" + location\n\t\t\t\t\t\t\t\t\t + \"\\n Detected: ---> \" + detected\n\t\t\t\t\t\t\t\t\t + \"\\n Runtime: ---> \" + runtime\n\t\t\t\t\t\t\t\t\t + \"\\n Subtotal: ---> \" + subtotal\n\t\t\t\t\t + \"\\n\"\n\t\t\t\t\t\t\t + xml\n\t\t\t\t\t\t\t + \"\\n\"\n\t\t\t\t \t + \"\\nStack Traces:\");\t\t\t \n\t\t }", "protected abstract void trace_end_run();", "private void processTraceForTraceExplorer()\r\n {\r\n // retrieve the error with a trace for which the trace explorer was run\r\n final TLCError originalErrorWithTrace = TraceExplorerHelper.getErrorOfOriginalTrace(getModel());\r\n if (originalErrorWithTrace == null)\r\n {\r\n // the trace explorer is meaningless if the original trace cannot be recovered\r\n // all errors should be cleared\r\n getErrors().clear();\r\n return;\r\n }\r\n\r\n /*\r\n * The following will point to the error containing the trace for the\r\n * run of the trace explorer, iff the run of the trace explorer was successful.\r\n * The run was successful if TLC was able to evaluate the trace explorer\r\n * expressions at every possible state of the original trace.\r\n * \r\n * The value of successfulTEError is set in the following while loop, if the\r\n * run was successful.\r\n */\r\n TLCError successfulTEError = null;\r\n\r\n final Map<String, Formula> traceExplorerExpressions = getModel().getNamedTraceExplorerExpressionsAsFormula();\r\n \r\n // retrieve the original trace\r\n // this is necessary for items (3) and (5) from the list in the\r\n // documentation for this method\r\n List<TLCState> originalTrace = originalErrorWithTrace.getStates(Length.ALL);\r\n Assert.isNotNull(originalTrace, \"Could not get original trace after running trace explorer. This is a bug.\");\r\n\r\n // iterate through the errors to find one with a trace\r\n Iterator<TLCError> it = getErrors().iterator();\r\n while (it.hasNext())\r\n {\r\n TLCError error = it.next();\r\n\r\n if (error.hasTrace())\r\n {\r\n // Set the message, cause, and code of the error to the message of the original\r\n // error for which the trace explorer was run if the new error\r\n // message is for an invariant or property violation or deadlock. An invariant\r\n // or property violation or deadlock indicates that the trace explorer ran\r\n // successfully. This is item (6).\r\n int errorCode = error.getErrorCode();\r\n if (errorCode == EC.TLC_DEADLOCK_REACHED || errorCode == EC.TLC_TEMPORAL_PROPERTY_VIOLATED\r\n || errorCode == EC.TLC_INVARIANT_VIOLATED_BEHAVIOR\r\n || errorCode == EC.TLC_INVARIANT_VIOLATED_INITIAL)\r\n {\r\n error.setErrorCode(originalErrorWithTrace.getErrorCode());\r\n error.setMessage(originalErrorWithTrace.getMessage());\r\n error.setCause(originalErrorWithTrace.getCause());\r\n\r\n successfulTEError = error;\r\n } else\r\n {\r\n error.setMessage(TE_ERROR_HEADER + error.getMessage());\r\n }\r\n \r\n // a comparator used for sorting the variables within each\r\n // state so that the variables representing the trace explorer\r\n // expressions appear first in each state\r\n final Comparator<TLCVariable> varComparator = new Comparator<TLCVariable>() {\r\n\r\n public int compare(TLCVariable var0, TLCVariable var1)\r\n {\r\n if ((var0.isTraceExplorerVar() && var1.isTraceExplorerVar())\r\n || (!var0.isTraceExplorerVar() && !var1.isTraceExplorerVar()))\r\n {\r\n // both represent TE expressions or neither does\r\n // use string comparison to make sure\r\n // that the variables appear in the same order\r\n // in every state\r\n return var0.getName().compareTo(var1.getName());\r\n } else if (var0.isTraceExplorerVar())\r\n {\r\n // var0 should appear before\r\n return -1;\r\n } else\r\n {\r\n // var1 represents TE expression, so it should appear before\r\n return 1;\r\n }\r\n }\r\n };\r\n\r\n // found an error with a trace\r\n\r\n // this is the trace produced by the run\r\n // of TLC for the trace explorer\r\n List<TLCState> newTrace = error.getStates();\r\n\r\n Iterator<TLCState> newTraceIt = newTrace.iterator();\r\n Iterator<TLCState> originalTraceIt = originalTrace.iterator();\r\n\r\n TLCState currentStateNewTrace = newTraceIt.next();\r\n TLCState nextStateNewTrace = null;\r\n\r\n TLCState currentStateOriginalTrace = originalTraceIt.next();\r\n\r\n /*\r\n * The following while loop performs items 1-4 for some of the states.\r\n * In particular, if the original trace has n states and the trace produced\r\n * by the trace explorer has m states, this loop performs\r\n * items 1-4 for states 1 through min(n-1, m-1). The trace produced by the\r\n * trace explorer can be shorter than the original trace if there is a TLC error\r\n * during evaluation of one of the states. The trace produced by the trace explorer\r\n * can be longer than the original trace as in the example of item 5.\r\n * \r\n * The final state of the trace produced by the trace explorer is processed\r\n * after this loop. Item 5 is also accomplished after this loop.\r\n */\r\n while (newTraceIt.hasNext() && originalTraceIt.hasNext())\r\n {\r\n\r\n // change the label of the state of newTrace to the label of the state\r\n // of the original trace\r\n currentStateNewTrace.setLabel(currentStateOriginalTrace.getLabel());\r\n\r\n // set the location of the current state of the new trace\r\n currentStateNewTrace.setLocation(currentStateOriginalTrace.getModuleLocation());\r\n\r\n // need to get the next state in order to perform any\r\n // shifting of expression values (item 2 in the documentation)\r\n nextStateNewTrace = (TLCState) newTraceIt.next();\r\n\r\n TLCVariable[] currentStateNewTraceVariables = currentStateNewTrace.getVariables();\r\n TLCVariable[] nextStateNewTraceVariables = nextStateNewTrace.getVariables();\r\n\r\n // iterate through the variables\r\n for (int i = 0; i < currentStateNewTraceVariables.length; i++)\r\n {\r\n // This code assumes that the variables are in the same order in each state\r\n String variableName = currentStateNewTraceVariables[i].getName();\r\n // if next state is back to state or stuttering, it has no variables, so the code\r\n // contained within the if block would cause an NPE\r\n if (!nextStateNewTrace.isBackToState() && !nextStateNewTrace.isStuttering())\r\n {\r\n Assert.isTrue(variableName.equals(nextStateNewTraceVariables[i].getName()),\r\n \"Variables are not in the same order in each state. This is unexpected.\");\r\n }\r\n\r\n // retrieve the object containing the data corresponding to the variable.\r\n // this object will be null if the variable currently being looked at does\r\n // not represent a trace explorer expression\r\n // If the variable does represent a trace explorer expression, then the following\r\n // object will contain the variable name, the expression, and the level of the expression\r\n TraceExpressionInformationHolder traceExpressionData = traceExpressionDataTable\r\n .get(variableName.trim());\r\n\r\n if (traceExpressionData != null)\r\n {\r\n // we have located a trace expression variable\r\n\r\n // If next state is back to state or stuttering, it has no variables, so the\r\n // code contained within this if block would not apply. It should be unnecessary\r\n // to check for this because the while loop should terminate before this happens.\r\n if (!nextStateNewTrace.isBackToState() && !nextStateNewTrace.isStuttering()\r\n && traceExpressionData.getLevel() == 2)\r\n {\r\n // found expression with primed variables\r\n // shift the value from the next state to the current state\r\n currentStateNewTraceVariables[i].setValue(nextStateNewTraceVariables[i].getValue());\r\n\r\n }\r\n\r\n // set the name to be the expression the variable represents\r\n currentStateNewTraceVariables[i].setName(traceExpressionData.getExpression());\r\n\r\n // flag this as a variable representing a trace explorer expression\r\n currentStateNewTraceVariables[i].setTraceExplorerVar(true);\r\n\r\n continue;\r\n }\r\n \r\n if (traceExplorerExpressions.containsKey(variableName.trim())) {\r\n \tcurrentStateNewTraceVariables[i].setTraceExplorerVar(true);\r\n }\r\n }\r\n\r\n // sort the variables so that the variables representing trace explorer\r\n // expressions appear first\r\n Arrays.sort(currentStateNewTraceVariables, varComparator);\r\n\r\n currentStateNewTrace = nextStateNewTrace;\r\n\r\n currentStateOriginalTrace = originalTraceIt.next();\r\n }\r\n\r\n /*\r\n * Remove any extra states (item 5).\r\n * \r\n * This is only necessary for looping or stuttering traces\r\n * (n elements in original trace, m elements in new trace)-\r\n * if (m >= n) remove states n..m\r\n * else do nothing\r\n * \r\n * if (m >= n), the new trace will be left with n-1 elements.\r\n * Later code adds the final stuttering or \"back to state\" state\r\n * to these traces.\r\n * \r\n * There should never be extra states for non-looping, non-stuttering\r\n * traces.\r\n */\r\n if ((currentStateOriginalTrace.isBackToState() || currentStateOriginalTrace.isStuttering())\r\n && newTrace.size() >= originalTrace.size())\r\n {\r\n newTrace.subList(originalTrace.size() - 1, newTrace.size()).clear();\r\n }\r\n\r\n error.restrictTraceTo(originalErrorWithTrace.getTraceRestriction());\r\n\r\n // new trace should now be no longer than the original trace\r\n Assert.isTrue(newTrace.size() <= originalTrace.size(),\r\n \"States from trace explorer trace not removed properly.\");\r\n\r\n // fix the final state\r\n TLCState finalStateOriginalTrace = (TLCState) originalTrace.get(originalTrace.size() - 1);\r\n\r\n if (newTrace.size() < originalTrace.size() - 1\r\n || (!finalStateOriginalTrace.isStuttering() && !finalStateOriginalTrace.isBackToState()))\r\n {\r\n /*\r\n * For a non-looping and non-stuttering state, just set the expressions\r\n * with primed variables equal to \"--\" for the last state.\r\n * \r\n * Do the same thing if the new trace is less than the original trace size minus 1.\r\n * This means there was a TLC error before evaluating all of the states, so\r\n * even if the original trace finished with a looping state or a stuttering state, the\r\n * trace that is displayed to the user should not. It should terminate before the TLC error\r\n * occurred.\r\n */\r\n\r\n TLCState finalStateNewTrace = (TLCState) newTrace.get(newTrace.size() - 1);\r\n\r\n // state in the original trace at the same position as finalStateNewTrace\r\n TLCState samePositionOriginalTrace = (TLCState) originalTrace.get(newTrace.size() - 1);\r\n\r\n // set the label of the final state of the new trace\r\n finalStateNewTrace.setLabel(samePositionOriginalTrace.getLabel());\r\n\r\n // set the location of the final state of the new trace\r\n finalStateNewTrace.setLocation(samePositionOriginalTrace.getModuleLocation());\r\n\r\n TLCVariable[] finalStateNewTraceVariables = finalStateNewTrace.getVariables();\r\n\r\n // iterate through the variables\r\n for (int i = 0; i < finalStateNewTraceVariables.length; i++)\r\n {\r\n\r\n TraceExpressionInformationHolder traceExpressionData = traceExpressionDataTable\r\n .get(finalStateNewTraceVariables[i].getName().trim());\r\n\r\n if (traceExpressionData != null)\r\n {\r\n // we have located a trace expression variable\r\n\r\n if (traceExpressionData.getLevel() == 2)\r\n {\r\n // expression with primed variables\r\n // shift the value from the next state to the current state\r\n finalStateNewTraceVariables[i].setValue(TLCVariableValue.parseValue(\"\\\"--\\\"\"));\r\n }\r\n\r\n // set the name to be the expression the variable represents\r\n finalStateNewTraceVariables[i].setName(traceExpressionData.getExpression());\r\n // flag this as a variable representing a trace explorer expression\r\n finalStateNewTraceVariables[i].setTraceExplorerVar(true);\r\n }\r\n }\r\n\r\n // sort the variables of the final state\r\n Arrays.sort(finalStateNewTraceVariables, varComparator);\r\n } else if (finalStateOriginalTrace.isBackToState())\r\n {\r\n\t\t\t\t\terror.addState(TLCState.BACK_TO_STATE(finalStateOriginalTrace.getStateNumber(),\r\n\t\t\t\t\t\t\tgetModel().getName()), stateSortDirection);\r\n } else\r\n {\r\n // stuttering trace\r\n\t\t\t\t\terror.addState(TLCState.STUTTERING_STATE(finalStateOriginalTrace.getStateNumber(),\r\n\t\t\t\t\t\t\tgetModel().getName()), stateSortDirection);\r\n }\r\n\r\n } else\r\n {\r\n // error does not have trace\r\n // indicate that it is an error from the trace explorer\r\n error.setMessage(TE_ERROR_HEADER + error.getMessage());\r\n }\r\n }\r\n\r\n /*\r\n * The following accomplishes item 7 from the above documentation.\r\n */\r\n if (successfulTEError != null)\r\n {\r\n List<TLCError> originalErrors = TLCOutputSourceRegistry.getModelCheckSourceRegistry().getProvider(getModel())\r\n .getErrors();\r\n List<TLCError> newErrors = new LinkedList<TLCError>();\r\n Iterator<TLCError> iterator = originalErrors.iterator();\r\n while (iterator.hasNext())\r\n {\r\n TLCError next = iterator.next();\r\n if (next == originalErrorWithTrace)\r\n {\r\n newErrors.add(successfulTEError);\r\n } else\r\n {\r\n newErrors.add(next);\r\n }\r\n }\r\n\r\n setErrors(newErrors);\r\n }\r\n\r\n }", "@Override\n\tpublic void trace(MessageSupplier msgSupplier, Throwable t) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}", "public String getTrace() {\n return trace;\n }", "static public void trace(String msg) {\n if (isVerbose()) {\n System.out.println(msg);\n }\n }", "@Override\n public void printStackTrace() {\n super.printStackTrace(); \n \n if(previous != null){\n previous.printStackTrace();\n }\n }", "private void printStackTrace(Exception ex, GUILog gl) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n ex.printStackTrace(pw);\n gl.log(sw.toString()); // stack trace as a string\n ex.printStackTrace();\n }", "@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}", "protected void trace(String headline, String qName) {\r\n\t\ttee.writelnMessage(headline + Strings.padRight(qName, 25) + \" - context : \" + Strings.padRight(context.name(), 11) + \" - stack : \" + dump(contexts));\r\n\t}", "public static void setTraceLevel(int level) {\n outLevel = level;\n }", "private void write(String msg)\r\n {\r\n System.out.println(msg);\r\n if (report_ != null) {\r\n report_.write(msg);\r\n }\r\n }", "private void report() {\n\t\t\n\t}", "public void printStackTrace() {\n printStackTrace(System.err);\n }", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, Message msg) {\n\n\t}", "@Test(timeout = 4000)\n public void test091() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-2450));\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"oc[MfnZM[~MHOK iO\", (String[]) null, true, false);\n methodWriter0.visitVarInsn(63, 2);\n FieldWriter fieldWriter0 = classWriter0.firstField;\n Object object0 = new Object();\n Object object1 = new Object();\n methodWriter0.visitFrame(17, (-1299), (Object[]) null, (-2450), (Object[]) null);\n int int0 = MethodWriter.SAME_LOCALS_1_STACK_ITEM_FRAME;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, true);\n methodWriter0.visitTypeInsn(8, \"java/lang/Throwable\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n Label label0 = new Label();\n methodWriter0.visitFieldInsn(2, \"k!Hb\", \"java/lang/Throwable\", \"Deprecated\");\n Integer integer0 = new Integer(64);\n methodWriter0.visitLdcInsn(integer0);\n Label label1 = new Label();\n methodWriter0.visitLabel(label1);\n methodWriter0.visitLdcInsn(\"oc[MfnZM[~MHOK iO\");\n methodWriter0.visitLineNumber(196, label0);\n assertNotSame(label0, label1);\n }", "private void sendProcessingError(Throwable t, ServletResponse response) {\n String stackTrace = getStackTrace(t); \n \n if (stackTrace != null && !stackTrace.equals(\"\")) {\n try {\n response.setContentType(\"text/html\");\n PrintStream ps = new PrintStream(response.getOutputStream());\n PrintWriter pw = new PrintWriter(ps); \n pw.print(\"<html>\\n<head>\\n<title>Error</title>\\n</head>\\n<body>\\n\"); //NOI18N\n\n // PENDING! Localize this for next official release\n pw.print(\"<h1>We had an error converting the URL to HTTPS</h1>\\n<pre>\\n\"); \n pw.print(stackTrace); \n pw.print(\"</pre></body>\\n</html>\"); //NOI18N\n pw.close();\n ps.close();\n response.getOutputStream().close();\n } catch (Exception ex) {\n }\n } else {\n try {\n PrintStream ps = new PrintStream(response.getOutputStream());\n t.printStackTrace(ps);\n ps.close();\n response.getOutputStream().close();\n } catch (Exception ex) {\n }\n }\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(23);\n classWriter0.toByteArray();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \".JAR\", \".JAR\", \".JAR\", (String[]) null, false, false);\n Attribute attribute0 = new Attribute(\"LineNumberTable\");\n methodWriter0.getSize();\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(0, 1, (Object[]) null, 23, (Object[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "public final void toLogFile() {\n\t\tRetroTectorEngine.toLogFile(\"Error message from \" + THESTRINGS[0] + \":\");\n\t\tfor (int i=1; i<THESTRINGS.length; i++) {\n\t\t\tRetroTectorEngine.toLogFile(THESTRINGS[i]);\n\t\t}\n\t}", "private void traceVerbose(String info) {\n if (showVerbose && trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "public void printStackTrace(PrintWriter output){\n\t\tsynchronized (output) {\n\t\t\tsuper.printStackTrace(output);\n\t\t\tprintChildren(status, output);\n\t\t}\n\t}", "public void testTrace() {\n\t\tLogAndTraceBroker broker = LogAndTraceBroker.getBroker();\n\t\tbroker.clearLogListeners();\n\t\tbroker.clearTraceListeners();\n\n\t\tbroker.addLogListener(new LogListener() {\n\n\t\t\t/**\n\t\t\t * @param pLevel\n\t\t\t * @param pMessageKey\n\t\t\t * @param pMessage\n\t\t\t * @param pParameters\n\t\t\t */\n\t\t\tpublic void log(Level pLevel, String pMessageKey, String pMessage, Object[] pParameters) {\n\t\t\t\tsetLogMessages(getLogMessages() + 1);\n\t\t\t}\n\t\t});\n\n\t\tbroker.addTraceListener(new TraceListener() {\n\n\t\t\tpublic void trace(Level pLevel, StackTraceElement pOrigin, String pMessage,\n\t\t\t\t\tThrowable pThrown) {\n\t\t\t\tsetTraceMessages(getTraceMessages() + 1);\n\t\t\t\tif (pMessage.startsWith(TEST)) {\n\t\t\t\t\tverify(\"Message level\", EQUAL, pLevel, Level.FINE);\n\t\t\t\t\tverify(\"Message text\", EQUAL, pMessage, TEST);\n\t\t\t\t\tverify(\"Message param\", EQUAL, pThrown.getMessage(), TEST);\n\t\t\t\t\tverify(\"Origin\", EQUAL, pOrigin.getMethodName(), \"testTrace\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpublic void trace(Level pLevel, StackTraceElement pOrigin, String pMessage) {\n\t\t\t\tsetTraceMessages(getTraceMessages() + 1);\n\t\t\t\tif (pMessage.startsWith(TEST)) {\n\t\t\t\t\tverify(\"Message level\", EQUAL, pLevel, Level.FINEST);\n\t\t\t\t\tverify(\"Message text\", EQUAL, pMessage, TEST);\n\t\t\t\t\tverify(\"Origin\", EQUAL, pOrigin.getMethodName(), \"testTrace\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tsetLogMessages(0);\n\t\tsetTraceMessages(0);\n\t\tbroker.trace(Level.FINEST, TEST);\n\t\tbroker.trace(Level.FINE, TEST, new RuntimeException(TEST));\n\t\tverify(\"Message count logged\", EQUAL, new Integer(getLogMessages()), new Integer(0));\n\t\tverify(\"Message count traced\", EQUAL, new Integer(getTraceMessages()), new Integer(2));\n\n\t\tbroker.clearLogListeners();\n\t\tbroker.clearTraceListeners();\n\t}", "public final void printStackTrace()\r\n {\r\n printStackTrace( System.err );\r\n }", "@Override\n protected boolean continueOnWriteError() {\n return true;\n }", "@Override\n\tpublic void trace(String message, Object p0, Object p1) {\n\n\t}" ]
[ "0.6545672", "0.6105536", "0.604078", "0.5940118", "0.59381413", "0.58465296", "0.5811058", "0.57717156", "0.56926906", "0.5639389", "0.56376", "0.5612523", "0.5583677", "0.5580339", "0.5572046", "0.55375546", "0.5531933", "0.5530762", "0.5524369", "0.552404", "0.55225766", "0.55046713", "0.5501015", "0.54920524", "0.54830116", "0.5470413", "0.5469039", "0.54480445", "0.54274285", "0.5421025", "0.54184115", "0.5404246", "0.5375075", "0.5363295", "0.5362135", "0.5355552", "0.5340665", "0.53351676", "0.5333728", "0.5300584", "0.529847", "0.52572834", "0.5246196", "0.5212114", "0.52064466", "0.51892674", "0.5188037", "0.5180591", "0.5180591", "0.5171398", "0.51596385", "0.5144175", "0.5139551", "0.5139135", "0.51380616", "0.51281726", "0.51165867", "0.5115294", "0.5061944", "0.5059819", "0.5058659", "0.50551534", "0.5054852", "0.50520724", "0.5037626", "0.50353414", "0.5034536", "0.50261384", "0.5022268", "0.50043064", "0.49801114", "0.4975241", "0.49707836", "0.4960773", "0.49577188", "0.49437964", "0.49426433", "0.49384183", "0.4935311", "0.49265844", "0.49179688", "0.49159965", "0.49060488", "0.4895092", "0.48917535", "0.48686913", "0.4859198", "0.48572683", "0.48529798", "0.48475254", "0.48466125", "0.48446333", "0.4834044", "0.4831407", "0.4830972", "0.482638", "0.48242158", "0.4821979", "0.48208085", "0.4818368", "0.4798652" ]
0.0
-1
Writes the trace xml file
private void writeTrace() { TGCreator creator = new TGCreator(); TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph); TraceGraphWriter tgWriter = new TraceGraphWriter(trace); if (this.traceCompressed) { this.filename += ITraceConstants.ZIP_FILE_SUFFIX; tgWriter.saveCompressed(new File(this.filename)); } else { this.filename += ITraceConstants.XML_FILE_SUFFIX; tgWriter.save(new File(this.filename)); } SymbolicExecutionTracerPlugin.log(Status.INFO, "Symbolic Execution Tracer wrote " + this.numEndStates + " traces to " + this.filename); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void write(TraceList traceList,File file) throws IOException;", "public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException {\n FileOutputStream fos = new FileOutputStream(file);\n WorkflowTraceSerializer.write(fos, trace);\n }", "public void writeXMLFinisher() {\n\t\tJavaIO.createXMLFile(getCurrentPath(), \"coveragePriorJ.xml\", \"</list>\", true);\n\t}", "public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }", "static void writeGPXFile(Trail trail, Context context) {\r\n if(gpxParser == null)\r\n buildParser();\r\n\r\n GPX gpx = parseTrailtoGPX(trail);\r\n\r\n System.out.println(\"~~~~~~~~~~~~~~~\"+trail.getMetadata().getName());\r\n\r\n //create a new file with the given name\r\n File file = new File(context.getExternalFilesDir(null), trail.getMetadata().getName()+\".gpx\");\r\n FileOutputStream out;\r\n try {\r\n out = new FileOutputStream(file);\r\n gpxParser.writeGPX(gpx, out);\r\n } catch(FileNotFoundException e) {\r\n AlertUtils.showAlert(context,\"File not found\",\"Please notify the developers.\");\r\n } catch (TransformerException e) {\r\n AlertUtils.showAlert(context,\"Transformer Exception\",\"Please notify the developers.\");\r\n } catch (ParserConfigurationException e) {\r\n AlertUtils.showAlert(context,\"Parser Exception\",\"Please notify the developers.\");\r\n }\r\n }", "public void printXmlPath(StackTraceElement l) throws IOException {\n\t\t String packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t String classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t String xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t\t fileWriterPrinter(\" XML Path: \" + xml);\n\t\t\t// Renew XML record:\n\t\t\t fileCleaner(\"xml.path\");\n\t\t\t fileWriter( \"xml.path\", xml);\n\t\t\t// Renew Stack Trace Element record:\n\t\t\t fileCleaner(\"stack.trace\");\n\t\t\t fileWriter( \"stack.trace\", l);\n\t\t\t// Append a New Log record:\n\t\t\t if (fileExist(\"run.log\", false)) { fileWriter(\"run.log\", \" XML Path: \" + xml); } \n\t\t}", "public void writeToXML() throws IOException, XMLStreamException {\n FileOutputStream outPC = new FileOutputStream(\"C:\\\\Users\\\\Ruben Joosen\\\\Documents\\\\AntwerpenU\\\\Semester 5\\\\Distributed Systems\\\\ProjectY\\\\DS\\\\ProjectY\\\\map.xml\");\n FileOutputStream out = new FileOutputStream(\"/home/pi/Documents/DS/ProjectY/map.xml\"); // \"/home/pi/Documents/DS/ProjectY/map.xml\"\n\n XMLStreamWriter xsw = null;\n try {\n try {\n XMLOutputFactory xof = XMLOutputFactory.newInstance();\n xsw = xof.createXMLStreamWriter(out, \"UTF-8\");\n xsw.writeStartDocument(\"utf-8\", \"1.0\");\n xsw.writeStartElement(\"entries\");\n\n // Do the Collection\n for (Map.Entry<Integer, String> e : this.IPmap.entrySet()) {\n xsw.writeStartElement(\"entry\");\n xsw.writeAttribute(\"key\", e.getKey().toString());\n xsw.writeAttribute(\"value\", e.getValue().toString());\n xsw.writeEndElement();\n }\n xsw.writeEndElement();\n xsw.writeEndDocument();\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException e) { /* ignore */ }\n }\n }// end inner finally\n } finally {\n if (xsw != null) {\n try {\n xsw.close();\n } catch (XMLStreamException e) { /* ignore */ }\n }\n }\n }", "public String writeFile1() throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\"); \n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>4</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>96</plot_lenX>\");\n oOut.write(\"<plot_lenY>96</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0614</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.368</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.0269</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>NonSpatialDisperse</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>DensDepRodentSeedPredation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>4</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<NonSpatialDisperse1>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_2\\\">0</di_nssolVal>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_1\\\">0</di_nssolVal>\");\n oOut.write(\"</di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_1\\\">1</di_nsiolVal>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_2\\\">2</di_nsiolVal>\");\n oOut.write(\"</di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"</NonSpatialDisperse1>\");\n oOut.write(\"<MastingDisperseAutocorrelation2>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.49</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.04</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.89</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.29</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_1\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_1\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_1\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_1\\\">1</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_1\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_1\\\">0</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_1\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_1\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_1\\\">0.75</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_1\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_1\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_1\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_1\\\">1.76E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_1\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation2>\");\n oOut.write(\"<MastingDisperseAutocorrelation3>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n //Mast timeseries\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.5</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.29</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.05</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.63</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_2\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_2\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_2\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_2\\\">10000</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_2\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_2\\\">1</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_2\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_2\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_2\\\">100</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_2\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_2\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_2\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_2\\\">1.82E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_2\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation3>\");\n oOut.write(\"<DensDepRodentSeedPredation4>\");\n oOut.write(\"<pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_1\\\">0.9</pr_ddfrsVal>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_2\\\">0.05</pr_ddfrsVal>\");\n oOut.write(\"</pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_densDepFuncRespA>0.02</pr_densDepFuncRespA>\");\n oOut.write(\"<pr_densDepDensCoeff>0.07</pr_densDepDensCoeff>\");\n oOut.write(\"</DensDepRodentSeedPredation4>\");\n oOut.write(\"</paramFile>\");\n oOut.close();\n return sFileName;\n }", "void localOutputXml(IvyXmlWriter xw)\n{\n xw.field(\"KIND\",\"MUTEX\");\n for (TraceLockLocation ll : getLocations()) {\n ll.outputXml(xw,false);\n }\n}", "public void printToXML() {\n String fileString = \"outputDisposal.xml\";\n //Creating the path object of the file\n Path filePath = Paths.get(fileString);\n if (Files.notExists(filePath)) {\n try {\n Files.createFile(filePath);\n } catch (IOException e1) {\n\n e1.printStackTrace();\n }\n }\n //Converting the path object to file to use in the FileWriter constructor \n File newFile = filePath.toFile();\n\n /*\n Typical try-with-resources block that features three streams: FileWriter,BufferedWriter and PrintWriter.\n The FileWriter object connects the file tho the stream.\n The BufferedWriter object \n */\n try ( PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(newFile)))) {\n for (PickUp pck : pickups) {\n out.print(pck);\n }\n\n } catch (IOException e) {\n System.err.println(e);\n }\n\n }", "@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}", "public void writeXML(Vehicle vehicle_a, Vehicle vehicle_b){\n\n //writing encoding and xml file version\n\n XMLOutputFactory xmlof = null;\n XMLStreamWriter xmlw = null;\n\n try{\n\n xmlof = XMLOutputFactory.newInstance();\n xmlw = xmlof.createXMLStreamWriter(new FileOutputStream(FILE_NAME), \"utf-8\");\n xmlw.writeStartDocument(\"utf-8\", \"1.0\");\n\n } catch (Exception e){\n\n System.out.println(\"Error: \");\n System.out.println(e.getMessage());\n\n }\n\n //writing information\n\n try {\n xmlw.writeStartElement(\"routes\");\n\n\n xmlw.writeStartElement(\"route\");\n xmlw.writeAttribute(\"team\", vehicle_a.getTeam_name());\n xmlw.writeAttribute(\"cost\", String.valueOf(vehicle_a.getFuel()));\n xmlw.writeAttribute(\"cities\", String.valueOf(vehicle_a.getTouched_cities().size()));\n\n\n\n for(int i=0; i<vehicle_a.getTouched_cities().size(); i++){\n\n xmlw.writeStartElement(\"city\");\n xmlw.writeAttribute(\"id\", String.valueOf(vehicle_a.getTouched_cities().get(i).getId()));\n xmlw.writeAttribute(\"name\", vehicle_a.getTouched_cities().get(i).getName());\n\n //tag \"city\" close\n xmlw.writeEndElement();\n }\n\n //tag \"route\" close\n xmlw.writeEndElement();\n\n\n xmlw.writeStartElement(\"route\");\n xmlw.writeAttribute(\"team\", vehicle_b.getTeam_name());\n xmlw.writeAttribute(\"cost\", String.valueOf(vehicle_b.getFuel()));\n xmlw.writeAttribute(\"cities\", String.valueOf(vehicle_b.getTouched_cities().size()));\n\n for(int i=0; i<vehicle_b.getTouched_cities().size(); i++){\n\n xmlw.writeStartElement(\"city\");\n xmlw.writeAttribute(\"id\", String.valueOf(vehicle_b.getTouched_cities().get(i).getId()));\n xmlw.writeAttribute(\"name\", vehicle_b.getTouched_cities().get(i).getName());\n\n //tag \"city\" close\n xmlw.writeEndElement();\n }\n\n //tag \"route\" close\n xmlw.writeEndElement();\n\n //tag \"routes\" close\n xmlw.writeEndElement();\n\n //closing document\n xmlw.writeEndDocument();\n\n //eptying buffer and writing the document\n xmlw.flush();\n\n //closing document and resources used\n xmlw.close();\n\n //Creation of a clone-file but indented\n try {\n indentFile();\n }catch (Exception e){\n System.err.println(e);\n }\n\n }\n catch (Exception e){\n System.out.println(\"Writing error: \");\n System.out.println(e.getMessage());\n }\n }", "private void write( TypeItem type ) throws SAXException, IOException {\n\t\t\t\t\n\t\tDocumentHandler outHandler = new XMLSerializer(\n\t\t\tcontroller.getOutput(type),\n\t\t\tnew OutputFormat(\"xml\",null,true) );\n\t\tXMLWriter out = new XMLWriter(outHandler);\n\t\t\t\t\n\t\toutHandler.setDocumentLocator( new LocatorImpl() );\n\t\toutHandler.startDocument();\n\t\toutHandler.processingInstruction(\"xml-stylesheet\",\n\t\t\t\"type='text/xsl' href='classFileDebug.xsl'\");\n\t\twriteClass( type, out );\n\t\toutHandler.endDocument();\n\t}", "public void savetoxml() throws FileNotFoundException, JAXBException {\n xml_methods.save(player);\n }", "public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void writeToXmlFile(String xmlFile, Constraint constraint) {\n\t\tDocument xmlDocument = XmlDocument.newDocument();\n\t\t\n\t\tElement rootElement = xmlDocument.createElement(XML_ROOT);\n\t\trootElement.setAttribute(XML_NUM_ATTRS, \"2\");\n\t\trootElement.setAttribute(XML_ATTR + \"1\", XML_INFO1);\n\t\trootElement.setAttribute(XML_ATTR + \"2\", XML_INFO2);\n\t\txmlDocument.appendChild(rootElement);\n\t\t\n\t\tCollections.sort(nameValuePairs, SortNameValuePairByName.inst);\n\t\t\n\t\tfor (NameValuePair pair : nameValuePairs) {\n\t\t\tElement element = createXmlElementForNameValuePair(pair.getName(), pair.getValue(), xmlDocument, constraint);\n\t\t\tif (element != null)\n\t\t\t\trootElement.appendChild(element);\n\t\t}\n\t\t\n\t\tXmlDocument.writeXmlDocumentToFile(xmlDocument, xmlFile);\n\t}", "public void writeToGameFile(String fileName) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element game = doc.createElement(\"Game\");\n rootElement.appendChild(game);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(\"001\"));\n game.appendChild(id);\n Element stories = doc.createElement(\"Stories\");\n game.appendChild(stories);\n\n for (int i = 1; i < 10; i++) {\n Element cap1 = doc.createElement(\"story\");\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(\"Mwheels\"));\n Element text = doc.createElement(\"Text\");\n text.appendChild(doc.createTextNode(\"STEP \" + i + \":\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eu.\"));\n cap1.appendChild(image);\n cap1.appendChild(text);\n stories.appendChild(cap1);\n }\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public final void toFile(final File xmlFile) throws IOException {\n if (xmlFile == null) throw new FileNotFoundException(\"file is null\");\n\n PrintWriter pw = new PrintWriter(new FileWriter(xmlFile));\n pw.print(toString());\n pw.close();\n }", "public void dumpAsXmlFile(String pFileName);", "protected static void writeXML(String path, String ID, String abs,String cls) {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder;\r\n try {\r\n dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.newDocument();\r\n //add elements to Document\r\n Element rootElement =doc.createElement(\"Data\");\r\n //append root element to document\r\n doc.appendChild(rootElement);\r\n\r\n rootElement.appendChild(getReviewsPositive(doc, ID, abs,cls));\r\n //for output to file, console\r\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n Transformer transformer = transformerFactory.newTransformer();\r\n //for pretty print\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n DOMSource source = new DOMSource(doc);\r\n\r\n //write to console or file\r\n StreamResult console = new StreamResult(System.out);\r\n StreamResult file = new StreamResult(new File(path+\"\"+ID+\".xml\"));\r\n\r\n //write data\r\n transformer.transform(source, console);\r\n transformer.transform(source, file);\r\n //System.out.println(\"DONE\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\t}", "protected abstract void toXml(PrintWriter result);", "@Override public void generateReport(IvyXmlWriter xw,DyviseDatabase db,List<TraceLockLocation> used)\n{\n if (xw != null) {\n xw.begin(\"TYPE\");\n xw.field(\"KIND\",\"JOIN\");\n xw.field(\"ID\",++item_counter);\n for (TraceLockLocation tll : location_set) {\n\t tll.outputXml(xw,false);\n }\n xw.end(\"TYPE\");\n }\n\n used.addAll(location_set);\n}", "public void save(XmlWriter w) throws Throwable {\n w.add(\"log\", new String[] { \"type\", type().toString(), \"time\",\n new SimpleDateFormat(DateTime.DATE_TIME_FORMAT).format(time()) }, message());\n }", "private static void appendToTraceFile(Integer runId, String traceString ) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the trace report\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\t\t\t\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".trace\";\n\t\t} else {\n\t\t\tfileName = fileName +\".trace\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(new FileOutputStream(fileName,true));\n\n\t\trepWriter.printf(\"%s\\n\",traceString);\n\n\t repWriter.close();\n\n\t}", "public void writeToXmlFile(String xmlFile) {\n\t\twriteToXmlFile(xmlFile, null);\n\t}", "@Override\n public void writeXml(XmlWriter xmlWriter) {\n try {\n xmlWriter.element(\"debug\")\n .attribute(\"message\", message)\n .pop();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void writeUAV(){\n System.out.println(\"Writing new UAV\");\n Document dom;\n Element e = null;\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n dom = documentBuilder.newDocument();\n Element rootElement = dom.createElement(\"UAV\");\n\n // Create the name tag and write the name data\n e = dom.createElement(\"name\");\n e.appendChild(dom.createTextNode(name.getText()));\n rootElement.appendChild(e);\n\n // Create the weight tag and write the weight data\n e = dom.createElement(\"weight\");\n e.appendChild(dom.createTextNode(weight.getText()));\n rootElement.appendChild(e);\n\n // Create the turn radius tag and write the turn radius data\n e = dom.createElement(\"turn_radius\");\n e.appendChild(dom.createTextNode(turnRadius.getText()));\n rootElement.appendChild(e);\n\n // Create the max incline angle tag and write the max incline angle data\n e = dom.createElement(\"max_incline\");\n e.appendChild(dom.createTextNode(maxIncline.getText()));\n rootElement.appendChild(e);\n\n // Create the battery type tag and write the battery type data\n e = dom.createElement(\"battery\");\n e.appendChild(dom.createTextNode(battery.getText()));\n rootElement.appendChild(e);\n\n // Create the battery capacity tag and write the battery capacity data\n e = dom.createElement(\"battery_capacity\");\n e.appendChild(dom.createTextNode(batteryCapacity.getText()));\n rootElement.appendChild(e);\n\n dom.appendChild(rootElement);\n\n // Set the transforms to make the XML document\n Transformer tr = TransformerFactory.newInstance().newTransformer();\n tr.setOutputProperty(OutputKeys.INDENT,\"yes\");\n tr.setOutputProperty(OutputKeys.METHOD,\"xml\");\n tr.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n //tr.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,\"uav.dtd\");\n tr.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\",\"4\");\n\n // Write the data to the file\n tr.transform(new DOMSource(dom),new StreamResult(\n new FileOutputStream(\"src/uavs/\"+name.getText()+\".uav\")));\n\n }catch (IOException | ParserConfigurationException | TransformerException ioe){\n ioe.printStackTrace();\n // If error, show dialog box with the error message\n // If error, show dialog box with the error message\n Dialog.showDialog(\"Unable to write to write camera settings.\\n\\n\" +\n \"Ensure that \" + path + \" is visible by the application.\",\"Unable to write settings\");\n }\n }", "public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }", "public void writeXML(OutputStream stream) throws IOException {\n\t\tPrintWriter out = new PrintWriter(stream);\n\t\tout.println(\"<?xml version=\\\"1.0\\\"?>\");\n\t\tout.println(\"<VLToolBars version=\\\"1.0\\\">\");\n\t\txmlWriteContainer(out);\n\n\t\tout.println(\"</VLToolBars>\");\n\t\tout.flush();\n\t}", "public void write_as_xml ( File series_file, Reconstruct r ) {\n try {\n String new_path_name = series_file.getParentFile().getCanonicalPath();\n String ser_file_name = series_file.getName();\n String new_file_name = ser_file_name.substring(0,ser_file_name.length()-4) + file_name.substring(file_name.lastIndexOf(\".\"),file_name.length());\n // At this point, there should be no more exceptions, so change the actual member data for this object\n this.path_name = new_path_name;\n this.file_name = new_file_name;\n priority_println ( 100, \" Writing to Section file \" + this.path_name + \" / \" + this.file_name );\n\n File section_file = new File ( this.path_name + File.separator + this.file_name );\n\n PrintStream sf = new PrintStream ( section_file );\n sf.print ( \"<?xml version=\\\"1.0\\\"?>\\n\" );\n sf.print ( \"<!DOCTYPE Section SYSTEM \\\"section.dtd\\\">\\n\\n\" );\n\n if (this.section_doc != null) {\n Element section_element = this.section_doc.getDocumentElement();\n if ( section_element.getNodeName().equalsIgnoreCase ( \"Section\" ) ) {\n int seca = 0;\n sf.print ( \"<\" + section_element.getNodeName() );\n // Write section attributes in line\n for ( /*int seca=0 */; seca<section_attr_names.length; seca++) {\n sf.print ( \" \" + section_attr_names[seca] + \"=\\\"\" + section_element.getAttribute(section_attr_names[seca]) + \"\\\"\" );\n }\n sf.print ( \">\\n\" );\n\n // Handle the child nodes\n if (section_element.hasChildNodes()) {\n NodeList child_nodes = section_element.getChildNodes();\n for (int cn=0; cn<child_nodes.getLength(); cn++) {\n Node child = child_nodes.item(cn);\n if (child.getNodeName().equalsIgnoreCase ( \"Transform\")) {\n Element transform_element = (Element)child;\n int tfa = 0;\n sf.print ( \"<\" + child.getNodeName() );\n for ( /*int tfa=0 */; tfa<transform_attr_names.length; tfa++) {\n sf.print ( \" \" + transform_attr_names[tfa] + \"=\\\"\" + transform_element.getAttribute(transform_attr_names[tfa]) + \"\\\"\" );\n if (transform_attr_names[tfa].equals(\"dim\") || transform_attr_names[tfa].equals(\"xcoef\")) {\n sf.print ( \"\\n\" );\n }\n }\n sf.print ( \">\\n\" );\n if (transform_element.hasChildNodes()) {\n NodeList transform_child_nodes = transform_element.getChildNodes();\n for (int gcn=0; gcn<transform_child_nodes.getLength(); gcn++) {\n Node grandchild = transform_child_nodes.item(gcn);\n if (grandchild.getNodeName().equalsIgnoreCase ( \"Image\")) {\n Element image_element = (Element)grandchild;\n int ia = 0;\n sf.print ( \"<\" + image_element.getNodeName() );\n for ( /*int ia=0 */; ia<image_attr_names.length; ia++) {\n sf.print ( \" \" + image_attr_names[ia] + \"=\\\"\" + image_element.getAttribute(image_attr_names[ia]) + \"\\\"\" );\n if (image_attr_names[ia].equals(\"blue\")) {\n sf.print ( \"\\n\" );\n }\n }\n sf.print ( \" />\\n\" );\n } else if (grandchild.getNodeName().equalsIgnoreCase ( \"Contour\")) {\n Element contour_element = (Element)grandchild;\n int ca = 0;\n sf.print ( \"<\" + contour_element.getNodeName() );\n for ( /*int ca=0 */; ca<contour_attr_names.length; ca++) {\n // System.out.println ( \"Writing \" + contour_attr_names[ca] );\n if (contour_attr_names[ca].equals(\"points\")) {\n // Check to see if this contour element has been modified\n boolean modified = false; // This isn't being used, but should be!!\n ContourClass matching_contour = null;\n for (int cci=0; cci<contours.size(); cci++) {\n ContourClass contour = contours.get(cci);\n if (contour.contour_element == contour_element) {\n matching_contour = contour;\n break;\n }\n }\n if (matching_contour == null) {\n // Write out the data from the original XML\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(contour_element.getAttribute(contour_attr_names[ca]),\"\\t\", true) + \"\\\"\" );\n } else {\n // Write out the data from the stroke points\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(matching_contour.stroke_points,\"\\t\", true) + \"\\\"\" );\n }\n } else if (contour_attr_names[ca].equals(\"handles\")) {\n if (r.export_handles) {\n String handles_str = contour_element.getAttribute(contour_attr_names[ca]);\n if (handles_str != null) {\n handles_str = handles_str.trim();\n if (handles_str.length() > 0) {\n // System.out.println ( \"Writing a handles attribute = \" + contour_element.getAttribute(contour_attr_names[ca]) );\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(contour_element.getAttribute(contour_attr_names[ca]),\"\\t\", false) + \"\\\"\\n\" );\n }\n }\n }\n } else if (contour_attr_names[ca].equals(\"type\")) {\n if (r.export_handles) {\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + contour_element.getAttribute(contour_attr_names[ca]) + \"\\\"\" );\n } else {\n // Don't output the \"type\" attribute if not exporting handles (this makes the traces non-bezier)\n }\n } else {\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + contour_element.getAttribute(contour_attr_names[ca]) + \"\\\"\" );\n if (contour_attr_names[ca].equals(\"mode\")) {\n sf.print ( \"\\n\" );\n }\n }\n }\n sf.print ( \"/>\\n\" );\n }\n }\n }\n sf.print ( \"</\" + child.getNodeName() + \">\\n\\n\" );\n }\n }\n }\n\n // Also write out any new contours created by drawing\n\n for (int i=0; i<contours.size(); i++) {\n ContourClass contour = contours.get(i);\n ArrayList<double[]> s = contour.stroke_points;\n ArrayList<double[][]> h = contour.handle_points;\n if (s.size() > 0) {\n if (contour.modified) {\n if (contour.contour_name == null) {\n contour.contour_name = \"RGB_\";\n if (contour.r > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n if (contour.g > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n if (contour.b > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n }\n sf.print ( \"<Transform dim=\\\"0\\\"\\n\" );\n sf.print ( \" xcoef=\\\" 0 1 0 0 0 0\\\"\\n\" );\n sf.print ( \" ycoef=\\\" 0 0 1 0 0 0\\\">\\n\" );\n String contour_color = \"\\\"\" + contour.r + \" \" + contour.g + \" \" + contour.b + \"\\\"\";\n sf.print ( \"<Contour name=\\\"\" + contour.contour_name + \"\\\" \" );\n if (contour.is_bezier) {\n sf.print ( \"type=\\\"bezier\\\" \" );\n } else {\n // sf.print ( \"type=\\\"line\\\" \" );\n }\n sf.print ( \"hidden=\\\"false\\\" closed=\\\"true\\\" simplified=\\\"false\\\" border=\" + contour_color + \" fill=\" + contour_color + \" mode=\\\"13\\\"\\n\" );\n\n if (contour.is_bezier) {\n if (h.size() > 0) {\n sf.print ( \" handles=\\\"\" );\n System.out.println ( \"Saving handles inside Section.write_as_xml\" );\n for (int j=h.size()-1; j>=0; j+=-1) {\n // for (int j=0; j<h.size(); j++) {\n double p[][] = h.get(j);\n if (j != 0) {\n sf.print ( \" \" );\n }\n System.out.println ( \" \" + p[0][0] + \" \" + p[0][1] + \" \" + p[1][0] + \" \" + p[1][1] );\n sf.print ( p[0][0] + \" \" + p[0][1] + \" \" + p[1][0] + \" \" + p[1][1] + \",\\n\" );\n }\n sf.print ( \" \\\"\\n\" );\n }\n }\n\n sf.print ( \" points=\\\"\" );\n for (int j=s.size()-1; j>=0; j+=-1) {\n double p[] = s.get(j);\n if (j != s.size()-1) {\n sf.print ( \" \" );\n }\n sf.print ( p[0] + \" \" + p[1] + \",\\n\" );\n }\n sf.print ( \" \\\"/>\\n\" );\n sf.print ( \"</Transform>\\n\\n\" );\n }\n }\n }\n\n sf.print ( \"</\" + section_element.getNodeName() + \">\" );\n }\n }\n sf.close();\n\n } catch (Exception e) {\n }\n }", "public synchronized void outputRule() throws IOException\n{\n File f1 = for_program.getUniverse().getBaseDirectory();\n File f2 = new File(f1,RULE_FILE);\n FileWriter fw = new FileWriter(f2,true);\n IvyXmlWriter xw = new IvyXmlWriter(fw);\n\n xw.begin(\"RULE\");\n xw.field(\"WHEN\",at_time);\n xw.field(\"WHENS\",new Date(at_time).toString());\n\n xw.begin(\"WORLD\");\n for (Map.Entry<UpodParameter,Object> ent : from_world.getParameters().entrySet()) {\n UpodParameter pnm = ent.getKey();\n Object pvl = ent.getValue();\n if (pvl == null) continue;\n xw.begin(\"PARAM\");\n xw.field(\"NAME\",pnm.getName());\n xw.field(\"TYPE\",pvl.getClass().toString());\n xw.cdata(pvl.toString());\n xw.end(\"PARAM\");\n }\n xw.end(\"WORLD\");\n\n for (Map.Entry<UpodDevice,Map<UpodParameter,Object>> ent : sensor_values.entrySet()) {\n UpodDevice us = ent.getKey();\n xw.begin(\"SENSOR\");\n xw.field(\"NAME\",us.getName());\n xw.field(\"ID\",us.getUID());\n for (Map.Entry<UpodParameter,Object> pent : ent.getValue().entrySet()) {\n\t xw.begin(\"PARAM\");\n\t xw.field(\"NAME\",pent.getKey().getName());\n\t xw.cdata(pent.getValue().toString());\n\t xw.end(\"PARAM\");\n }\n xw.end(\"SENSOR\");\n }\n for (Map.Entry<UpodDevice,Map<UpodParameter,Object>> ent : entity_values.entrySet()) {\n UpodDevice ue = ent.getKey();\n xw.begin(\"ENTITY\");\n xw.field(\"NAME\",ue.getName());\n xw.field(\"ID\",ue.getUID());\n for (Map.Entry<UpodParameter,Object> pent : ent.getValue().entrySet()) {\n\t xw.begin(\"PARAM\");\n\t xw.field(\"NAME\",pent.getKey().getName());\n\t xw.cdata(pent.getValue().toString());\n\t xw.end(\"PARAM\");\n }\n xw.end(\"ENTITY\");\n }\n\n for (CalendarEvent ce : calendar_events) {\n if (ce.getStartTime() > at_time + 5*T_MINUTE) continue;\n if (ce.getEndTime() < at_time - 5*T_MINUTE) continue;\n xw.begin(\"CALENDAR\");\n xw.field(\"START\",ce.getStartTime());\n xw.field(\"STARTS\",new Date(ce.getStartTime()).toString());\n xw.field(\"END\",ce.getEndTime());\n xw.field(\"ENDS\",new Date(ce.getEndTime()).toString());\n for (Map.Entry<String,String> ent : ce.getProperties().entrySet()) {\n\t xw.begin(\"FIELD\");\n\t xw.field(\"NAME\",ent.getKey());\n\t xw.field(\"VALUE\",ent.getValue());\n\t xw.end(\"FIELD\");\n }\n xw.end(\"CALENDAR\");\n }\n xw.end(\"RULE\");\n xw.close();\n}", "public void writeXMLServer(String file_name)\n\t\t{\n\t\t\t\t \n\t\t\t\t//Attempt to write server to an XML file in current working directory\n\t\t\t\ttry {\n\t\t\t\t JAXBContext jaxbc = JAXBContext.newInstance(Server.class);\n\t\t\t\t Marshaller marshaller = jaxbc.createMarshaller();\n\t\t\t\t marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\t\t OutputStream out = null;\n\t\t\t\t try \n\t\t\t\t {\n\t\t\t\t out = new FileOutputStream(file_name);\n\t\t\t\t marshaller.marshal(this, out);\n\t\t\t\t } \n\t\t\t\t catch (FileNotFoundException e) \n\t\t\t\t {\n\t\t\t\t e.printStackTrace();\n\t\t\t\t } \n\t\t\t\t finally \n\t\t\t\t {\n\t\t\t\t try \n\t\t\t\t {\n\t\t\t\t out.close();\n\t\t\t\t } \n\t\t\t\t catch (IOException e) \n\t\t\t\t {\n\t\t\t\t \t e.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t } catch (JAXBException e) {\n\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t}", "static void save(Schedules schedules, String filename) throws IOException, RBEConfigObjectException\n {\n\t\tFileWriter fw = new FileWriter(filename);\n\t\tschedules.toXML(fw);\n\t\tfw.close();\n }", "void addEntry(IvyXmlWriter xw) \n{\n xw.begin(\"USERFILE\");\n xw.field(\"NAME\",access_name);\n xw.field(\"JARNAME\",context_name);\n xw.field(\"ACCESS\",file_mode);\n xw.end(\"USERFILE\");\n}", "@Override public void outputXml(IvyXmlWriter xw)\n{\n outputHeader(xw);\n xw.field(\"TYPE\",(is_trigger ? \"TRIGGER\" : \"TIMED\"));\n xw.field(\"MINTIME\",min_time);\n xw.field(\"MAXTIME\",max_time);\n base_condition.outputXml(xw);\n outputTrailer(xw);\n}", "private String writeValidXMLFile() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>3</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>200.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>200.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_4\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_5\\\" />\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_3\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_4\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_5\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_3\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_4\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_5\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s1.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s20.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s30.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s40.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s50.0\\\"/>\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_4\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_5\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_3\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_4\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_5\\\">39.48</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_3\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_4\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_5\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_3\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_4\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_5\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_3\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_4\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_5\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_3\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_4\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_5\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_3\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_4\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_5\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_3\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_4\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_5\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_3\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_4\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_5\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_3\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_4\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_5\\\">0.0299</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_3\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_4\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_5\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_3\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_4\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_5\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_3\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_4\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_5\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_3\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_4\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_5\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_3\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_4\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_5\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_3\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_4\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_5\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_3\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_4\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_5\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>QualityVigorClassifier</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_5\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<QualityVigorClassifier1>\");\n oOut.write(\"<ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>10</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>20</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.78</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.88</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.61</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.64</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">1</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.55</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>20</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>30</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.33</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.81</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.64</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.32</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.32</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.69</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.58</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>30</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>40</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.34</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.57</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.26</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.46</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.13</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.36</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.66</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.45</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"</ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierVigBeta0>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_2\\\">0.1</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_3\\\">0</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_4\\\">0.3</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_5\\\">0.4</ma_cvb0Val>\");\n oOut.write(\"</ma_classifierVigBeta0>\");\n oOut.write(\"<ma_classifierVigBeta11>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_2\\\">0.2</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_3\\\">2.35</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_4\\\">0.1</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_5\\\">2.43</ma_cvb11Val>\");\n oOut.write(\"</ma_classifierVigBeta11>\");\n oOut.write(\"<ma_classifierVigBeta12>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_2\\\">-2.3</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_3\\\">1.12</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_4\\\">0.32</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_5\\\">1.3</ma_cvb12Val>\");\n oOut.write(\"</ma_classifierVigBeta12>\");\n oOut.write(\"<ma_classifierVigBeta13>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_2\\\">0.13</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_3\\\">1</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_4\\\">-0.2</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_5\\\">1</ma_cvb13Val>\");\n oOut.write(\"</ma_classifierVigBeta13>\");\n oOut.write(\"<ma_classifierVigBeta14>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_2\\\">0.9</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_3\\\">0</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_4\\\">-1</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_5\\\">0</ma_cvb14Val>\");\n oOut.write(\"</ma_classifierVigBeta14>\");\n oOut.write(\"<ma_classifierVigBeta15>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_2\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_3\\\">0.25</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_4\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_5\\\">-0.45</ma_cvb15Val>\");\n oOut.write(\"</ma_classifierVigBeta15>\");\n oOut.write(\"<ma_classifierVigBeta16>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_2\\\">1</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_3\\\">0.36</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_4\\\">0</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_5\\\">0.46</ma_cvb16Val>\");\n oOut.write(\"</ma_classifierVigBeta16>\");\n oOut.write(\"<ma_classifierVigBeta2>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_2\\\">0.01</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_3\\\">0.02</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_4\\\">0.04</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_5\\\">0.1</ma_cvb2Val>\");\n oOut.write(\"</ma_classifierVigBeta2>\");\n oOut.write(\"<ma_classifierVigBeta3>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_2\\\">0.001</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_3\\\">0.2</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_4\\\">0.3</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_5\\\">0.4</ma_cvb3Val>\");\n oOut.write(\"</ma_classifierVigBeta3>\");\n oOut.write(\"<ma_classifierQualBeta0>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_2\\\">0.25</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_3\\\">1.13</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_4\\\">0</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_5\\\">1.15</ma_cqb0Val>\");\n oOut.write(\"</ma_classifierQualBeta0>\");\n oOut.write(\"<ma_classifierQualBeta11>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_2\\\">0.36</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_3\\\">0</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_4\\\">0.4</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_5\\\">0</ma_cqb11Val>\");\n oOut.write(\"</ma_classifierQualBeta11>\");\n oOut.write(\"<ma_classifierQualBeta12>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_2\\\">0.02</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_3\\\">10</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_4\\\">0.3</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_5\\\">30</ma_cqb12Val>\");\n oOut.write(\"</ma_classifierQualBeta12>\");\n oOut.write(\"<ma_classifierQualBeta13>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_2\\\">0.2</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_3\\\">10</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_4\\\">-0.3</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_5\\\">30</ma_cqb13Val>\");\n oOut.write(\"</ma_classifierQualBeta13>\");\n oOut.write(\"<ma_classifierQualBeta14>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_2\\\">-0.2</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_3\\\">10</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_4\\\">-0.4</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_5\\\">30</ma_cqb14Val>\");\n oOut.write(\"</ma_classifierQualBeta14>\");\n oOut.write(\"<ma_classifierQualBeta2>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_2\\\">-0.2</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_3\\\">10</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_4\\\">0</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_5\\\">30</ma_cqb2Val>\");\n oOut.write(\"</ma_classifierQualBeta2>\");\n oOut.write(\"<ma_classifierQualBeta3>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_2\\\">1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_3\\\">10</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_4\\\">0.1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_5\\\">30</ma_cqb3Val>\");\n oOut.write(\"</ma_classifierQualBeta3>\");\n oOut.write(\"<ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_2\\\">0.1</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_3\\\">0.25</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_4\\\">0.5</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_5\\\">0.74</ma_cnapvVal>\");\n oOut.write(\"</ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_2\\\">0.9</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_3\\\">0.25</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_4\\\">0.3</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_5\\\">0.74</ma_cnapsVal>\");\n oOut.write(\"</ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_classifierDeciduous>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_2\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_3\\\">0</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_4\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_5\\\">0</ma_cdVal>\");\n oOut.write(\"</ma_classifierDeciduous>\");\n oOut.write(\"</QualityVigorClassifier1>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void writeToDeviceReport(XmlSerializer serializer) throws IOException {\n\t\tthis.serializer = serializer;\n\t\t\n serializer.startTag(DeviceReportWriter.XMLNS, \"log_subreport\");\n \n try {\n\t\t\tif(storage != null) {\n\t\t\t\tif(Logger._() != null) {\n\t\t\t\t\tLogger._().serializeLogs(this);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tserializeLog(entry);\n\t\t\t}\n } finally {\n \tserializer.endTag(DeviceReportWriter.XMLNS, \"log_subreport\");\n }\n\t}", "public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }", "public static String write(WorkflowTrace trace) throws JAXBException, IOException {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n WorkflowTraceSerializer.write(bos, trace);\n return new String(bos.toByteArray(), \"UTF-8\");\n }", "void write(File file) throws IOException {\n Files.createParentDirs(file);\n FileWriter fileWriter = new FileWriter(file);\n try {\n for (Map.Entry<String, Status> record : records.entrySet()) {\n fileWriter.write(String.format(\"%s,%s\", record.getValue(), record.getKey()));\n fileWriter.write(\"\\n\");\n }\n } finally {\n fileWriter.close();\n }\n }", "public abstract void writeToXml(T o, XmlSerializer serializer, Context context)\n throws IOException;", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n String content = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<playlist>\\n\";\n\n for (Radio radio : radioList) {\n content += \"<track>\\n\";\n content += \"<location>\" + radio.getUrl() + \"</location>\\n\";\n content += \"<title>\" + radio.getName() + \"</title>\\n\";\n content += \"</track>\\n\";\n }\n content += \"</playlist>\";\n\n FileOutputStream outputStream = null;\n try {\n //Log.i(LOG_TAG,\"write new radios.xml file\");\n outputStream = owner.openFileOutput(fileName, owner.getBaseContext().MODE_PRIVATE);\n outputStream.write(content.getBytes());\n outputStream.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }", "public void outputToFile(MethodCallExpr original, MethodCallExpr mutant) {\n if (comp_unit == null || currentMethodSignature == null){\n return;\n }\n num++;\n String f_name = getSourceName(\"ARGR\");\n String mutant_dir = getMuantID(\"ARGR\");\n try {\n PrintWriter out = getPrintWriter(f_name);\n ARGR_Writer writer = new ARGR_Writer(mutant_dir, out);\n writer.setMutant(original, mutant);\n writer.setMethodSignature(currentMethodSignature);\n writer.writeFile(comp_unit);\n out.flush();\n out.close();\n }\n catch (IOException e) {\n System.err.println(\"ARGR: Fails to create \" + f_name);\n logger.error(\"Fails to create \" + f_name);\n }\n }", "private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}", "public void writeToXML(Writer bw) throws IOException {\n\t\tbw.write(\"<ColorReferenceExport>\");\n\t\tIterator itr = mappings.keySet().iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString key = (String) itr.next();\n\t\t\tbw.write(\"<ColorUnit>\\n<Key>\" + key + \"</Key>\\n\");\n\t\t\tbw.write(\"<ColorRGB>\" + ((Color) mappings.get(key)).getRGB()\n\t\t\t\t\t+ \"</ColorRGB>\\n</ColorUnit>\");\n\t\t}\n\t\tbw.write(\"\\n</ColorReferenceExport>\");\n\t}", "public void save(XmlWriter w) throws Throwable {\n w.add(\"progress\", new String[] { \"total\", Integer.toString(_total), \"time\",\n new SimpleDateFormat(DateTime.DATE_TIME_FORMAT).format(time()) }, Integer.toString(_progress));\n }", "int writeTo(OutputStream out, boolean withXmlDecl) throws IOException;", "public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}", "public void writeDocumentToOutput() {\n log.debug(\"Statemend of XML document...\");\r\n // writeDocumentToOutput(root,0);\r\n log.debug(\"... end of statement\");\r\n }", "public void saveXmlTree(String fileName) {\n try {\n String tree = this.client.driver.getPageSource();\n PrintWriter out = new PrintWriter(this.settings.baseLogDir + File.separator + fileName);\n out.println(tree);\n out.close();\n } catch (Exception e) {\n this.error(\"Failed to get and save current visual tree.\");\n }\n }", "public XmlWriter(String filename, String logFile, Vector dirs) throws IOException {\n\t\tout = new FileOutputStream(filename);\n\t\tstack = new Stack();\n\t\tindent = 0;\n\n\t\twriteProlog();\n\n\t\ttag = Xml.TAG_ROOT;\n\t\twriteDTD(tag);\n\t\ttag += addAttr(Xml.ATTR_LOGFILE, logFile);\n\t\ttag += addAttr(Xml.ATTR_TIMESTAMPWRITEBACK, DirSync.getSync().isWriteTimestampBack());\n\t\ttag += addAttr(Xml.ATTR_TIMESTAMPDIFF, DirSync.getSync().getMaxTimestampDiff());\n\t\ttag += addAttr(Xml.ATTR_SKIP_LINKS, DirSync.getSync().isSkipLinks());\n\t\twriteStartTag(tag);\n\n\t\tfor (Iterator iter = dirs.iterator(); iter.hasNext();) {\n\t\t\tDirectory dir = (Directory) iter.next();\n\n\t\t\ttag = Xml.TAG_DIR;\n\t\t\ttag += addAttr(Xml.ATTR_NAME, dir.getName());\n\t\t\ttag += addAttr(Xml.ATTR_SRC, dir.getSrc());\n\t\t\ttag += addAttr(Xml.ATTR_DST, dir.getDst());\n\t\t\ttag += addAttr(Xml.ATTR_WITHSUBFOLDERS, dir.isWithSubfolders());\n\t\t\ttag += addAttr(Xml.ATTR_VERIFY, dir.isVerify());\n\t\t\ttag += addAttr(Xml.ATTR_FILE_INCLUDE, dir.getFileInclude());\n\t\t\ttag += addAttr(Xml.ATTR_FILE_EXCLUDE, dir.getFileExclude());\n\t\t\ttag += addAttr(Xml.ATTR_DIR_INCLUDE, dir.getDirInclude());\n\t\t\ttag += addAttr(Xml.ATTR_DIR_EXCLUDE, dir.getDirExclude());\n\t\t\ttag += addAttr(Xml.ATTR_LOGFILE, dir.getLogfile());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_ALL, dir.isCopyAll());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_LARGER, dir.isCopyLarger());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_LARGERMODIFIED, dir\n\t\t\t\t\t.isCopyLargerModified());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_MODIFIED, dir.isCopyModified());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_NEW, dir.isCopyNew());\n\t\t\ttag += addAttr(Xml.ATTR_DEL_FILES, dir.isDelFiles());\n\t\t\ttag += addAttr(Xml.ATTR_DEL_DIRS, dir.isDelDirs());\n\t\t\twriteEmptyTag(tag);\n\t\t}\n\n\t\twriteEndTag();\n\t}", "public void writeXML(String xml){\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n\t\t\t// define root elements \n\t\t\tDocument document = documentBuilder.newDocument(); \n\t\t\tElement rootElement = document.createElement(\"graph\"); \n\t\t\tdocument.appendChild(rootElement);\n\t\t\t\n\t\t\tfor(int i=0;i<Rel.getChildCount();i++){\n\t\t\t\tif(Rel.getChildAt(i).getTag() != null){\n\t\t\t\t\tif(Rel.getChildAt(i).getTag().toString().compareTo(\"node\") == 0){\n\t\t\t\t\t\tArtifact artifact = (Artifact) Rel.getChildAt(i);\n\t\t\t\t\t\tElement node = addElement(rootElement, \"node\", document);\n\t\t\t\t\t\tElement id = addAttribute(\"id\",artifact.getId()+\"\", document); //we create an attribute for a node\n\t\t\t\t\t\tnode.appendChild(id);//and then we attach it to the node\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> fathers = artifact.getFathers();\n\t\t\t\t\t\tif(fathers != null){\n\t\t\t\t\t\t\taddElement(node, \"fathers\", document);//for complex attribute like array of fathers we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<fathers.size();j++){\n\t\t\t\t\t\t\t\tElement father = addAttribute(\"father\",fathers.get(j).getId()+\"\", document);//inside this element created in the node we add all its fathers as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(father);\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\tArrayList <Artifact> sons = artifact.getSons();\n\t\t\t\t\t\tif(sons != null){\n\t\t\t\t\t\t\taddElement(node, \"sons\", document);//for complex attribute like array of sons we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<sons.size();j++){\n\t\t\t\t\t\t\t\tElement son = addAttribute(\"son\",sons.get(j).getId()+\"\", document);//inside this element created in the node we add all its sons as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(son);\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\tElement label = addAttribute(\"label\", artifact.getText()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(label);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement age = addAttribute(\"age\", artifact.getAge()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(age);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement type = addAttribute(\"type\", artifact.getType()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement information = addAttribute(\"information\", artifact.getInformation()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(information);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement position = addAttribute(\"position\", artifact.getPosition()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(position);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// creating and writing to xml file \n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance(); \n\t\t\tTransformer transformer = transformerFactory.newTransformer(); \n\t\t\tDOMSource domSource = new DOMSource(document); \n\t\t\tStreamResult streamResult = new StreamResult(new File(xml)); \n\t\t\ttransformer.transform(domSource, streamResult);\n \n \n }catch(Exception e){\n \tLog.v(\"error writing xml\",e.toString());\n }\n\t\t\n\t\t\n\t}", "@Override\n public void writeDataToTxtFile() {\n\n }", "private static void createFile(String fileType) throws Exception {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now();\n File xmlFile = new File(System.getProperty(\"user.dir\")+\"/data/saved/\"+dtf.format(now) + fileType + \".xml\");\n OutputFormat out = new OutputFormat();\n out.setIndent(5);\n FileOutputStream fos = new FileOutputStream(xmlFile);\n XML11Serializer serializer = new XML11Serializer(fos, out);\n serializer.serialize(xmlDoc);\n\n }", "public void writeXML(InvCatalogImpl catalog, String filename) throws IOException {\n BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream(filename));\n writeXML(catalog, os, false);\n os.close();\n }", "public void writeXML(OutputStream stream) throws IOException {\n\t\tPrintWriter out = new PrintWriter(stream);\n\t\tout.println(\"<?xml version=\\\"1.0\\\"?>\");\n\t\tout.println(\"<VLDocking version=\\\"2.1\\\">\");\n\t\tfor(int i = 0; i < desktops.size(); i++) {\n\t\t\tWSDesktop desktop = (WSDesktop) desktops.get(i);\n\t\t\tdesktop.writeDesktopNode(out);\n\t\t}\n\t\tout.println(\"</VLDocking>\");\n\n\t\tout.flush();\n\t}", "public void write() {\n\t\tint xDist, yDist;\r\n\t\ttry {\r\n\t\t\tif (Pipes.getPipes().get(0).getX() - b.getX() < 0) { // check if pipes are behind bird\r\n\t\t\t\txDist = Pipes.getPipes().get(1).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(1).getY() - b.getY() + Pipes.height;\r\n\t\t\t} else {\r\n\t\t\t\txDist = Pipes.getPipes().get(0).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(0).getY() - b.getY() + Pipes.height;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\txDist = -6969;\r\n\t\t\tyDist = -6969;\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Pipe out of bounds\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"DATA.txt\");\r\n\t\t\tFileWriter fr = new FileWriter(file, true);\r\n\t\t\tfr.write(xDist + \",\" + yDist + \",\" + b.getYVel() + \",\" + didJump);\r\n\t\t\tfr.write(System.getProperty(\"line.separator\")); // makes a new line\r\n\t\t\tfr.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Wtrie file error\");\r\n\t\t}\r\n\t}", "public void save(XmlWriter w) throws Throwable {\n w.add(\"status\", new String[] { \"time\", new SimpleDateFormat(DateTime.DATE_TIME_FORMAT).format(_time) },\n _state);\n }", "@Test\n\tpublic void testWrite(){\n\t\tGameWorld gw = getGameWorld();\n\t\ttry{\n\t\t\tXMLWriter writer = new XMLWriter(\"testWrite\");\n\t\t\twriter.write(gw);\n\t\t\twriter.close();\n\t\t} catch(FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t\tfail(\"XMLWriter, testWrite.xml not found\");\n\t\t} catch(IntrospectionException e){\n\t\t\te.printStackTrace();\n\t\t\tfail(\"XMLWriter, introspection failure\");\n\t\t}\n\t}", "private void writeXmlFile( Document doc, String file_path ) {\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\tDOMSource source \t\t= new DOMSource( doc );\r\n\t\t\tStreamResult result \t= new StreamResult( new File( file_path ));\r\n\t\t\t\r\n\t\t\t// Output to console for testing\r\n\t\t\t// StreamResult result = new StreamResult(System.out);\r\n\r\n\t\t\ttransformer.transform( source, result );\r\n\t\t\tSystem.out.println( \"File saved!\" );\r\n\r\n\r\n\t\t} catch ( TransformerException e ) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "XMLOut(String LegendFile, String start)\n\t\t{\n\t\t\tFileOutputStream fileStream = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfileStream = new FileOutputStream(LegendFile);\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLOut(): \" + e);\n\t\t\t}\n\t\t\tXMLStream = new PrintStream(fileStream);\n\t\t\tstack = new String[top];\n\t\t\tsp = 0;\n\t\t\tpush(start);\n\t\t}", "private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.show();\r\n if (fd.getFile() != null) {\r\n jm.util.Write.xml(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }", "public abstract void saveToFile(PrintWriter out);", "public void writeTo(XMLOutput writer) throws IOException {\n ArrayList<String> actualLines = new ArrayList<String>(30);\n for (String line: build().getLog(30)) {\n if (line.trim().isEmpty()) continue; // Skip empty line to save space\n if (line.contains(\"Building \") && line.contains(\" in workspace \")) {\n // Try to detect start of the build\n actualLines.clear();\n }\n\n actualLines.add(line);\n\n if (line.contains(\"' marked build as failure\")) break; // End of build, the rest it not interesting\n }\n\n final Writer wrtr = writer.asWriter();\n for (String line: actualLines) {\n wrtr.write(line);\n wrtr.write('\\n');\n }\n }", "protected abstract void writeToXml(EwsServiceXmlWriter writer)\n\t\t\tthrows Exception;", "int writeTo(OutputStream out, boolean withXmlDecl, Charset enc) throws IOException;", "private static void saveToFile(String xmlExtrato, ArrayList diretorios, String sessionId)\n\t{\n\t try\n\t {\n\t //Percorrendo a lista de diretorios e verificando se existe algum valido.\n\t for(int i = 0; i < diretorios.size(); i++)\n\t {\n\t File diretorio = new File((String)diretorios.get(i));\n\t if((diretorio.exists()) && (diretorio.isDirectory()))\n\t {\n\t \t //Salvando o xml em arquivo\n\t \t String fileName = diretorios.get(i) + File.separator + sessionId;\n\t \t File fileExtrato = new File(fileName);\n\t \t FileWriter writer = new FileWriter(fileExtrato);\n\t \t writer.write(xmlExtrato);\n\t \t writer.close();\n\t \t break;\n\t }\n\t }\n\t }\n\t catch(Exception e)\n\t {\n\t e.printStackTrace();\n\t }\n\t}", "public void writeToTxtStats() throws IOException{\n\t\tPath fileName = Path.of(\"stats.out\");\n \n\t\tString outputText = \"Day \" + day + \", Spring \" + inventory.get(0).getStock() + \", Egg \" + inventory.get(1).getStock() \n + \", Sausage \" + inventory.get(2).getStock() + \", Jelly \" + inventory.get(3).getStock()\n\t+ \", Pastry \" + inventory.get(4).getStock() + \", Outages \" + dailyDisruptions+ \"\";\n\t\toutputText = outputText + \"\\n\";\n Files.writeString(fileName, outputText, StandardOpenOption.APPEND);\n\t\t//Day x, Spring x, Egg x, Sausage x, Jelly x, Pastry x, Outages x \\n\n\t}", "public void writeVisits() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/visits.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(visits);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void toXML(PrintWriter pw) {\n pw.println(\"<crontabentry>\");\n pw.println(\"<id>\" + id + \"</id> \");\n pw.println(\"<classname>\" + className + \"</classname> \");\n pw.println(\"<methodname>\" + methodName + \"</methodname> \");\n if (bextraInfo) {\n for (int i = 0; i < extraInfo.length; i++) {\n pw.println(\"<extrainfo parameter = \\\"\" + i + \"\\\" >\");\n pw.println(extraInfo[i] + \" </extrainfo>\");\n }\n }\n pw.println(\"<calendar>\" + cal + \" </calendar>\");\n pw.println(\"<timemillis>\" + timeMillis + \"</timemillis> \");\n pw.println(\"</crontabentry>\");\n }", "public static void saveStudRecsToFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tMarshaller m = context.createMarshaller();\r\n\t\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = new StudRecsWrapper();\r\n\t\t\twrapper.setStudRecs(studRecs);\r\n\t\t\t\r\n\t\t\tm.marshal(wrapper, file);\r\n\t\t\tSystem.out.println(\"File saved!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot save file, check write permissions!\");\r\n\t\t}\r\n\t}", "public static void writeSave(String filepath, ISaveConfiguration scores) {\n try {\n Element root = Writer.buildDocumentWithRoot(DATA_TYPE);\n Document document = root.getOwnerDocument();\n\n addSaves(document, root, scores);\n\n Writer.writeOutput(document, filepath);\n } catch (TransformerException e) {\n throw new XMLException(e, Factory.UNKNOWN_ERROR);\n }\n }", "public void writeToFile(String fileName, String xml) {\n\t\ttry {\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(fileName));\n\t\t\tbw.write(xml);\n\t\t\tbw.close();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }", "private void outputToFile(String filename) throws FileNotFoundException, IOException {\n\t\tBufferedWriter writer = new BufferedWriter(\n\t\t\t\tnew FileWriter(filename+\".tmp\"));\n\t\twriter.write(VERIFY_STRING + \"\\n\");\n\n\t\t// output automata info\n\t\twriter.write(machine.getName() + \"\\n\");\n\t\twriter.write(machine.getType() + \"\\n\");\n\n\t\t// output state info\n\t\tfor (State state : machine.getStates()) {\n\t\t\twriter.write(\"STATE\\n\");\n\t\t\twriter.write(state.getName() + \"\\n\");\n\t\t\twriter.write(state.isAccept() + \" \" + state.isStart() + \" \" + \n\t\t\t\t\tstate.getID() + \" \" + state.getGraphic().getX() + \" \" + \n\t\t\t\t\tstate.getGraphic().getY() + \"\\n\");\n\n\t\t\t// output transitions\n\t\t\tfor (Transition t : state.getTransitions())\n\t\t\t\twriter.write(t.getID() + \" \" + t.getInput() + \" \" + \n\t\t\t\t\t\tt.getNext().getID() + \"\\n\");\n\t\t}\n\t\twriter.close();\n\t}", "public void saveTimeline(Timeline timeline, File file) throws Exception {\n\n\t\tJAXBContext context = JAXBContext.newInstance(Timeline.class);\n\t\tMarshaller marshaller = context.createMarshaller();\n\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tmarshaller.marshal(timeline, file);\n\n\t}", "private void writeToFile(SVGGraphics2D generator, String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tif (!file.exists())\n\t\t\tfile.createNewFile();\n\t\tFileWriter fw = new FileWriter(file);\n\t\tPrintWriter writer = new PrintWriter(fw);\n\t\tgenerator.stream(writer);\n\t\twriter.close();\n\t}", "private void writeDeviceInfo() {\n StringBuffer text = new StringBuffer(getDeviceReport());\n dataWriter.writeTextData(text, \"info.txt\");\n }", "public static void writeTo(TraceList traceList,File file) throws IOException{\n\t\tString fileName=file.getName();\n\t\tString formatName=fileName.contains(\".\")?fileName.substring(fileName.indexOf('.')+1):\"png\";\n\t\tfor(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){\n\t\t\tif(formatName.endsWith(next.getSuffix())){\n\t\t\t\tnext.write(traceList,file);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tImageIO.write(TraceListViewer.renderColorImage(traceList),formatName,file);\n\t}", "private static void writeToOrder() throws IOException {\n FileWriter write = new FileWriter(path5, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Order> orders = Inventory.getOrderHistory();\n for (int i = 0; i < orders.size(); i++) {\n Order o = (Order) orders.get(i);\n\n String orderNum = String.valueOf(o.getOrderNumber());\n String UPC = String.valueOf(o.getUpc());\n String productName = o.getProductName();\n String distName = o.getDistributorName();\n String cost = String.valueOf(o.getCost());\n String quantity = String.valueOf(o.getQuantity());\n String isProcesed = String.valueOf(o.isProcessed());\n\n textLine =\n orderNum + \", \" + UPC + \", \" + quantity + \",\" + productName + \", \" + distName + \", \" + cost\n + \", \" + isProcesed;\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n print_line.close();\n\n }", "void writeToPath(Path path, TypeSystem typeSystem) throws IOException, SAXException;", "public abstract void writeToFile( );", "public void writeXml(Writer w) throws IOException {\n\t\t\tBufferedWriter bw = ((w instanceof BufferedWriter) ? ((BufferedWriter) w) : new BufferedWriter(w));\n\t\t\t\n\t\t\tbw.write(\"<\" + STATISTICS_TYPE +\n\t\t\t\t\t\" \" + DOC_COUNT_ATTRIBUTE + \"=\\\"\" + this.docCount + \"\\\"\" +\n\t\t\t\t\t\" \" + PENDING_DOC_COUNT_ATTRIBUTE + \"=\\\"\" + this.pendingDocCount + \"\\\"\" +\n\t\t\t\t\t\" \" + PROCESSING_DOC_COUNT_ATTRIBUTE + \"=\\\"\" + this.processingDocCount + \"\\\"\" +\n\t\t\t\t\t\" \" + FINISHED_COUNT_ATTRIBUTE + \"=\\\"\" + this.finishedDocCount + \"\\\"\" +\n\t\t\t\t\t\">\");\n\t\t\tbw.newLine();\n\t\t\t\n\t\t\tString[] docStates = this.getDocStates();\n\t\t\tfor (int s = 0; s < docStates.length; s++) {\n\t\t\t\tbw.write(\"<\" + STATUS_TYPE +\n\t\t\t\t\t\t\" \" + NAME_ATTRIBUTE + \"=\\\"\" + grammar.escape(docStates[s]) + \"\\\"\" +\n\t\t\t\t\t\t\" \" + DOC_COUNT_ATTRIBUTE + \"=\\\"\" + this.getStatusDocCount(docStates[s]) + \"\\\"\" +\n\t\t\t\t\t\t\"/>\");\n\t\t\t\tbw.newLine();\n\t\t\t}\n\t\t\t\n\t\t\tbw.write(\"</\" + STATISTICS_TYPE + \">\");\n\t\t\tbw.newLine();\n\t\t\t\n\t\t\tif (bw != w)\n\t\t\t\tbw.flush();\n\t\t}", "private static void printTrace(Integer runId, String traceString ) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the trace report\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".trace\";\n\t\t} else {\n\t\t\tfileName = fileName +\".trace\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(fileName, \"UTF-8\");\n\n\t\trepWriter.printf(\"%s\\n\",traceString);\n\n\t repWriter.close();\n\n\t}", "public void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n\n if (newXmlFile.getFile().getParentFile().exists() == false) {\n // System.out.println(\"Creating new directory\");\n\n if (newXmlFile.getFile().getParentFile().mkdirs() == false) {\n // System.out.println(\"Could not create new directory...\");\n }\n }\n\n try {\n // System.out.println(\"Saving -- \"\n // + newXmlFile.getFile().getAbsolutePath());\n jaxb.marshalToXmlFile(configXml, newXmlFile.getFile()\n .getAbsolutePath());\n newXmlFile.save();\n\n lf = newXmlFile;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n }", "protected abstract void writeFile();", "private void writeToFile(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName,true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void createXMLFileForGatePass(Report report) {\n\t\ttry{\n\t\t\tFile outDir = new File(report.getXmlFilePath()); \n\t\t\tboolean isDirCreated = outDir.mkdirs();\n\t\t\tif (isDirCreated)\n\t\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location created.\");\n\t\t\telse\n\t\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location already exist.\");\n\t\t\t\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\t\t\t\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"root\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\n\t\t\tElement studentList = doc.createElement(\"student\");\n\t\t\trootElement.appendChild(studentList);\n\t\t\t\n\t\t\tElement academicYear = doc.createElement(\"academicYear\");\n\t\t\tacademicYear.appendChild(doc.createTextNode((String) (report.getAcademicYear().getAcademicYearName()!= null ? report.getAcademicYear().getAcademicYearName() : \"\" )));\n\t\t\tstudentList.appendChild(academicYear);\n\t\t\t\t\n\t\t\tElement roll = doc.createElement(\"roll\");\n\t\t\troll.appendChild(doc.createTextNode((report.getReportCode().toString()!=null?report.getReportCode().toString():\"---------\")));\n\t\t\tstudentList.appendChild(roll);\n\t\t\t\n\t\t\tElement studentname = doc.createElement(\"studentname\");\n\t\t\tstudentname.appendChild(doc.createTextNode((report.getUpdatedBy()!=null?report.getUpdatedBy():\"---------------\")));\n\t\t\tstudentList.appendChild(studentname);\n\t\t\t\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\t\t\n\t\t\tStreamResult result = new StreamResult(new File(report.getXmlFilePath()+report.getXmlFileName()));\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t}catch (ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t\tlogger.error(\"\",pce);\n\t\t} catch (TransformerException tfe) {\n\t\t\ttfe.printStackTrace();\n\t\t\tlogger.error(tfe);\n\t\t}\n\n\t}", "static void writeToFiles() throws IOException {\n\n writeToFilePriceHistory();\n writeToFileEmployees();\n writeToFileInventory();\n writeToSaleItems();\n writeToOrder();\n writeToFileInventory();\n writeToRevenueLog();\n }", "public void saveToFile(Student entity) throws Exception{\n Document document = DocumentBuilderFactory\n .newInstance()\n .newDocumentBuilder()\n .parse(XMLfile);\n Element root = document.getDocumentElement();\n Element studentElement = document.createElement(\"student\");\n studentElement.setAttribute(\"serialNumber\",entity.getSerialNumber());\n root.appendChild(studentElement);\n\n appendChildWithText(document, studentElement, \"name\", entity.getName());\n appendChildWithText(document, studentElement, \"group\", String.valueOf(entity.getGroup()));\n appendChildWithText(document, studentElement, \"id\", entity.getId().toString());\n\n Transformer transformer =\n TransformerFactory.newInstance().newTransformer();\n transformer.transform(new DOMSource(root),\n new StreamResult(new FileOutputStream(\n XMLfile)));\n }", "public static void dump(String filename, ISOLayout layout) {\r\n System.out.println(xml(filename, layout));\r\n }", "public void outputToFile(StatementList original, StatementList mutant)\n {\n if (comp_unit == null) \n \t return;\n\t\tif(original.toString().equalsIgnoreCase(mutant.toString()))\n\t\t\treturn;\n String f_name;\n num++;\n f_name = getSourceName(\"SDL\");\n String mutant_dir = getMuantID(\"SDL\");\n\n try \n {\n\t\t PrintWriter out = getPrintWriter(f_name);\n\t\t SDL_Writer writer = new SDL_Writer(mutant_dir, out);\n\t\t writer.setMutant(original, mutant);\n writer.setMethodSignature(currentMethodSignature);\n\t\t comp_unit.accept( writer );\n\t\t out.flush(); \n\t\t out.close();\n } catch ( IOException e ) \n {\n\t\t System.err.println( \"fails to create \" + f_name );\n } catch ( ParseTreeException e ) {\n\t\t System.err.println( \"errors during printing \" + f_name );\n\t\t e.printStackTrace();\n }\n }", "private void printFile(Products print, String ufilename) {\n\t\tFile file = new File(\"output\"+File.separator+ufilename+fileId+\".xml\"); \n\t\tSystem.out.println(\"Exporting : \"+ file);\n\t\tJAXBContext jaxbContext;\n\t\ttry {\n\t\t\tjaxbContext = JAXBContext.newInstance(Products.class); \n\t\t\tMarshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);\n\t\t\tjaxbMarshaller.setProperty(\"com.sun.xml.internal.bind.xmlHeaders\", \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);\n\t\t\tjaxbMarshaller.marshal(print, file); // prints the file\n\t\t\t// \t\t jaxbMarshaller.marshal(products, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void changeXMLFile() throws IOException {\n File orig = new File(RunnerClass.homedir + \"launch4j.xml\");\n File custom = new File(RunnerClass.homedir + \"launch4j2.xml\");\n BufferedReader br = new BufferedReader(new FileReader(orig));\n PrintWriter pw = new PrintWriter(new FileWriter(custom));\n int line = 0;\n String s;\n //Reads all lines, and replaces 5th line with new destination file\n while ((s = br.readLine()) != null) {\n line++;\n if (line == 5)\n pw.println(\" <outfile>\" + exeF.getCanonicalPath() + \"</outfile>\");\n else if(line == 18)\n pw.println(\" <minVersion>\"+ getFullVersion(RunnerClass.mf.generalOptionalPanel.javaVersion.getText().trim()) +\"</minVersion>\");\n else\n pw.println(s);\n }\n br.close();\n pw.close();\n //Deletes original file, renames temp to original\n RunnerClass.logger.info(\"del: \" + orig.delete());\n RunnerClass.logger.info(\"ren: \" + custom.renameTo(orig));\n }", "public File makeXML(String key, int layerID, String value1, String time1, int totalCopies1, int copyNum1, boolean timerType1, String userId, String time, Certificate cert) {\n\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n Element key1 = document.createElement(\"Search_Result_for\" + key);\n document.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element layerid = document.createElement(\"layerid\");\n\n key1.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(layerID));\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value1));\n layerid.appendChild(Value);\n\n Element timer = document.createElement(\"timer\");\n timer.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(timer);\n\n Element totcopies = document.createElement(\"totcopies\");\n totcopies.appendChild(document.createTextNode(String.valueOf(totalCopies1)));\n layerid.appendChild(totcopies);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum1)));\n layerid.appendChild(copynum);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType1)));\n layerid.appendChild(timertype);\n\n Element userid = document.createElement(\"userid\");\n userid.appendChild(document.createTextNode(userId));\n layerid.appendChild(userid);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(time2);\n\n /*Element cert1 = document.createElement(\"cert\");\n cert1.appendChild(document.createTextNode(String.valueOf(cert)));\n layerid.appendChild((Node) cert);*/\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(layerID + \"_Search Result for \" + key + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n System.out.println(\"Done creating XML File\");\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(layerID + \"_Search Result for \" + key + \".xml\");\n return file;\n }", "private void writeFile(TimerEntity entity) {\n final File file = fileName(entity.getTimedObjectId(), entity.getId());\n\n FileOutputStream fileOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file, false);\n final Marshaller marshaller = factory.createMarshaller(configuration);\n marshaller.start(new OutputStreamByteOutput(fileOutputStream));\n marshaller.writeObject(entity);\n marshaller.finish();\n fileOutputStream.flush();\n fileOutputStream.getFD().sync();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n logger.error(\"IOException closing file \", e);\n }\n }\n }\n }", "private void writeTextFile(\r\n\t\t\tGDMSMain theMainHomePage,\r\n\t\t\tArrayList<QtlDetailElement> listOfAllQTLDetails, HashMap<Integer, String> hmOfQtlPosition, HashMap<String, Integer> hmOfQtlNameId,\r\n\t\t\tHashMap<Integer, String> hmOfQtlIdandName, String strSelectedExportType, boolean bQTLExists) throws GDMSException {\n\t\t\r\n\t\t\r\n\t\tString strFlapjackTextFile = \"Flapjack\";\r\n\t\tFile baseDirectory = theMainHomePage.getMainWindow().getApplication().getContext().getBaseDirectory();\r\n\t\tFile absoluteFile = baseDirectory.getAbsoluteFile();\r\n\r\n\t\tFile[] listFiles = absoluteFile.listFiles();\r\n\t\tFile fileExport = baseDirectory;\r\n\t\tfor (File file : listFiles) {\r\n\t\t\tif(file.getAbsolutePath().endsWith(\"Flapjack\")) {\r\n\t\t\t\tfileExport = file;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString strFilePath = fileExport.getAbsolutePath();\r\n\t\t//System.out.println(\"strFilePath=:\"+strFilePath);\r\n\t\tgeneratedTextFile = new File(strFilePath + \"\\\\\" + strFlapjackTextFile + \".txt\");\r\n\r\n\t\t/**\twriting tab delimited qtl file for FlapJack \r\n\t\t * \tconsisting of marker chromosome & position\r\n\t\t * \r\n\t\t * **/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//factory = new ManagerFactory(GDMSModel.getGDMSModel().getLocalParams(), GDMSModel.getGDMSModel().getCentralParams());\r\n\t\t\tfactory=GDMSModel.getGDMSModel().getManagerFactory();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOntologyDataManager ontManager=factory.getOntologyDataManager();\r\n\t\t\t*/\r\n\t\t\tFileWriter flapjackTextWriter = new FileWriter(generatedTextFile);\r\n\t\t\tBufferedWriter flapjackBufferedWriter = new BufferedWriter(flapjackTextWriter);\r\n\t\t\t//getAllelicValuesByGidsAndMarkerNames\r\n\t\t\t//genoManager.getAlle\r\n\t\t\t//\t\t\t fjackQTL.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\");\r\n\t\t\tflapjackBufferedWriter.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\\teffect\");\r\n\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\tfor (int i = 0 ; i < listOfAllQTLDetails.size(); i++){\r\n\t\t\t\t//System.out.println(listOfAllQTLDetails.get(i));\r\n\t\t\t\tQtlDetailElement qtlDetails = listOfAllQTLDetails.get(i);\r\n\t\t\t\t\r\n\t\t\t\t/*QtlDetailsPK id = qtlDetails.getQtlName().get.getId();\r\n\t\t\t\tInteger qtlId = id.getQtlId();*/\r\n\t\t\t\t//String strQtlName = hmOfQtlIdandName.get(qtlId);\r\n\t\t\t\tString strQtlName =qtlDetails.getQtlName();\r\n\t\t\t\tint qtlId=hmOfQtlNameId.get(strQtlName);\r\n\t\t\t\t//qtlDetails.get\r\n\t\t\t\t//Float clen = qtlDetails.getClen();\r\n\t\t\t\t//Float fEffect = qtlDetails.getEffect();\r\n\t\t\t\tint fEffect = qtlDetails.getEffect();\r\n\t\t\t\tFloat fMaxPosition = qtlDetails.getMaxPosition();\r\n\t\t\t\tFloat fMinPosition = qtlDetails.getMinPosition();\r\n\t\t\t\t//Float fPosition = qtlDetails.getPosition();\r\n\t\t\t\tString fPosition = hmOfQtlPosition.get(qtlId);\r\n\t\t\t\tFloat frSquare = qtlDetails.getRSquare();\r\n\t\t\t\tFloat fScoreValue = qtlDetails.getScoreValue();\r\n\t\t\t\tString strExperiment = qtlDetails.getExperiment();\r\n\t\t\t\t//String strHvAllele = qtlDetails..getHvAllele();\r\n\t\t\t\t//String strHvParent = qtlDetails.getHvParent();\r\n\t\t\t\t//String strInteractions = qtlDetails.getInteractions();\r\n\t\t\t\tString strLeftFlankingMarker = qtlDetails.getLeftFlankingMarker();\r\n\t\t\t\tString strLinkageGroup = qtlDetails.getChromosome();\r\n\t\t\t\t//String strLvAllele = qtlDetails.getLvAllele();\r\n\t\t\t\t//String strLvParent = qtlDetails.getLvParent();\r\n\t\t\t\tString strRightFM = qtlDetails.getRightFlankingMarker();\r\n\t\t\t\t//String strSeAdditive = qtlDetails.getSeAdditive();\r\n\t\t\t\t\r\n\t\t\t\t//String strTrait = qtlDetails.getTrait();\r\n\t\t\t\tString strTrait = qtlDetails.getTRName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(strQtlName + \"\\t\" + strLinkageGroup + \"\\t\" + fPosition + \"\\t\" + fMinPosition + \"\\t\" + fMaxPosition + \"\\t\" +\r\n\t\t\t\t\t\tstrTrait + \"\\t\" + strExperiment + \"\\t \\t\" + fScoreValue + \"\\t\" + frSquare+\r\n\t \"\\t\" + strLeftFlankingMarker+\"/\"+strRightFM + \"\\t\" + fEffect);\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tflapjackBufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GDMSException(e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t}" ]
[ "0.6730299", "0.63716745", "0.62521386", "0.6070341", "0.58757055", "0.58640474", "0.5842996", "0.5805303", "0.57541585", "0.57206017", "0.5714138", "0.5699438", "0.5648301", "0.5630227", "0.5629195", "0.55780494", "0.5548935", "0.5546973", "0.5544201", "0.5523845", "0.5513155", "0.5494343", "0.5486056", "0.54846513", "0.5479321", "0.5478208", "0.54372", "0.542811", "0.54258806", "0.54171646", "0.540993", "0.540913", "0.5396628", "0.5374527", "0.5373227", "0.5346724", "0.53428215", "0.5339387", "0.5337885", "0.5337351", "0.5337194", "0.5323055", "0.5300862", "0.5281845", "0.528076", "0.5280686", "0.526642", "0.52643085", "0.52366483", "0.52300847", "0.5227175", "0.5212637", "0.5210939", "0.5205183", "0.52014434", "0.5199554", "0.5193333", "0.5192855", "0.51777786", "0.51584524", "0.5149595", "0.5146354", "0.5140298", "0.51240665", "0.5123148", "0.5120738", "0.51160014", "0.5114391", "0.511306", "0.5101736", "0.5101091", "0.5093743", "0.50746965", "0.5072717", "0.507054", "0.50665814", "0.5060009", "0.5048256", "0.50474936", "0.50457203", "0.5044654", "0.5044122", "0.50439125", "0.50429714", "0.5030645", "0.50284857", "0.5024608", "0.5011205", "0.50084835", "0.49990055", "0.49956146", "0.49930483", "0.4991079", "0.49880034", "0.49856552", "0.49828333", "0.49650434", "0.49619147", "0.49614623", "0.49606535" ]
0.76555425
0
Save the trace to the given file
public void setTraceFile(String fileName) { this.filename = fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }", "public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException {\n FileOutputStream fos = new FileOutputStream(file);\n WorkflowTraceSerializer.write(fos, trace);\n }", "void write(TraceList traceList,File file) throws IOException;", "public void saveToFile(final File file) throws IOException, AnalysisConfigurationException;", "public abstract void saveToFile(PrintWriter out);", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "private void saveToFile(File file) throws IOException {\n FileWriter fileWriter = null;\n try {\n fileWriter = new FileWriter(file);\n fileWriter.write(getSaveString());\n }\n finally {\n if (fileWriter != null) {\n fileWriter.close();\n }\n }\n }", "void saveToFile(String filename) throws IOException;", "public void saveToFile() {\n FileOutputStream fos = null;\n try {\n //write the object into file\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(travelGUI.getTravelAgent());\n oos.flush();\n oos.close();\n }\n catch (IOException ioe) {\n System.out.println(ioe.getMessage());\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }", "public void save(String fileName) throws IOException;", "void save(File file);", "public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}", "void save(String fileName);", "public void saveToFile(File file) throws CoreException {\n\tOutputStream stream = null;\n\n\ttry {\n\t stream = new FileOutputStream(file);\n\t saveToStream(stream);\n\n\t} catch (IOException e) {\n\t throwWriteException(e);\n\n\t} finally {\n\t try {\n\t\tif (stream != null)\n\t\t stream.close();\n\t } catch (IOException e) {\n\t }\n\t}\n }", "void save(String filename);", "String saveToFile () throws Exception {\n\n File backupFile = new File(\"../dataBackup.txt\");\n\n// checks if backup file exists, if yes, it attempts to delete it\n if (backupFile.exists() && !backupFile.delete())\n return (\"Save terminated: backup could not be deleted\");\n// attempts to rename file to backup file\n if (!file.renameTo(backupFile))\n return (\"Save terminated: backup could not be created\");\n\n// creates custom writer\n Writer writer = new Writer(new FileWriter(file));\n\n// cycles through all timelines and all their events, writing all into the same file\n for (Timeline timeline : timelines) {\n writer.writeTimeline(timeline);\n for (Event event : timeline.events) {\n writer.writeEvent(event);\n }\n }\n\n writer.close();\n return (\"Save finished successfully\");\n }", "static void save(Schedules schedules, String filename) throws IOException, RBEConfigObjectException\n {\n\t\tFileWriter fw = new FileWriter(filename);\n\t\tschedules.toXML(fw);\n\t\tfw.close();\n }", "public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}", "void saveAs() {\n writeFile.Export();\n }", "public void saveTimeline(Timeline timeline, File file) throws Exception {\n\n\t\tJAXBContext context = JAXBContext.newInstance(Timeline.class);\n\t\tMarshaller marshaller = context.createMarshaller();\n\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tmarshaller.marshal(timeline, file);\n\n\t}", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "public static void writeSave(String filepath, ISaveConfiguration scores) {\n try {\n Element root = Writer.buildDocumentWithRoot(DATA_TYPE);\n Document document = root.getOwnerDocument();\n\n addSaves(document, root, scores);\n\n Writer.writeOutput(document, filepath);\n } catch (TransformerException e) {\n throw new XMLException(e, Factory.UNKNOWN_ERROR);\n }\n }", "public void save(File file) throws Exception {\n\t\tFileOutputStream fos = new FileOutputStream(file);\t\t\n\t\tfos.write(getStream().getData());\n\t\tfos.close();\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save (File argFile) throws IOException;", "public void save(File file) {\n //new FileSystem().saveFile(addressBook, file);\n }", "public void recordOrder(){ \n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Tea);//writes into the file contents of String Tea\n output.close();//closes file\n }", "private static void save(Aircraft ac, String fileName) {\n\t\ttry {\n\t\t\tbw = new BufferedWriter(new FileWriter(fileName, true));\n\t\t\tbw.append(ac.toString().replace(\"\\n\", \"\\r\\n\"));\n\t\t\tbw.newLine();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IO ERROR received: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void saveFile()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\t\n\t\tfor(CSVItem cItem : itemList)\n\t\t{\n\t\t\tsb.append(cItem.buildCSVString()).append(newLine);\n\t\t\t\n\t\t}\n\t\tString fileString = sb.toString();\n\t\t\n\t\t File newTextFile = new File(filePath);\n\n FileWriter fw;\n\t\ttry {\n\t\t\tfw = new FileWriter(newTextFile);\n\t\t\t fw.write(fileString);\n\t\t fw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\n\t}", "public abstract void save(FileWriter fw) throws IOException;", "public static void save(DSAGraph objToSave, String filename)\n {\n FileOutputStream fileStrm;\n ObjectOutputStream objStrm;\n\n try\n {\n fileStrm = new FileOutputStream(filename); //Underlying stream\n objStrm = new ObjectOutputStream(fileStrm); //Object serialization stream\n objStrm.writeObject(objToSave); //Serialize and save to filename\n objStrm.close();//Clean up\n }\n catch (Exception e)\n { //should do more here\n throw new IllegalArgumentException(\"Unable to save object to file: \" + e);\n }\n }", "public void saveToFile(String file) throws IOException {\n if (file == null) {\n throw new IllegalArgumentException(\"file may not be null\");\n }\n \n save(new File(file));\n }", "public void writeToFile(File file) {\n\n\t}", "public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "private void writeFile(TimerEntity entity) {\n final File file = fileName(entity.getTimedObjectId(), entity.getId());\n\n FileOutputStream fileOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file, false);\n final Marshaller marshaller = factory.createMarshaller(configuration);\n marshaller.start(new OutputStreamByteOutput(fileOutputStream));\n marshaller.writeObject(entity);\n marshaller.finish();\n fileOutputStream.flush();\n fileOutputStream.getFD().sync();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n logger.error(\"IOException closing file \", e);\n }\n }\n }\n }", "public static void Save(String filename) throws IOException {\n\t\tFileWriter fw=new FileWriter(filename);\r\n\t\tround=A1063307_GUI.round;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tfw.write(\"Round:\"+round+\",Turn:\"+who+\"\\n\");\r\n\t\tint t2=1;\r\n\t\twhile(t2<(linenumber)) {\r\n\t\t\tint zz=0;\r\n\t\t\twhile(zz<5) {\r\n\t\t\t\tif(zz==0) {\t\t\r\n\t\t\t\t\tch[t2].location=ch[t2].location%20;\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].location)+\",\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(zz==1){\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].CHARACTER_NUMBER)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(zz==2){\r\n\t\t\t\t\tfw.write(Integer.toString(ch[t2].money)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t else if(zz==3){\r\n\t\t\t \tfw.write(Integer.toString(ch[t2].status)+\",\");\r\n\t\t\t \r\n\t\t\t \t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfw.write(ch[t2].IMAGE_FILENAME);\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\tzz++;\r\n\t\t\t}\r\n\t\t\tfw.write(\"\\n\");\r\n\t\t\tt2++;\r\n\t\t}\r\n\t\tfw.close();\r\n\t\tFileWriter fw1=new FileWriter(\"Land.txt\");\r\n\t\tfw1.write(\"LOCATION_NUMBER, owner\\n\");\r\n\t\tfor(int i=1;i<17;i++) {\r\n\t\t\tfw1.write(Land[i].PLACE_NUMBER+\",\"+Land[i].owner+\"\\n\");\r\n\t\t}\r\n\t\tfw1.close();\r\n\t}", "public void saveToFile(Map<String, T> data) throws IOException{\n\t\tOutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n\n // serialize the Map\n output.writeObject(data);\n output.close();\n\t}", "public void saveToFile(File file, Model model) throws IOException;", "public void save(String filename) {\n\n PrintWriter out = null;\n\n try {\n out = new PrintWriter(new BufferedWriter(new FileWriter(filename)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n out.println(undoCommands);\n out.close();\n }", "void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;", "public void saveWorkflow(String filename);", "private void saveGraph() {\n try(FileOutputStream fileOut = new FileOutputStream(graphPath + OVERLAY_GRAPH);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut))\n {\n objectOut.writeObject(graph);\n System.out.println(\"The overlay graph was successfully written to a file\");\n } catch (Exception ex) {\n System.out.println(\"Error writing the overlay graph\");\n ex.printStackTrace();\n }\n }", "public static void saveStudRecsToFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tMarshaller m = context.createMarshaller();\r\n\t\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = new StudRecsWrapper();\r\n\t\t\twrapper.setStudRecs(studRecs);\r\n\t\t\t\r\n\t\t\tm.marshal(wrapper, file);\r\n\t\t\tSystem.out.println(\"File saved!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot save file, check write permissions!\");\r\n\t\t}\r\n\t}", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "public static void saveFile(State state) throws Exception{\n\n buildDoc();\n writePreferences(state.language, state.background, state.pastTurtles.size());\n\n writeTurtles(state.pastTurtles);\n writeLines(state.pastLines);\n\n createFile(STATE_FILE);\n\n }", "private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }", "public File write(String pathToFile) throws IOException {\r\n\r\n File file = new File(pathToFile);\r\n\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n\r\n FileWriter fw = new FileWriter(file);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n\r\n\r\n // If the header is empty leave out the line\r\n if (!_header.equals(\"\")) {\r\n bw.write(_header);\r\n bw.newLine();\r\n }\r\n\r\n Set<EFEdge> edgesSet = (Set<EFEdge>) _graph.edgeSet();\r\n\r\n for (EFEdge efEdge : edgesSet) {\r\n bw.write(efEdge.formatted());\r\n bw.newLine();\r\n }\r\n\r\n bw.close();\r\n\r\n return file;\r\n }", "private String saveCrashReportFile() {\r\n try {\r\n Log.d(LOG_TAG, \"Writing crash report file.\");\r\n long timestamp = System.currentTimeMillis();\r\n String isSilent = mCrashProperties.getProperty(IS_SILENT_KEY);\r\n String fileName = (isSilent != null ? SILENT_PREFIX : \"\") + \"stack-\" + timestamp + \".stacktrace\";\r\n FileOutputStream trace = mContext.openFileOutput(fileName, Context.MODE_PRIVATE);\r\n mCrashProperties.store(trace, \"\");\r\n trace.flush();\r\n trace.close();\r\n return fileName;\r\n } catch (Exception e) {\r\n Log.e(LOG_TAG, \"An error occured while writing the report file...\", e);\r\n }\r\n return null;\r\n }", "@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}", "public void save(File filename) throws IOException {\n ObjectOutputStream outputStream = null;\n try {\n outputStream = new ObjectOutputStream(new FileOutputStream(filename));\n outputStream.writeObject(this.getHighScores());\n } catch (IOException e) {\n System.out.println(\"cannot save to file\");\n } finally {\n if (outputStream != null) { // Exception might have happened at constructor\n try {\n outputStream.close();\n } catch (IOException e) {\n System.out.println(\" Failed closing the file !\");\n }\n }\n }\n }", "private void writeToFile(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName,true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveToFile(File outputFile) throws IOException {\n PrintWriter writer = new PrintWriter(outputFile);\n\n writer.write(\"# Exported by FrogLord\" + Constants.NEWLINE);\n for (Tuple3<Float, Float, Float> vertex : this.vertices)\n writer.write(\"v \" + vertex.getA() + \" \" + vertex.getB() + \" \" + vertex.getC() + Constants.NEWLINE);\n\n for (Tuple2<Float, Float> normal : this.normals)\n writer.write(\"vt \" + normal.getA() + \" \" + normal.getB() + Constants.NEWLINE);\n\n writer.close();\n }", "public boolean save(String file);", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "private void save(WorkPanel panel, File file) {\n\t\tManagement.getScheduler().execute(() -> {\n\t\t\ttry {\n\t\t\t\tConfigSystem.saveFile(panel, file);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tWindowManager.getDialogs().showError(\"Fehler beim Schreiben\", ex);\n\t\t\t}\n\t\t});\n\t}", "public void save(File filename) throws IOException {\n FileOutputStream fos = new FileOutputStream(filename);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.close();\n }", "public void save(String filename) throws IOException\n {\n DataOutputStream output;\n\n try\n {\n output = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(new File(filename))));\n }\n catch (Exception e)\n {\n throw new IOException(\"Cannot open output file \" + filename + \":\" + e.getMessage());\n }\n save(output);\n output.flush();\n output.close();\n }", "public void saveCurrentFile(File file) {\n\t\tPrintWriter writer;\n\t\ttry {\n\t\t\twriter = new PrintWriter(file);\n\t\t\twriter.write(frame.textArea.getText());\n\t\t\tframe.originalText=frame.textArea.getText();\n\t\t\twriter.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "@Override\n public void save(final String filename) throws IOException {\n Filer.getInstance().save(this, DGraphIOFactory.getInstance(), filename);\n }", "public void saveGame(File fileLocation);", "private void writeCheckpoint(String filename) {\n File file = new File(checkpointDir, filename);\n try {\n geneticProgram.savePopulation(new FileOutputStream(file));\n } catch (FileNotFoundException e) {\n log.log(Level.WARNING, \"Exception in dump\", e);\n }\n }", "public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }", "private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void saveFile(File file){\n\t\ttry{\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\r\n\t\t\t\r\n\t\t\tfor(QuizCard card:cardList){\r\n\t\t\t\twriter.write(card.getQuestion() + \"/\");\r\n\t\t\t\twriter.write(card.getAnswer() + \"\\n\");\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t} catch (IOException ex){\r\n\t\t\tSystem.out.println(\"couldn't write the cardList out\");\r\n\t\t\tex.printStackTrace();}\r\n\t}", "@Override\n public void setSaveFile(File file)\n {\n \n }", "private static void appendToTraceFile(Integer runId, String traceString ) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the trace report\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\t\t\t\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".trace\";\n\t\t} else {\n\t\t\tfileName = fileName +\".trace\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(new FileOutputStream(fileName,true));\n\n\t\trepWriter.printf(\"%s\\n\",traceString);\n\n\t repWriter.close();\n\n\t}", "private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}", "public void saveAsFile(String path)\n {\n call(\"SaveAsFile\", path);\n }", "public void storeToFile() throws IOException {\n\t\t\n\t\tDLProgramStorer storer = new DLProgramStorerImpl();\n\t\t\n\t\t//String datalogFile = inputCKR.getGlobalOntologyFilename() + \".dlv\";\n\t\t//String datalogFile = \"./testcase/output.dlv\";\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\tFileWriter writer = new FileWriter(outputFilePath);\n\t\tstorer.store(datalogCKR, writer);\n\t\t//writer.flush();\n\t\twriter.close();\n\t\t\n\t\t//System.out.println(\"CKR program saved in: \" + outputFilePath);\n\t}", "public static void saveObj(Object obj, File file)\n {\n try(ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)))\n {\n oos.writeObject(obj);\n }\n \n catch(IOException e)\n {\n JOptionPane.showMessageDialog(null, \"[Error] Failed to save file: \" + e.getMessage());\n }\n }", "private void saveTree(File saveFile) throws FileNotFoundException {\r\n\t\tPrintStream ps = new PrintStream(saveFile); // Prepare to output to save file\r\n\t\tsaveTree(ps, getRootNode());\r\n\t\tps.close(); // Close the save file\r\n\t}", "public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }", "static void writeGPXFile(Trail trail, Context context) {\r\n if(gpxParser == null)\r\n buildParser();\r\n\r\n GPX gpx = parseTrailtoGPX(trail);\r\n\r\n System.out.println(\"~~~~~~~~~~~~~~~\"+trail.getMetadata().getName());\r\n\r\n //create a new file with the given name\r\n File file = new File(context.getExternalFilesDir(null), trail.getMetadata().getName()+\".gpx\");\r\n FileOutputStream out;\r\n try {\r\n out = new FileOutputStream(file);\r\n gpxParser.writeGPX(gpx, out);\r\n } catch(FileNotFoundException e) {\r\n AlertUtils.showAlert(context,\"File not found\",\"Please notify the developers.\");\r\n } catch (TransformerException e) {\r\n AlertUtils.showAlert(context,\"Transformer Exception\",\"Please notify the developers.\");\r\n } catch (ParserConfigurationException e) {\r\n AlertUtils.showAlert(context,\"Parser Exception\",\"Please notify the developers.\");\r\n }\r\n }", "@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}", "private static void writeToFile(HighScore[] scoresToSave) throws IOException {\n FileWriter writer = new FileWriter(SCORE_FILE_NAME);\n \n for (int i = 0; i < scoresToSave.length; i++) {\n //Don't write more than the maximum number of scores to save\n if (i > NUMBER_OF_SCORES_TO_SAVE)\n break;\n \n String str = scoresToSave[i].toString();\n writer.write(str);\n writer.write(System.getProperty(\"line.separator\"));\n }\n \n writer.close();\n }", "private void saveFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.saveFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tpopulateRecentMenu();\r\n\t\t\tframe.setTitle(openFile.getName());\r\n\t\t\tedit = false;\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void saveEntity(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName, true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save() {\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(\"fileSave.txt\");\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tfw = new FileWriter(file);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\t//string to hold text to write on new file\n\t\t\tString text = textArea.getText();\n\t\t\t//write file\n\t\t\tif (text != null) {\n\t\t\t\tbw.write(text);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (bw != null) {\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie2) {\n\t\t\t\tie2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void save(String fileName)\r\n\t{\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(fileName);\r\n\t\t\tsave(fw);\r\n\t\t} catch (Exception e) {\r\n\t\t\torg.apache.commons.logging.LogFactory.getLog(this.getClass()).error(e);\r\n\t\t}\r\n\t}", "public void saveFile() throws FileNotFoundException {\r\n try {\r\n PrintWriter out = new PrintWriter(FILE_NAME);\r\n //This puts back the labels that the loadFile removed\r\n out.println(\"date,cust_email,cust_location,product_id,product_quantity\");\r\n int i = 0;\r\n\r\n while (i < orderInfo.size()) {\r\n String saved = orderInfo.get(i).toString();\r\n out.println(saved);\r\n i++;\r\n }\r\n out.close();\r\n } catch (FileNotFoundException e) {\r\n }\r\n\r\n }", "public static void save(final String filename, final Serializable object)\r\n throws IOException {\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n\r\n fos = new FileOutputStream(filename);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(object);\r\n out.close();\r\n }", "void saveSklepToFile(String fileName) throws Exception {\r\n\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(fileName));\r\n\t\tout.writeObject(listOfAccounts);\r\n\t\tout.close();\r\n\t}", "private void outputToFile(String filename) throws FileNotFoundException, IOException {\n\t\tBufferedWriter writer = new BufferedWriter(\n\t\t\t\tnew FileWriter(filename+\".tmp\"));\n\t\twriter.write(VERIFY_STRING + \"\\n\");\n\n\t\t// output automata info\n\t\twriter.write(machine.getName() + \"\\n\");\n\t\twriter.write(machine.getType() + \"\\n\");\n\n\t\t// output state info\n\t\tfor (State state : machine.getStates()) {\n\t\t\twriter.write(\"STATE\\n\");\n\t\t\twriter.write(state.getName() + \"\\n\");\n\t\t\twriter.write(state.isAccept() + \" \" + state.isStart() + \" \" + \n\t\t\t\t\tstate.getID() + \" \" + state.getGraphic().getX() + \" \" + \n\t\t\t\t\tstate.getGraphic().getY() + \"\\n\");\n\n\t\t\t// output transitions\n\t\t\tfor (Transition t : state.getTransitions())\n\t\t\t\twriter.write(t.getID() + \" \" + t.getInput() + \" \" + \n\t\t\t\t\t\tt.getNext().getID() + \"\\n\");\n\t\t}\n\t\twriter.close();\n\t}", "default void save(String file) {\n save(new File(file));\n }", "public void saveInfoToFile(File file) {\n PrintWriter printFile = null;\n try {\n printFile = new PrintWriter(file);\n } catch (FileNotFoundException e) {\n e.getStackTrace();\n return;\n }\n ArrayList<Passenger> reservedPas = airplane.getAllReservedPas(false);\n reservedPas.addAll(airplane.getAllReservedPas(true));\n\n for (Passenger k : reservedPas) {\n String info = getReservedPassInfo(k);\n printFile.println(info);\n }\n printFile.close();\n }", "private boolean save(File file)\n {\n return save_tree(file, m_root, m_gameinfo);\n }", "public void saveToFile(SubjectDataContainer container, Path file) throws IOException {\n MoreFiles.createDirectoriesIfNotExists(file.getParent());\n try (BufferedWriter writer = Files.newBufferedWriter(file, StandardCharsets.UTF_8)) {\n GsonProvider.prettyPrinting().toJson(container.serialize(), writer);\n writer.flush();\n }\n }", "@Override\n\tpublic boolean save(String file) {\n\t\n\t\tGson gson = new GsonBuilder().create();\n\t\tJsonArray arrEdges = new JsonArray();\n\t\tJsonArray arrNodes = new JsonArray();\n\t\tCollection<node_data> arrV = this.dwg.getV();\n\t\tfor(node_data vertex : arrV) {\n\t\t\tJsonObject nodesObj = new JsonObject();\n\t\t\tgeo_location gl = vertex.getLocation();\n\t\t\tnodesObj.addProperty(\"pos\",String.valueOf(gl.x())+\",\"+String.valueOf(gl.y())+\",\"+String.valueOf(gl.z()));\n\t\t\tnodesObj.addProperty(\"id\",vertex.getKey());\n\t\t\tarrNodes.add(nodesObj);\n\t\t\tCollection<edge_data> arrE = this.dwg.getE(vertex.getKey());\n\t\t\tfor(edge_data edge : arrE) {\n\t\t\t\tJsonObject edgesObj = new JsonObject();\n\t\t\t\tedgesObj.addProperty(\"src\",edge.getSrc());\n\t\t\t\tedgesObj.addProperty(\"w\",edge.getWeight());\n\t\t\t\tedgesObj.addProperty(\"dest\",edge.getDest());\n\t\t\t\tarrEdges.add(edgesObj);\n\t\t\t}\n\t\t}\n\t\tJsonObject graphObj = new JsonObject();\n\t\tgraphObj.add(\"Edges\",arrEdges);\n\t\tgraphObj.add(\"Nodes\",arrNodes);\n\t\tString ans = gson.toJson(graphObj);\n\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(file));\n\t\t\tpw.write(ans);\n\t\t\tpw.close();\n\t\t}\n\t\tcatch (FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "public static void save(){\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tPrintWriter pw=new PrintWriter(f);\n\t\t\tpw.println(turn);\n\t\t\tpw.println(opponent.toString());\n\t\t\tfor(Unit u:punits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.println(\"End Player Units\");\n\t\t\tfor(Unit u:ounits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.println(\"End Opponent Units\");\n\t\t\tpw.println(priorities);\n\t\t\tpw.println(Arrays.asList(xpgains));\n\t\t\tpw.println(spikesplaced+\" \"+numpaydays+\" \"+activeindex+\" \"+activeunit.getID()+\" \"+weather+\" \"+weatherturn);\n\t\t\tpw.println(bfmaker.toString());\n\t\t\tpw.close();\n\t\t}catch(Exception e){e.printStackTrace();}\n\t}", "private void writeToFile(String pathName,Object logs) {\r\n try {\r\n File save = new File(pathName);\r\n FileOutputStream fileOutputStream = new FileOutputStream(save);\r\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\r\n objectOutputStream.writeObject(logs);\r\n // System.out.println(\"write successful for\"+pathName);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void writeToTextFile(String filename){\n try{\n FileWriter myWriter = new FileWriter(filename); \n myWriter.write(toString());\n myWriter.close();\n } \n catch(IOException e) { \n System.out.println(\"An error occurred.\"); \n e.printStackTrace();\n } \n }", "void writeToFile() throws IOException{\n\t\tString fileName = f.getTitle() + \".txt\";\n\t\tfileWrite = new BufferedWriter( new FileWriter(fileName));\n\t\tfileWrite.write(history);\n\t\tSystem.out.println(fileName + \" File Writing Successful!!\");\n\t\tSystem.out.println(\"Data in file :\\n\" + history);\n\t\tfileWrite.flush();\n\t\tFile file = new File(fileName);\n\t\tjava.awt.Desktop.getDesktop().open(file);\n\n\t}", "public void recordOrder(){\n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){//throws exception\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Coffee);//prints in file contents of Coffee\n output.close();//closes file\n }", "public void toFile() throws IOException {\n toFile(null);\n }", "public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }" ]
[ "0.71297747", "0.7077606", "0.69182914", "0.6890289", "0.67180425", "0.6639758", "0.6638523", "0.66178536", "0.6587224", "0.6579382", "0.6488126", "0.6474283", "0.6461926", "0.6390851", "0.63573706", "0.6341637", "0.6309036", "0.63077766", "0.62793875", "0.6271066", "0.62636715", "0.62229586", "0.62197757", "0.6185272", "0.61469024", "0.6143299", "0.61375517", "0.61182815", "0.611794", "0.60969204", "0.6072438", "0.6055857", "0.60400856", "0.60394776", "0.60313606", "0.6016693", "0.6006237", "0.5996265", "0.5991088", "0.5980393", "0.59710276", "0.5968689", "0.59677255", "0.5963978", "0.5963826", "0.59628165", "0.5961607", "0.59603465", "0.5952617", "0.593359", "0.5919449", "0.5918514", "0.5917537", "0.59101516", "0.59042186", "0.5901931", "0.5901659", "0.58955103", "0.58878607", "0.58812714", "0.5878309", "0.5877997", "0.5860184", "0.5859391", "0.5858619", "0.58580613", "0.5854221", "0.5850802", "0.5846941", "0.58438784", "0.58338463", "0.58320993", "0.58317786", "0.5826581", "0.5818399", "0.5814019", "0.58114564", "0.5810878", "0.58040595", "0.58034223", "0.57968634", "0.5781846", "0.57627416", "0.575338", "0.5750948", "0.5749262", "0.5748765", "0.57384384", "0.5724971", "0.572376", "0.571902", "0.5717247", "0.5716741", "0.5706817", "0.57017916", "0.5701738", "0.56980264", "0.5692185", "0.56775355", "0.56755215", "0.5672526" ]
0.0
-1
Compress the trace file
public void setTraceCompressed(boolean compressed) { this.traceCompressed = compressed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}", "private void compressArchive() throws Exception {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Compressing archive: \" + path);\n\t\t}\n\n\t\tFileOutputStream fout = new FileOutputStream(path + \".gz\");\n\t\tGZIPOutputStream gout = new GZIPOutputStream(fout);\n\t\tFileInputStream fin = new FileInputStream(path);\n\t\tbyte[] buf = new byte[blockSize];\n\t\tint len;\n\t\twhile ((len = fin.read(buf)) > 0) {\n\t\t\tgout.write(buf, 0, len);\n\t\t}\n\t\tfin.close();\n\n\t\t// flush and close gzip file\n\t\tgout.finish();\n\t\tgout.close();\n\n\t\t// unlink original archive\n\t\tFile file = new File(path);\n\t\tfile.delete();\n\t}", "public final void saveUncompressed(String path){\n ensureExistence(path);\n\n try (BufferedWriter idBufWriter = new BufferedWriter((new FileWriter(path + \"_id.txt\", false)));\n BufferedWriter trajBufWriter = new BufferedWriter((new FileWriter(path + \"_trajId.txt\", false)));\n BufferedWriter posBufWriter = new BufferedWriter((new FileWriter(path+ \"_pos.txt\", false)))) {\n\n for (Map.Entry<Integer, Map<String, Integer>> entry : index.entrySet()) {\n\n //write id\n idBufWriter.write(String.valueOf(entry.getKey()));\n idBufWriter.newLine();\n\n //sort inverted list\n List<Pair> l = new ArrayList<>(entry.getValue().size());\n for(Map.Entry<String, Integer> entry1 : entry.getValue().entrySet())\n l.add(new Pair(entry1));\n\n l.sort(Comparator.comparingInt(p -> p.trajid));\n\n //write inverted list\n\n for (Pair pair : l) {\n //write trjectory id\n trajBufWriter.write(pair.trajid + SEPARATOR_1);\n //write position\n posBufWriter.write(pair.pos + SEPARATOR_1);\n }\n trajBufWriter.newLine();\n posBufWriter.newLine();\n }\n\n idBufWriter.flush();\n trajBufWriter.flush();\n posBufWriter.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void Compress() {\n\t\t\n\t}", "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }", "public void compress() {\r\n fCharBuffer.compress();\r\n fStyleBuffer.compress();\r\n fParagraphBuffer.compress();\r\n }", "@Override\n public File compress() throws Exception\n {\n File dest = File.createTempFile(\"TMP\",\".tar.gz\");\n FileOutputStream fos = new FileOutputStream( dest );\n BufferedOutputStream bos = new BufferedOutputStream(fos);\n TarOutputStream out = new TarOutputStream(bos);\n tarFolder( null, folder.getAbsolutePath(), out );\n out.close();\n return dest;\n }", "private void writeArchive(Content content) throws Exception {\n\t\tString path = open();\n\t\tTranslateContent translate = new TranslateContent(content, path);\n\t\ttranslate.writeArchive();\n\n\t\t// compress archive file if +C used\n\t\tif (content.isCompressed()) {\n\t\t\tcompressArchive();\n\t\t}\n\t}", "private void unCompress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint bytesIn;\n\t\t\tZipFile rfoFile = new ZipFile(path + fileName);\n\t\t\tEnumeration<? extends ZipEntry> allFiles = rfoFile.entries();\n\t\t\twhile(allFiles.hasMoreElements())\n\t\t\t{\n\t\t\t\tZipEntry ze = (ZipEntry)allFiles.nextElement();\n\t\t\t\tInputStream is = rfoFile.getInputStream(ze);\n\t\t\t\tString fName = processSeparators(ze.getName());\n\t\t\t\tFile element = new File(tempDir + fName);\n\t\t\t\torg.reprap.Main.ftd.add(element);\n\t\t\t\tFileOutputStream os = new FileOutputStream(element);\n\t\t\t\twhile((bytesIn = is.read(buffer)) != -1) \n\t\t\t\t\tos.write(buffer, 0, bytesIn);\n\t\t\t\tos.close();\n\t\t\t}\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.unCompress(): \" + e);\n\t\t}\n\t}", "public String compressLogCollection();", "private ZipCompressor(){}", "public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetlogCount();\r\n\t\t\t\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tNetlogs netlogs = new Netlogs(result);\r\n\t\tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t\tSystem.out.println(path);\r\n\t\tpath = path.replace(\"WEB-INF/classes/\", \"\");\r\n\t\tString path1 = path + \"netlog/\";\r\n\t\tLong time = System.currentTimeMillis()/1000;\r\n\t\tXml2Java.beanToXML(netlogs,path1+\"145-330000-\"+time.toString()+\"-00001-WA-SOURCE_NETLOG_0001-0.xml\");\r\n\r\n\t\tZipUtil.ZipMultiFile(path1, path+\"145-353030334-330300-330300-netlog-00001.zip\");\r\n\t}", "protected static void instrumentJarFile(String pathToFile) throws IOException {\n File jarFile = new File(pathToFile);\n // Use tmp file for output (in the same directory).\n File newFile = File.createTempFile(\"any\", \".jar\", jarFile.getParentFile());\n ZipInputStream zis = null;\n ZipOutputStream zos = null;\n try {\n zis = new ZipInputStream(new FileInputStream(jarFile));\n zos = new ZipOutputStream(new FileOutputStream(newFile));\n for (ZipEntry entry = zis.getNextEntry(); entry != null; entry = zis.getNextEntry()) {\n String name = entry.getName();\n zos.putNextEntry(new ZipEntry(name));\n if (name.endsWith(\".class\")) {\n // We instrument classfiles and then write them to\n // new jar.\n byte[] classfileBuffer = FileUtil.loadBytes(zis, false);\n byte[] newClassfileBuffer = instrumentClassFile(classfileBuffer);\n zos.write(newClassfileBuffer);\n } else {\n int data;\n while ((data = zis.read()) != -1) {\n zos.write(data);\n }\n }\n zos.closeEntry();\n }\n } finally {\n FileUtil.closeAndIgnoreExceptions(zis);\n FileUtil.closeAndIgnoreExceptions(zos);\n }\n\n // Move new jar to old jar.\n // Files.move(newFile, jarFile, StandardCopyOption.REPLACE_EXISTING);\n FileUtil.copyBytes(newFile, jarFile);\n newFile.delete();\n }", "void markAndCompact(String path) throws IOException {\n for(int i = 0; i < stack.size(); i++){//loop to mark all used objects\r\n int id = stack.get(i);\r\n heapObject myObject = heap.get(id);\r\n if(!myObject.marked){//if not marked before then mark it and all children\r\n myObject.markChildren();\r\n }\r\n }\r\n int memoryPtr = 0;\r\n FileWriter csvWriter = new FileWriter(path);\r\n Collections.sort(IDs);\r\n System.out.println(\"\");\r\n for (int i = 0; i < IDs.size(); i++){//loop to update addresses in memory and write in the given file\r\n heapObject temp = heap.get(IDs.get(i).id);\r\n if(temp.marked){\r\n temp.memoryStart = memoryPtr;\r\n memoryPtr = memoryPtr + temp.size;\r\n temp.memoryEnd = memoryPtr;\r\n memoryPtr++;\r\n csvWriter.append(Integer.toString(temp.id));\r\n csvWriter.append(\",\");\r\n csvWriter.append(Integer.toString(temp.memoryStart));\r\n csvWriter.append(\",\");\r\n csvWriter.append(Integer.toString(temp.memoryEnd));\r\n csvWriter.append(\"\\n\");\r\n }\r\n }\r\n csvWriter.flush();\r\n csvWriter.close();\r\n }", "void compress( File input, File output, int level, int language )\r\n throws CompressionException;", "@Test\n @Ignore(\"Zip file compare have some problem\")\n public void testOutputCompressCsvMode() throws Throwable {\n testCompressFile(true);\n }", "public static void compress(String inFile) throws Exception{\n IO.Compressor compressor = new IO.Compressor(inFile);\n char[] charArray = compressor.getCharacters();\n Trie dictionary = new Trie();\n int num = 0; char ch;\n \n for(int i=0; i<charArray.length; ){\n\tString str = dictionary.find(charArray, i);\n\tdictionary.add(str);\n\tnum = dictionary.getIndex(str);\n\tch = dictionary.getChar(str);\n compressor.encode(num, ch);\n i += str.length();\n\n }//end for loop\n\n compressor.done();\n\n }", "@Override\n\tpublic void Decompress() {\n\t\t\n\t}", "@Test\n @Ignore(\"Zip file compare have some problem\")\n public void testOutputCompressDelimitedMode() throws Throwable {\n testCompressFile(false);\n }", "@Test\n\tpublic void generateCompressedFile() throws Exception {\n\t\tint sourceRecords = 10000000;\n\t\tint bufferSize = 1000;\n\t\tAssert.isTrue(sourceRecords % bufferSize == 0); // make sure its divisible without the remainder\n\t\tfinal int outerLoop = sourceRecords / bufferSize;\n\t\tfinal CountDownLatch latch = new CountDownLatch(outerLoop);\n\t\t\n\t\tExecutorService executor = Executors.newFixedThreadPool(8);\n\n\t\tfinal FileOutputStream fos = new FileOutputStream(new File(\"source/compressed.txt\"));\n\t\tfinal BufferedReader br = new BufferedReader(new FileReader(\"source/source.txt\"));\n\t\t\n\t\tfinal ArrayBlockingQueue<String> recordQueue = new ArrayBlockingQueue<String>(outerLoop);\n\t\texecutor.execute(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < outerLoop; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfos.write(recordQueue.poll(1000, TimeUnit.MILLISECONDS).getBytes());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tlatch.countDown();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tlong start = System.currentTimeMillis();\n\t\tfor (int i = 0; i < outerLoop; i++) {\n\t\t\tStringBuffer buffer = new StringBuffer(bufferSize * 230);\n\t\t\tfor (int j = 0; j < bufferSize; j++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tbuffer.append(line + \"\\n\");\n\t\t\t}\n\t\t\tfinal String bufferString = buffer.toString();\n\t\t\t\n\t\t\texecutor.execute(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString compressedRecord = compressRecord(bufferString) + \"\\n\";\n\t\t\t\t\t\trecordQueue.offer(compressedRecord);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}\n\n\t\tlatch.await();\n\t\tlong stop = System.currentTimeMillis();\n\t\tSystem.out.println(\"Compressed and written \" + sourceRecords + \" records in \" + (stop - start) + \" milliseconds\");\n\t\tfos.close();\n\t\tbr.close();\n\t}", "static public int defaultCompressThreshold () { throw new RuntimeException(); }", "public static void main(String[] args) throws IOException {\n\t\tFile targetFile = new File(\"D:\\\\program\\\\360cse\\\\360Chrome\\\\test.zip\");\n\t\tFile sourceFiles = new File(\"D:\\\\temple\\\\sysMenu-add.html\");\n\t\tboolean flag = compressZip(false, targetFile, sourceFiles);\n\t\tSystem.out.println(flag);\n\t}", "private void gzipFile(File file) throws IOException\n {\n InputStream input = null;\n GZIPOutputStream gzipOutput = null;\n try\n {\n input = new BufferedInputStream(new FileInputStream(file));\n\n String zippedPath = file.getAbsolutePath() + \".gz\";\n gzipOutput = new GZIPOutputStream(new BufferedOutputStream(new FileOutputStream(zippedPath)));\n\n int value = input.read();\n while (value >= 0)\n {\n gzipOutput.write(value);\n value = input.read();\n }\n gzipOutput.flush();\n gzipOutput.close();\n if (replaceOriginals)\n {\n file.delete();\n }\n }\n finally\n {\n if (input != null)\n {\n input.close();\n }\n if (gzipOutput != null)\n {\n gzipOutput.close();\n }\n }\n }", "@Test\n public void test() throws IOException {\n int numVertices = 0;\n \n //Step1: Compression\n DifferenceEncodingOutputStream deos = new DifferenceEncodingOutputStream(\n new FileOutputStream(\"/tmp/preferentialAttachment.dz\"));\n \n InputStream in = getClass().getResourceAsStream(\"/preferentialAttachment.graph\"); \n BufferedReader bin = new BufferedReader(new InputStreamReader(in));\n \n String line = null;\n while((line = bin.readLine()) != null) {\n int[] adj = getSorted(line);\n deos.writeAdjacency(adj);\n numVertices++;\n }\n deos.close();\n bin.close();\n in = getClass().getResourceAsStream(\"/preferentialAttachment.graph\"); \n bin = new BufferedReader(new InputStreamReader(in));\n \n //Step2: Decompression and verification\n DifferenceEncodingInputStream deis = new DifferenceEncodingInputStream(\n new FileInputStream(\"/tmp/preferentialAttachment.dz\"));\n \n OutputStream out = new FileOutputStream(\"/tmp/preferentialAttachmentDecompressed.graph\");\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(out));\n for(int i = 0; i < numVertices; i++) {\n int[] adj = deis.readAdjacency();\n bw.write(\"\"+adj[0]);\n \n int[] adjOrig = getSorted(bin.readLine());\n Assert.assertArrayEquals(adjOrig, adj);\n for(int j = 1; j < adj.length; j++) {\n bw.write(\" \");\n bw.write(\"\"+adj[j]); \n }\n bw.write(\"\\n\");\n }\n deis.close();\n bin.close();\n }", "private void generateTarFile() throws IOException {\n File folder = new File(backupTempDirPath);\n File[] srcFiles = folder.listFiles();\n if (srcFiles == null) {\n log.debug(\"no backup file found under directory {}\", backupTempDirPath);\n return;\n }\n\n try (FileOutputStream fileOutput = new FileOutputStream(filePath);\n TarArchiveOutputStream tarOutput = new TarArchiveOutputStream(fileOutput)) {\n // truncate file names if too long\n tarOutput.setLongFileMode(TarArchiveOutputStream.LONGFILE_TRUNCATE);\n for (File srcFile : srcFiles) {\n addToTarFile(srcFile, tarOutput);\n }\n } catch (IOException e) {\n log.error(\"failed to generate a backup tar file {}\", filePath);\n throw e;\n }\n\n log.info(\"backup tar file is generated at {}\", filePath);\n }", "public void toFile(String filename) {\n\t\tString serialized = Serializer.serializeLevelPack(this);\n\t\tSerializer.writeToFile(filename, serialized.getBytes());\n\t}", "private boolean compressOldFiles() {\n long now = System.currentTimeMillis();\n int count = 0;\n for (LogFile lf : knownFiles) {\n // avoid compressing entire archive at once\n if (lf.canCompress(now) && (count++ < 5)) {\n compress(lf.path);\n }\n }\n return count > 0;\n }", "@Test\n public void testDERIVATIVE_COMPRESS_CRC() throws IOException {\n// ZipMeVariables.getSINGLETON().setCRC___(true);\n// ZipMeVariables.getSINGLETON().setCOMPRESS___(true);\n// ZipMeVariables.getSINGLETON().setDERIVATIVE_COMPRESS_CRC___(true);\n\t Configuration.CRC=true;\n\t Configuration.COMPRESS=true;\n\t Configuration.DERIVATIVE_COMPRESS_CRC=true;\n if(Configuration.CRC && Configuration.COMPRESS && Configuration.DERIVATIVE_COMPRESS_CRC) { \n ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/src.zip\")));\n zout.crc.update(1);\n ZipEntry ze = new ZipEntry(\"C://\");\n zout.putNextEntry(ze);\n zout.hook41();\n assertTrue(zout.crc.crc == 0);\n\n zout.write(new byte[32], 0, 31);\n assertTrue(zout.size == 31);\n zout.closeEntry();\n assertTrue(ze.getCrc() == zout.crc.crc);\n }\n }", "public static void writeToJsonGzFile(Object jsonObj, Path filePath) throws JsonGenerationException, JsonMappingException, IOException {\n\n GZIPOutputStream gzipOS = new GZIPOutputStream(Files.newOutputStream(filePath));\n WritableByteChannel out = Channels.newChannel(gzipOS);\n\n ObjectMapper mapper = new ObjectMapper();\n byte[] jsonOut = mapper.writeValueAsBytes(jsonObj);\n out.write(ByteBuffer.wrap(jsonOut));\n out.close();\n\n }", "public static void compress(String s, String fileName) throws IOException {\n File file = new File(fileName);\n if (file.exists()){\n file.delete();\n }\n file.createNewFile();\n BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));\n char[] input = s.toCharArray();\n\n // tabulate frequency counts\n int[] freq = new int[R];\n for (int i = 0; i < input.length; i++)\n freq[input[i]]++;\n\n Node root = buildTrie(freq, out);\n\n // build code table\n String[] st = new String[R];\n buildCode(st, root, \"\");\n\n writeTrie(root, file);\n\n // print number of bytes in original uncompressed message\n BinaryStdOut.write(input.length);\n\n // use Huffman code to encode input\n for (int i = 0; i < input.length; i++) {\n String code = st[input[i]];\n for (int j = 0; j < code.length(); j++) {\n if (code.charAt(j) == '0') {\n BinaryStdOut.write(false);\n }\n else if (code.charAt(j) == '1') {\n BinaryStdOut.write(true);\n }\n else throw new IllegalStateException(\"Illegal state\");\n }\n }\n\n BinaryStdOut.close();\n }", "public static File writeObjectToFileNoExceptions(Serializable o, String filename)\n/* */ {\n/* 47 */ file = null;\n/* 48 */ ObjectOutputStream oos = null;\n/* */ try {\n/* 50 */ file = new File(filename);\n/* */ \n/* 52 */ oos = new ObjectOutputStream(new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(file))));\n/* 53 */ oos.writeObject(o);\n/* 54 */ oos.close();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 65 */ return file;\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 56 */ e.printStackTrace();\n/* */ } finally {\n/* 58 */ if (oos != null) {\n/* */ try {\n/* 60 */ oos.close();\n/* */ }\n/* */ catch (Exception ioe) {}\n/* */ }\n/* */ }\n/* */ }", "@Deprecated\n/* */ public void addCompression() {\n/* 162 */ List<COSName> filters = getFilters();\n/* 163 */ if (filters == null)\n/* */ {\n/* 165 */ if (this.stream.getLength() > 0L) {\n/* */ \n/* 167 */ OutputStream out = null;\n/* */ \n/* */ try {\n/* 170 */ byte[] bytes = IOUtils.toByteArray((InputStream)this.stream.createInputStream());\n/* 171 */ out = this.stream.createOutputStream((COSBase)COSName.FLATE_DECODE);\n/* 172 */ out.write(bytes);\n/* */ }\n/* 174 */ catch (IOException e) {\n/* */ \n/* */ \n/* 177 */ throw new RuntimeException(e);\n/* */ }\n/* */ finally {\n/* */ \n/* 181 */ IOUtils.closeQuietly(out);\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 186 */ filters = new ArrayList<COSName>();\n/* 187 */ filters.add(COSName.FLATE_DECODE);\n/* 188 */ setFilters(filters);\n/* */ } \n/* */ }\n/* */ }", "public void zip() {\n\t\tif (zipFile != null) {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\ttry (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile))) {\n\t\t\t\tzos.setLevel(ZipOutputStream.STORED);\n\t\t\t\tbyte[] buffer = new byte[4096];\n\t\t\t\tFiles.list(Paths.get(tool_builddir))\n\t\t\t\t\t\t.forEach(x -> {\n\t\t\t\t\t\t\tFile f = x.toFile();\n\t\t\t\t\t\t\tif (f.isFile() && !f.getName().contains(\".\")) {\n\t\t\t\t\t\t\t\ttry (FileInputStream fis = new FileInputStream(f)) {\n\t\t\t\t\t\t\t\t\tZipEntry zipEntry = new ZipEntry(f.getName());\n\t\t\t\t\t\t\t\t\tzos.putNextEntry(zipEntry);\n\t\t\t\t\t\t\t\t\tint count;\n\t\t\t\t\t\t\t\t\twhile ((count = fis.read(buffer)) >= 0) {\n\t\t\t\t\t\t\t\t\t\tzos.write(buffer, 0, count);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tzos.closeEntry();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\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\tout.println(\"Zipped to '\" + zipFile + \"' - \" + Duration.ofMillis(System.currentTimeMillis() - start));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t}", "private File createTar(Map<String, ByteString> fileContents) throws IOException {\n File tarFile = folder.newFile(\"coverage.tar\");\n try (TarArchiveOutputStream out =\n new TarArchiveOutputStream(new FileOutputStream(tarFile))) {\n for (Map.Entry<String, ByteString> file : fileContents.entrySet()) {\n TarArchiveEntry entry = new TarArchiveEntry(file.getKey());\n entry.setSize(file.getValue().size());\n\n out.putArchiveEntry(entry);\n file.getValue().writeTo(out);\n out.closeArchiveEntry();\n }\n }\n return tarFile;\n }", "public void compress(BitInputStream in, BitOutputStream out){\n\n\t\t\tint[] counts = readForCounts(in);\n\t\t\tHuffNode root = makeTree(counts);\n\t\t\tMap<Integer, String> codings = makeCodingsFromTree(root);\n\t\t\twriter(root, out);\n\t\t\tin.reset();\n\t\t\twriteCompressedBits(in, codings, out);\n\t\t\tout.close();\n\t\t}", "private void serviceGZipCompressed(Connection conn) \n throws IOException {\n conn.getResponse().setContentType(getContnentType().getMimeType());\n conn.getResponse().setHeader(\"Content-Encoding\", \"gzip\");\n conn.getOutputStream().write(gzipContent);\n }", "private String saveCrashReportFile() {\r\n try {\r\n Log.d(LOG_TAG, \"Writing crash report file.\");\r\n long timestamp = System.currentTimeMillis();\r\n String isSilent = mCrashProperties.getProperty(IS_SILENT_KEY);\r\n String fileName = (isSilent != null ? SILENT_PREFIX : \"\") + \"stack-\" + timestamp + \".stacktrace\";\r\n FileOutputStream trace = mContext.openFileOutput(fileName, Context.MODE_PRIVATE);\r\n mCrashProperties.store(trace, \"\");\r\n trace.flush();\r\n trace.close();\r\n return fileName;\r\n } catch (Exception e) {\r\n Log.e(LOG_TAG, \"An error occured while writing the report file...\", e);\r\n }\r\n return null;\r\n }", "CompressingMessageWriter(MessageWriter wr) {\n this.writer = wr;\n }", "void write(TraceList traceList,File file) throws IOException;", "Decompress() {\r\n // this.destinationLocation = null ; //destinationLocation;\r\n }", "private void cleanupTransactionFiles(String filename) {\n\n logger.debug(\"os.name property: \" + System.getProperty(\"os.name\"));\n if (System.getProperty(\"os.name\").toLowerCase().indexOf(\"win\") == -1) {\n deleteOutfiles(filename);\n } else {\n File file;\n String directory = getDataDirectory() + OUTFILE_DIRECTORY;\n\n try {\n file = new File(directory + TUTOR_TX_FILE);\n if (!file.delete()) {\n logger.error(\"Could not delete tutor transaction outfile: \"\n + directory + TUTOR_TX_FILE);\n }\n } catch (NullPointerException exception) {\n logger.error(\"Error creating file object for tutor_transaction outfile: \"\n + directory + TUTOR_TX_FILE, exception);\n }\n\n try {\n file = new File(directory + TX_COND_MAP_FILE);\n if (!file.delete()) {\n logger.error(\"Could not delete transaction condition map outfile: \"\n + directory + TX_COND_MAP_FILE);\n }\n } catch (NullPointerException exception) {\n logger.error(\"Error creating file object for transaction_condition_map outfile: \"\n + directory + TX_COND_MAP_FILE, exception);\n }\n\n try {\n file = new File(directory + TX_SKILL_MAP_FILE);\n if (!file.delete()) {\n logger.error(\"Could not delete transaction skill map outfile: \"\n + directory + TX_SKILL_MAP_FILE);\n }\n } catch (NullPointerException exception) {\n logger.error(\"Error creating file object for transaction_skill_map outfile: \"\n + directory + TX_SKILL_MAP_FILE, exception);\n }\n\n try {\n file = new File(directory + TX_SKILL_EVT_MAP_FILE);\n if (!file.delete()) {\n logger.error(\"Could not delete transaction skill event map outfile: \"\n + directory + TX_SKILL_EVT_MAP_FILE);\n }\n } catch (NullPointerException exception) {\n logger.error(\"Error creating file object for transaction_skill_event_map outfile: \"\n + directory + TX_SKILL_EVT_MAP_FILE, exception);\n }\n }\n }", "public abstract Object toDexFile();", "@Test\n\tpublic void writeToHDFSUncompressedFile() throws Exception {\n\t\tConfiguration configuration = new Configuration();\n\t\tconfiguration.set(\"dfs.block.size\", \"134217728\");// play around with this number (in bytes)\n\t\tFileSystem fs = FileSystem.get(new URI(\"hdfs://192.168.47.10:54310\"), configuration, \"hduser\");\n\t\tPath outFilePath = new Path(\"/hduser/input/words.txt\");\n\t\tOutputStream outFile = fs.create(outFilePath);\n\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"source/small-source.txt\"));\n\t\tlong start = System.currentTimeMillis();\n\t\tSystem.out.println(\"Starting\");\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tif (line == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\toutFile.write((line+\"\\n\").getBytes());\n\t\t}\n\t\tlong stop = System.currentTimeMillis();\n\t\tSystem.out.println(\"Written \" + 10000000 + \" records in \" + (stop - start) + \" milliseconds\");\n\t\toutFile.close();\n\t\tbr.close();\n\t}", "private static void writeFile(String name, Trajectory t) {\n\t\ttry {\n\t\t\tFile directory = new File(cacheDirectory);\n\t\t\tif (!directory.exists()) {\n\t\t\t\tconsole.log(\"missing dir, making\");\n\t\t\t\tdirectory.mkdir();\n\t\t\t}\n\t\t\t\n\t\t\tFileOutputStream fos = new FileOutputStream(cacheDirectory + name);\n\t\t ObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t oos.writeObject(t);\n\t\t oos.close();\n\t\t fos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tconsole.error(e);\n\t\t}\n\t}", "public boolean IsCompressed() {\n return false;\n }", "byte[] deflate(byte[] data) throws IOException;", "@Override\n public byte[] compress(byte[] bytes) throws IOException\n {\n try (BinaryIO io = new BinaryIO())\n {\n io.write32Bits(LZW_TAG);\n\n LZWDictionary dict = new LZWDictionary();\n int bitsize = 9, index = -1, newIndex;\n\n for (byte b : bytes)\n {\n newIndex = dict.get(index, b);\n\n if (newIndex > 0)\n index = newIndex;\n else\n {\n io.writeBits(index, bitsize);\n bitsize = dict.put(index, b);\n index = dict.get(-1, b);\n }\n if (dict.isFull())\n dict.reset();\n }\n io\n .writeBits(index, bitsize)\n .write32Bits(0); // EoF marker\n\n return io.getBytesOut();\n }\n }", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void PackageArchive(File directoryName, File fileName) throws IOException\r\n {\r\n final String ARCHIVE_XML = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?>\\n<archive major_version=\\\"0\\\" minor_version=\\\"1\\\" />\";\r\n\r\n TarArchiveWriter archive = new TarArchiveWriter(new GZIPOutputStream(new FileOutputStream(fileName)));\r\n\r\n // Create the archive.xml file\r\n archive.writeFile(\"archive.xml\", ARCHIVE_XML);\r\n\r\n // Add the assets\r\n File dir = new File(directoryName, ArchiveConstants.ASSETS_PATH);\r\n String[] files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.ASSETS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the objects\r\n dir = new File(directoryName, ArchiveConstants.OBJECTS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.OBJECTS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the terrain(s)\r\n dir = new File(directoryName, ArchiveConstants.TERRAINS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.TERRAINS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the parcels(s)\r\n dir = new File(directoryName, ArchiveConstants.LANDDATA_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.LANDDATA_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the setting(s)\r\n dir = new File(directoryName, ArchiveConstants.SETTINGS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.SETTINGS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n archive.close();\r\n }", "@Override\r\n\tpublic void saveMaze(Maze3d maze, String name, String fileName) {\r\n\t\tMyCompressorOutputStream outFile;\r\n\t\ttry {\r\n\t\t\toutFile = new MyCompressorOutputStream(new FileOutputStream(fileName));\r\n\t\t\toutFile.write(maze.toByteArray());\r\n\t\t\tmazeInFile.put(fileName, maze);\r\n\t\t\tString s = \"file \"+fileName+\" is ready\";\r\n\t\t\tcontroller.printStr(s);\r\n\t\t\toutFile.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void useSnappyCompressFile(File in, File out) {\n\n FileInputStream fi = null;\n FileOutputStream fo = null;\n SnappyOutputStream sout = null;\n try {\n fi = new FileInputStream(in);\n fo = new FileOutputStream(out);\n sout = new SnappyOutputStream(fo);\n while (true) {\n int count = fi.read(BUFFER_SIZE, 0, BUFFER_SIZE.length);\n if (count == -1) {\n break;\n }\n sout.write(BUFFER_SIZE, 0, count);\n }\n sout.flush();\n } catch (IOException ex) {\n log.warn(\"compress file failed: {}\",ex.getMessage());\n ex.printStackTrace();\n } finally {\n IOUtils.closeQuietly(sout);\n IOUtils.closeQuietly(fi);\n IOUtils.closeQuietly(fo);\n }\n }", "private void createTar() {\n File tgzFile = new File(\".\" + File.separator + Arguments.JRE_DEFAULT_NAME);\n File tgzMd5File = new File(tgzFile.getPath() + \".md5\");\n if (tgzFile.exists()) {\n tgzFile.delete();\n m_logger.debug(\"Removed the old tgz file\");\n }\n if (tgzMd5File.exists()) {\n tgzMd5File.delete();\n m_logger.debug(\"Removed the old md5 file\");\n }\n\n try {\n m_logger.debug(\"Starting zip\");\n tgzFile.createNewFile();\n TarArchiveOutputStream tgzStream = new TarArchiveOutputStream(new GZIPOutputStream(\n new BufferedOutputStream(new FileOutputStream(tgzFile))));\n addFileToTarGz(tgzStream, m_jreLocation, \"\");\n tgzStream.finish();\n tgzStream.close();\n m_logger.debug(\"Finished zip, starting md5 hash\");\n\n Platform.runLater(() -> fileLabel.setText(\"Generating md5 hash\"));\n String md5Hash = MainApp.hashFile(tgzFile);\n OutputStream md5Out = new BufferedOutputStream(new FileOutputStream(tgzMd5File));\n md5Out.write(md5Hash.getBytes());\n md5Out.flush();\n md5Out.close();\n m_logger.debug(\"Finished md5 hash, hash is \" + md5Hash);\n final boolean interrupted = Thread.interrupted();\n\n // Show the connect roboRio screen\n Platform.runLater(() -> {\n if (!interrupted) {\n m_args.setArgument(Arguments.Argument.JRE_TAR, tgzFile.getAbsolutePath());\n moveNext(Arguments.Controller.CONNECT_ROBORIO_CONTROLLER);\n }\n });\n } catch (IOException | NoSuchAlgorithmException e) {\n m_logger.error(\"Could not create the tar gz file. Do we have write permissions to the current working directory?\", e);\n showErrorScreen(e);\n }\n }", "public static void makeZip(String fileName)\r\n throws IOException, FileNotFoundException\r\n {\r\n File file = new File(fileName);\r\n zos = new ZipOutputStream(new FileOutputStream(file + \".zip\"));\r\n //Call recursion.\r\n\r\n\r\nrecurseFiles(file);\r\n //We are done adding entries to the zip archive,\r\n\r\n\r\n//so close the Zip output stream.\r\n\r\n\r\nzos.close();\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tFile LogFolder=new File(\"/sdcard/network_log\");\r\n\t\t\t\tif(!LogFolder.exists())\r\n\t\t\t\t{\r\n\t\t\t\t\t//not exist\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tFile[] LogList=LogFolder.listFiles();\r\n\t\t\t\t\tFile tempFolder=new File(\"/sdcard/.network_log_temp\");\r\n\t\t\t\t\tif(tempFolder.exists())\r\n\t\t\t\t\t\ttempFolder.delete();\r\n\t\t\t\t\ttempFolder.mkdir();\r\n\t\t\t\t\tFile tempZip=new File(\"/sdcard/.network_log_temp/temp.zip\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempZip.createNewFile();\r\n\t\t\t\t\t} catch (IOException 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\t\t\t\t\tString[] srcFilePath=new String[LogList.length];\r\n\t\t\t\t\tfor(int i=0;i<LogList.length;i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsrcFilePath[i]=LogList[i].getAbsolutePath();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString desFilePath=tempZip.getAbsolutePath();\r\n\t\t\t\t\t\r\n\t\t\t\t\tZipCompressor zc=new ZipCompressor();\r\n\t\t\t\t\tzc.zipCompress(srcFilePath, desFilePath);\r\n\t\t\t\t\t\r\n\t\t\t\t\tUploader ul=new Uploader(tempZip);\r\n\t\t\t\t\tul.start();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}", "public void compressFile(String fileToCompress, String compressFile) throws IOException {\n try (\n FileInputStream fin = new FileInputStream(fileToCompress);\n FileOutputStream fout = new FileOutputStream(compressFile);\n DeflaterOutputStream dos = new DeflaterOutputStream(fout)) {\n int i;\n while ((i = fin.read()) != -1) {\n dos.write((byte) i);\n dos.flush();\n }\n }\n }", "private final FileOutputStream zabz() {\n Serializable serializable = this.zalj;\n if (serializable == null) {\n serializable = new IllegalStateException(\"setTempDir() must be called before writing this object to a parcel\");\n throw serializable;\n }\n Object object = \"teleporter\";\n String string2 = \".tmp\";\n try {\n serializable = File.createTempFile((String)object, string2, (File)serializable);\n }\n catch (IOException iOException) {\n object = new IllegalStateException(\"Could not create temporary file\", iOException);\n throw object;\n }\n try {\n object = new FileOutputStream((File)serializable);\n int n10 = 0x10000000;\n string2 = ParcelFileDescriptor.open((File)serializable, (int)n10);\n this.zalg = string2;\n ((File)serializable).delete();\n return object;\n }\n catch (FileNotFoundException fileNotFoundException) {\n serializable = new IllegalStateException(\"Temporary file is somehow already deleted\");\n throw serializable;\n }\n }", "public void toFile(String filename) {\n\t\tsortPool();\n\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(filename))) {\n\t\t\tfor(int i = 0; i < genepool.size(); i++) {\n\t\t\t\tbw.write(genepool.get(i).toWrite());\n\t\t\t\tbw.newLine();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "Archiver(File fileIn, File fileOut) throws IOException {\n\n InputStream fileStreamIn = new FileInputStream(fileIn);\n ArrayList<Integer> bytes = Constants.readBytesAndPushToArray(fileStreamIn);\n HashSet<Integer> uniqueBytesArray = getUniqueBytes(bytes);\n ArrayList<String> bitsArray = Constants.getBitsArray(Constants.chooseBitsSize(uniqueBytesArray.size()), bytes.size());\n HashMap<Integer, String> dictionary = createDictionary(uniqueBytesArray, bitsArray);\n ByteArrayOutputStream archivedFile = archiveFile(bytes, dictionary);\n FileOutputStream newFile = new FileOutputStream(fileOut);\n archivedFile.writeTo(newFile);\n System.out.println( \"The size of the file which was IN: \" + fileIn.length());\n System.out.println(\"The size of the file which was OUT: \" + fileOut.length());\n System.out.println(\"File archived is smaller than unarchived by \" + (100 - ((fileOut.length() * 100) / fileIn.length())) +\"%.\" );\n }", "private String compactaOrdem(File ordem, String[] arquivosCaixa) throws IOException\n\t{\n\t\t/* Define referencias aos streams de arquivos a serem utilizados */\n\t\t/* Buffer a ser utilizado para leitura dos arquivos de caixa */\n\t\tBufferedInputStream buffOrigem \t= null;\n\t\t/* Esta referencia e do arquivo final (zip) do processo */\n\t\tFileOutputStream \tarqDestino \t= new FileOutputStream(getNomeArquivoCompactado(ordem));\n\t\tZipOutputStream \tarqSaida \t= new ZipOutputStream (new BufferedOutputStream(arqDestino));\n\n\t\t/* Define o buffer de dados com o tamanho sendo definido no\n\t\t * arquivo de configuracao\n\t\t */\n\t\tint sizeBuffer = Integer.parseInt(getPropriedade(\"ordemVoucher.tamanhoBufferArquivos\"));\n\t\tbyte data[] = new byte[sizeBuffer];\n\n\t\tString extArqCriptografado = getPropriedade(\"ordemVoucher.extensaoArquivoCriptografado\");\n\t\t\n\t\t/* Faz a varredura dos arquivos de caixa que serao utilizados\n\t\t * para a compactacao. Lembrando que o nome e o mesmo do arquivo da\n\t\t * ordem com a extensao pgp devido ao utilitario de criptografia\n\t\t */\n\t\tSystem.out.println(\"Iniciando compactacao para o arquivo:\"+getNomeArquivoCompactado(ordem));\n\t\tfor (int i=0; i<arquivosCaixa.length; i++) \n\t\t{\n\t\t\tString nomArqOrigem\t\t\t= arquivosCaixa[i] + extArqCriptografado;\n\t\t\tSystem.out.println(\"Incluindo arquivo de ordem \"+nomArqOrigem+\" no arquivo compactado...\");\n\n\t\t\tFile arquivoOrigem\t\t\t= new File(nomArqOrigem);\n\t\t\tFileInputStream fileInput \t= new FileInputStream(arquivoOrigem);\n\t\t \tbuffOrigem \t\t\t\t\t= new BufferedInputStream(fileInput, sizeBuffer);\n\t\t \tZipEntry entry \t\t\t\t= new ZipEntry(arquivoOrigem.getName());\n\t\t \tarqSaida.putNextEntry(entry);\n\t\t \tint count;\n\t\t\twhile((count = buffOrigem.read(data, 0, sizeBuffer)) != -1) \n\t\t\t arqSaida.write(data, 0, count);\n\t\t\t \n\t\t buffOrigem.close();\n\t\t}\n\t\tarqSaida.close();\n\t\tSystem.out.println(\"Termino da compactacao do arquivo.\");\t\n\t\treturn getNomeArquivoCompactado(ordem); \n\t}", "@Test\n\tpublic void writeToHDFSCompressedFile() throws Exception {\n\t\tint sourceRecords = 10000000;\n\t\tint bufferSize = 1000;\n\t\tAssert.isTrue(sourceRecords % bufferSize == 0); // make sure its divisible without the remainder\n\t\tfinal int outerLoop = sourceRecords / bufferSize;\n\t\tfinal CountDownLatch latch = new CountDownLatch(outerLoop);\n\t\t\n\t\tExecutorService executor = Executors.newFixedThreadPool(8);\n\n\t\t//final FileOutputStream fos = new FileOutputStream(new File(\"source/compressed.txt\"));\n\t\tConfiguration configuration = new Configuration();\n\t\tconfiguration.set(\"dfs.block.size\", \"134217728\");// play around with this number (in bytes)\n\t\tFileSystem fs = FileSystem.get(new URI(\"hdfs://192.168.47.10:54310\"), configuration, \"hduser\");\n\t\tPath outFilePath = new Path(\"/hduser/input/compressed.txt\");\n\t\tfinal OutputStream fos = fs.create(outFilePath);\n\t\t\n\t\t\n\t\tfinal BufferedReader br = new BufferedReader(new FileReader(\"source/source.txt\"));\n\t\t\n\t\tfinal ArrayBlockingQueue<String> recordQueue = new ArrayBlockingQueue<String>(outerLoop);\n\t\texecutor.execute(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < outerLoop; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfos.write(recordQueue.poll(1000, TimeUnit.MILLISECONDS).getBytes());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tlatch.countDown();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tSystem.out.println(\"Starting\");\n\t\tlong start = System.currentTimeMillis();\n\t\tfor (int i = 0; i < outerLoop; i++) {\n\t\t\tStringBuffer buffer = new StringBuffer(bufferSize * 230);\n\t\t\tfor (int j = 0; j < bufferSize; j++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tbuffer.append(line);\n\t\t\t\tbuffer.append(\"\\n\");\n\t\t\t}\n\t\t\tfinal String bufferString = buffer.toString();\n\t\t\t\n\t\t\texecutor.execute(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString compressedRecord = compressRecord(bufferString) + \"\\n\";\n\t\t\t\t\t\trecordQueue.offer(compressedRecord);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}\n\n\t\tlatch.await();\n\t\tlong stop = System.currentTimeMillis();\n\t\tSystem.out.println(\"Compressed and written \" + sourceRecords + \" records in \" + (stop - start) + \" milliseconds\");\n\t\tfos.close();\n\t\tbr.close();\n\t}", "private void blockCompressAndIndex(String in, String bgzfOut, boolean deleteOnExit) throws IOException {\n\t\t\n\t\t// System.err.print(\"Compressing: \" + in + \" to file: \" + bgzfOut + \"... \");\n\t\t\n\t\tFile inFile= new File(in);\n\t\tFile outFile= new File(bgzfOut);\n\t\t\n\t\tLineIterator lin= IOUtils.openURIForLineIterator(inFile.getAbsolutePath());\n\n\t\tBlockCompressedOutputStream writer = new BlockCompressedOutputStream(outFile);\n\t\tlong filePosition= writer.getFilePointer();\n\t\t\n\t\tTabixIndexCreator indexCreator=new TabixIndexCreator(TabixFormat.BED);\n\t\tBedLineCodec bedCodec= new BedLineCodec();\n\t\twhile(lin.hasNext()){\n\t\t\tString line = lin.next();\n\t\t\tBedLine bed = bedCodec.decode(line);\n\t\t\tif(bed==null) continue;\n\t\t\twriter.write(line.getBytes());\n\t\t\twriter.write('\\n');\n\t\t\tindexCreator.addFeature(bed, filePosition);\n\t\t\tfilePosition = writer.getFilePointer();\n\t\t}\n\t\twriter.flush();\n\t\t\n\t\t// System.err.print(\"Indexing... \");\n\t\t\n\t\tFile tbi= new File(bgzfOut + TabixUtils.STANDARD_INDEX_EXTENSION);\n\t\tif(tbi.exists() && tbi.isFile()){\n\t\t\twriter.close();\n\t\t\tthrow new RuntimeException(\"Index file exists: \" + tbi);\n\t\t}\n\t\tIndex index = indexCreator.finalizeIndex(writer.getFilePointer());\n\t\tindex.writeBasedOnFeatureFile(outFile);\n\t\twriter.close();\n\n\t\t// System.err.println(\"Done\");\n\t\t\n\t\tif(deleteOnExit){\n\t\t\toutFile.deleteOnExit();\n\t\t\tFile idx= new File(outFile.getAbsolutePath() + TabixUtils.STANDARD_INDEX_EXTENSION);\n\t\t\tidx.deleteOnExit();\n\t\t}\n\t}", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static void serializeObject(Serializable object, Path outputFile) {\n try {\n try (Closer closer = Closer.create()) {\n OutputStream out = closer.register(Files.newOutputStream(outputFile));\n BufferedOutputStream bout = closer.register(new BufferedOutputStream(out));\n serializeToLz4Data(object, bout);\n }\n } catch (Exception e) {\n throw new BatfishException(\"Failed to serialize object to output file: \" + outputFile, e);\n }\n }", "private static void compressSave(Bitmap image, File outFile, int maxSize) throws IOException {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n // scale\n int options = 80;\n // Store the bitmap into output stream(no compress)\n image.compress(Bitmap.CompressFormat.JPEG, options, os);\n // Compress by loop\n while (os.toByteArray().length / 1024 > maxSize) {\n // Clean up os\n os.reset();\n // interval 10\n options -= 10;\n image.compress(Bitmap.CompressFormat.JPEG, options, os);//\"质量压缩: \" + os.toByteArray().length / 1024 + \"KB\"\n }\n\n // Generate compressed image file\n FileOutputStream fos = new FileOutputStream(outFile);\n fos.write(os.toByteArray());\n fos.flush();\n fos.close();\n }", "@Override\n public void write(byte[] b) throws IOException {\n byte lastByte = 0;\n int count = 0;\n List compressedBytes = new ArrayList();\n out.write(Arrays.copyOfRange(b, 0, metaData));\n for(int i=metaData; i < b.length; i++){\n if(b[i] == lastByte)\n count++;\n else{\n while(count>256){\n compressedBytes.add((byte)255);\n compressedBytes.add((byte)0);\n //out.write(255);\n //out.write(0);\n count = count - 255;\n }\n compressedBytes.add((byte)count);\n //out.write(count);\n count = 1;\n if (lastByte == 0)\n lastByte = 1;\n else\n lastByte = 0;\n }\n }\n compressedBytes.add((byte)count);\n //out.write(count);\n out.write(toByteArray(compressedBytes));\n\n System.out.println ((compressedBytes.size()/b.length)*100);\n }", "@Override\r\npublic boolean writeEntries(CacheObject obj) {\n\t\r\n\ttry {\r\n\t\t\r\n\t\tthis.writer.append(\"[\"+obj.toString()+\"]\\r\\n\");\r\n\t\tthis.writer.flush();\r\n\t} catch (IOException e) {\r\n\t\tSystem.out.println(\"Error Occured while writing into File :\"+ e.getMessage());\r\n\t\te.printStackTrace();\r\n\t\t\r\n\t} \r\n\t\r\n\treturn false;\r\n}", "private String saveCrashInfo2File(Throwable throwable) {\n StringBuffer stringBuffer = new StringBuffer();\n Iterator iterator = this.infos.entrySet().iterator();\n do {\n if (!iterator.hasNext()) break;\n Map.Entry entry = (Map.Entry)iterator.next();\n String string2 = (String)entry.getKey();\n String string3 = (String)entry.getValue();\n stringBuffer.append(String.valueOf((Object)string2) + \"=\" + string3 + \"\\n\");\n } while (true);\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter((Writer)stringWriter);\n throwable.printStackTrace(printWriter);\n Throwable throwable2 = throwable.getCause();\n do {\n if (throwable2 == null) {\n printWriter.close();\n stringBuffer.append(stringWriter.toString());\n long l = System.currentTimeMillis();\n String string4 = this.formatter.format(new Date());\n String string5 = \"crash-\" + string4 + \"-\" + l + \".log\";\n if (!Environment.getExternalStorageState().equals((Object)\"mounted\")) return string5;\n File file = new File(\"/sdcard/crash/\");\n if (!file.exists()) {\n file.mkdirs();\n }\n FileOutputStream fileOutputStream = new FileOutputStream(String.valueOf((Object)\"/sdcard/crash/\") + string5);\n fileOutputStream.write(stringBuffer.toString().getBytes());\n fileOutputStream.close();\n return string5;\n }\n throwable2.printStackTrace(printWriter);\n throwable2 = throwable2.getCause();\n } while (true);\n catch (Exception exception) {\n Log.e((String)\"CrashHandler\", (String)\"an error occured while writing file...\", (Throwable)exception);\n return null;\n }\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView v=inflater.inflate(R.layout.fragment_traceexchange, container,false);\r\n\t\tUploadTraceButton=(Button)v.findViewById(R.id.UploadTraceButton);\r\n\t\tUploadTraceButton.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tFile LogFolder=new File(\"/sdcard/network_log\");\r\n\t\t\t\tif(!LogFolder.exists())\r\n\t\t\t\t{\r\n\t\t\t\t\t//not exist\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tFile[] LogList=LogFolder.listFiles();\r\n\t\t\t\t\tFile tempFolder=new File(\"/sdcard/.network_log_temp\");\r\n\t\t\t\t\tif(tempFolder.exists())\r\n\t\t\t\t\t\ttempFolder.delete();\r\n\t\t\t\t\ttempFolder.mkdir();\r\n\t\t\t\t\tFile tempZip=new File(\"/sdcard/.network_log_temp/temp.zip\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempZip.createNewFile();\r\n\t\t\t\t\t} catch (IOException 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\t\t\t\t\tString[] srcFilePath=new String[LogList.length];\r\n\t\t\t\t\tfor(int i=0;i<LogList.length;i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsrcFilePath[i]=LogList[i].getAbsolutePath();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString desFilePath=tempZip.getAbsolutePath();\r\n\t\t\t\t\t\r\n\t\t\t\t\tZipCompressor zc=new ZipCompressor();\r\n\t\t\t\t\tzc.zipCompress(srcFilePath, desFilePath);\r\n\t\t\t\t\t\r\n\t\t\t\t\tUploader ul=new Uploader(tempZip);\r\n\t\t\t\t\tul.start();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn v;\r\n\t}", "@Test\r\n\tpublic void testCompressing() throws ClassNotFoundException,\r\n\t\t\tInstantiationException, IllegalAccessException {\n\r\n\t\tAbstractStream abstractStream = Factory\r\n\t\t\t\t.getStream(\"by.bsu.decorator.bean.FileStream\");\r\n\t\tCompressingStream stream = (CompressingStream) Factory\r\n\t\t\t\t.getStream(\"by.bsu.decorator.bean.CompressingStream\");\r\n\t\tstream.setAbstractStream(abstractStream);\r\n\t\tString str = stream.handleBufferFull();\r\n\r\n\t\tbyte[] b = new byte[10];\r\n\t\tfor (int i = 0; i < 10; i++)\r\n\t\t\tb[i] = (byte) i;\r\n\t\tstream.putByte(b);\r\n\t\tSystem.out.println(str);\r\n\t\tassertEquals(\"Compressing Stream. File Stream. \", str);\r\n\t}", "private final java.io.FileOutputStream zza() {\n /*\n r5 = this;\n java.io.File r0 = r5.zzs\n r1 = 0\n if (r0 != 0) goto L_0x0006\n return r1\n L_0x0006:\n java.lang.String r2 = \"xlb\"\n java.lang.String r3 = \".tmp\"\n java.io.File r0 = java.io.File.createTempFile(r2, r3, r0) // Catch:{ IOException -> 0x002d, all -> 0x0023 }\n java.io.FileOutputStream r2 = new java.io.FileOutputStream // Catch:{ IOException -> 0x002e, all -> 0x0021 }\n r2.<init>(r0) // Catch:{ IOException -> 0x002e, all -> 0x0021 }\n r3 = 268435456(0x10000000, float:2.5243549E-29)\n android.os.ParcelFileDescriptor r3 = android.os.ParcelFileDescriptor.open(r0, r3) // Catch:{ IOException -> 0x002e, all -> 0x0021 }\n r5.zzo = r3 // Catch:{ IOException -> 0x002e, all -> 0x0021 }\n if (r0 == 0) goto L_0x0020\n r0.delete()\n L_0x0020:\n return r2\n L_0x0021:\n r1 = move-exception\n goto L_0x0027\n L_0x0023:\n r0 = move-exception\n r4 = r1\n r1 = r0\n r0 = r4\n L_0x0027:\n if (r0 == 0) goto L_0x002c\n r0.delete()\n L_0x002c:\n throw r1\n L_0x002d:\n r0 = r1\n L_0x002e:\n if (r0 == 0) goto L_0x0033\n r0.delete()\n L_0x0033:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.safetynet.SafeBrowsingData.zza():java.io.FileOutputStream\");\n }", "List<CompressResult> compress(Path input, Path output, int maxSizeInMB) throws IOException;", "private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void failstestProcessCompressedFile() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_GZ_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Batching compressed file should give expected \"\n + \"number of records\",\n 66, processed);\n assertEquals(\"Batching compressed file should not throw exceptions\",\n 0, es.length);\n }", "protected void compress(){\r\n\t\t\r\n \tmodCount++;\r\n\t\tArrayNode<T> current = beginMarker.next;\r\n\t\t\r\n\t\t//find non-full node\r\n\t\twhile (current != endMarker){\r\n\t\t\tif (current.getLength()== current.getArraySize()){\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tArrayNode<T> removing = current.next;\r\n\t\t\t\t//compression done\r\n\t\t\t\tif (removing==endMarker){\r\n\t\t\t\t\t//remove empty nodes\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//empty node\r\n\t\t\t\twhile (removing.getArraySize()==0){\r\n\t\t\t\t\tremoving = removing.next;\r\n\t\t\t\t\tif (removing==endMarker)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//not sure why this is needed\r\n\t\t\t\tif (removing==endMarker){\r\n\t\t\t\t\t//remove empty nodes\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//move elements from \"removing\" node to \"current\"\r\n\t\t\t\tT temp = removing.removeFirst();\r\n\t\t\t\tcurrent.insertSorted(temp);\r\n\t\t\t\t\r\n\t\t\t\t//check current length, go to next if full, otherwise redo loop\r\n\t\t\t\tif (current.getLength()==current.getArraySize()){\r\n\t\t\t\t\tcurrent = current.next;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//do another sweep at end to remove empty nodes\r\n\t\tcurrent = beginMarker.next;\r\n\t\twhile (current != endMarker){\r\n\t\t\tif (current.getArraySize()==0){\r\n\t\t\t\tcurrent.prev.next = current.next;\r\n\t\t\t\tcurrent.next.prev = current.prev;\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t\tsize--;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void unZip(String apkFile) throws Exception \r\n\t{\r\n\t\tLog.p(tag, apkFile);\r\n\t\tFile file = new File(apkFile);\r\n\t\r\n\t\t/*\r\n\t\t * Create the Base Directory, whose name should be same as Zip file name.\r\n\t\t * All decompressed contents will be placed under this folder.\r\n\t\t */\r\n\t\tString apkFileName = file.getName();\r\n\t\t\r\n\t\tif(apkFileName.indexOf('.') != -1)\r\n\t\t\tapkFileName = apkFileName.substring(0, apkFileName.indexOf('.'));\r\n\t\t\r\n\t\tLog.d(tag, \"Folder name: \"+ apkFileName);\r\n\t\t\r\n\t\tFile extractFolder = new File((file.getParent() == null ? \"\" : file.getParent() + File.separator) + apkFileName);\r\n\t\tif(!extractFolder.exists())\r\n\t\t\textractFolder.mkdir();\r\n\t\t\r\n\t\t/*\r\n\t\t * Read zip entries.\r\n\t\t */\r\n\t\tFileInputStream fin = new FileInputStream(apkFile);\r\n\t\tZipInputStream zin = new ZipInputStream(new BufferedInputStream(fin));\r\n\t\t\r\n\t\t/*\r\n\t\t * Zip InputStream shifts its index to every Zip entry when getNextEntry() is called.\r\n\t\t * If this method returns null, Zip InputStream reaches EOF.\r\n\t\t */\r\n\t\tZipEntry ze = null;\r\n\t\tBufferedOutputStream dest;\r\n\t\t\r\n\t\twhile((ze = zin.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tLog.d(tag, \"Zip entry: \" + ze.getName() + \" Size: \"+ ze.getSize());\r\n\t\t\t/*\r\n\t\t\t * Create decompressed file for each Zip entry. A Zip entry can be a file or directory.\r\n\t\t\t * ASSUMPTION: APK Zip entry uses Unix style File seperator- \"/\"\r\n\t\t\t * \r\n\t\t\t * 1. Create the prefix Zip Entry folder, if it is not yet available\r\n\t\t\t * 2. Create the individual Zip Entry file.\r\n\t\t\t */\r\n\t\t\tString zeName = ze.getName();\r\n\t\t\tString zeFolder = zeName;\r\n\t\t\t\r\n\t\t\tif(ze.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tzeName = null; // Don't create Zip Entry file\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(zeName.indexOf(\"/\") == -1) // Zip entry uses \"/\"\r\n\t\t\t\t\tzeFolder = null; // It is File. don't create Zip entry Folder\r\n\t\t\t\telse {\r\n\t\t\t\t\tzeFolder = zeName.substring(0, zeName.lastIndexOf(\"/\"));\r\n\t\t\t\t\tzeName = zeName.substring( zeName.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(tag, \"zeFolder: \"+ zeFolder +\" zeName: \"+ zeName);\r\n\t\t\t\r\n\t\t\t// Create Zip Entry Folder\r\n\t\t\tFile zeFile = extractFolder;\r\n\t\t\tif(zeFolder != null)\r\n\t\t\t{\r\n\t\t\t\tzeFile = new File(extractFolder.getPath() + File.separator + zeFolder);\r\n\t\t\t\tif(!zeFile.exists())\r\n\t\t\t\t\tzeFile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Create Zip Entry File\r\n\t\t\tif(zeName == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t// Keep track of XML files, they are in Android Binary XML format\r\n\t\t\tif(zeName.endsWith(\".xml\"))\r\n\t\t\t\txmlFiles.add(zeFile.getPath() + File.separator + zeName);\r\n\t\t\t\r\n\t\t\t// Keep track of the Dex/ODex file. Need to convert to Jar\r\n\t\t\tif(zeName.endsWith(\".dex\") || zeName.endsWith(\".odex\"))\r\n\t\t\t\tdexFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Keep track of Resources.arsc file- resources.arsc\r\n\t\t\tif(zeName.endsWith(\".arsc\"))\r\n\t\t\t\tresFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Write Zip entry File to the disk\r\n\t\t\tint count;\r\n\t\t\tbyte data[] = new byte[BUFFER];\r\n\t\t\t\r\n\t\t\tFileOutputStream fos = new FileOutputStream(zeFile.getPath() + File.separator + zeName);\r\n\t\t\tdest = new BufferedOutputStream(fos, BUFFER);\r\n\r\n\t\t\twhile ((count = zin.read(data, 0, BUFFER)) != -1) \r\n\t\t\t{\r\n\t\t\t\tdest.write(data, 0, count);\r\n\t\t\t}\r\n\t\t\tdest.flush();\r\n\t\t\tdest.close();\r\n\t\t}\r\n\r\n\t\t// Close Zip InputStream\r\n\t\tzin.close();\r\n\t\tfin.close();\r\n\t}", "private StandardDeCompressors() {}", "public void saveArchive() throws FileNotFoundException {\n jsonWriter.open();\n Archive archive = new Archive(cameraCollection, filmCollection);\n jsonWriter.write(archive);\n jsonWriter.close();\n }", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "public void save(){\n try {\n FileOutputStream outputStream = getContext().openFileOutput(\"com_petros_cmsc434doodler_imageFile\", Context.MODE_PRIVATE);\n for(int i = 0; i<pathStack.size(); i++){\n outputStream.write((int)paintStack.get(i).getStrokeWidth()); //One byte is enough, max if 50\n outputStream.write(paintStack.get(i).getAlpha());\n //Red, Green, Blue\n outputStream.write((paintStack.get(i).getColor() & 0xFF0000) >> (4*4));\n outputStream.write((paintStack.get(i).getColor() & 0xFF00) >> (2*4));\n outputStream.write(paintStack.get(i).getColor() & 0xFF);\n\n outputStream.write(NEXT_LINE);\n for(int j = 0; j < pathPointsStack.get(i).size(); j+=2){\n //First point - have to save points byte at a time.\n outputStream.write(pathPointsStack.get(i).get(j) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j));\n //Second point\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j+1));\n if(j+2 == pathPointsStack.get(i).size()){\n outputStream.write(NEXT_PATH);\n }\n else{\n outputStream.write(NEXT_LINE);\n }\n }\n }\n outputStream.write(END_OF_PATHS);\n outputStream.close();\n } catch (Exception e) {\n Toast.makeText(getContext(), \"Error saving the file\", Toast.LENGTH_SHORT).show();\n }\n }", "public void outputToFile(MethodCallExpr original, MethodCallExpr mutant) {\n if (comp_unit == null || currentMethodSignature == null){\n return;\n }\n num++;\n String f_name = getSourceName(\"ARGR\");\n String mutant_dir = getMuantID(\"ARGR\");\n try {\n PrintWriter out = getPrintWriter(f_name);\n ARGR_Writer writer = new ARGR_Writer(mutant_dir, out);\n writer.setMutant(original, mutant);\n writer.setMethodSignature(currentMethodSignature);\n writer.writeFile(comp_unit);\n out.flush();\n out.close();\n }\n catch (IOException e) {\n System.err.println(\"ARGR: Fails to create \" + f_name);\n logger.error(\"Fails to create \" + f_name);\n }\n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "public String ToFile() {\n\t\tif (ismonitored) {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",1;\");\r\n\t\t} else {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",0;\");\r\n\t\t}\r\n\r\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "public void archiveTraceEventInfoGroup(String tracingID, ArchiveHelper archiveHelper) throws ArchiveTrailDataException\n {\n System.out.println(\"Archiving trace event info group\");\n TraceEventInfoDAO eventDAO = new TraceEventInfoDAO();\n DocTransDAO docDAO = new DocTransDAO();\n \n String archivedTraceEventHeader = \"\";\n Collection<TraceEventInfo> eventInfos = eventDAO.getTraceEventInfoByTracingID(tracingID);\n if(eventInfos != null && eventInfos.size() > 0)\n {\n Iterator<TraceEventInfo> ite = eventInfos.iterator();\n while(ite.hasNext())\n {\n TraceEventInfo info = ite.next();\n ArrayList<TraceEventInfo> eventInfoList = new ArrayList<TraceEventInfo>();\n eventInfoList.add(info);\n \n archiveTraceEventInfo(eventInfoList, archiveHelper);\n \n if(\"\".equals(archivedTraceEventHeader))\n {\n archiveTraceEventInfoHeader(info.getTracingID(), eventDAO, archiveHelper);\n archivedTraceEventHeader = info.getTracingID();\n }\n System.out.println(\"Archived trace event header is \"+archivedTraceEventHeader);\n _logger.logMessage(\"archiveOrphanTraceEventInfo\", null, \"Archived trace event header is \"+archivedTraceEventHeader);\n }\n }\n else\n {\n throw new ArchiveTrailDataException(\"[AuditTrailArchiveManagerBean.archiveOrphanTraceEventInfo] No trace event info can be found given tracingID \"+tracingID);\n }\n System.out.println(\"end archiving orphan record ...\");\n }", "@Override\r\n\tpublic void comprar() {\n\t\tsuper.comprar();\r\n\t}", "public int serialize (IDataOutput stream ,boolean includeAdler32 ,boolean centralDir =false ,int centralDirOffset =0){\r\n\t\t\tif(stream == null) { return 0; }\r\n\t\t\tif(centralDir) {\r\n\t\t\t\t// Write central directory file header signature\r\n\t\t\t\tstream.writeUnsignedInt(FZip.SIG_CENTRAL_FILE_HEADER);\r\n\t\t\t\t// Write \"version made by\" host (usually 0) and number (always 2.0)\r\n\t\t\t\tstream.writeShort((_versionHost << 8) | 0x14);\r\n\t\t\t} else {\r\n\t\t\t\t// Write local file header signature\r\n\t\t\t\tstream.writeUnsignedInt(FZip.SIG_LOCAL_FILE_HEADER);\r\n\t\t\t}\r\n\t\t\t// Write \"version needed to extract\" host (usually 0) and number (always 2.0)\r\n\t\t\tstream.writeShort((_versionHost << 8) | 0x14);\r\n\t\t\t// Write the general purpose flag\r\n\t\t\t// - no encryption\r\n\t\t\t// - normal deflate\r\n\t\t\t// - no data descriptors\r\n\t\t\t// - no compressed patched data\r\n\t\t\t// - unicode as specified in _filenameEncoding\r\n\t\t\tstream.writeShort((_filenameEncoding == \"utf-8\") ? 0x0800 : 0);\r\n\t\t\t// Write compression method (always deflate)\r\n\t\t\tstream.writeShort(isCompressed ? COMPRESSION_DEFLATED : COMPRESSION_NONE);\r\n\t\t\t// Write date\r\n\t\t\tDate d =(_date != null) ? _date : new Date();\r\n\t\t\tint msdosTime =uint(d.getSeconds ())| (uint(d.getMinutes()) << 5) | (uint(d.getHours()) << 11);\r\n\t\t\tint msdosDate =uint(d.getDate ())| (uint(d.getMonth() + 1) << 5) | (uint(d.getFullYear() - 1980) << 9);\r\n\t\t\tstream.writeShort(msdosTime);\r\n\t\t\tstream.writeShort(msdosDate);\r\n\t\t\t// Write CRC32\r\n\t\t\tstream.writeUnsignedInt(_crc32);\r\n\t\t\t// Write compressed size\r\n\t\t\tstream.writeUnsignedInt(_sizeCompressed);\r\n\t\t\t// Write uncompressed size\r\n\t\t\tstream.writeUnsignedInt(_sizeUncompressed);\r\n\t\t\t// Prep filename\r\n\t\t\tByteArray ba =new ByteArray ();\r\n\t\t\tba.endian = Endian.LITTLE_ENDIAN;\r\n\t\t\tif (_filenameEncoding == \"utf-8\") {\r\n\t\t\t\tba.writeUTFBytes(_filename);\r\n\t\t\t} else {\r\n\t\t\t\tba.writeMultiByte(_filename, _filenameEncoding);\r\n\t\t\t}\r\n\t\t\tint filenameSize =ba.position ;\r\n\t\t\t// Prep extra fields\r\n\t\t\tfor(int i0 = 0; i0 < _extraFields .size(); i0++)\r\n\t\t\t{\r\n\t\t\t\t\theaderId = _extraFields .get(i0);\r\n\t\t\t\tif(extraBytes != null) {\r\n\t\t\t\t\tba.writeShort(uint(headerId));\r\n\t\t\t\t\tba.writeShort(uint(extraBytes.length()));\r\n\t\t\t\t\tba.writeBytes(extraBytes);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (includeAdler32) {\r\n\t\t\t\tif (!_hasAdler32) {\r\n\t\t\t\t\tboolean compressed =isCompressed ;\r\n\t\t\t\t\tif (compressed) { uncompress(); }\r\n\t\t\t\t\t_adler32 = ChecksumUtil.Adler32(_content, 0, _content.length());\r\n\t\t\t\t\t_hasAdler32 = true;\r\n\t\t\t\t\tif (compressed) { compress(); }\r\n\t\t\t\t}\r\n\t\t\t\tba.writeShort(0xdada);\r\n\t\t\t\tba.writeShort(4);\r\n\t\t\t\tba.writeUnsignedInt(_adler32);\r\n\t\t\t}\r\n\t\t\tint extrafieldsSize =ba.position -filenameSize ;\r\n\t\t\t// Prep comment (currently unused)\r\n\t\t\tif(centralDir && _comment.length > 0) {\r\n\t\t\t\tif (_filenameEncoding == \"utf-8\") {\r\n\t\t\t\t\tba.writeUTFBytes(_comment);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tba.writeMultiByte(_comment, _filenameEncoding);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint commentSize =ba.position -filenameSize -extrafieldsSize ;\r\n\t\t\t// Write filename and extra field sizes\r\n\t\t\tstream.writeShort(filenameSize);\r\n\t\t\tstream.writeShort(extrafieldsSize);\r\n\t\t\tif(centralDir) {\r\n\t\t\t\t// Write comment size\r\n\t\t\t\tstream.writeShort(commentSize);\r\n\t\t\t\t// Write disk number start (always 0)\r\n\t\t\t\tstream.writeShort(0);\r\n\t\t\t\t// Write file attributes (always 0)\r\n\t\t\t\tstream.writeShort(0);\r\n\t\t\t\tstream.writeUnsignedInt(0);\r\n\t\t\t\t// Write relative offset of local header\r\n\t\t\t\tstream.writeUnsignedInt(centralDirOffset);\r\n\t\t\t}\r\n\t\t\t// Write filename, extra field and comment\r\n\t\t\tif(filenameSize + extrafieldsSize + commentSize > 0) {\r\n\t\t\t\tstream.writeBytes(ba);\r\n\t\t\t}\r\n\t\t\t// Write file\r\n\t\t\tint fileSize =0;\r\n\t\t\tif(!centralDir && _content.length > 0) {\r\n\t\t\t\tif(isCompressed) {\r\n\t\t\t\t\tif(HAS_UNCOMPRESS || HAS_INFLATE) {\r\n\t\t\t\t\t\tfileSize = _content.length;\r\n\t\t\t\t\t\tstream.writeBytes(_content, 0, fileSize);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileSize = _content.length - 6;\r\n\t\t\t\t\t\tstream.writeBytes(_content, 2, fileSize);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfileSize = _content.length;\r\n\t\t\t\t\tstream.writeBytes(_content, 0, fileSize);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint size =30+filenameSize +extrafieldsSize +commentSize +fileSize ;\r\n\t\t\tif(centralDir) {\r\n\t\t\t\tsize += 16;\r\n\t\t\t}\r\n\t\t\treturn size;\r\n\t\t}", "public void serialize(T t) throws IOException {\n FileOutputStream fileOutputStream = new FileOutputStream(this.mFile);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n DataOutputStream dataOutputStream = new DataOutputStream(bufferedOutputStream);\n this.mCodec.serialize(t, dataOutputStream);\n dataOutputStream.flush();\n $closeResource(null, dataOutputStream);\n $closeResource(null, bufferedOutputStream);\n $closeResource(null, fileOutputStream);\n }", "private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\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\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.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\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\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\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has benn serialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,Object didnt save.\");\n\t\t}\n\t}", "public static byte[] compressReference(Reference dto) {\r\n\t\ttry {\r\n\t\t\treturn JDOSecondaryPropertyUtils.compressObject(X_STREAM, dto);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new IllegalArgumentException(e);\r\n\t\t}\r\n\t}", "@Override\n public final void writeFinal() {\n ((StructuredFileSortHash) file).hashfile.writeHash(getBucketIndex(), file.getOffset());\n writeRecordData();\n }", "public static File writeObjectToTempFile(Serializable o, String filename)\n/* */ throws IOException\n/* */ {\n/* 76 */ File file = File.createTempFile(filename, \".tmp\");\n/* 77 */ file.deleteOnExit();\n/* 78 */ ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(file))));\n/* 79 */ oos.writeObject(o);\n/* 80 */ oos.close();\n/* 81 */ return file;\n/* */ }", "private static void createZipArchiv(String xmlStream, String path, String name) {\r\n\t\ttry {\r\n\t\t\tFile file = new File(path, name + \".xml\");\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\t\t\t//XMLStream in Datei schreiben\r\n\t\t\tPrintWriter writer = new PrintWriter(file);\r\n\t\t\twriter.write(xmlStream);\r\n\t\t\twriter.close();\r\n\t\t\t\r\n\t\t\t//Commando für die Shell um ein Tgz zu erstellen.\r\n\t\t\tString[] str = new String[] {\r\n\t\t\t\t\t\"/bin/bash\",\r\n\t\t\t\t\t\"-c\",\r\n\t\t\t\t\t\"tar cfvz \" + path + \"/\" + name + \".tgz -C \" + path + \" \" + name\r\n\t\t\t\t\t\t\t+ \".xml -C \" + path + \" \" + name + \".pdf\" };\r\n\r\n\t\t\t//Shell Aufruf\r\n\t\t\tProcess p = Runtime.getRuntime().exec(str);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint timeout = 10;\r\n\t\t\twhile (!new File(path + name + \".tgz\").exists() && timeout != 0) {\r\n\t\t\t\t//warten bis Datei erstellt wurde oder 10 sec vergangen sind\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttimeout--;\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\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}", "private CompressionTools() {}", "private static void compressStream(Map<Byte, byte[]> dictionary,\n OutputStream outs) throws IOException {\n int current_pos = 0;\n byte[] byteStream = new byte[dictionary.size()*2];\n boolean patternExistTwice = false;\n for (Byte key : dictionary.keySet()) {\n patternExistTwice =\n doesPatternExistTwice(dictionary, dictionary.get(key));\n\n // If the pattern already exists twice in the dictionary then it is\n // definitely the end of the dictionary\n if (patternExistTwice && key == dictionary.size()) {\n if (dictionary.get(key).length == 1) {\n byteStream[current_pos] = 0;\n current_pos++;\n } else {\n int realKey =\n getKeyOfSubstring(dictionary, dictionary.get(key));\n byteStream[current_pos] = (byte) realKey;\n current_pos++;\n }\n byteStream[current_pos] = Util.getLastByte(dictionary.get(key));\n current_pos++;\n break;\n }\n\n // Write Node number following by last byte of the corresponding\n // value.\n else {\n if (dictionary.get(key).length == 1) {\n byteStream[current_pos] = 0;\n current_pos++;\n } else {\n int realKey =\n getKeyOfSubstring(dictionary, dictionary.get(key));\n byteStream[current_pos] = (byte) realKey;\n current_pos++;\n }\n byteStream[current_pos] = Util.getLastByte(dictionary.get(key));\n current_pos++;\n }\n }\n\n outs.write(byteStream);\n }", "public void setCompression( boolean compress ) {\n this .compression = compress;\n }", "@Override\n public Observable<File> call(File file) {\n Log.d(TAG, \"压缩前: \" + Formatter.formatFileSize(PostContentActivity.this, file.length()));\n return Compressor.getDefault(PostContentActivity.this)\n .compressToFileAsObservable(file);\n }", "private void archiveTraceEventInfoHeader(String tracingID, TraceEventInfoDAO eventDAO, ArchiveHelper archiveHelper)\n throws ArchiveTrailDataException\n {\n String methodName = \"archiveTraceEventInfoHeader\";\n TraceEventInfoHeader header = getTraceEventHeader(tracingID, eventDAO);\n if(header != null)\n {\n archiveHelper.addAuditTrailEntity(header, null, archiveHelper.getArchiveZipCategory()+IArchiveConstant.CATEGORY_TRACE_EVENT_HEADER);\n deleteAuditTrailEntity(eventDAO, header);\n }\n }", "public void link() throws Exception {\n ZipOutputStream output = new ZipOutputStream( new FileOutputStream( outfile ) );\n if ( compression ) {\n output .setMethod( ZipOutputStream .DEFLATED );\n output .setLevel( Deflater .DEFAULT_COMPRESSION );\n } else {\n output .setMethod( ZipOutputStream .STORED );\n }\n Enumeration merges = mergefiles .elements();\n while ( merges .hasMoreElements() ) {\n String path = (String) merges .nextElement();\n File f = new File( path );\n if ( f.getName().endsWith( \".jar\" ) || f.getName().endsWith( \".zip\" ) ) {\n //Do the merge\n mergeZipJarContents( output, f );\n }\n else {\n //Add this file to the addfiles Vector and add it \n //later at the top level of the output file.\n addAddFile( path );\n }\n }\n Enumeration adds = addfiles .elements();\n while ( adds .hasMoreElements() ) {\n String name = (String) adds .nextElement();\n File f = new File( name );\n if ( f .isDirectory() ) {\n //System.out.println(\"in jlink: adding directory contents of \" + f.getPath());\n addDirContents( output, f, f.getName() + '/', compression );\n }\n else {\n addFile( output, f, \"\", compression );\n }\n }\n if ( output != null ) {\n try {\n output .close();\n } catch( IOException ioe ) {}\n }\n }", "public org.apache.spark.sql.catalyst.util.QuantileSummaries compress () { throw new RuntimeException(); }", "static void writeToFiles() throws IOException {\n\n writeToFilePriceHistory();\n writeToFileEmployees();\n writeToFileInventory();\n writeToSaleItems();\n writeToOrder();\n writeToFileInventory();\n writeToRevenueLog();\n }" ]
[ "0.61623317", "0.6139497", "0.6000535", "0.5893677", "0.5765793", "0.5727003", "0.57246816", "0.5626783", "0.5614501", "0.56121355", "0.55255735", "0.54634285", "0.5367247", "0.5318511", "0.5297376", "0.5277281", "0.5213528", "0.5161452", "0.5116199", "0.51128036", "0.5111653", "0.5066266", "0.5063388", "0.5036499", "0.502374", "0.5015322", "0.49694303", "0.49538362", "0.4937977", "0.49311253", "0.49301296", "0.49202317", "0.48974434", "0.4894218", "0.48906517", "0.48889405", "0.48532468", "0.48435134", "0.4837552", "0.48320517", "0.48121873", "0.48120868", "0.4810288", "0.48025844", "0.47911733", "0.47858298", "0.47839704", "0.4777138", "0.4774737", "0.47606355", "0.4744287", "0.47411203", "0.47264457", "0.47168285", "0.47127393", "0.46980542", "0.46695766", "0.46554604", "0.46536833", "0.46489406", "0.46484274", "0.46471214", "0.46457383", "0.46406075", "0.46192586", "0.4618455", "0.4617442", "0.4615982", "0.46087867", "0.46031508", "0.45996594", "0.45968756", "0.4595573", "0.45923454", "0.45911312", "0.4590454", "0.45849544", "0.45814916", "0.45768592", "0.4574619", "0.45703733", "0.45651466", "0.45558664", "0.45527875", "0.45516163", "0.4551466", "0.45487022", "0.45459968", "0.45455903", "0.45440003", "0.453247", "0.4517822", "0.45170856", "0.4510852", "0.45103663", "0.45073554", "0.4503817", "0.44958124", "0.44910446", "0.44801918" ]
0.5934744
3
Append timestamps to MethodEntry/TracePath
public void setTimeStamps(boolean timeStamps) { this.timeStamps = timeStamps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void logTraceTime();", "public abstract void logTraceTime(File file, String description);", "public void trace(long startNanoTime, long endNanoTime, MethodSignature signature) {\n trace(\"{}\\t{}\\t{} {}.{}{}\", METHOD_PROCESSING_TIME,\n (endNanoTime - startNanoTime) / nanosToMicros, signature.getReturnType().getSimpleName(),\n signature.getMethod().getDeclaringClass().getName(), signature.getMethod().getName(),\n Arrays.stream(signature.getParameterTypes()).map(c -> c.getSimpleName())\n .collect(Collectors.joining(\",\", \"(\", \")\")));\n }", "private void addGeneratedTimestamp() {\n\t\tif (getConfig().skipGeneratedTimestamps()) {\n\t\t\treturn;\n\t\t}\n\t\tString value = Processor.class.getName();\n\t\tString date = new SimpleDateFormat(\"dd MMM yyyy hh:mm\").format(new Date());\n\t\tthis.pathBindingClass.addImports(Generated.class);\n\t\tthis.pathBindingClass.addAnnotation(\"@Generated(value = \\\"\" + value + \"\\\", date = \\\"\" + date + \"\\\")\");\n\t\tthis.rootBindingClass.addImports(Generated.class);\n\t\tthis.rootBindingClass.addAnnotation(\"@Generated(value = \\\"\" + value + \"\\\", date = \\\"\" + date + \"\\\")\");\n\t}", "@TmfSignalHandler\n public void traceUpdated(final TmfTraceUpdatedSignal signal) {\n fTraceStartTime = signal.getTrace().getTimeRange().getStartTime().normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue();\n }", "public abstract void broadcastTraceTimeCustom(Server s, String prefix);", "public abstract void sendTraceTimeCustom(Player p, String prefix);", "public void setTimeStampedLogPath(String logPath) {\n\t\tm_timeStampedLogPath = logPath;\n\t}", "public abstract void broadcastTraceTime(Server s);", "@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}", "public void addTimes(File path, Event event)\n {\n addTimes(path, event.getNodes(), event.getEntrants());\n }", "public String getTimeStampedLogPath() {\n\t\treturn m_timeStampedLogPath;\n\t}", "private static String callMethodAndLine() {\n\t\tStackTraceElement thisMethodStack = (new Exception()).getStackTrace()[4];\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb\n.append(AT)\n\t\t\t\t.append(thisMethodStack.getClassName() + \".\")\n\t\t\t\t.append(thisMethodStack.getMethodName())\n\t\t\t\t.append(\"(\" + thisMethodStack.getFileName())\n\t\t\t\t.append(\":\" + thisMethodStack.getLineNumber() + \") \");\n\t\treturn sb.toString();\n\t}", "static void trace(final String method, final String fileName, final Object o) {\n\n if (SysProperties.TRACE_IO) {\n System.out.println(\"FileUtils.\" + method + \" \" + fileName + \" \" + o);\n }\n }", "@Override\n public void addInterceptors(InterceptorRegistry registry) {\n registry.addInterceptor(this.timeInterceptor)\n .addPathPatterns(this.properties.getInterceptorPath());\n }", "public abstract long getTrace();", "@Override\n\tpublic void trace(Marker marker, String message, Object... params) {\n\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void log(String msg, int level, Date date, StackTraceElement trace) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public abstract void sendTraceTime(Player p);", "protected abstract void trace_pre_updates();", "public static void methodEntry(String methodName) {\n\tadd(DEVELOPMENT, \"METHOD_ENTRY\", methodName);\n }", "String getTimestampFunction();", "public static void insertStopwatchBefore(String methodName){\r\n if(!times.containsKey(methodName)){\r\n //System.out.println(\"Measuring method: \" + methodName);\r\n TimeMeasurement timeMeasurementUnit = new TimeMeasurement();\r\n timeMeasurementUnit.methodName = methodName;\r\n times.put(methodName, timeMeasurementUnit);\r\n }else{\r\n times.get(methodName).createNewMethodRun();\r\n }\r\n //System.out.println(times.size());\r\n }", "private void stamp() {\n mInternalStamp = SystemClock.elapsedRealtime();\n }", "Object getTrace();", "protected long logTestStart(String methodName) {\n\t\tString startTimeString = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\").format(new Date());\n\t\tlogEntry(\"*** START \" + methodName + \": \" + testProperties.getEnvironmentName() + \" / \" + browser + \" / \"\n\t\t\t\t+ startTimeString);\n\t\treturn System.nanoTime();\n\t}", "public void printXmlPath(StackTraceElement l) throws IOException {\n\t\t String packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t String classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t String xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t\t fileWriterPrinter(\" XML Path: \" + xml);\n\t\t\t// Renew XML record:\n\t\t\t fileCleaner(\"xml.path\");\n\t\t\t fileWriter( \"xml.path\", xml);\n\t\t\t// Renew Stack Trace Element record:\n\t\t\t fileCleaner(\"stack.trace\");\n\t\t\t fileWriter( \"stack.trace\", l);\n\t\t\t// Append a New Log record:\n\t\t\t if (fileExist(\"run.log\", false)) { fileWriter(\"run.log\", \" XML Path: \" + xml); } \n\t\t}", "public abstract int trace();", "public static String getFullMethodPath () \t{\n\t\t\n\t\treturn Thread.currentThread().getStackTrace()[2].toString();\n\t}", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2) {\n\n\t}", "public void traceStatus() {\n logger.trace(\"jvmThread: {}, jvmMethod: {}\", jvmThread, jvmMethod);\n logger.trace(\"localVariables: {}\", localVariables);\n logger.trace(\"operandStacks: {}\", operandStacks);\n }", "@Override\n\tpublic void trace(String message, Object p0, Object p1) {\n\n\t}", "private void reportTestTrace() {\n int lastNewline = mCurrentTestTrace.length();\n while (lastNewline > 0 && mCurrentTestTrace.charAt(lastNewline - 1) == '\\n') {\n lastNewline--;\n }\n mCurrentTestTrace.delete(lastNewline, mCurrentTestTrace.length());\n // Add the trace.\n TestDescription testId = new TestDescription(mCurrentTestFile, mCurrentTestName);\n mTestTraceCache.put(testId, mCurrentTestTrace.toString());\n }", "@Override\n public void addTimeOffset(double timeOffset)\n {\n throw new RuntimeException(\"This method should not be used with footstep lists.\");\n }", "@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}", "@Override\n\tpublic List<String> getUsageInstructions() {\n\t\treturn Arrays.asList(\"TS.time\");\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1) {\n\n\t}", "@Override\n public void create() throws IOException {\n BufferedReader idreader = new BufferedReader(new FileReader(trace.getAbsolutePath() + \"/id\"));\n String idline;\n //The ID file contains all signatures instrumented\n HashMap<Integer, String> idSignatures = new HashMap<>();\n while ((idline = idreader.readLine()) != null) {\n String[] k = idline.split(\" \");\n idSignatures.put(Integer.parseInt(k[0]), k[1] + \" \" + k[2]);\n }\n\n //Read the method id's from the trace\n Pattern methodPattern = Pattern.compile(\"M(\\\\d+);(\\\\d+)\\\\$\\\\$\\\\$\");\n File[] files = trace.listFiles();\n for (File file : files) {\n if (file.isFile() && file.getName().startsWith(\"log\")) {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n String line;\n while ((line = reader.readLine()) != null) {\n Matcher m = methodPattern.matcher(line);\n if ( m.matches() ) {\n int id = Integer.parseInt(m.group(2));\n String signature = idSignatures.get(id);\n if ( !methodSignatures.contains(signature) ) {\n methodSignatures.add(idSignatures.get(id));\n }\n }\n }\n }\n }\n }", "private void tracePath(Node lastVisitedNode)\r\n {\r\n Node pathPtr = lastVisitedNode;\r\n while (pathPtr != Start)\r\n {\r\n pathPtr.isVisited = true;\r\n pathPtr = pathPtr.parent;\r\n }\r\n }", "@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "@Override\n public String getTrace() {\n return trace;\n }", "void trace(String a, String b) {\n\t\t}", "@Override\n\tpublic void trace(Marker marker, String message) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object p0) {\n\n\t}", "private void printThreadingNotes(String currentMethodLabel) {\n System.out.println(\"\\n###########################################\");\n System.out.println(\"current method = \" + currentMethodLabel);\n System.out.println(\"In application thread? = \" + Platform.isFxApplicationThread());\n System.out.println(\"Current system time = \" + java.time.LocalDateTime.now().toString().replace('T', ' '));\n }", "@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}", "@Override\n\tpublic void trace(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}", "private static void appendToTraceFile(Integer runId, String traceString ) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the trace report\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\t\t\t\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".trace\";\n\t\t} else {\n\t\t\tfileName = fileName +\".trace\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(new FileOutputStream(fileName,true));\n\n\t\trepWriter.printf(\"%s\\n\",traceString);\n\n\t repWriter.close();\n\n\t}", "@Override\n\tpublic EntryMessage traceEntry(String format, Object... params) {\n\t\treturn null;\n\t}", "public void xtestTraceJar() {\n ResolvedType trace = world.resolve(UnresolvedType.forName(\"Trace\"), true);\n assertTrue(\"Couldnt find type Trace\", !trace.isMissing());\n fieldsTest(trace, Member.NONE);\n /*Member constr = */\n MemberImpl.methodFromString(\"void Trace.<init>()\");\n //XXX need attribute fix - \n //methodsTest(trace, new Member[] { constr });\n interfacesTest(trace, ResolvedType.NONE);\n superclassTest(trace, UnresolvedType.OBJECT);\n isInterfaceTest(trace, false);\n isClassTest(trace, false);\n isAspectTest(trace, true);\n pointcutsTest(trace, new Member[] { MemberImpl.pointcut(trace, \"traced\", \"(Ljava/lang/Object;)V\") });\n modifiersTest(trace.findPointcut(\"traced\"), Modifier.PUBLIC | Modifier.ABSTRACT);\n mungersTest(trace, new ShadowMunger[] { world.shadowMunger(\"before(foo): traced(foo) -> void Trace.ajc_before_4(java.lang.Object))\", 0), world.shadowMunger(\"afterReturning(foo): traced(foo) -> void Trace.ajc_afterreturning_3(java.lang.Object, java.lang.Object))\", Advice.ExtraArgument), world.shadowMunger(\"around(): execution(* doit(..)) -> java.lang.Object Trace.ajc_around_2(org.aspectj.runtime.internal.AroundClosure))\", Advice.ExtraArgument), world.shadowMunger(\"around(foo): traced(foo) -> java.lang.Object Trace.ajc_around_1(java.lang.Object, org.aspectj.runtime.internal.AroundClosure))\", Advice.ExtraArgument) });\n ResolvedType myTrace = world.resolve(UnresolvedType.forName(\"MyTrace\"), true);\n assertTrue(\"Couldnt find type MyTrace\", !myTrace.isMissing());\n interfacesTest(myTrace, ResolvedType.NONE);\n superclassTest(myTrace, trace);\n isInterfaceTest(myTrace, false);\n isClassTest(myTrace, false);\n isAspectTest(myTrace, true);\n //XXX need attribute fix - \n //fieldsTest(myTrace, Member.NONE);\n pointcutsTest(trace, new Member[] { MemberImpl.pointcut(trace, \"traced\", \"(Ljava/lang/Object;)V\") });\n modifiersTest(myTrace.findPointcut(\"traced\"), Modifier.PUBLIC);\n // this tests for declared mungers\n mungersTest(myTrace, ShadowMunger.NONE);\n }", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}", "@Override\n public void printDetails() {\n super.printDetails(); // uses its superclass version of the method to print the basic attributes\n System.out.print(\"Time: \" + this.getTime()); // printing the time of the event\n }", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}", "private void constrainTraceMethod(ServletContextHandler ctxHandler) {\n Constraint c = new Constraint();\n c.setAuthenticate(true);\n\n ConstraintMapping cmt = new ConstraintMapping();\n cmt.setConstraint(c);\n cmt.setMethod(\"TRACE\");\n cmt.setPathSpec(\"/*\");\n\n ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();\n securityHandler.setConstraintMappings(new ConstraintMapping[] {cmt});\n\n ctxHandler.setSecurityHandler(securityHandler);\n }", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "public void trace (String msg) \n\t{\n\t\tLog.d(\"Reminder\", msg);\n\t\t//toast (msg);\n\t}", "@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }", "public RequestDataBuilder trace() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.TRACE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier) {\n\n\t}", "public void logBefore(JoinPoint joinPoint);", "public static void printProfilingMethodList(){\r\n for(Map.Entry entry: Instrumentations.profiledMethodMap.entrySet()){\r\n for(String s: (ArrayList<String>)entry.getValue()){\r\n System.out.println(\"Class: \" + entry.getKey() + \", method: \" + s);\r\n }\r\n }\r\n }", "@Override\n\tpublic void trace(String message, Object p0) {\n\n\t}", "public void createTimeStamp (Object timeStamp) {\n LineTranslations.getTranslations().createTimeStamp(timeStamp);\n }", "public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}", "public static void main(String[] args) {\n\t\r\n\tlogger.info(\"{}\" , addDay(new Date(),1));\r\n\t\r\n}", "public\n FileGetWorkingTimeStampsRsp\n (\n TaskTimer timer,\n ArrayList<Long> stamps\n )\n { \n super(timer);\n\n if(stamps == null) \n throw new IllegalArgumentException(\"The timestamps cannot be (null)!\");\n pTimeStamps = stamps;\n\n LogMgr.getInstance().logAndFlush\n (LogMgr.Kind.Net, LogMgr.Level.Finest,\n getTimer().toString()); \n }", "@Override\n\tpublic void trace(Marker marker, String message, Throwable t) {\n\n\t}", "public void dobefore(JoinPoint jp) {\r\n\t\t\r\n\t\tstartTime = System.currentTimeMillis();// captures the start time of the method call\r\n\t\tString time = \"started: \" + startTime;\r\n\t\t// System.out.println(\"\" + jp.toString().getClass().getName());\r\n\t\tString signature = \"methodSignature: \" + jp.getSignature();\r\n\t\tString name = \"methodName: \"+ jp.getSignature().getName();\r\n\t\t// System.out.println(\"The proxy Object is \" + jp.getThis().getClass());\r\n\t\tString targetClass = \"targetClass: \"\r\n\t\t\t\t+ jp.getTarget().getClass().getName();\r\n\t\tmethodlog = name ;\r\n\t\tmethodlog += \",\" + signature + \",\"+ time\t+ \",\"+ targetClass +\",\";\r\n\t}", "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}", "@Before(\"execution(* com.dav.mybatis.controller..*.*(..))\")\n public synchronized void logMethodAccessBefore(JoinPoint joinPoint) {\n log.info(\"***** Starting: \" + joinPoint.getSignature().getName() + \" *****\");\n }", "private void logToFile() {\n }", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}", "public void trace(String message);", "public void trace(String message);", "@Override\n\tpublic void trace(String message, Throwable t) {\n\n\t}", "public void logAfter(JoinPoint joinPoint);", "public void logElapsedTime() {\r\n\r\n NumberFormat nf = NumberFormat.getInstance();\r\n\r\n nf.setMaximumFractionDigits(2);\r\n nf.setMinimumFractionDigits(2);\r\n\r\n historyString = new String(\"Elapsed Time = \" + nf.format(getElapsedTime()) + \" sec.\\n\");\r\n writeLog();\r\n }", "@Override\n\tpublic void trace(Marker marker, Object message) {\n\n\t}", "public static void addAuditTrail(String clazz, String method, String message) {\n addAuditTrail(clazz, method, message, null, null, null);\n }", "void addLog(String beforeChange, String afterChange, String time) {\r\n ArrayList<String> logItem = new ArrayList<>();\r\n logItem.add(beforeChange);\r\n logItem.add(afterChange);\r\n logItem.add(time);\r\n allLogs.add(logItem);\r\n writeToFile(\"Save.bin\",allLogs);\r\n }", "@Override\n\tpublic void trace(Object message) {\n\n\t}", "@Override\n public void logStartTime(long startTimeMillis) {\n if (getLogger().isDebugEnabled()) {\n getLogger().debug(\"logStartTime {}\", startTimeMillis);\n }\n\n sendSynchronously(restApiClient::logStartEndTime, createLogStartTimeRequest(startTimeMillis));\n }", "public void logData(){\n }", "public static void addAuditTrail(String clazz, String method, String message, @SuppressWarnings(\"rawtypes\") Class[] paramTypes, Object[] args, Object returnObject) {\n try {\n WorkflowHelper workflowHelper = (WorkflowHelper) appContext.getBean(\"workflowHelper\");\n workflowHelper.addAuditTrail(clazz, method, message, paramTypes, args, returnObject);\n } catch (Exception e) {\n LogUtil.error(WorkflowUtil.class.getName(), e, \"Error add audit trail\");\n }\n }", "public void addLog(Timestamp startTime, Element requester, int instrumentId,\n\t\t\tint tickref, int lookupKey, int arg, Element responder, LkuResult resultCode,\n\t\t\tfloat data, int lookupTime) {\n\t\t\n\t\tLkuAuditLog log = new LkuAuditLog(startTime, requester, instrumentId, tickref,\n\t\t\t\tlookupKey, arg, responder, lookupTime, resultCode, data);\n\t\taddLog(log);\t\t\n\t}", "@Override\n\tpublic void trace(Marker marker, Message msg, Throwable t) {\n\n\t}", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}", "public void trace(Object message)\n/* */ {\n/* 141 */ this.logger.trace(message);\n/* */ }", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}", "@Override\n\tpublic void trace(String message, Supplier<?>... paramSuppliers) {\n\n\t}", "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }", "private void updateTimeStamp() {\n\t\tthis.timeStamp = new Timestamp(System.currentTimeMillis());\n\t}", "public void writeToLogFile(String entry) {\r\n\t\ttry{\r\n\t\t\tStringBuilder out = new StringBuilder(50);\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\r\n\t\t out.append(sdf.format(cal.getTime()) + \";\" + entry);\r\n\t\t \r\n\t\t this.write(out);\r\n\t\t}catch (Exception e){\r\n\t\t System.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t}", "String timeModified();", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "private static void showTime(String comment,long entryPoint, long endPoint) {\n long elapsedTime = endPoint - entryPoint;\n System.out.println(comment+elapsedTime+\" msec\");\n }", "@Override\n\tpublic void trace(Marker marker, Object message, Throwable t) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, Message msg) {\n\n\t}", "void notifyTrace(RecorderTraceEvent event);", "@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}" ]
[ "0.67844176", "0.64930546", "0.5783655", "0.564374", "0.5639677", "0.56377107", "0.5607615", "0.52617097", "0.5230198", "0.5228152", "0.518484", "0.5149179", "0.51237357", "0.51010895", "0.50896794", "0.5078701", "0.505683", "0.50560313", "0.49922067", "0.49919072", "0.49470156", "0.49293333", "0.49256015", "0.4921048", "0.4912702", "0.49083638", "0.48641938", "0.4856373", "0.48539647", "0.48500958", "0.4822853", "0.48157373", "0.47963446", "0.4792337", "0.4790833", "0.47874415", "0.47833592", "0.47741416", "0.47662985", "0.47654033", "0.4764381", "0.4756971", "0.47517213", "0.47243437", "0.47153637", "0.47054896", "0.46999803", "0.46974862", "0.467872", "0.46750945", "0.46703508", "0.46695557", "0.46652025", "0.46606532", "0.4646182", "0.46353927", "0.46318316", "0.46304303", "0.46274427", "0.46233433", "0.46218035", "0.46211272", "0.46167314", "0.46131992", "0.46119127", "0.46094143", "0.46081495", "0.4607666", "0.46076027", "0.4601552", "0.45997438", "0.4599657", "0.4595255", "0.45945597", "0.45945597", "0.45881277", "0.45858315", "0.45851386", "0.45810202", "0.4579541", "0.45763645", "0.4576325", "0.45740238", "0.45728412", "0.45631272", "0.45629802", "0.45626217", "0.456098", "0.45593283", "0.4547923", "0.45423782", "0.4539362", "0.45393062", "0.45385787", "0.4536939", "0.45361945", "0.45356026", "0.4535024", "0.45309728", "0.45299613", "0.45281294" ]
0.0
-1
Save values/ids from arguments. Needed for patterns with assignments. For primitive types the value is saved, for objects their id.
public void setArgumentValues(boolean argumentValues) { this.argumentValues = argumentValues; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveArguments(String methodName, Map arguments) {\n List args = (List) methodArguments.get(methodName);\n if (args == null) {\n args = new ArrayList();\n methodArguments.put(methodName, args);\n }\n args.add(arguments);\n }", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "public abstract void save(String name, ParmID[] parmIDs,\n ParmID[] availableParmIDs);", "private void processArgs(PreparableObject preparedStatement,\n Map<Integer, Argument> args) throws SQLException {\n for (Map.Entry<Integer, Argument> entry : args.entrySet()) {\n Argument argument = entry.getValue();\n Object value = argument.getValue();\n\n argument.getDataPersister().setObject(preparedStatement, entry.getKey(), value);\n }\n }", "private void saveStateToArguments() {\n if (getView() != null)\n savedState = saveState();\n if (savedState != null) {\n Bundle b = getArguments();\n if (b != null)\n b.putBundle(\"internalSavedViewState8954201239547\", savedState);\n }\n }", "@Override\n public void saveValues() {\n \n }", "public Object call(Context cx, Scriptable xxx, Scriptable thisObj, Object[] args) {\n\t\t\t Object newValue = args[0];\n\t\t\t valueStorage = newValue;\n\t\t\t finalTarget.put(finalTargetProp, scope, newValue);\n\t\t\t return null;\n\t\t\t}", "public void setArguments(Object args) {\n m_args = args;\n }", "public void saveOptions(long setId, String attribute, String[] values) throws ServerException;", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"ui4\", \"ID\", iD == null ? null : iD.getValue());\n }", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "public void saveBack() {\n\t\tmodified = false;\n\n\t\t// set basics\n\t\tRubyHelper.setNum(object, \"@code\", id);\n\t\tRubyHelper.setNum(object, \"@indent\", indent);\n\n\t\t// set parameters\n\t\tRubyArray para = (RubyArray) object.getInstanceVariable(\"@parameters\");\n\t\tpara.clear();\n\n\t\tfor (IRubyObject r : parameters) {\n\t\t\tpara.add(r);\n\t\t}\n\t}", "void saveSaves(Object data, Context context);", "protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }", "void id(int id, id id, int id) {}", "public saveUserInfo_args(saveUserInfo_args other) {\n if (other.isSetUserInfo()) {\n this.userInfo = new UserInfo(other.userInfo);\n }\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tpublic <S extends Map<String, Object>> Iterable<S> save(Iterable<S> arg0) {\n\t\treturn null;\n\t}", "protected void storeCurrentValues() {\n }", "void setArguments(String arguments);", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprotected void persist(String shotId, ReadableFloatVector fv) {\n\t\tPersistentTuple tuple = this.phandler.generateTuple(shotId, arrayCache = fv.toArray(arrayCache));\n\t\tthis.phandler.persist(tuple);\n\t}", "@Override\n public void setValue(Value[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public static void store(DataIdentifier id, Parameter parameter, Object value){\n\t\tString key = null;\n\t\tif(parameter.getName()!=null){\n\t\t\tkey = parameter.getName();\n\t\t}else if(parameter.getRef()!=null && parameter.getRef().toString()!=null){\n\t\t\tkey = parameter.getRef().toString();\n\t\t}\n\t\tDataStore.store(id, key, value);\n\t}", "@Override\n\tpublic <S extends Pessoa> Iterable<S> save(Iterable<S> arg0) {\n\t\treturn null;\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Argument)) {\n return false;\n }\n return id != null && id.equals(((Argument) o).id);\n }", "private void saveValues() {\r\n this.pl_expert.setParam(\"displayNodeDegree\", (String) this.nodeDegreeSpinner.getValue());\r\n this.pl_expert.setParam(\"displayEdges\", (String) this.displayEdgesSpinner.getValue());\r\n this.pl_expert.setParam(\"scale\", (String) this.scaleSpinner.getValue());\r\n this.pl_expert.setParam(\"minWeight\", (String) this.minweightSpinner.getValue());\r\n this.pl_expert.setParam(\"iterations\", (String) this.iterationsSpinner.getValue());\r\n this.pl_expert.setParam(\"mutationParameter\", this.mutationParameter.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"Update_param\", this.Update_param.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"vote_value\", (String) this.vote_value.getValue());\r\n this.pl_expert.setParam(\"keep_value\", (String) this.keep_value.getValue());\r\n this.pl_expert.setParam(\"mut_value\", (String) this.mut_value.getValue());\r\n this.pl_expert.setParam(\"only_sub\", new Boolean(this.only_sub.isSelected()).toString());\r\n\r\n this.is_alg_started = false;\r\n }", "private void saveInputs(int[] inputs, int[] outputs){\n\t\tthis.inputs.add(inputs);\n\t\tthis.outputs.add(outputs);\n\t}", "public Object registerVariable(WorkflowContext context, ProcessInstance entry, Map<String,String> args, PersistentVars persistentVars) throws WorkflowException;", "protected void saveValues() {\n dataModel.persist();\n }", "public void save(Object instance);", "public abstract Value apply(List<Value> args, Node location);", "T save(T t);", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"ui4\", \"SettingID\", settingID == null ? null : settingID.getValue());\n setInput(invocation,\"string\", \"SettingURI\", settingURI == null ? null : settingURI.getValue());\n }", "protected abstract Value execute(final State state, final HashMap<ParameterDef, Value> args) throws SetlException;", "@Override\n public void setValue(String[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "@Override\n\tpublic void setParameters(int set, String value) {\n\t\ttransferDbData.insertValues(set, value);\n\t}", "void setArguments(List<String> arguments);", "private static void mapArgumentsToJava(Object[] args) {\n if (null != args) {\n for (int a = 0; a < args.length; a++) {\n args[a] = mapValueToJava(args[a]);\n }\n }\n }", "public void setArgs(java.lang.Object[] args) {\n this.args = args;\n }", "public <S extends T> List<S> save(Iterable<S> arg0) {\n\t\treturn null;\n\t}", "@Override\n public void setArgs(String[] args) {\n this.args = args.clone();\n }", "@Override\n public void setArgs(String[] args) {\n this.args = args.clone();\n }", "private void saveIds(ArrayList<String> idList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(idList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic <S extends Pessoa> S save(S arg0) {\n\t\treturn null;\n\t}", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public abstract ParametersBuilder saveOrUpdateParameters();", "void setObject(String id, Object data);", "public void setParamValues(Object[] values);", "@Override\n\tpublic <S extends Pedido> Iterable<S> save(Iterable<S> arg0) {\n\t\treturn null;\n\t}", "public saveAccessAnalysis_args(saveAccessAnalysis_args other) {\n if (other.isSetJsessionid()) {\n this.jsessionid = other.jsessionid;\n }\n if (other.isSetFromUserId()) {\n this.fromUserId = other.fromUserId;\n }\n if (other.isSetToUserId()) {\n this.toUserId = other.toUserId;\n }\n if (other.isSetUserIp()) {\n this.userIp = other.userIp;\n }\n if (other.isSetReferer()) {\n this.referer = other.referer;\n }\n if (other.isSetUri()) {\n this.uri = other.uri;\n }\n if (other.isSetBrowser()) {\n this.browser = other.browser;\n }\n if (other.isSetOs()) {\n this.os = other.os;\n }\n }", "void storeObject(PointLatLng point, String id);", "Collection<?> idValues();", "@Override\n public Object saveState(FacesContext _context) {\n if (_values == null) {\n _values = new Object[6];\n }\n _values[0] = super.saveState(_context);\n _values[1] = description;\n _values[2] = varname;\n _values[4] = param;\n _values[5] = simple;\n return _values;\n }", "private static HashMap<String, String> parseArgs(String... args)\n {\n final HashMap<String, String> map = new HashMap();\n //TODO convert args to map\n String lastArg = null;\n for (String string : args)\n {\n //Store new arg\n if (string.startsWith(\"-\"))\n {\n lastArg = string.trim().replaceFirst(\"-\", \"\");\n if (lastArg.contains(\"=\"))\n {\n String[] split = lastArg.split(\"=\");\n lastArg = split[0];\n map.put(lastArg, split[1].replace(\"\\\\\\\"\", \"\"));\n continue;\n }\n map.put(lastArg, null);\n }\n else\n {\n //Store arg value, or append value\n String v = map.get(lastArg);\n if (v == null)\n {\n v = string;\n }\n else\n {\n v += \",\" + string;\n }\n map.put(lastArg, v);\n }\n }\n return map;\n }", "int save(T t);", "@Override\n\tpublic <S extends Map<String, Object>> S save(S arg0) {\n\t\treturn null;\n\t}", "public interface ISaveable {\n List<String> write();\n void read(List<String> savedValues);\n}", "ExtraQuery id(Object value);", "MyArg(int value){\n this.value = value;\n }", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "public <S extends T> S save(S arg0) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic <S extends Estates> Iterable<S> save(Iterable<S> arg0) {\n\t\treturn null;\r\n\t}", "protected void sequence_Arguments(ISerializationContext context, Arguments semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "private void save() {\n Vector<Vector> dataVector = getTableModel().getDataVector();\n constantsList.clear();\n dataVector.stream().forEach((dataRow) -> {\n String name = (String) dataRow.get(0);\n String type = (String) dataRow.get(1);\n Object value = dataRow.get(2);\n ValuedParameterDescriptor newParam = new ValuedParameterDescriptor(name, type, value);\n constantsList.add(newParam);\n });\n constantsProperty.setValueAndUpdate(constantsList); // almost certainly redundant\n }", "@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}", "abstract public void saveData(Bundle bundle);", "public String visit(AssignmentStatement n, LLVMRedux argu) throws Exception {\n String Identifier = n.f0.accept(this, argu);\n String storeArg1 = u.decodeIdentifier(Identifier);\n String type = u.getIdentifierType(Identifier);\n String storeArg2 = n.f2.accept(this, argu);\n u.println(\"store \"+u.javaTypeToLLVMType(type)+\" \"+storeArg2+\", \"+u.pointer(u.javaTypeToLLVMType(type))+\" \"+storeArg1);\n return storeArg1;\n }", "@Override\n public void saveValue(String key, Object value) {\n SharedPreferences.Editor editor = preferences.edit();\n if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n } else if (value instanceof Float) {\n editor.putFloat(key, (Float) value);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n }\n editor.apply();\n }", "private void getSavedValues() {\r\n\r\n if (this.pl_expert.getParam(\"displayNodeDegree\") != null) {\r\n this.display_node_degree_current = this.pl_expert.getParam(\"displayNodeDegree\");\r\n } else {\r\n this.display_node_degree_current = display_node_degree_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"displayEdges\") != null) {\r\n this.display_edges_current = this.pl_expert.getParam(\"displayEdges\");\r\n } else {\r\n this.display_edges_current = display_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"scale\") != null) {\r\n this.scale_current = this.pl_expert.getParam(\"scale\");\r\n } else {\r\n this.scale_current = scale_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"minWeight\") != null) {\r\n this.minweight_edges_current = this.pl_expert.getParam(\"minWeight\");\r\n } else {\r\n this.minweight_edges_current = minweight_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"iterations\") != null) {\r\n this.iterations_current = this.pl_expert.getParam(\"iterations\");\r\n } else {\r\n this.iterations_current = iterations_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"vote_value\") != null) {\r\n this.vote_value_current = this.pl_expert.getParam(\"vote_value\");\r\n } else {\r\n this.vote_value_current = vote_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"keep_value\") != null) {\r\n this.keepclass_value_current = this.pl_expert.getParam(\"keep_value\");\r\n } else {\r\n this.keepclass_value_current = keepclass_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mut_value\") != null) {\r\n this.mut_value_current = this.pl_expert.getParam(\"mut_value\");\r\n } else {\r\n this.mut_value_current = mut_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mutationParameter\") != null) {\r\n this.mut_option_current = this.pl_expert.getParam(\"mutationParameter\");\r\n } else {\r\n this.mut_option_current = mut_option_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Update_param\") != null) {\r\n this.update_param_current = this.pl_expert.getParam(\"Update_param\");\r\n } else {\r\n this.update_param_current = update_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Alg_param\") != null) {\r\n this.alg_param_current = this.pl_expert.getParam(\"Alg_param\");\r\n } else {\r\n this.alg_param_current = alg_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"only_sub\") != null) {\r\n this.display_sub_current = new Boolean(this.pl_expert.getParam(\"only_sub\")).booleanValue();\r\n } else {\r\n this.display_sub_current = display_sub_default;\r\n }\r\n\r\n this.is_alg_started = false;\r\n }", "public getNameById_args(getNameById_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.id = other.id;\n }", "public Map<String, String> arguments() {\n if (this.arguments.isEmpty()) {\n for (final String argument : this.args) {\n final Matcher keys = KEY.matcher(argument);\n if (keys.find()) {\n final String identifier = keys.group(\"identifier\");\n final String value = keys.group(\"value\");\n if (!this.arguments.containsKey(identifier)) {\n this.arguments.put(identifier, value);\n } else {\n throw new IllegalArgumentException(\"duplicated keys\");\n }\n }\n }\n }\n return Collections.unmodifiableMap(this.arguments);\n }", "public int save(SaveQuery saveQuery, EntityDetails entityDetails, ObjectWrapper<Object> idGenerated);", "private static Object[] getValues(\n List<Pair<OvsDbConverter.Entry, Object>> args, Node node) {\n Object[] values = new Object[args.size()];\n for (int index = 0; index < args.size(); index++) {\n if (Node.class.equals(args.get(index).first.type)) {\n values[index] = node;\n } else {\n values[index] = args.get(index).second;\n }\n }\n return values;\n }", "@JavascriptInterface\n public void saveValues(String key, String value) {\n }", "final void set(int param1, Scriptable param2, Object param3) {\n }", "public void setIdentifierValue(java.lang.String param) {\r\n localIdentifierValueTracker = true;\r\n\r\n this.localIdentifierValue = param;\r\n\r\n\r\n }", "public void storeIntegerVar(int index, int value) {\n\t\tstorage[index] = value;\n\t}", "private void saveString(String paramString1, String paramString2) {\n }", "public void SET_PARAMETER(String name, String... value) throws SystemException {\r\n\t\t\r\n\t\t// make sure this is done right. Kinda sucks that Java can't separate those items.\r\n\t\tif (name == null) throw new SystemException(\"SET_PARAMETER faulty. Parameter passed with a null name.\", SystemException.SYSTEM_COMMAND_ERROR_TYPE_VIOLATION, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\tif (value == null) throw new SystemException(\"SET_PARAMETER faulty. Parameter set with a null value.\", SystemException.SYSTEM_COMMAND_ERROR_TYPE_VIOLATION, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\r\n\t\t// Instance check.\r\n\t\tisCommandInstance();\r\n\t\t\r\n\t\t// Can I set it?\r\n\t\tif (cachedDefinition.parameters.containsKey(name)) {\r\n\t\t\t\r\n\t\t\tCommandItem thisItem = cachedDefinition.parameters.get(name);\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\t// Enforce type\r\n\t\t\t\tif ((thisItem.myDataType == DataType.VALUE)&&(value.length > 1)) \r\n\t\t\t\t\tthrow new SystemException(\"SET_PARAMETER faulty. Parameter defined with as date type VALUE, but a list was passed.\", SystemException.SYSTEM_COMMAND_ERROR_TYPE_VIOLATION, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t\t\t\r\n\t\t\t\t// Save by occurence\r\n\t\t\t\tswitch (thisItem.myOccurence) {\r\n\t\t\t\t\tcase NEVER:\r\n\t\t\t\t\t\tthrow new SystemException(\"SET_PARAMETER faulty. Parameter defiend with an occurence of NEVER.\", SystemException.SYSTEM_COMMAND_ERROR_OCCURANCE_VIOLATION, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t\t\r\n\t\t\t\t\tcase ONLYONE:\r\n\t\t\t\t\t\t// Replace\r\n\t\t\t\t\t\tcommandInstance.removeAttribute(name);\r\n\t\t\t\t\t\tcommandInstance.addAttribute(new NV(name,value));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase MANY:\r\n\t\t\t\t\tcase WHATEVER:\t\t\t\t\t\r\n\t\t\t\t\t\t// Simply add it.\r\n\t\t\t\t\t\tcommandInstance.addAttribute(new NV(name,value));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tthrow new SystemException(\"SET_PARAMETER FAULT. Parameter occurence value not defined. This is a bug.\", SystemException.SYSTEM_COMMAND_FAULT_UNDEFINED_STATE, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t} catch (SystemException se) {\r\n\t\t\t\tthrow se;\r\n\t\t\t} catch (ThingsException te) {\r\n\t\t\t\tthrow new SystemException(\"SET_PARAMETER faulty. Could not set it.\", SystemException.SYSTEM_COMMAND_ERROR_SET_FAILED, te, SystemNamespace.ATTR_PLATFORM_MESSAGE,te.getMessage(), SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t} catch (Throwable t) {\r\n\t\t\t\tthrow new SystemException(\"SET_PARAMETER FAULT. Parameter occurence value not defined. This is a bug.\", SystemException.SYSTEM_COMMAND_FAULT_SET_PROBLEM, t, SystemNamespace.ATTR_PLATFORM_MESSAGE, t.getMessage(), SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t}\r\n\t\t\r\n\t\t\t// else if parameter not defined\r\n\t\t} else {\r\n\t\t\tthrow new SystemException(\"SET_PARAMETER faulty. Parameter not defined.\", SystemException.SYSTEM_COMMAND_ERROR_PARAMETER_NOT_DEFINED, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t}\r\n\t\t\r\n\t}", "private static Object[] cleanUrlArgs(Object... args) {\n for (int i = 0; i < args.length; i++) {\n Object arg = args[i];\n if(arg.getClass() == long.class || arg.getClass() == int.class) {\n args[i] = Long.toString((long) arg);\n }\n else if(arg.getClass() == Long.class\n || arg.getClass() == Integer.class) {\n args[i] = arg.toString();\n }\n }\n return args;\n }", "public saveUser_args(saveUser_args other) {\n if (other.isSetAccount()) {\n this.account = other.account;\n }\n if (other.isSetPassword()) {\n this.password = other.password;\n }\n }", "public saveOlympicLiveConfig_args(saveOlympicLiveConfig_args other) {\r\n if (other.isSetEntity()) {\r\n this.entity = new com.lesports.bole.api.vo.TOlympicSettingDataSet(other.entity);\r\n }\r\n }", "public getValue_args(getValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n }", "public void saveGoal(Goal goal);", "@Override\r\n protected void setValueFromId(EObject object, EReference eReference, String ids) {\r\n \r\n super.setValueFromId(object, eReference, ((QNameURIHandler) uriHandler)\r\n .convertQNameToUri(ids));\r\n }", "private void initFixedArgs() {\n\t\t\n\t\t// Fetch arguments and convert to integer\n\t\tObject[] args = this.getArguments();\n\t\t\n\t\t// Assign values\n\t\tcoords = new Point((int) args[coordsXI], (int) args[coordsYI]);\n\t\tspots = (int) args[regularSpotsI] + (int) args[luxurySpotsI] + (int) args[handicapSpotsI];\n\t\tregularSpots = (int) args[regularSpotsI];\n\t\tluxurySpots = (int) args[luxurySpotsI];\n\t\thandicapSpots = (int) args[handicapSpotsI];\n\t\thourlyCost = (int) args[fixedHourlyCostI];\n\t\tluxuryCostPercent = (int) args[fixedLuxuryCostPercentI];\n\t}", "public void setValue(Object param1, Object param2) {\n }", "T save(T obj);", "void setValue(String childID, Object value) throws ConverterException, IllegalAccessException;", "public IRubyObject aset(IRubyObject[] args) {\n switch (args.length) {\n case 2:\n return aset(args[0], args[1]);\n case 3:\n return aset(args[0], args[1], args[2]);\n default:\n throw getRuntime().newArgumentError(\"wrong number of arguments (\" + args.length + \" for 2)\");\n }\n }", "private void storeValue(Object value)\n {\n if (getParent() instanceof ValueSupport)\n {\n ((ValueSupport) getParent()).setValue(value);\n }\n\n if (getVar() != null)\n {\n getContext().setVariable(getVar(), value);\n }\n }", "public void set(String arg0, int arg1, Object arg2) {\n\t\tthis.bdb.set(arg0,arg1,arg2);\n\t}", "private void set_values(ArrayList<Integer> values)\r\n\t{\r\n\t\tthis.poss_values = values;\r\n\t}", "private void storeProperties() {\n storeValue(Variable.MODE);\n storeValue(Variable.ITEM);\n storeValue(Variable.DEST_PATH);\n storeValue(Variable.MAXTRACKS_ENABLED);\n storeValue(Variable.MAXTRACKS);\n storeValue(Variable.MAXSIZE_ENABLED);\n storeValue(Variable.MAXSIZE);\n storeValue(Variable.MAXLENGTH_ENABLED);\n storeValue(Variable.MAXLENGTH);\n storeValue(Variable.ONE_MEDIA_ENABLED);\n storeValue(Variable.ONE_MEDIA);\n storeValue(Variable.CONVERT_MEDIA);\n storeValue(Variable.CONVERT_COMMAND);\n storeValue(Variable.NORMALIZE_FILENAME);\n storeValue(Variable.RATING_LEVEL);\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "public releaseAlarmByIds_args(releaseAlarmByIds_args other) {\n if (other.isSetIds()) {\n List<Integer> __this__ids = new ArrayList<Integer>();\n for (Integer other_element : other.ids) {\n __this__ids.add(other_element);\n }\n this.ids = __this__ids;\n }\n }", "id(int id, id id, int id) {}", "@Override\n public void store(String username, Parameter obj) throws RegistryHandlerException {\n final String parameterName = obj.getName();\n try {\n super.store(username, obj);\n\n statusHandler.info(String.format(SUCCESSFULLY_STORED_PARAMETER,\n parameterName));\n } catch (RegistryHandlerException e) {\n boolean tryAgain = handleUnresolvedReferences(username, obj, e);\n\n if (tryAgain) {\n try {\n super.store(username, obj);\n\n statusHandler.info(String.format(\n SUCCESSFULLY_STORED_PARAMETER, parameterName));\n } catch (RegistryHandlerException e1) {\n statusHandler.error(String.format(FAILED_STORING_PARAMETER,\n parameterName), e1);\n throw e1;\n }\n } else {\n statusHandler.error(\n String.format(FAILED_STORING_PARAMETER, parameterName),\n e);\n }\n }\n }", "List<ArgumentEntity> getArgumentsByUser(UUID id);", "public findBlogPostByIds_args(findBlogPostByIds_args other) {\n if (other.isSetIds()) {\n List<String> __this__ids = new ArrayList<String>();\n for (String other_element : other.ids) {\n __this__ids.add(other_element);\n }\n this.ids = __this__ids;\n }\n }", "public void save(int screenId, float x, float y) {\n\t\tx = x / SCALE_POSITION;\n\t\ty = (y + SET_BACKGROUND_POSITION_Y - MARGIN_Y) / SCALE_POSITION;\n\t\tdb.updateWhenSaving(screenId, x, y);\n\t}" ]
[ "0.5999292", "0.5545056", "0.5315242", "0.52424103", "0.52079916", "0.5188127", "0.5154053", "0.50970024", "0.50857633", "0.50817317", "0.49745497", "0.49588266", "0.49332848", "0.48821375", "0.4870866", "0.48403168", "0.4832491", "0.4819597", "0.47993508", "0.47965688", "0.4789689", "0.47843257", "0.47750026", "0.47746158", "0.4771743", "0.4760995", "0.47540927", "0.4743223", "0.4741383", "0.47285908", "0.4718816", "0.4711303", "0.46810085", "0.46757048", "0.46730152", "0.4661155", "0.46486562", "0.46481732", "0.4647375", "0.4627693", "0.46240133", "0.46240133", "0.46152973", "0.46042818", "0.46033823", "0.46032834", "0.45957732", "0.45955735", "0.45926115", "0.45922402", "0.4590543", "0.45818532", "0.4575902", "0.45758152", "0.45712113", "0.45678228", "0.45599914", "0.45598167", "0.45591617", "0.45391086", "0.45333102", "0.45320627", "0.45319492", "0.45299363", "0.45290425", "0.45277345", "0.4517115", "0.45100078", "0.45084438", "0.45013115", "0.44903982", "0.4486607", "0.44804102", "0.44747084", "0.4464467", "0.44635504", "0.44541198", "0.44541067", "0.4453462", "0.44513664", "0.44505042", "0.44461766", "0.44457257", "0.44404078", "0.44359374", "0.44212988", "0.44199464", "0.4417731", "0.44176108", "0.44171602", "0.44105935", "0.4410181", "0.44087666", "0.440758", "0.4407454", "0.44015974", "0.4399606", "0.4399121", "0.43977922", "0.43912515", "0.4389475" ]
0.0
-1
TODO Autogenerated method stub
@Override public InternalResultsResponse<Convenio> fetchConvenioByRequest(PagedInquiryRequest request) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by Nazar Vynnyk
@Repository public interface HistoryRepository extends JpaRepository<History, Integer> { Page<History> findAll(Pageable pageable); @Query("select h from History h where h.user.id = :userId" + " and (:name is NULL or h.product.name like :name)" + " and (:description is NULL or h.product.description like :description)" + " and (:categoryId is NULL or :categoryId = 0 or h.product.category.id = :categoryId)" + " and (:fromDate is NULL or h.usedDate >= :fromDate)" + " and (:toDate is NULL or h.usedDate <= :toDate)" + " order by h.usedDate asc") Page<History> findByMultipleParams(@Param("userId") int userId, @Param("name") String name, @Param("description") String description, @Param("categoryId") int categoryId, @Param("fromDate") Date fromDate, @Param("toDate") Date toDate, Pageable p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "private void kk12() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo4359a() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void m50366E() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "public void mo55254a() {\n }", "private Rekenhulp()\n\t{\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\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}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo12628c() {\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\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public void skystonePos4() {\n }", "private zza.zza()\n\t\t{\n\t\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}", "public void method_4270() {}", "public void mo12930a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n }", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public abstract void mo70713b();" ]
[ "0.580183", "0.5725765", "0.56965417", "0.564432", "0.5584646", "0.5565739", "0.5565739", "0.556313", "0.55527467", "0.55479354", "0.5522232", "0.55008173", "0.54991686", "0.54969704", "0.549021", "0.54680616", "0.5466934", "0.54659843", "0.54424465", "0.5410532", "0.5403418", "0.5390102", "0.5386939", "0.5380806", "0.53636575", "0.5355241", "0.5340305", "0.53236854", "0.5299122", "0.5294403", "0.52931887", "0.52754784", "0.52754784", "0.52754784", "0.52754784", "0.52754784", "0.52754784", "0.52754784", "0.5262037", "0.5248628", "0.5242568", "0.5207362", "0.5196437", "0.5183266", "0.5181684", "0.51712227", "0.5153636", "0.5153636", "0.5153636", "0.5153636", "0.5153636", "0.5142445", "0.51411027", "0.5125065", "0.51241", "0.51101065", "0.51082015", "0.50969714", "0.5092136", "0.50911146", "0.50901467", "0.5089115", "0.5076303", "0.5066525", "0.5066525", "0.5065107", "0.5061725", "0.50608474", "0.5057183", "0.5053701", "0.5053701", "0.5052707", "0.5051686", "0.5039087", "0.50389344", "0.50389344", "0.50389344", "0.50380707", "0.503805", "0.50360745", "0.50360745", "0.50360745", "0.5029625", "0.5027242", "0.5024507", "0.50243145", "0.5022756", "0.5016434", "0.5014012", "0.5012078", "0.50090116", "0.5008736", "0.49921033", "0.49895453", "0.49895453", "0.49895453", "0.49895453", "0.49895453", "0.49895453", "0.49893236", "0.49891433" ]
0.0
-1
Test of addDhlwsh method, of class Foititis.
@Test public void testAddDhlwsh() { System.out.println("addDhlwsh"); Mathima mathima = null; String hmeromDillwsis = ""; Foititis instance = new Foititis(); instance.addDhlwsh(mathima, hmeromDillwsis); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean add(Dish dish);", "@Test\n public void testAddPengguna() {\n System.out.println(\"addPengguna\");\n Pengguna pengguna = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.addPengguna(pengguna);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testAddVathmos() {\n System.out.println(\"addVathmos\");\n Mathima mathima = null;\n String hmeromExetasis = \"\";\n double vathmos = 0.0;\n Foititis instance = new Foititis();\n instance.addVathmos(mathima, hmeromExetasis, vathmos);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void bakersDozenCorrectlyAddingTest(){\n\t\tBakersDozen obj = new BakersDozen();\n\t\t// Creates a queen of hearts card object\n\t\tCard obj1 = new Card(12, 2);\n\t\t// Creates a ace of spades card object\n\t\tCard obj2 = new Card(1, 3);\n\t\t// Creates a 2 of spades card object\n\t\tCard obj3 = new Card(2, 3);\n\t\t// Creates a 3 of hearts card object\n\t\tCard obj4 = new Card(3, 2);\n\t\t// Creates a 4 of spades card object\n\t\tCard obj5 = new Card(4, 3);\n\t\t// Creates a 3 of spades card object\n\t\tCard obj6 = new Card(3, 3);\n\t\t// Assert it's illegal to add a queen of hearts because the pile is empty \n\t\tassertFalse(obj.getHomeCellPile(1).addCard(obj1));\n\t\t// Assert it's legal to add an ace of spades\n\t\tassertTrue(obj.getHomeCellPile(1).addCard(obj2));\n\t\t// Assert it's legal to add a value one more than homecell's top card\n\t\tassertTrue(obj.getHomeCellPile(1).addCard(obj3));\n\t\t// Assert it's illegal to add card without the identical suit \n\t\tassertFalse(obj.getHomeCellPile(1).addCard(obj4));\n\t\t/* Assert it's illegal to add card with identical suit, \n\t\t * but not a value one more than the homecell's top card\n\t\t */\n\t\tassertFalse(obj.getHomeCellPile(1).addCard(obj5));\n\t\t/* Assert it's legal to add card with identical suit\n\t\t * and a value one more than the homecell's top card \n\t\t */\n\t\tassertTrue(obj.getHomeCellPile(1).addCard(obj6));\n\t}", "@Test\n public void testAdd(){\n DogHouse testDogHouseAdd = new DogHouse();\n Integer expected = 1;\n\n Dog newDog = new Dog (\"Scully\", new Date(), 1);\n testDogHouseAdd.add(newDog);\n\n Integer actual = testDogHouseAdd.getNumberOfDogs();\n\n Assert.assertEquals(expected, actual);\n }", "public void testADDWithData() throws Exception {\n String data =\"Some words about Helen of Troy\";\n doAdd(data, null);\n }", "@Test\n public void addDogTest() {\n Dog dog = new Dog(\"Her\", new Date(), 2);\n DogHouse.add(new Dog(\"Jim\", new Date(), 0));\n DogHouse.add(new Dog(\"Him\", new Date(), 1));\n Integer expected = DogHouse.getNumberOfDogs() + 1;\n DogHouse.add(dog);\n\n Assert.assertEquals(expected, DogHouse.getNumberOfDogs());\n }", "@Test\n public void validAdd1() {\n assertEquals(i3, isl.get(2));\n\n //checks the amount of ingredient 4\n assertEquals(2.39, ((Ingredient) isl.get(3)).amountNeed, 0);\n assertEquals(1.01, ((Ingredient) isl.get(3)).amountHave, 0);\n\n //add an ingredient that is already present in the list\n //the amount should be added to the current amount 2.39 + 0.45 = 2.84\n //ignores the fact that category and unit don't match\n assertFalse(isl.add(new Ingredient(\"vANiLle\", \"niks\", 0.45, 0.69, \"none\")));\n assertEquals(2.84, ((Ingredient) isl.get(3)).amountNeed, 0.00001);\n assertEquals(1.7, ((Ingredient) isl.get(3)).amountHave, 0.00001);\n assertEquals(\"kruiden\", ((Ingredient) isl.get(3)).category);\n assertEquals(Unit.GRAMS, ((Ingredient) isl.get(3)).unit);\n\n //add a new ingredient and check if it's added correctly\n assertTrue(isl.add(new Ingredient(\"cookies\", \"yum\", 3, 4, \"none\")));\n assertEquals(\"cookies\", isl.get(5).name);\n assertEquals(\"yum\", ((Ingredient) isl.get(5)).category);\n assertEquals(3, ((Ingredient) isl.get(5)).amountNeed, 0);\n assertEquals(4, ((Ingredient) isl.get(5)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl.get(5)).unit);\n }", "@Test(groups = \"his.wardadmission.test\")\n\tpublic void addWardTestCase() throws IOException, JSONException {\n\n\t\tJSONObject jsonRequestObject = new JSONObject(RequestUtil\n\t\t\t\t.requestByID(TestCaseConstants.ADD_WARD_ADMISSION));\n\t\t\n\t\tArrayList<String> resArrayList = getHTTPResponse(\n\t\t\t\tproperties\n\t\t\t\t\t\t.getProperty(TestCaseConstants.URL_APPEND_ADD_WARD_ADMISSION),\n\t\t\t\tTestCaseConstants.HTTP_POST, jsonRequestObject.toString());\n\n\t\tSystem.out.println(\"message :\"+resArrayList.get(0));\n\t\t\n\t\tJSONObject jsonObject = new JSONObject(resArrayList.get(0));\n\t\t\n\t\tBHT_No= jsonObject.getString(\"bhtNo\");\n\t\tPatient_ID = jsonObject.getJSONObject(\"patientID\").getString(\"patientID\");\n\t\tWard_No= jsonObject.getString(\"wardNo\");\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)),\n\t\t\t\tSUCCESS_STATUS_CODE);\n\t\tAssert.assertEquals(BHT_No,jsonRequestObject.getString(\"bhtNo\"));\n\t}", "@Test\n public void testAddSightingGP() throws InvalidIdException, InvalidEntityException {\n\n try {\n service.getSightingById(4);\n fail(\"Should get InvalidException on test\");\n } catch (InvalidIdException ex) {\n }\n\n Sighting expected = new Sighting(4, LocalDate.parse(\"2010-01-01\"), loc1, hero1);\n\n Sighting toCheck = service.addSighting(expected);\n assertEquals(expected, toCheck);\n\n toCheck = service.getSightingById(4);\n assertEquals(expected, toCheck);\n }", "@Test\n\tvoid testAddAndSearchWordDataStructureDesign() {\n\t\tAddAndSearchWordDataStructureDesign dict = new AddAndSearchWordDataStructureDesign();\n\t\tdict.addWord(\"bad\");\n\t\tdict.addWord(\"dad\");\n\t\tdict.addWord(\"mad\");\n\t\tassertFalse(dict.search(\"pad\"));\n\t\tassertTrue(dict.search(\"bad\"));\n\t\tassertTrue(dict.search(\".ad\"));\n\t\tassertTrue(dict.search(\"b..\"));\n\t}", "@Test\r\n\tpublic void testAddStall() {\n\t\tassertNotNull(\"Test if there is stall arraylist to add to\", stall);\r\n\r\n\t\t// Given an empty list, after adding 1 stall, the size of the list is 1\r\n\t\tC206_CaseStudy.addStall(stall, s1);\r\n\t\tassertEquals(\"Test if that stall arraylist size is 1\", 1, stall.size());\r\n\r\n\t\t// The stall just added is as same as the first stall of the list\r\n\t\tassertSame(\"Test that stall is added same as first item of the list\", s1, stall.get(0));\r\n\r\n\t\t// Add another stall. Test if the size of the list is 2?\r\n\t\tC206_CaseStudy.addStall(stall, s2);\r\n\t\tassertEquals(\"Test that stall arraylist size is 2\", 2, stall.size());\r\n\t\t\r\n\t\t// Test that a repeated stall id cannot be added.\r\n\t\tC206_CaseStudy.addStall(stall, s2);\r\n\t\tassertEquals(\"Test that stall arraylist size is 2\", 2, stall.size());\r\n\t\t\r\n\t\t// The stall just added is as same as the second stall of the list\r\n\t\tassertSame(\"Test that stall is added same as second item of the list\", s2, stall.get(1));\r\n\r\n\t\t//Test if the stall list can add stall 10\r\n\t\tStall_Info s3 = new Stall_Info(3, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s4 = new Stall_Info(4, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s5 = new Stall_Info(5, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s6 = new Stall_Info(6, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s7 = new Stall_Info(7, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s8 = new Stall_Info(8, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s9 = new Stall_Info(9, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s10 = new Stall_Info(10, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s11 = new Stall_Info(10, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\r\n\t\tC206_CaseStudy.addStall(stall, s3);\r\n\t\tC206_CaseStudy.addStall(stall, s4);\r\n\t\tC206_CaseStudy.addStall(stall, s5);\r\n\t\tC206_CaseStudy.addStall(stall, s6);\r\n\t\tC206_CaseStudy.addStall(stall, s7);\r\n\t\tC206_CaseStudy.addStall(stall, s8);\r\n\t\tC206_CaseStudy.addStall(stall, s9);\r\n\t\tC206_CaseStudy.addStall(stall, s10);\r\n\t\tC206_CaseStudy.addStall(stall, s11);\r\n\t\t\r\n\t\t//Test if the stall list can add stall 10\r\n\t\tassertEquals(\"Test that stall arraylist size is 10?\", 10, stall.size());\r\n\t\t\r\n\t\t//Test after stall 11 have been block, the stall list is still 10\r\n\t\tassertEquals(\"Test that stall arraylist size is 10?\", 10, stall.size());\r\n\t\t\r\n\t}", "@Test\n\tpublic void testAdd1Entry1() {\n\t\ttry {\n\t\t\tfloat maxLF = (float) 0.5;\n\t\t\tHTableWords h = new HTableWords(maxLF);\n\t\t\tString word = \"abc\";\n\t\t\th.addWord(word);\n\t\t\tassertTrue(h.nbWords() == 1);\n\t\t} catch (WException e) {\n\t\t\tfail();\n\t\t}\n\t}", "@Test\n public void testAdd() {\n System.out.println(\"add\");\n int cod = 0;\n int semestre = 0;\n String nombre = \"\";\n int cod_es = 0;\n cursoDAO instance = new cursoDAO();\n boolean expResult = false;\n boolean result = instance.add(cod, semestre, nombre, cod_es);\n assertEquals(expResult, result);\n \n }", "@Test\n public void testAddOrd() {\n System.out.println(\"addOrd\");\n Criteria ctr = null;\n String orderProp = \"\";\n EDirecaoOrdenacao orderDir = null;\n ClassificacaoTributariaDAO instance = new ClassificacaoTributariaDAO();\n instance.addOrd(ctr, orderProp, orderDir);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void bakersDozenAddTest() {\n\t\tBakersDozen Test = new BakersDozen();\n\t\tPile Result = Test.getHomeCellPile(1);\n\t\tCard card = new Card(1,3);\n\t\tint size = Result.getSize();\n\t\tResult.addCard(card);\n\t\tassertEquals(Result.getSize(), size + 1);\n\t\tassertEquals(Result.topCard(), card);\n\t}", "@Test\n public void testAddMedium() throws Exception {\n System.out.println(\"addMedium\");\n String type = \"\";\n Medium pomData = new MediumImpl();\n pomData.addTitle(\"test1\");\n pomData.addTitle(\"test2\");\n DBManager instance = new ODSDBManager(\"empty.ods\");\n List<Medium> expResult = instance.getMedia(\"b\");\n instance.addMedium(\"b\", pomData);\n expResult.add(pomData);\n List<Medium> result = instance.getMedia(\"b\");\n System.out.println(\"result:\"+result+\"\\n data:\"+pomData);\n assertTrue(result.contains(pomData));\n \n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void addRoadTest(){\n\t\tDjikstrasMap m = new DjikstrasMap();\t//Creates new DjikstrasMap object\n\t\tLocation l1 = new Location(\"Guildford\");\n\t\tLocation l2 = new Location(\"Portsmouth\");\n\t\t\n\t\tm.addRoad(\"Guildford\", \"Portsmouth\", 20.5, \"M3\");\t//Adds a road from Guildford to portsmouth to the map\n m.addRoad(\"Portsmouth\", \"Guildford\", 20.5, \"M3\");\n \n assertEquals(l1.getName(), m.getNode(\"Guildford\").getName());\t//Tests that the method added the roads correctly to teh map\n assertEquals(l2.getName(), m.getNode(\"Portsmouth\").getName());\n\t}", "private void testAdd(){\n System.out.println(\"------ TESTING: add(int element) -----\");\n try{\n // add values to list, the sequence is 0,1,....,iSize-1\n for(int i = 0; i < iSize; i++) {\n // if the add method returns false the program did not work correctly\n if (!iTestList.add(i))\n throw new RuntimeException(\"FAILED -> failed to add value to list\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n }", "boolean add(DishCategory dishCategory );", "@Test\n public void add() throws Exception {\n CollisionList list = new CollisionList();\n assertEquals(null, list.add(\"key\", \"value\"));\n assertEquals(\"value\", list.add(\"key\", \"value2\"));\n }", "@Test\n public void addExerciseTest() {\n\n actual.addExercise(\"new exercise\");\n\n Assert.assertEquals(Arrays.asList(EXPECTED_EXERCISES), actual.getExercises());\n }", "abstract int add(boolean highsurf, boolean foggy, String eat);", "void addFullHadith(Object newFullHadith);", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance addNewDecisionSightDistance();", "@Test void addIngredientZero()\n {\n }", "@Test\n public void canAddBedroomToArrayList() {\n hotel.addBedroom(bedroom1);\n assertEquals(5, hotel.checkNumberOfBedrooms());\n }", "@Test\n public void addTest(){\n // Given\n CatHouse catHouse = new CatHouse();\n Cat tom = new Cat(\"tom\", new Date(), 1);\n\n // When\n catHouse.add(tom);\n Integer expected = 1;\n Integer actual = catHouse.getNumberOfCats();\n\n // Then\n Assert.assertEquals(expected, actual);\n }", "public DaftarhunianDtl addDaftarhunianDtl2(DaftarhunianDtl daftarhunianDtl) {\n DaftarhunianDtl x = daftarhunianDtlRepository.save(daftarhunianDtl);\n return x;\n }", "boolean add( Software s );", "public void testCreateDyscos() {\r\n// System.out.println(\"createDyscos\");\r\n// List<StreamUpdate> items = null;\r\n// DyscoCreator instance = new DyscoCreator();\r\n// List expResult = null;\r\n// List result = instance.createDyscos(items);\r\n assertEquals(1, 1);\r\n \r\n\r\n }", "@Test\r\n public void testAdd() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n System.out.println(entry1.toString());\r\n // Initial state\r\n assertEquals(0, instance.size());\r\n assertFalse(instance.contains(entry1));\r\n\r\n instance.add(entry1);\r\n\r\n // Test general case (size)\r\n assertEquals(1, instance.size());\r\n\r\n // Test general case (content)\r\n assertTrue(instance.contains(entry1));\r\n\r\n // Test combined quantity case\r\n // Test that matching ignores letter case\r\n// int initialQuantity = entry1.getQuantity();\r\n int diff = 1;\r\n// int newQuantity = initialQuantity + diff;\r\n Grocery duplicate = new Grocery(entry1.getName().toLowerCase(),\r\n entry1.getCategory());\r\n duplicate.setQuantity(diff);\r\n instance.add(duplicate);\r\n System.out.println(instance.toString());\r\n // and ? do we test anything here?\r\n }", "@Test\n public void testAddTablet() {\n System.out.println(\"addTablet\");\n Tablet tb = new Tablet(\"T005\", \"tablet005\", 0,0);\n DBTablet instance = new DBTablet();\n boolean expResult = true;\n boolean result = instance.addTablet(tb);\n assertEquals(expResult, result);\n }", "@Test\n\tvoid addReportDataToDBTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tboolean condition = false;\n\t\tdate = new Date(120, 4, 1);\n\t\texpected = \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 2 5\";\n\n\t\tString[] str = expected.split(\" \");\n\n\t\tif (ReportsController.CheckReportExistInDB(reportType, date, parkName))\n\t\t\tassertTrue(condition);\n\n\t\tReportsController.addReportToDB(reportType, date, new ArrayList<>(Arrays.asList(str)), parkName);\n\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "@Test\n public void addNoticeMethod() {\n\n NoticeMethodDO noticeMethodDO = new NoticeMethodDO();\n noticeMethodDO.setNoticeId(7L);\n noticeMethodDO.setNoticeMethod(\"ding\");\n noticeMethodDO.setNoticeMethodService(\"dingNoticeMethod\");\n String dingWebHook = \"{\\\"webHook\\\":\\\"https://oapi.dingtalk.com/robot/send?access_token=489f1600814a3175b5b4d048de8ac08f3ad3156a8242a7ee31268f9542f6dfb2\\\",\\\"atMobiles\\\":\\\"13241901419\\\"}\";\n noticeMethodDO.setTarget(dingWebHook);\n Date nowDate = new Date();\n noticeMethodDO.setGmtModified(nowDate);\n noticeMethodDO.setGmtCreate(nowDate);\n fastNoticeDataService.addNoticeMethod(noticeMethodDO);\n }", "@Test\n\tpublic void testAddedWPtoWS() {\n\t\tWorkPackage wp = new WorkPackage(null);\n\t\tWorkSpace ws = new WorkSpace(null);\n\t\tws.addWP(wp);\n\t\tWorkPackage wp2 = ws.getWpList().get(0);\n\t\tAssert.assertTrue(\"wp et wp2 sont différents !\", wp2 == wp);\n\t}", "abstract int add(String cruise_add, String advice_add);", "@Test\n\tpublic void addCustest() {\n\t\tbc.addCustomer(\"wgl\", myDate, \"Beijing\");\n\t\tint flag = 0;\n\t\tfor(Customer cus : bc.cusList){\n\t\t\tif(cus.getName().equals(\"wgl\")){\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t}\n\t\tassertEquals(1, flag);\n\t}", "@Test\n\tpublic void addPointsByListTest(){\n\t}", "@Test\n public void testAddEligibleStudent() {\n System.out.println(\"addEligibleStudent\");\n int ID = 1010101010;\n instance.addEligibleStudent(ID);\n\n assertTrue(\"Student eligibility unchanged\", instance.isStudentEligible(ID));\n\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "@Test\n public void testAddCard() {\n d_gameData.getD_playerList().get(1).addCard(GameCard.BLOCKADE);\n assertEquals(true, d_gameData.getD_playerList().get(1).getD_cards().contains(GameCard.BLOCKADE));\n }", "@Test\n public void Italian()throws ParseException\n {\n System.out.println(\"Italian Dish\");\n //Elementos del palto\n ItalianDish platoItalian;\n platoItalian = new ItalianDish();\n platoItalian = new ItalianDish(\"Pasta\", \"Pasta Estilo Italiano\", \"\", \"\", 3000d, new ArrayList(), Size.ALL);\n platoItalian.addPart(new Dish(\"Carpaccio\",\"\",\"\",4000d, new ArrayList(), Size.HALF));\n platoItalian.addPart(new Dish(\"Rissotto\",\"\",\"\",4500d, new ArrayList(), Size.ALL));\n DishBuilder ItalianBuilder = new ItalianDishBuilder();\n ItalianBuilder.setDish(platoItalian);\n \n DishDirector director = new DishDirector(ItalianBuilder);\n \n Dish dish = director.getDish();\n assertEquals(9500, dish.getPrice()); \n\n }", "public void addWF(int f, int d){\n\t\tf= getIndirectAdress(f);\n\t\tint w = Worker.reg.getWReg(); \n\t\tint buf = getValFromBank(f)+w;\n\t\tint dc = (w & 15) + (getValFromBank(f) & 15);\n\t\tsetCFlag(buf);\n\t\tsetDCFlag(dc);\n\t\tbuf = buf&255;\n\t\tsetZFlag(buf);\n\t\tcheckDandInsert(buf,f,d);\n\t\tWorker.reg.increasePC();\n\t\tWorker.reg.addCycle();\n\t}", "@Test\r\n\tpublic void testAdd() {\n\t\tint num1=10;int num2=20;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertEquals(30, ClientMain.add(num1,num2));\r\n\t\t\r\n\t\t\r\n\t}", "@Test\r\n public void testAddAnalysis() {\r\n System.out.println(\"addAnalysis\");\r\n Analysis a = new Analysis(BigDecimal.ONE, BigDecimal.ONE, BigDecimal.ONE, null, 1, null, null, 1);\r\n assertEquals(0, w.analysies.size());\r\n w.addAnalysis(a);\r\n assertEquals(1, w.analysies.size());\r\n }", "public void testAdd() {\n System.out.println(\"add\");\n String key = \"\";\n Object value = null;\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.add(key, value);\n assertEquals(expResult, result);\n }", "@Test\r\n\t public void addANonExistingRouteFather(){\r\n\t\t RouteFather test = routeFatherDAO.create(new RouteFather(\"rutatest\", \"desctest\", \"asdfas\",\"2012-02-02\", this.rafter));\r\n\t\t Assert.assertNotNull(\"it should returns not null\", test);\r\n\t\t routeFatherDAO.delete(test);\r\n\t\t \r\n\t }", "@Test\n\tpublic void testAdd1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notadd = 3;\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tlistObj2.add(notadd);\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "public int Add(Ohdah ohdah) {\r\n String query = \"INSERT INTO ohdah (name, amount, reason, ohdahDate)\"\r\n + \" VALUES(?, ?, ?, ?)\";\r\n try {\r\n PreparedStatement prep = conn.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\r\n prep.setString(1, ohdah.getName());\r\n prep.setDouble(2, ohdah.getAmount());\r\n prep.setString(3, ohdah.getReason());\r\n prep.setDate(4, new Date(ohdah.getDate().toEpochDay()));\r\n int res = prep.executeUpdate();\r\n if (res > 0) {\r\n return prep.getGeneratedKeys().getInt(\"id\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(cOhdah.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return -1;\r\n }", "@Test\n public void createNeighbourWithSuccess() {\n Neighbour newNeighbour = new Neighbour(13, \"Toto\", \"https://i.pravatar.cc/150?u=a042581f4e29026704d\", \"Saint-Pierre-du-Mont ; 5km\",\n \"+33 6 00 00 00 00 \", \"Bonjour !Je souhaiterais faire de la marche nordique...\");\n //when: I add the newNeighbour to the neighbourList\n service.addNeighbour(newNeighbour);\n List<Neighbour> neighbours = service.getNeighbours();\n assertTrue(neighbours.contains(newNeighbour));\n }", "@Test (dataProvider=\"testdata\")\r\n\r\n\r\n\r\n\t //public void testAdd(Integer exp, Inputs i) {\r\n\r\n\t public void testAdd(Integer exp, int a, int b) {\n\r\n\t assertEquals( exp, (Integer) calci.add(a,b));\r\n\r\n\t //fail(\"expected exceotion didn't occur\");\r\n\r\n\t //assertTrue(false);\r\n\r\n\t }", "@Test\n public void addTest() {\n double expected = 5.5;\n double actual = calculatorApp.add();\n Assert.assertThat(\"Addition function in CalculatorApp: Expected != Real\", actual, is(expected));\n }", "void addData();", "@Override\n\tpublic int insertHjFw(String owNum, String content) {\n\t\tDgOpenWater dgOpenWater = dgOpenWaterMapper\n\t\t\t\t.selectByOpenWaterByNum(owNum);\n\t\tDgCallService dgCallService = new DgCallService();\n\t\tdgCallService.setContent(content);\n\t\tdgCallService.setState(1); // 初始化状态\n\t\tdgCallService.setSeatId(dgOpenWater.getSeatId());\n\t\tdgCallService.setOwNum(owNum);\n\t\tdgCallService.setType(1);\n\t\treturn dgCallServiceMapper.insert(dgCallService);\n\t}", "private void testAddAtIndex(){\n System.out.println(\"------ TESTING : add(int index, int element) ------\");\n try{\n // The insertion will add values to the front\n // the sequence should be iSize-1....,1,0\n for(int i = 0; i < iSize ; i++){\n if(!iTestList.add(0,i))\n throw new RuntimeException(\"FAILED -> add(index,element) not working correctly\");\n }\n // we should test the out of edge cases\n // if we try the following code and the return value is true or if the\n // program crashes then there is a problem\n if(iTestList.add(iSize+10, 999 )){\n throw new RuntimeException(\"FAILED -> index should not be > SIZE\");\n }\n if(iTestList.add(-2,999 )){\n throw new RuntimeException(\"FAILED -> index should not be < 0\");\n }\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "@Test\n public void addTest() {\n BinaryTree testTree = new BinaryTree();\n ComparableWords word=new ComparableWords(\"prueba\",\"test\",\"test\");\n assertNull(testTree.root);\n testTree.add(word);\n assertNotNull(testTree.root);\n }", "@Test\n\tpublic void testAddingPassengerAfterAnotherPassengerBoarding() throws TrainException\n\t{\n\t\tInteger grossWeight = 1;\n\t\tInteger numberOfSeats = 10;\n\t\tInteger newPassengers = 7;\n\t\tInteger addingNewPassenger = 8;\n\t\t\n\t\tasgn2RollingStock.RollingStock passengerCarUnderTest = \n\t\t\tnew asgn2RollingStock.PassengerCar((Integer)grossWeight, (Integer)numberOfSeats);\n\t\t\n\t\tInteger peopleNotGetSeat = ((asgn2RollingStock.PassengerCar)passengerCarUnderTest).board((Integer) newPassengers);\n\t\t\n\t\tpeopleNotGetSeat = ((asgn2RollingStock.PassengerCar)passengerCarUnderTest).board((Integer) addingNewPassenger);\n\t\t\n\t\tInteger expectedPeopleNotGetSeat = newPassengers + addingNewPassenger - numberOfSeats;\n\t\t\n\t\tassertEquals(expectedPeopleNotGetSeat, peopleNotGetSeat);\n\t\t\n\t}", "@Test(priority = 3, enabled = true, description = \"click on the dishes\")\r\n\tpublic void adddish(Method method) throws InterruptedException {\r\n\t\t myTest = extent.startTest(method.getName());\r\n\t\t myTest.log(LogStatus.INFO, \"Starting test\", \"Start test\");\r\n\t\t logger.debug(\"debug it\");\r\n\t\t Assert.assertTrue(restorantsearch.AddDishes(\"תשלום\"), \"is not apayment pop up\");\r\n\t}", "@Test void addIngredientBoundary()\n {\n }", "private void add() {\n\n\t}", "@Test\n public void testAgregarElemento() {\n System.out.println(\"agregarElemento\");\n Nodo miNodo = null;\n Huffman instance = null;\n instance.agregarElemento(miNodo);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "int insert(Dish record);", "@Test\r\n\tpublic void testAddE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\t\t\r\n\t\tassertTrue(ll.add(t5));\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\t\r\n\t\tassertTrue(ll.add(t4));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t\r\n\t\tassertTrue(ll.add(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t3, ll.get(2));\r\n\t\t\r\n\t\tassertFalse(ll.add(null));\r\n\t\tassertFalse(ll.add(t3));\r\n\t\ttry {\r\n\t\t\tll.get(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tll.get(3);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "@Test\n public void testAdd() {\n System.out.println(\"testing add\");\n Arithmetic arithmetic = new Arithmetic(); \n \n assertEquals(\"unexpected result of addition\", 8, arithmetic.add(3,5));\n assertEquals(\"unexpected result of addition\", 6, arithmetic.add(0,6));\n assertEquals(\"unexpected result of addition\", -14, arithmetic.add(0,-14));\n assertEquals(\"unexpected result of addition\", 0, arithmetic.add(-5,5));\n assertEquals(\"unexpected result of addition\", -6, arithmetic.add(-12,6));\n \n }", "@Test\n public void shouldAddValidGameHistory()\n {\n boolean added = DatabaseHelper.addGameToStats(\"test\", \"test\", -25, \"test\", false, 0, 5, 9);\n DatabaseHelper.deleteTestEntry();\n assertTrue(added);\n }", "void addHasSCF(SCF newHasSCF);", "@Test\n public void testGetCatById(){\n DogHouse testDogHouseGetById = new DogHouse();\n Dog newDog = new Dog(\"Scully\", new Date(), 356);\n testDogHouseGetById.add(newDog);\n\n Dog expected = newDog;\n\n Dog actual = testDogHouseGetById.getDogById(356);\n\n Assert.assertEquals(expected, actual);\n }", "@Test\n public void testAdd() {\n System.out.println(\"add\");\n al.add(1);\n Integer a = 1;\n assertEquals(a, al.get(0));\n }", "public void testAddEntry() throws Exception {\n\t\tLOGGER.info(\"TestDictionay.testAddEntry(). Expect seven console ERRORs\");\n\t\tDictionaryLZW dict = new DictionaryLZW();\n\n\t\t// Test adding something that is already there. Should not happen.\n\t\tAssert.assertEquals(26, dict.size());\n\t\tdict.addEntry(\"T\");\n\t\tAssert.assertEquals(26, dict.size());\n\n\t\t// Test adding bad input.\n\t\tdict.addEntry(\"*\");\n\t\tAssert.assertEquals(26, dict.size());\n\t\tdict.addEntry(\"0\");\n\t\tAssert.assertEquals(26, dict.size());\n\t\tdict.addEntry(\"a\");\n\t\tAssert.assertEquals(26, dict.size());\n\t\tdict.addEntry(\"\");\n\t\tAssert.assertEquals(26, dict.size());\n\t\tdict.addEntry(null);\n\t\tAssert.assertEquals(26, dict.size());\n\t\tdict.addEntry(\"a T\");\n\t\tAssert.assertEquals(26, dict.size());\n\n\t\t// add a couple of valid ones.\n\t\tdict.addEntry(\"AT\");\n\t\tAssert.assertEquals(27, dict.size());\n\t\tdict.addEntry(\"AA\");\n\t\tAssert.assertEquals(27, dict.findEntry(\"AT\"));\n\t\tAssert.assertEquals(28, dict.findEntry(\"AA\"));\n\t}", "@Test\n\tpublic void testAddDistance1() {\n\t\tDistance d1 = new Distance(0, 0);\n\t\tDistance d2 = new Distance();\n\t\texpectedFeet = 1;\n\t\texpectedInches = 1;\n\t\tDistance d = d1.addDistance(d1, d2);\n\t\tassertEquals(expectedFeet, d.getFeet());\n\t\tassertEquals(expectedInches, d.getInches());\n\t}", "@Test\n public void Oriental()throws ParseException\n {\n System.out.println(\"Oriental Dish\");\n //Elementos del plato\n OrientalDish platoOriental;\n platoOriental = new OrientalDish(\"Arroz Oriental\", \"Arroz Estilo Oriental\", \"\", \"\", 5500d, new ArrayList(), Size.ALL);\n platoOriental.addPart(new Dish(\"ShopSuey\",\"\",\"\",5000d, new ArrayList(), Size.ALL));\n \n DishBuilder orientalBuilder = new OrientalDishBuilder();\n orientalBuilder.setDish(platoOriental);\n \n DishDirector director = new DishDirector(orientalBuilder);\n //director.create();\n Dish dish = director.getDish();\n assertEquals(10500, dish.getPrice()); \n }", "@Test\n public void testAddOneCard() {\n System.out.println(\"addOneCard\");\n Card addedCard = null;\n // TEST 1 : add a null card\n System.out.println(\" TEST 1 add a null card\");\n Deck instance = new Deck();\n try {\n instance.addOneCard(addedCard);\n }\n catch (NullPointerException aExp){\n assert(aExp.getMessage().contains(\"Null Card can't be added\"));\n }\n assertTrue(\"Adding a null card fail\", true);\n \n // TEST 2 : add a card, draw it and check it's the good one.\n System.out.println(\" TEST 2 add a card. Check it's on top\");\n instance = new Deck();\n Card card = new Card(cardColors.HEART, cardValues.THREE);\n int expResulti = 0;\n instance.addOneCard(card);\n Card drawnCard = instance.drawOneCard();\n assertEquals(expResulti, card.compare(drawnCard));\n \n // TEST 3 : add an existing card.\n }", "@Test\r\n\tpublic void testAddAllInt() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 4, \"ferrum\"));\r\n\t\tsample.add(new Munitions(10, 5, \"ferrum\"));\r\n\t\tsample.addAll(1, list);\r\n\t\tAssert.assertEquals(17, sample.size());\r\n\t\tAssert.assertTrue(sample.get(0).equals(new Munitions(2, 4, \"ferrum\")));\r\n\t\tAssert.assertTrue(sample.get(1).equals(list.get(0)));\r\n\t\tAssert.assertTrue(sample.get(16).equals(new Munitions(10, 5, \"ferrum\")));\r\n\t}", "@Test\n public void testGetDal() {\n logger.info(\"getDal\");\n\n QuoteOfTheDayDAL expResult = dal;\n QuoteOfTheDayDAL result = instance.getDal();\n assertEquals(expResult, result);\n }", "void addHasCFD(CFD newHasCFD);", "void addHadithNo(Object newHadithNo);", "@Test\n\tpublic void testAdd() {\n\t\t\n\t\ttestStructure.add(\"Dog\", 5);\n\t\ttestStructure.add(\"dog\", 1);\n\t\ttestStructure.add(\"dog\", 1);\n\t\ttestStructure.add(\"zebra\", 3);\n\t\ttestStructure.add(\"horse\", 5);\n\n\t\t\n\t\tSystem.out.println(testStructure.showAll());\n\t\tassertEquals(\"[dog: 1, 5\\n, horse: 5\\n, zebra: 3\\n]\", testStructure.showAll().toString());\n\t\t\n\t}", "@Test\n public void test11() {\n cashRegister.addPennies(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addDimes(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addDimes(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addFives(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addNickels(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addOnes(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addQuarters(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addTens(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n }", "@Test\r\n\tpublic void testAddIntE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\r\n\t\t// valid additions\r\n\t\tll.add(0, t3);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tll.add(0, t2);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tll.add(2, t4);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertFalse(ll.isEmpty());\r\n\r\n\t\t// invalid additions\r\n\t\ttry {\r\n\t\t\tll.add(-1, t1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(4, t5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "public org.landxml.schema.landXML11.WatershedsDocument.Watersheds addNewWatersheds()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;\r\n target = (org.landxml.schema.landXML11.WatershedsDocument.Watersheds)get_store().add_element_user(WATERSHEDS$4);\r\n return target;\r\n }\r\n }", "public void testYakalamayiDurdur() {\n System.out.println(\"yakalamayiDurdur\");\n Yakalayici instance = new Yakalayici();\n instance.yakalamayiDurdur();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testAddInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"7\", \"0\", \"9\");\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"0\");\r\n coffeeMaker.addInventory(\"3\", \"6\", \"9\", \"12\"); // this should not fail\r\n coffeeMaker.addInventory(\"10\", \"10\", \"10\", \"10\");// this should not fail\r\n }", "@Test\r\n public void testAddition() {\n }", "@Test\n public void testAddGetSighting() {\n Location l = new Location();\n l.setNameOfResidence(\"Midtown School of Science and Technology\");\n l.setAddress(\"Forest Hills\");\n l.setLatitude(BigDecimal.ONE);\n l.setLongitude(BigDecimal.ONE);\n l.setDescription(\"I got... homework\");\n lDao.addLocation(l);\n\n Organization o = new Organization();\n o.setName(\"Avengers\");\n o.setDescription(\"The Avengers. It's what we call ourselves, \"\n + \"sort of like a team. 'Earth's Mightiest Heroes' type of thing.\");\n o.setAddress(\"890 Fifth Avenue, Manhattan, New York City\");\n o.setContactInfo(\"212-576-4000\");\n oDao.addOrganization(o);\n\n Superperson sp = new Superperson();\n sp.setName(\"Spider-Man\");\n sp.setPower(\"Superhuman strength, reflexes, and balance. Ability to \"\n + \"cling to majority of surfaces. Subconscious ability to sense \"\n + \"everything in his surroundings, AKA- 'spidey-sense'.\");\n sp.setDescription(\"A shy kid\");\n List<Organization> organizations = new ArrayList();\n organizations.add(o);\n sp.setOrganizations(organizations);\n spDao.addSuperperson(sp);\n\n Sighting sighting = new Sighting();\n sighting.setDescription(\"It's a bird... It's a plane... It's Superman!\");\n sighting.setDateSeen(LocalDate.now());\n sighting.setSp(sp);\n sighting.setLocation(l);\n sighting.setFileName(\"ironman\");\n sighting.setTitle(\"IRON MAN\");\n sDao.addSighting(sighting);\n\n Sighting fromDao = sDao.getSightingById(sighting.getSightingId());\n assertEquals(fromDao.getSightingId(), sighting.getSightingId());\n }", "boolean addHardGamePlayed();", "@Test\n public void testAddAndGetSuperpower() throws Exception {\n Superpower sp = new Superpower();\n sp.setSuperPowerName(\"Ice Power\");\n sp.setSuperPowerDescription(\"Control the elements of ice\");\n \n Superpower fromDb = dao.addSuperpower(sp);\n \n assertEquals(sp, fromDb);\n \n }", "@Test\n public void Italian()throws ParseException\n {\n System.out.println(\"Oriental Dish\");\n //Elementos del palto\n ItalianDish platoItalian;\n platoItalian = new ItalianDish(0.0);\n platoItalian.setBase(new Product(2, \"Carpaccio\", 6000d));\n platoItalian.addOption(new Product(5, \"Albondigas a la italiana\", 6500d));\n platoItalian.addOption(new Product(6, \"Pollo picante cacciatore\", 7000d));\n platoItalian.setSize(Size.PERSONAL);\n DishBuilder ItalianBuilder = new ItalianDishBuilder();\n ItalianBuilder.setDish(platoItalian);\n \n DishDirector director = new DishDirector(ItalianBuilder);\n \n Dish dish = director.getDish();\n assertEquals(19500, dish.getPrice()); \n \n //Cambiano el tamaño \n platoItalian.setSize(Size.DOUBLE);\n ItalianBuilder.setDish(platoItalian);\n dish = director.getDish();\n assertEquals(35100, dish.getPrice());\n \n \n }", "@Test\n public void testAddingReport() {\n Assert.assertEquals(\"Incorrect initial water report list size\", 0,\n theModel.getReportList().size());\n try {\n Account holder = new Account(1, \"bills\", \"bills\", Credential.ADMIN);\n WaterReport a = new WaterReport(holder, \"Bottled\", \"Waste\",\n \"Today\", new Location(45, 50));\n WaterReport b = new WaterReport(holder, \"Well\",\n \"Potable\", \"Today\", new Location(30, 25));\n WaterReport c = new WaterReport(holder, \"Stream\",\n \"Treatable - Muddy\", \"Today\", new Location(20, 65));\n theModel.addReport(a);\n theModel.addReport(b);\n theModel.addReport(c);\n Assert.assertEquals(\"WaterReport list size incorrect after adding\", 3,\n theModel.getReportList().size());\n } catch (Exception e) {\n Assert.fail(\"adding water reports should not have failed here\");\n e.printStackTrace();\n }\n }", "@Test\n public void addRecipe_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertNotEquals(\"addRecipe - Returns True\", -1, returned);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.SchufaResponseData addNewSchufaResponseData();", "@Test\n public void testAdd_After_Add() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(3);\n instance.add(9);\n int expResult = 3;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "@Test\n\tpublic void addTown_when_town_is_added() throws Exception {\n\t\t// GIVEN\n\t\ttown = new Town(\"varna\", 2000);\n\t\t// WHEN\n\t\tcountry.addTown(town);\n\t\t// THEN\n\t\tassertEquals(country.getCountTowns(), 1);\n\t}", "@Test\r\n\tpublic void addFeedbackTest() {\n\t\tassertNotNull(\"Check if there is valid Feedback arraylist to add to\", feedbackList);\r\n\t\t// After feedback is added Feedback list size should increase - normal\r\n\t\tfeedbackList.add(fb1);\r\n\t\tassertEquals(\"Check that Feedback arraylist size is 1\", 1, feedbackList.size());\r\n\t\t// Then check if correct Feedback was added\r\n\t\tassertSame(\"Check that Feedback is added\", fb1, feedbackList.get(0));\r\n\t}", "public void addDBEntryToShadowOperation(ShadowOperation shdOp, \n\t\t\tString sqlQuery) throws JSQLParserException, SQLException {\n\t\t// remove the last \";\"\n\n\t\tsqlQuery = sqlQuery.trim();\n\t\tint endIndex = sqlQuery.lastIndexOf(\";\");\n\t\tif (endIndex == sqlQuery.length() - 1) {\n\t\t\tsqlQuery = sqlQuery.substring(0, endIndex);\n\t\t}\n\t\tnet.sf.jsqlparser.statement.Statement sqlStmt = cJsqlParser\n\t\t\t\t.parse(new StringReader(sqlQuery));\n\t\tif (sqlStmt instanceof Insert) {\n\t\t\tInsert insertStatement = (Insert) sqlStmt;\n\t\t\tString tableName = insertStatement.getTable().getName();\n\t\t\tDatabaseTable dTb = this.getDatabaseInstance(tableName);\n\n\t\t\tif (dTb instanceof AosetTable ||\n\t\t\t\t\tdTb instanceof AusetTable) {\n\t\t\t\tshdOp.addOperation(this.createUniqueInsertDBOpEntry(dTb, insertStatement));\n\t\t\t}else if (dTb instanceof ArsetTable) {\n\t\t\t\tshdOp.addOperation(this.createInsertDBOpEntry(dTb, insertStatement));\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"The type of CRDT table \"\n\t\t\t\t\t\t\t\t\t+ dTb.get_CRDT_Table_Type()\n\t\t\t\t\t\t\t\t\t+ \"is not supported by our framework or cannot be modified!\");\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.exit(RuntimeExceptionType.NOTDEFINEDCRDTTABLE);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (sqlStmt instanceof Update) {\n\t\t\tUpdate updateStatement = (Update) sqlStmt;\n\t\t\tString tableName = updateStatement.getTable().getName();\n\t\t\tDatabaseTable dTb = this.getDatabaseInstance(tableName);\n\n\t\t\tif (dTb instanceof ArsetTable || \n\t\t\t\t\tdTb instanceof AusetTable ||\n\t\t\t\t\tdTb instanceof UosetTable){\n\t\t\t\tshdOp.addOperation(this.createUpdateDBOpEntry(dTb, updateStatement, this.getCachedResultSetForDelta()));\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"The type of CRDT table \"\n\t\t\t\t\t\t\t\t\t+ dTb.get_CRDT_Table_Type()\n\t\t\t\t\t\t\t\t\t+ \"is not supported by our framework or cannot be modified!\");\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.exit(RuntimeExceptionType.NOTDEFINEDCRDTTABLE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else if (sqlStmt instanceof Delete) {\n\t\t\tDelete deleteStatement = (Delete) sqlStmt;\n\t\t\tString tableName = deleteStatement.getTable().getName();\n\t\t\tDatabaseTable dTb = this.getDatabaseInstance(tableName);\n\n\t\t\tif (dTb instanceof ArsetTable) {\n\t\t\t\tshdOp.addOperation(this.createDeleteDBOpEntry(dTb, deleteStatement));\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"The type of CRDT table \"\n\t\t\t\t\t\t\t\t\t+ dTb.get_CRDT_Table_Type()\n\t\t\t\t\t\t\t\t\t+ \"is not supported by our framework or cannot be modified!\");\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.exit(RuntimeExceptionType.NOTDEFINEDCRDTTABLE);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tthrow new RuntimeException(\"Could not identify the sql type \"\n\t\t\t\t\t\t+ sqlQuery);\n\t\t\t} catch (RuntimeException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(RuntimeExceptionType.UNKNOWSQLQUERY);\n\t\t\t}\n\t\t}\n\t}", "void add(String str) {\n assertEquals(!words.contains(str), trie.add(str));\n words.add(str);\n dictionary.add(str);\n assertEquals(words.size(), trie.size());\n checkConsistency();\n }", "@Test\n void isShelfAvailability(){\n Shelf shelf=new Shelf(3);\n\n shelf.addResources(Resource.SHIELD);\n shelf.addResources(Resource.SHIELD);\n assertTrue(shelf.isShelfAvailability());\n }", "@Override\n\tpublic boolean addWithdraw(Withdraws wd) throws Exception {\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tString sql = \"insert into withdraws(a_id,amount,currency,draw_time) values('\"\n\t\t\t\t+wd.getA_id()+\"','\"\n\t\t\t\t+wd.getAmount()+\"','\"\n\t\t\t\t+wd.getCurrency()+\"','\"\n\t\t\t\t+wd.getDraw_time()+\"')\";\n\t\ttry {\n\t\t\tconn = DBConnection.getConnection();\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tint col = ps.executeUpdate();\n\t\t\tif (col > 0) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tthrow new Exception(\"insert withdraw record exception:\" + e.getMessage());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (ps != null) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new Exception(\"ps close exception:\" + e.getMessage());\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (conn != null) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new Exception(\"conn close exception:\" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void addRegistrationDetails() {\n\t\tRegistrationDetails registrationDetailsForHappyPath = RegistrationHelper.getRegistrationDetailsForHappyPath();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\tRegistrationDetails addRegistrationDetails = registrationDAO\n\t\t\t\t\t.addRegistrationDetails(registrationDetailsForHappyPath);\n\t\t\tem.getTransaction().commit();\n\t\t\tassertTrue(addRegistrationDetails.getId() != 0l);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t}", "D add(D dto);" ]
[ "0.6333556", "0.61375713", "0.612648", "0.5953538", "0.58944535", "0.5894293", "0.5832002", "0.5806588", "0.5796196", "0.5766783", "0.57439196", "0.56961745", "0.5660099", "0.5652492", "0.5651487", "0.56505835", "0.56496626", "0.5597228", "0.5580025", "0.55515015", "0.5524812", "0.5510359", "0.5506834", "0.5495464", "0.54943335", "0.5490079", "0.54843533", "0.54698944", "0.5463953", "0.5460284", "0.5458244", "0.5455754", "0.54480946", "0.5436168", "0.54292774", "0.54212636", "0.5415695", "0.54152656", "0.54109675", "0.539116", "0.53883976", "0.53880113", "0.53846383", "0.53840774", "0.5379019", "0.5376009", "0.53758204", "0.53685385", "0.53648114", "0.5362362", "0.5333305", "0.5332813", "0.5330563", "0.532802", "0.53235596", "0.5320696", "0.53186196", "0.5317877", "0.53130823", "0.53107285", "0.53082705", "0.5305189", "0.5304291", "0.5303757", "0.5300289", "0.5290399", "0.5289456", "0.52872056", "0.52774614", "0.5277213", "0.52759284", "0.5274918", "0.52684456", "0.5264891", "0.5263368", "0.5263174", "0.5252745", "0.52486056", "0.5248352", "0.52476853", "0.524685", "0.52373976", "0.52360857", "0.5235723", "0.52354956", "0.5232959", "0.5229901", "0.5228353", "0.52272046", "0.5226774", "0.5216749", "0.5214861", "0.5212356", "0.5208242", "0.52055556", "0.52018535", "0.52015185", "0.5198678", "0.5192337", "0.51899356" ]
0.8488007
0
Test of addVathmos method, of class Foititis.
@Test public void testAddVathmos() { System.out.println("addVathmos"); Mathima mathima = null; String hmeromExetasis = ""; double vathmos = 0.0; Foititis instance = new Foititis(); instance.addVathmos(mathima, hmeromExetasis, vathmos); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAdding(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecFile.AddCommand(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n assertEquals(VecCommandType.RECTANGLE, VecFile.GetLastCommand().GetType());\n }", "public void testGetVectorFactory()\n {\n this.testSetVectorFactory();\n }", "@Test\n public void testMediaMovelSimples() {\n System.out.println(\"MediaMovelSimples\");\n int[] energia = null;\n int linhas = 0;\n double n = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.MediaMovelSimples(energia, linhas, n);\n if (resultArray != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n assertArrayEquals(expResult, resultArray);\n\n }", "private void addTestListData() {\n\t\ts.add(new Sphere(quad, sky, 1000, 0, 0, 0, -90, 0, 0));\n\t\t\n//\t\ts.add(new Sphere(quad, planets[0], 3.8f, 50, 40, -50, -90, 0, 0));\n//\t\ts.add(new Sphere(quad, planets[1], 9.5f, 40, 40, -20, -90, 0, 0));\n//\t\ts.add(new Sphere(quad, planets[2], 10.f, 0, 40, -20, -90, 0, 0));\n//\t\ts.add(new Sphere(quad, planets[3], 5.3f,-20, 40, -50, -90, 0, 0));\n//\t\t\n//\t\ts.add(new Sphere(quad, planets[4], 112f, 410, 120, 100, -90, 0, 0));\n//\t\ts.add(new Sphere(quad, planets[5], 94.5f, 100, 120, 260, -90, 0, 0));\n//\t\ts.add(new Sphere(quad, planets[6], 40f, -170, 100, 240, -90, 0, 0));\n//\t\ts.add(new Sphere(quad, planets[7], 38.8f, -270, 100, 200, -90, 0, 0));\n//\t\t\n//\t\ts.add(new Sphere(quad, planets[8], 5, -110, 50, 50, -90, 0, 0));\n//\t\ts.add(new Sphere(quad, planets[9], 2.5f, 0, 40, -40, -90, 0, 0));\n//\t\t\n//\t\ts.add(new Disc(quad, ring, 225, 100, 120, 260, -90, 0, 0));\n\t\t\n\t\tms.add(new ModelShape(models[2], 12, 6, 12, 0, 0, 0, 0, 0, 0));\n//\t\tms.add(new ModelShape(models[3], 1, 1, 1, -50, 15, -50, 0, 0, 0));\n//\t\tms.add(new ModelShape(models[4], 1, 1, 1, 0, 15, -70, 0, 0, 0));\n//\t\tms.add(new ModelShape(models[5], 1, 1, 1, 0, 15, -70, 0, 0, 0));\n//\t\tms.add(new ModelShape(models[6], 1, 1, 1, 0, 15, -70, 0, 0, 0));\n//\t\tms.add(new ModelShape(models[7], 1, 1, 1, 0, 15, -70, 0, 0, 0));\n//\t\tms.add(new ModelShape(models[8], 3, 3, 3, 0, 20, -45, 0, 0, 0));\n//\t\tms.add(new ModelShape(models[9], 1, 1, 1, 30, 15, -40, 0, 0, 0));\n\t\t//ms.add(new ModelShape(models[10], 0.2f, 0.2f, 0.2f, 0, -30, -40, 0, 0, 0));\n\t}", "@Test\n public void testMediaGlobal() {\n System.out.println(\"mediaGlobal\");\n int[] serieTemp = new int[1];\n int qtdlinhas = 1;\n double expResult = 0.0;\n double result = ProjetoV1.mediaGlobal(serieTemp, qtdlinhas);\n assertEquals(expResult, result, 0.0);\n\n }", "@Test\n public void getLengthVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getLength() == 1);\n }", "@Test\r\n public void testAddVector() throws Exception {\r\n System.out.println(\"AddVector\");\r\n int[] T = {1,2,3};\r\n int []T2 = {4,5,6};\r\n VectorHelper instance = new VectorHelper();\r\n int[] expResult = {5,7,9};\r\n int[] result = instance.AddVector(T, T2);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "@Test\n\tpublic void testVisualizzaFondi() {\n\t\tfondi = Fondo.visualizzaFondi();\n\t\tdimensione = fondi.size();\n\t\tnome = randomString.nextString();\n\t\t\n\t\tFondo.inserisciFondo(nome, importo);\n\t\t\n\t\tfondi = Fondo.visualizzaFondi();\n\t\tassertEquals(\"visualizzaFondi() non funziona correttamente\", dimensione + 1, fondi.size());\n\t}", "@Test\n\tpublic void testVisualizzaFondo() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tfondo = Fondo.visualizzaFondo(nome);\n\t\tassertTrue(\"visualizzaFondo() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == importo &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "public void add(double sthis, Vec vthat, double sthat);", "@Test\r\n public void testAppartentMagnitude() {\r\n System.out.println(\"appartentMagnitude\");\r\n \r\n // Test case one.\r\n System.out.println(\"Test case #1\"); \r\n \r\n double magnitude = 12;\r\n double distance = 200;\r\n \r\n SceneControl instance = new SceneControl();\r\n \r\n double expResult = 0.0003;\r\n double result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case two.\r\n System.out.println(\"Test case #2\"); \r\n \r\n magnitude = 13;\r\n distance = -50;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case three.\r\n System.out.println(\"Test case #3\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, -999999);\r\n \r\n // Test case four.\r\n System.out.println(\"Test case #4\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case five.\r\n System.out.println(\"Test case #5\"); \r\n \r\n magnitude = 14;\r\n distance = 0;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case six.\r\n System.out.println(\"Test case #6\"); \r\n \r\n magnitude = -50;\r\n distance = 12;\r\n \r\n expResult = -0.3472;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case seven.\r\n System.out.println(\"Test case #7\"); \r\n \r\n magnitude = 50;\r\n distance = 20;\r\n \r\n expResult = 0.125;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case eight.\r\n System.out.println(\"Test case #8\"); \r\n \r\n magnitude = 13;\r\n distance = 1;\r\n \r\n expResult = 13;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n }", "@Test\r\n public void testMedia() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87);\r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 0.1);\r\n }", "@Test\n public void testCalculerMoyenne() {\n\n System.out.println(\"calculerMoyenne\");\n Date date1 = new DateTime(2013, 1, 1, 0, 0).toDate();\n Date date2 = new DateTime(2013, 1, 6, 0, 0).toDate();\n\n POJOCompteItem instance = genererInstanceTest();\n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n Integer expResult = null;\n Float result = instance.calculerMoyenne(date1, date2);\n\n if (!result.equals(new Float(2.6))) {\n fail(\"le résultat est 2.6\");\n }\n// assertEquals(expResult, result);\n System.out.println(\"MOY : \" + result);\n\n try {\n instance.calculerMoyenne(null, null);\n fail(\"devait lever une exeception\");\n } catch (Exception e) {\n }\n }", "@Test\n public void testCalcularValorDeVenda() {\n System.out.println(\"CalcularValorDeVenda\");\n Telemovel instance = new Telemovel(\"Samsung Galaxy S20\",1500);\n double expResult = 1545;\n double result = instance.CalcularValorDeVenda();\n assertEquals(expResult, result, 0.0);\n \n }", "@Test\n\tpublic void testVisualizzaFondoInt() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tfondo = Fondo.visualizzaFondo(idFondo);\n\t\tassertTrue(\"visualizzaFondoInt() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == importo &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "private static void teste02 () {\n\t\tEstoque e = Estoque.find(1);\n\t\tlog.debug(\"Estoque encontrado.\");\n\n\t\te.setPreco(new Float(10));\n\t\te.update();\n\n\t\tlog.debug(\"Estoque atualizado.\");\n\t}", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }", "public void testAltaVehiculo(){\r\n\t}", "public void testOctaedre() {\n\t\t\t\n\t\t\tSolide i = Octaedre.octaedre();\n\t\t\t\n\t\t\t/* creation de points qui ont les memes coordonnees que ceux qui \n\t\t\t * constituent notre solide (car octaedre() n'a pas de parametres)\n\t\t\t */\n\t\t\t\n\t\t\tPoint p1 = new Point(-25, 0,-25);\n\t\t\tPoint p2 = new Point(-25, 0,25);\n\t\t\tPoint p3 = new Point(25, 0,-25);\n\t\t\tPoint p4 = new Point(25,0,25);\n\t\t\tfloat hauteur = (float) (50/Math.sqrt(2));\n\t\t\t// on se sert de la hauteur pour donnee les coordonees des sommets manquant\n\t\t\tPoint p5 = new Point(0, hauteur,0);\n\t\t\tPoint p6 = new Point(0,-hauteur,0);\n\t\t\t\n\t\t\t//On teste si les points de l'octaedre i sont bien les memes que ceux créés\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getAbscisse()==(p1.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(1).getAbscisse()==(p2.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(5).getAbscisse()==(p3.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(3).getAbscisse()==(p4.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(2).getAbscisse()==(p5.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(0).getAbscisse()==(p6.getAbscisse()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getOrdonnee()==(p1.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(1).getOrdonnee()==(p2.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(5).getOrdonnee()==(p3.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(3).getOrdonnee()==(p4.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(2).getOrdonnee()==(p5.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(0).getOrdonnee()==(p6.getOrdonnee()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getProfondeur()==(p1.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(1).getProfondeur()==(p2.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(5).getProfondeur()==(p3.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(3).getProfondeur()==(p4.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(2).getProfondeur()==(p5.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(0).getProfondeur()==(p6.getProfondeur()));\n\t\t\t\n\t\t\t//On teste si les faces de l'octaedre contiennent bien les points créés\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(0).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(1).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(2).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(3).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p6));\n\t\t\n\t\t\tassertTrue(i.getFaces().get(4).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(5).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(6).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(7).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p6));\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "@Test\n public void testGetTemperaturaInteriorAlvo() {\n System.out.println(\"getSetTemperaturaInteriorAlvo\");\n double expResult = 20.0;\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.setTemperaturaInteriorAlvo(expResult);\n double result = instance.getTemperaturaInteriorAlvo();\n assertEquals(expResult, result, 0.0);\n }", "@Test\n public void getAngleVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getAngle() == 90);\n }", "@Test\n public void testCasesVidePlacement() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test casesVidePlacement ====================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n JoueurHumain j1 = new JoueurHumain(instance, true, NumJoueur.JOUEUR1);\n JoueurHumain j2 = new JoueurHumain(instance, true, NumJoueur.JOUEUR1);\n Reine reinej1 = j1.getReine(j1.getPions());\n Reine reinej2 = j2.getReine(j2.getPions());\n\n ArrayList<HexaPoint> expectedj1;\n ArrayList<HexaPoint> expectedj2;\n ArrayList<HexaPoint> resj1;\n ArrayList<HexaPoint> resj2;\n\n System.out.println(\"test sur une ruche venant d'être créé :\");\n expectedj1 = new ArrayList<>();\n expectedj1.add(orig);\n expectedj2 = new ArrayList<>();\n expectedj2.add(orig);\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n arrayCorrespondsp(resj1, expectedj1);\n arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur avec l'insecte de j1 à l'origine :\");\n instance.ajoutInsecte(reinej1, orig);\n expectedj1 = new ArrayList<>();\n expectedj1.addAll(orig.coordonneesVoisins());\n expectedj2 = new ArrayList<>();\n expectedj2.addAll(orig.coordonneesVoisins());\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n arrayCorrespondsp(resj1, expectedj1);\n arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n \n System.out.println(\"test sur avec l'insecte de j1 à l'origine et j2 en bas:\");\n instance.ajoutInsecte(reinej2, orig.voisinBas());\n expectedj1 = new ArrayList<>();\n expectedj1.add(orig.voisinDroiteHaut());\n expectedj1.add(orig.voisinGaucheHaut());\n expectedj1.add(orig.voisinHaut());\n expectedj2 = new ArrayList<>();\n expectedj2.add(orig.voisinBas().voisinBas());\n expectedj2.add(orig.voisinBas().voisinDroiteBas());\n expectedj2.add(orig.voisinBas().voisinGaucheBas());;\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n //arrayCorrespondsp(resj1, expectedj1);\n //arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public static void addNewVilla() {\n Services villa = new Villa();\n villa = addNewService(villa);\n ((Villa) villa).setRoomType(FuncValidation.getValidName(ENTER_ROOM_TYPE,INVALID_NAME));\n ((Villa) villa).setFacilities(FuncValidation.getValidName(ENTER_FACILITIIES,INVALID_NAME));\n ((Villa) villa).setPoolArea(FuncValidation.getValidDoubleNumber(ENTER_POOL_AREA,INVALID_DOUBLE_NUMBER,30.0));\n ((Villa) villa).setNumberOfFloor(FuncValidation.getValidIntegerNumber(ENTER_NUMBER_OF_FLOOR,INVALID_NUMBER_OF_FLOOR, 0));\n\n //Get villa list from CSV\n ArrayList<Villa> villaList = FuncGeneric.getListFromCSV(FuncGeneric.EntityType.VILLA);\n\n //Add villa to list\n villaList.add((Villa) villa);\n\n //Write villa list to CSV\n FuncReadWriteCSV.writeVillaToFileCSV(villaList);\n System.out.println(\"----Villa \"+villa.getNameOfService()+\" added to list---- \");\n addNewServices();\n\n }", "@Test\r\n\tpublic void testAddCamcorder() {\n\t\tassertNotNull(\"Test if there is valid Camcorder arraylist to add to\", camcorderList);\r\n\r\n\t\t// Given an empty list, after adding 1 item, the size of the list is 1\r\n\t\t// Call the add camcorder, add cc1 into the camcorder list.\r\n\t\t// And check the expected result, that the size should be 1.\r\n\t\t// Will pass if true, if the size is 1.\r\n\t\tResourceCentre.addCamcorder(camcorderList, cc1);\r\n\t\tassertEquals(\"Test if that Camcorder arraylist size is 1?\", 1, camcorderList.size());\r\n\r\n\t\t// The item just added is as same as the first item of the list\r\n\t\t// Get the first item out and compare with the one added.\r\n\t\tassertSame(\"Test that Camcorder is added same as 1st item of the list?\", cc1, camcorderList.get(0));\r\n\r\n\t\t// Add another item. test The size of the list is 2?\r\n\t\t// Check size of 2.\r\n\t\tResourceCentre.addCamcorder(camcorderList, cc2);\r\n\t\tassertEquals(\"Test that Camcorder arraylist size is 2?\", 2, camcorderList.size());\r\n\t}", "@Test\n public void testVaticanReport() {\n Game game = new Game(2);\n FaithTrack faith = game.getPlayers().get(0).getFaithTrack();\n faith.increasePos(5);\n assertTrue(faith.isVatican());\n faith.vaticanReport(1);\n assertEquals(faith.getBonusPoints()[0], 2);\n faith.increasePos(5);\n faith.vaticanReport(2);\n assertEquals(faith.getBonusPoints()[0], 2);\n }", "@Test\n\tpublic void testesExtras() {\n\t\tminitElimBai_1.setNome(\"Disc 1\");\n\t\tAssert.assertEquals(\"Erro em setNome()\", \"Disc 1\",\n\t\t\t\tminitElimBai_1.getNome());\n\t\tminitElimBai_1.setQtdProvas(10);\n\t\tAssert.assertEquals(\"Erro em setQtdProvas()\", 10,\n\t\t\t\tminitElimBai_1.getQtdProvas());\n\t\tminitElimBai_1.setQtdProvasJaRealizadas(1);\n\t\tAssert.assertEquals(\"Erro em setQtdProvasJaRealizadas()\", 1,\n\t\t\t\tminitElimBai_1.getQtdMinitestesJaRealizados());\n\t\tminitElimBai_1.setQtdFaltas(3);\n\t\tAssert.assertEquals(\"Erro em setQtdFaltas()\", 3,\n\t\t\t\tminitElimBai_1.getQtdFaltas());\n\t\tminitElimBai_1.setQtdMinitestesAEliminar(4);\n\t\tAssert.assertEquals(\"Erro em setQtdProvasAEliminar()\", 4,\n\t\t\t\tminitElimBai_1.getQtdMinitestesAEliminar());\n\n\t\tminitElimBai_2.setNome(\"Disc 2\");\n\t\tAssert.assertEquals(\"Erro em setNome()\", \"Disc 2\",\n\t\t\t\tminitElimBai_2.getNome());\n\t\tminitElimBai_2.setQtdProvas(10);\n\t\tAssert.assertEquals(\"Erro em setQtdProvas()\", 10,\n\t\t\t\tminitElimBai_2.getQtdProvas());\n\t\tminitElimBai_2.setQtdProvasJaRealizadas(1);\n\t\tAssert.assertEquals(\"Erro em setQtdProvasJaRealizadas()\", 1,\n\t\t\t\tminitElimBai_2.getQtdMinitestesJaRealizados());\n\t\tminitElimBai_2.setQtdFaltas(3);\n\t\tAssert.assertEquals(\"Erro em setQtdFaltas()\", 3,\n\t\t\t\tminitElimBai_2.getQtdFaltas());\n\t\tminitElimBai_2.setQtdMinitestesAEliminar(2);\n\t\tAssert.assertEquals(\"Erro em setQtdProvasAEliminar()\", 2,\n\t\t\t\tminitElimBai_2.getQtdMinitestesAEliminar());\n\n\t}", "@Test\n public void addTest() {\n double expected = 5.5;\n double actual = calculatorApp.add();\n Assert.assertThat(\"Addition function in CalculatorApp: Expected != Real\", actual, is(expected));\n }", "@Test\r\n\tpublic void venderVariasPiezasReservadas() {\r\n\t\tfor (Pieza pieza : this.listadoDePiezas) {\r\n\t\t\tpieza.reservar();\r\n\t\t\tpieza.vender();\r\n\t\t\tAssert.assertTrue(\"La pieza no ha sido correctamente vendida.\",pieza.isVendida());\r\n\t\t}\r\n\t}", "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nAlpha);\n if (result != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n\n assertArrayEquals(expResult, resultArray);\n\n }", "@Test\r\n public void testSetMiservicio() {\r\n System.out.println(\"setMiservicio\");\r\n Servicio miservicio = new Servicio();\r\n miservicio.descripcion=\"gestion de vigilancia\";\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMiservicio(miservicio);\r\n assertEquals(instance.getMiservicio().descripcion, \"gestion de vigilancia\");\r\n }", "@Test\n public void testAddDhlwsh() {\n System.out.println(\"addDhlwsh\");\n Mathima mathima = null;\n String hmeromDillwsis = \"\";\n Foititis instance = new Foititis();\n instance.addDhlwsh(mathima, hmeromDillwsis);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testAddMaterialOneMaterial() {\n String material = \"material\";\n planned.addMaterials(material);\n\n assertEquals(planned.getMaterials().size(), 1);\n\n assertTrue(planned.getMaterials().contains(material));\n\n }", "@Before\n public void antesDeTestear(){\n this.creditosHaberes = new Ingreso();\n this.creditosHaberes.setMonto(10000.0);\n this.creditosHaberes.setFecha(LocalDate.of(2020,9,25));\n\n this.donacion = new Ingreso();\n this.donacion.setMonto(500.0);\n this.donacion.setFecha(LocalDate.of(2020,9,26));\n\n\n this.compraUno = new Egreso();\n this.compraUno.setFecha(LocalDate.of(2020,9,26));\n this.compraUno.setMonto(1000.0);\n\n this.compraDos = new Egreso();\n this.compraDos.setFecha(LocalDate.of(2020,9,27));\n this.compraDos.setMonto(2500.0);\n\n this.compraTres = new Egreso();\n this.compraTres.setFecha(LocalDate.of(2020,9,23));\n this.compraTres.setMonto(10000.0);\n\n ingresos.add(donacion);\n ingresos.add(creditosHaberes);\n\n egresos.add(compraUno);\n egresos.add(compraDos);\n egresos.add(compraTres);\n\n /***************Creacion de condiciones*************/\n this.condicionEntreFechas = new CondicionEntreFechas();\n\n this.condicionValor = new CondicionValor();\n\n this.condicionSinIngresoAsociado = new CondicionSinIngresoAsociado();\n /***************Creacion criterio*******************/\n this.ordenValorPrimeroEgreso = new OrdenValorPrimeroEgreso();\n this.ordenValorPrimeroIngreso = new OrdenValorPrimeroIngreso();\n this.ordenFecha = new Fecha();\n this.mix = new Mix();\n\n\n /***************Creacion vinculador*****************/\n vinculador = Vinculador.instancia();\n vinculador.addCondiciones(this.condicionValor);\n vinculador.addCondiciones(this.condicionEntreFechas);\n vinculador.addCondiciones(this.condicionSinIngresoAsociado);\n }", "@Test\n public void testVirement3() {\n\n //Arrange\n CompteBancaire cpt1 = new CompteBancaire(0.0);\n CompteBancaire cpt2 = new CompteBancaire(43000.0);\n double montant_a_virer = 8000.0;\n double excepted_solde_cpt1 = 0.0;\n double excepted_solde_cpt2 = 43000.0;\n\n //Act\n assertEquals(false, cpt1.virerArgent(cpt2, montant_a_virer));\n\n //Assert\n assertEquals(excepted_solde_cpt1, cpt1.getSolde(), 0);\n assertEquals(excepted_solde_cpt2, cpt2.getSolde(), 0);\n\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}", "@Test void addIngredientZero()\n {\n }", "@Override\r\n\tpublic void addElement(VOI o) {\r\n add(o); // add the voi to the vector\r\n }", "@Test\n public void testSumPlanAddedModifiedSizeActualAddedModifiedSize()\n {\n assertEquals(this.linealRegressionCalculator.sumPlanAddedModifiedSizeActualAddedModifiedSize(), 5242927.0, 0.01);\n }", "@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }", "@Test\n public void testGetVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n String vastaus = k.getVastaus();\n assertEquals(\"getVastaus ei toimi odoitetusti\", \"vastine\", vastaus);\n }", "@Test\n public void testHasTemperaturaVariation() {\n System.out.println(\"hasTemperaturaVariation\");\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n boolean expResult = true;\n instance.setHasTemperaturaVariation(expResult);\n boolean result = instance.hasTemperaturaVariation();\n assertEquals(expResult, result);\n }", "@Test\r\n public void testDesvioPadrao() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87); \r\n \r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 1.2);\r\n }", "public void addVoto(Voto v) {\n if(v.idPA != this.id) {\n \tSystem.out.println(\"addVoto PA error: idPa \"+v.idPA +\"!= this \"+ this.id); \n }\n votos.add(v); \n }", "@Test\n\tpublic void testAddNota2(){\n\t\tej1.addNota(-2);\n\t\tassertTrue(ej1.getNotaMedia() == 0);\n\t}", "@Test\n public void testSumActualAddedModifiedSize()\n {\n assertEquals(this.linealRegressionCalculator.sumActualAddedModifiedSize(), 6389.0, 0.01);\n }", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "private void setUpVAO() {\n\t\tfloat[] vertices = { -1, -1, -1, 1, 1, -1, 1, -1, -1, 1, 1, 1 };\n\t\tquad = Loader.loadToVAO(vertices, 2);\n\t}", "@Test\r\n public void testGetCantidadVendidos() {\r\n int expResult = 3;\r\n articuloPrueba.setCantidadVendidos(expResult);\r\n int result = articuloPrueba.getCantidadVendidos();\r\n assertEquals(expResult, result);\r\n }", "@SuppressWarnings(\"unchecked\")\r\n private Void receiveObjectsAnswerVehicle()\r\n {\r\n List<Geometry> adds = (List<Geometry>)EasyMock.getCurrentArguments()[1];\r\n List<Geometry> removes = (List<Geometry>)EasyMock.getCurrentArguments()[2];\r\n\r\n assertTrue(removes.isEmpty());\r\n // 119\n assertEquals(138, adds.size());\r\n boolean containsMeshes = false;\r\n boolean containsLines = false;\r\n\r\n for (Geometry geom : adds)\r\n {\r\n if (geom instanceof PolygonMeshGeometry)\r\n {\r\n containsMeshes = true;\r\n }\r\n else if (geom instanceof PolylineGeometry)\r\n {\r\n containsLines = true;\r\n }\r\n }\r\n\r\n assertTrue(containsMeshes);\r\n assertTrue(containsLines);\r\n\r\n return null;\r\n }", "@Test\n public void addMovie_test() {\n theater.getMovies().add(\"Love Actually\");\n String expected = \"Love Actually\";\n String actual = theater.getMovies().get(4);\n Assert.assertEquals(expected,actual);\n }", "@Test void addIngredientBoundary()\n {\n }", "@Test\n void testNormalize() {\n\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n assertEquals(vCopy, vCopyNormalize, \"ERROR: normalize() function creates a new vector\");\n\n\n }", "@Test\r\n public void testBuscaVentas() throws Exception {\r\n System.out.println(\"BuscaVentas\");\r\n ReportesController instance = new ReportesController();\r\n ArrayList<Ventas> expResult = null;\r\n ArrayList<Ventas> result = instance.BuscaVentas();\r\n assertFalse(result.isEmpty());\r\n \r\n }", "@Test\n public void testTarkistaVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n\n\n assertEquals(\"Sanan tarkastus ei toimi\", true, k.tarkistaVastaus(\"vastine\"));\n }", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "@Test\n\tpublic void addPointsByListTest(){\n\t}", "@Test\n public void testAddMedium() throws Exception {\n System.out.println(\"addMedium\");\n String type = \"\";\n Medium pomData = new MediumImpl();\n pomData.addTitle(\"test1\");\n pomData.addTitle(\"test2\");\n DBManager instance = new ODSDBManager(\"empty.ods\");\n List<Medium> expResult = instance.getMedia(\"b\");\n instance.addMedium(\"b\", pomData);\n expResult.add(pomData);\n List<Medium> result = instance.getMedia(\"b\");\n System.out.println(\"result:\"+result+\"\\n data:\"+pomData);\n assertTrue(result.contains(pomData));\n \n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n void findVeichleByWeight() {\n\n final int ALL_CARS = 500;\n final int ONE_CAR = 1500;\n final int NO_CARS = 2500;\n\n vr.registerVeichle(dieselCar);\n vr.registerVeichle(dieselCar2);\n //check if all cars are returned as all cars are over 500 kg\n assertEquals(vr.getVeichles(), vr.findVeichleByWeight(ALL_CARS));\n //checks if that only dieselCar2 is returned as its the only car over 1500 kg\n assertTrue(vr.findVeichleByWeight(ONE_CAR).contains(dieselCar2) && !vr.findVeichleByWeight(ONE_CAR).contains(dieselCar));\n //Checks that no cars are returned since no cars is heavier than 2500\n assertFalse(vr.findVeichleByWeight(NO_CARS).contains(dieselCar) || vr.findVeichleByWeight(NO_CARS).contains(dieselCar2));\n\n }", "@Test\r\n public void testCalculerValeurTerrainAgricole() {\n Lot lot1 = new Lot(\"Lot1\", 2, 0, 300, \"14-02-2019\");\r\n Lot lot2 = new Lot(\"Lot2\", 2, 0, 600, \"12-06-2019\");\r\n Lot lot3 = new Lot(\"Lot3\", 2, 0, 1500, \"04-02-2019\");\r\n List<Lot> lots = new ArrayList();\r\n lots.add(lot1);\r\n lots.add(lot2);\r\n lots.add(lot3);\r\n // Terrain (typeTerrain, prix_min2, prix_min2, listLot)\r\n Terrain terrain = new Terrain(0, 50.00, 75.00, lots);\r\n Agricole.calculerValeurTerrainAgricole(terrain);\r\n // valFonciereAttendue = 50.0*300 + 50.0*600 + 50.0*1500 + 733.77 +\r\n // nbreDroitPassage = 500-(2*(5/100*300*50)) + 500-(2*(5/100*600*50))+\r\n // 500-(2*(5/100*1500*50)\r\n double valFonciereAttendue = 110233.8;\r\n double taxeScolaireAttendue=1322.85;\r\n double taxeMunicipaleAttendue = 2755.85;\r\n boolean resultat = valFonciereAttendue == terrain.getValeur_fonciere_totale()\r\n && taxeScolaireAttendue == terrain.getTaxe_scolaire()\r\n && taxeMunicipaleAttendue == terrain.getTaxe_municipale();\r\n assertTrue(\"valfoncièreAttendue: \" + valFonciereAttendue+\", vs valeur obtenue: \"+terrain.getValeur_fonciere_totale()\r\n + \"\\ntaxe scolaire attendue: \" + taxeScolaireAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_scolaire()\r\n + \"\\ntaxe muninipale attendue: \" + taxeMunicipaleAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_municipale(), \r\n resultat); \r\n \r\n }", "@Test\n public void testSumPlanAddedModifiedSizeSquared()\n {\n assertEquals(this.linealRegressionCalculator.sumPlanAddedModifiedSizeSquared(), 3741346.0, 0.01);\n }", "@Test\r\n\tpublic void testAddPromotion() {\n\t\tassertNotNull(\"Test if there is valid Promotion arraylist to add to\", promotionList);\r\n\r\n\t\t// Given an empty list, after adding 1 item, the size of the list is 1\r\n\t\tC206_CaseStudy.addPromotion(promotionList, po1);\r\n\t\tassertEquals(\"Test if that Promotion arraylist size is 1?\", 1, promotionList.size());\r\n\r\n\t\t// The item just added is as same as the first item of the list\r\n\t\tassertSame(\"Test that Promotion is added same as 1st item of the list?\", po1, promotionList.get(0));\r\n\r\n\t\t// Add another item. test The size of the list is 2?\r\n\t\tC206_CaseStudy.addPromotion(promotionList, po2);\r\n\t\tassertEquals(\"Test that Promotion arraylist size is 2?\", 2, promotionList.size());\r\n\t}", "@Test\r\n\tpublic void testFineTurno() {\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tthis.giocatori.add(new Giocatore());\r\n\t\t\tfor (int j = 0; j < 4; j++) {\r\n\t\t\t\tthis.giocatori.get(i).getFamigliare(j).setPosizionato(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.giocatoreDiTurno = this.giocatori.get(1);\r\n\t\tassertTrue(this.giocatoreDelTurnoSuccessivo(giocatoreDiTurno) == null);\r\n\t}", "@Test\n public void testVirement1() {\n\n //Arrange\n CompteBancaire cpt1 = new CompteBancaire(63000.0);\n CompteBancaire cpt2 = new CompteBancaire(43000.0);\n double montant_a_virer = 28000.0;\n double excepted_solde_cpt1 = 35000.0;\n double excepted_solde_cpt2 = 71000.0;\n\n //Act\n assertEquals(true, cpt1.virerArgent(cpt2, montant_a_virer));\n\n //Assert\n assertEquals(excepted_solde_cpt1, cpt1.getSolde(), 0);\n assertEquals(excepted_solde_cpt2, cpt2.getSolde(), 0);\n\n }", "public void victorTest(){\n\n victorTestController.set(0.5);\n }", "public void AddToVG() throws Exception{\n\tString PVPath = null;\n\tBufferedReader addDrives = new BufferedReader(new FileReader(\"add\"));\n\tcommandExec c1 = new commandExec();\n\tPattern pattern = \n Pattern.compile(\"(\\\\/)(d)(e)(v)(\\\\/)(s)([a-z])([a-z])(\\\\*?)\");\n\twhile ((PVPath = addDrives.readLine())!= null){\n\t\tMatcher match = pattern.matcher(PVPath);\n\t\tif(match.find()){\n\t\t\tSystem.out.println(\"Adding \" + PVPath + \" to TargetVG volume group\");\n\t\t\tc1.runCommand(\"vgextend \" + VGName + \" \" + PVPath);\n\t\t}\n\t}\n}", "@Test\r\n public void testAddNumber() {\r\n System.out.println(\"addNumber\");\r\n nc1.addNumber(n1);\r\n newarr_test1.add(n1);\r\n assertEquals(newarr_test1, nc1.ncarr);\r\n \r\n }", "@Test\n public void testCSesionAgregarLiena6() throws Exception {\n System.out.println(\"testCSesionAgregarLiena 2 lineas iguales\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.agregaLinea(1, 2);\n }", "@Test\n void registerVeichle() {\n vr.registerVeichle(dieselCar);\n vr.registerVeichle(dieselCar2);\n\n assertTrue(vr.getVeichles().contains(dieselCar) && vr.getVeichles().contains(dieselCar2));\n assertFalse(vr.registerVeichle(dieselCar));\n }", "@Test\n public void testAgregarCamion() {\n try {\n System.out.println(\"agregarCamion\");\n Camion camion = new Camion(0, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, null);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.agregarCamion(camion);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Test\n public void createVisitaTest() {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity newEntity = factory.manufacturePojo(VisitaEntity.class);\n VisitaEntity result = VisitaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n\n VisitaEntity entity = em.find(VisitaEntity.class, result.getId());\n\n Assert.assertEquals(newEntity.getId(), entity.getId());\n Assert.assertArrayEquals(newEntity.getFotos().toArray(), entity.getFotos().toArray());\n Assert.assertEquals(newEntity.getOferta(), entity.getOferta());\n Assert.assertEquals(newEntity.getUsuario(), entity.getUsuario());\n Assert.assertEquals(newEntity.getComentario(), entity.getComentario());\n Assert.assertEquals(newEntity.getCalificacion(), entity.getCalificacion());\n }", "@Test\n public void videoidTest() {\n // TODO: test videoid\n }", "@Test\r\n public void testSetCantidadVendidos() {\r\n int expResult = 5;\r\n articuloPrueba.setCantidadVendidos(expResult);\r\n assertEquals(expResult, articuloPrueba.getCantidadVendidos());\r\n }", "@Test\n public void testSetValue() {\n System.out.println(\"setValue\");\n int index = 0;\n double value = 0.0;\n Vector instance = null;\n instance.setValue(index, value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void add() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a4, b4);\n //System.out.println(\"a=\"+Vec4f.toString(a, 2));\n assertTrue(Vec4f.epsilonEquals(a4,expect4, 1E-6f));\n }", "@Test\r\n public void testSetMois() {\r\n System.out.println(\"*****************\");\r\n System.out.println(\"Test : setMois\");\r\n String mois = \"octobre\";\r\n Cours_Reservation instance = new Cours_Reservation();\r\n instance.setMois(mois);\r\n assertEquals(instance.getMois(), mois);\r\n }", "@Test\r\n public void testSamaPuu() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n Noodi noodi2 = new Noodi(1,0);\r\n noodi2.setMatkaJaljella(9);\r\n noodi2.setTehtyMatka(noodi);\r\n PuuSolmu solmu2 = new PuuSolmu(noodi2);\r\n puu.insert(noodi2);\r\n \r\n AvlPuu puu2 = new AvlPuu();\r\n puu2.insert(noodi);\r\n puu2.insert(noodi2);\r\n assertTrue(puu.SamaPuu(puu2));\r\n\r\n }", "@Test\n\tpublic void testdetecter(){\n\t\tArrayList<Objet> List = new ArrayList<Objet>();\n\t\tCercle c1=new Cercle();\n\t\tObjet ob=new Objet(c1);\n\t\tList.add(ob);\n\t\tCercle c2=new Cercle();\n\t\tObjet ob2=new Objet(c2);\n\t\tList.add(ob2);\n\t\tCercle c3=new Cercle();\n\t\tObjet ob3=new Objet(c3);\n\t\tList.add(ob3);\n\t\tCercle c4=new Cercle();\n\t\tObjet ob4=new Objet(c4);\n\t\tList.add(ob4);\n\t\tCercle c5=new Cercle();\n\t\tObjet ob5=new Objet(c5);\n\t\tList.add(ob5);\n\t\tCercle c6=new Cercle();\n\t\tObjet ob6=new Objet(c6);\n\t\tList.add(ob6);\n\t\tCercle c7=new Cercle(new Point(4,10), 2);\n\t\tTache ta=new Tache(c7);\n\t\tList.add(ta);\n\t\t\n\t\tfor(int i=0;i<6;i++){\n\t\t\tList.get(i).getForme().getCentre().setX(10*Math.random());\n\t\t\tList.get(i).getForme().getCentre().setY(10*Math.random());\n\t\t}\n\t\tPosture p= new Posture(10,10,0);\n\t\tCapteur_sal Cap= new Capteur_sal(p);\n\t\tassertTrue(Cap.detecter(List)==-1);\n\t\tCap.setPos(new Posture(4.5,10,0));\n\t\tassertTrue(Cap.detecter(List)==6);\n\t\t\n\t}", "@Test\n public void testPersistedSegmentCount() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n int expResult = 0;\n int result = instance.persistedSegmentCount();\n assertEquals(expResult, result);\n\n }", "@Test\n public void getVisitaTest() {\n VisitaEntity entity = data.get(0);\n VisitaEntity newEntity = VisitaPersistence.find(entity.getId());\n Assert.assertNotNull(newEntity);\n \n Assert.assertEquals(newEntity.getId(), entity.getId());\n Assert.assertArrayEquals(newEntity.getFotos().toArray(), entity.getFotos().toArray());\n Assert.assertEquals(newEntity.getOferta(), entity.getOferta());\n Assert.assertEquals(newEntity.getUsuario(), entity.getUsuario());\n Assert.assertEquals(newEntity.getComentario(), entity.getComentario());\n Assert.assertEquals(newEntity.getCalificacion(), entity.getCalificacion());\n }", "@Test\n public void testAnalisarMes() throws Exception {\n System.out.println(\"analisarMes\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarMes(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "@Test\n public void testGetValues(){\n assertTrue(vector.x == 1 && vector.z == 1);\n }", "@Test\n public void nelioMuodostuu() {\n ArrayList lista=this.tetrimino.palautaKuvio();\n assertEquals(lista.size(), 4);\n \n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setObserverCameraElevationAdjusted(true);\n homeEnvironment0.setPhotoQuality(5);\n HomeEnvironment.DrawingMode homeEnvironment_DrawingMode0 = HomeEnvironment.DrawingMode.FILL;\n homeEnvironment0.setDrawingMode(homeEnvironment_DrawingMode0);\n homeEnvironment0.setSubpartSizeUnderLight((-1.0F));\n homeEnvironment0.setGroundColor(5);\n homeEnvironment0.setGroundColor(0);\n homeEnvironment0.setVideoWidth(3);\n HomeEnvironment.Property.values();\n homeEnvironment0.getVideoCameraPath();\n homeEnvironment0.clone();\n assertEquals((-1.0F), homeEnvironment0.getSubpartSizeUnderLight(), 0.01F);\n }", "@Test\n public void testGetMatrixFromVector() {\n System.out.println(\"getMatrixFromVector\");\n Vector instance = null;\n Matrix expResult = null;\n Matrix result = instance.getMatrixFromVector();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testGetSetTemperaturaExteriorMinima() {\n System.out.println(\"getSetTemperaturaExteriorMinima\");\n double expResult = 10.0;\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.setTemperaturaExteriorMinima(expResult);\n double result = instance.getTemperaturaExteriorMinima();\n assertEquals(expResult, result, 0.0);\n }", "@Test\n public void testSoma() {\n System.out.println(\"soma\");\n float num1 = 0.0F;\n float num2 = 0.0F;\n float expResult = 0.0F;\n float result = Calculadora_teste.soma(num1, num2);\n assertEquals(expResult, result, 0.0);\n \n }", "@Test\n public void testCalculerMontantService() {\n double expResult = 0.0;\n double result = CalculAgricole.calculerMontantServices();\n assertEquals(\"Montant pour las droits du passage n'était pas correct.\", expResult, result, 0);\n }", "@Test\n public void testVirement2() {\n\n //Arrange\n CompteBancaire cpt1 = new CompteBancaire(63000.0);\n CompteBancaire cpt2 = new CompteBancaire(43000.0);\n double montant_a_virer = 88000.0;\n double excepted_solde_cpt1 = 63000.0;\n double excepted_solde_cpt2 = 43000.0;\n\n //Act\n assertEquals(false, cpt1.virerArgent(cpt2, montant_a_virer));\n\n //Assert\n assertEquals(excepted_solde_cpt1, cpt1.getSolde(), 0);\n assertEquals(excepted_solde_cpt2, cpt2.getSolde(), 0);\n\n }", "public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp = vampireSet();\n //Test if the vampire is unique\n if(swap.add(vamp)){\n //Add the vampire to the real list if it's unique\n this.beings.add(vamp);\n }\n }\n //Clear the set, I guess it's optional\n swap.clear();\n }", "@Test\n void testAddVertexGraph() {\n Assertions.assertTrue(graph.addVertex(v1));\n Assertions.assertTrue(graph.containsVertex(v1));\n Assertions.assertTrue(checkInv());\n }", "@Test\n public void testAddition() {\n Addition add = new Addition();\n assertEquals(\"Addition Failed!\", summation, add.AddOperation(v1, v2));\n System.out.println(\"Test for \" + v1 + \" and \" + v2 + \" has been passed!\\n\");\n }", "@Test \r\n\tpublic void testSacarProductoDelPedidoSinStock(){\n\t\tventaAD.agregarProductoSinStock(pre1, 1);\r\n\t\tventaAD.sacarProductosDelLosPedidosSinStock(pre1, 1);\r\n\t\tassertEquals(ventaAD.getProductosSinStock().size(), 0);\r\n\t\t\r\n\t}", "public boolean addVOI(VOI voi) {\r\n\r\n // check the voi name, fix if necessary\r\n if (contains(voi)) {\r\n voi.setName(buildName(voi.getName()));\r\n }\r\n\r\n if (super.add(voi)) { // add the voi to the vector\r\n fireVOIadded(voi); // notify listeners of a change\r\n Preferences.debug(\"Add voi: name = \" + voi.getName() + \"\\n\");\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "@Test\r\n public void testGetNDMValues() {\r\n System.out.println(\"getNDMValues\");\r\n NDM instance = null;\r\n Vector<Double> expResult = null;\r\n //Vector<Double> result = instance.getNDMValues();\r\n //assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testGetListaEnvases() {\r\n ArrayList<Envase> lst=new ArrayList<>();\r\n Envase e=new Envase(1,\"nombre\",\"material\");\r\n lst.add(e);\r\n articuloPrueba.setListaEnvases(lst);\r\n ArrayList<Envase> expResult = lst;\r\n ArrayList<Envase> result = articuloPrueba.getListaEnvases();\r\n assertEquals(expResult, result);\r\n }", "@Test\n\tpublic void test03(){\n\t\t //criacao do mock\n\t\tConta mockedConta = mock(Conta.class);\n\t\t// definicao de como o mock deve se comportar\n\t\twhen(mockedConta.getSaldo()).thenReturn(0.0);\n\t\t//verificao se o mock esta se comportando como defenido\n\t\tassertEquals(0.0, mockedConta.getSaldo(), 0.0);\n\t}", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}" ]
[ "0.5993484", "0.59454554", "0.5889398", "0.5797937", "0.5781407", "0.5740838", "0.57283086", "0.5692693", "0.56656796", "0.55854034", "0.558536", "0.5504706", "0.5489916", "0.54834425", "0.54545164", "0.5449595", "0.5427022", "0.5409588", "0.54015344", "0.53959566", "0.5390887", "0.53806406", "0.53335017", "0.53271496", "0.5321148", "0.53130347", "0.5310957", "0.5306053", "0.52967286", "0.5293449", "0.52927536", "0.5281317", "0.52728945", "0.5271818", "0.526674", "0.5251971", "0.5244974", "0.5242568", "0.5239094", "0.5233592", "0.5230031", "0.522883", "0.5222979", "0.5222554", "0.5220542", "0.52203447", "0.521839", "0.5217699", "0.52107245", "0.5208884", "0.5201744", "0.5200821", "0.5199813", "0.5198512", "0.5193858", "0.519384", "0.519192", "0.5181662", "0.5173102", "0.5171237", "0.5167408", "0.51662093", "0.5162102", "0.5160582", "0.5159979", "0.51508415", "0.5150227", "0.5139896", "0.51324904", "0.51320124", "0.51301235", "0.5120837", "0.5119493", "0.510762", "0.510692", "0.5106751", "0.5106188", "0.51027256", "0.51001704", "0.5098848", "0.50983965", "0.5097667", "0.5093972", "0.5092829", "0.50909805", "0.50833523", "0.50799274", "0.50783205", "0.5077686", "0.5076319", "0.50743634", "0.50724894", "0.50697863", "0.5069698", "0.5068458", "0.50642437", "0.5063026", "0.50627756", "0.5061344", "0.5054652" ]
0.8367502
0
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - Test create data transfer objects from Domain Object || Happy case") void personDTOAssembler_CreateDTOFromDomainObjectTest() { String mariaEmail = "[email protected]"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); PersonID fatherID = null; PersonID motherID = null; String IS_NOT_DEFINED = "Is Not Defined"; //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED); //Act PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler\")\n void personDTOAssembler_InstatiatesDTOAssembler() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n @DisplayName(\"PersonDTOAssembler - WithMotherAndFather\")\n void personDTOAssembler_WithMotherAndFather() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n PersonID fatherID = PersonID.createPersonID(\"[email protected]\");\n String fatherEmail = fatherID.getEmail().getEmail();\n PersonID motherID = PersonID.createPersonID(\"[email protected]\");\n String motherEmail = motherID.getEmail().getEmail();\n\n\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, fatherEmail, motherEmail);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n\tpublic void testPersonToPersonDtoMap() {\n\t\t\n\t\t// prepare \n\t\tPerson person = this.getFakePersonToMap();\n\t\tAddress address = person.getAddress();\n\t\tContactDetail contactDetail = person.getContactDetail();\n\t\t\n\t\t// sut (system / class under test)\n\t\tMapper testee = new Mapper();\n\t\t\n\t\t// act\t\t\n\t\tPersonDto personDto = testee.map(person, PersonDto.class);\n\t\t\n\t\t// tests\n\t\t// address\n\t\tassertEquals(personDto.getAddressCity(), address.getCity());\n\t\tassertEquals(personDto.getAddressCountry(), address.getCountry());\n\t\t\n\t\t// contact details\n\t\tassertEquals(personDto.getPhoneNumber1(), contactDetail.getPhoneNumber1());\n\t\tassertEquals(personDto.getPhoneNumber2(), contactDetail.getPhoneNumber2());\n\t\tassertEquals(personDto.getPhoneNumber3(), contactDetail.getPhoneNumber3());\n\t\tassertEquals(personDto.getFax(), contactDetail.getFax());\n\t\t\n\t}", "D mapToDTO(E entity);", "public void crearPersona(PersonaDTO personaDTO);", "public List<PersonDTO> getDTOs(){\n\t\tList<PersonDTO> personDTOs = new ArrayList<PersonDTO>();\n\t\tList<Person> persons = personRepository.getAll();\n\t\tfor (Person person: persons) {\n\t\t\t// Create new data transfer object\n\t\t\tPersonDTO dto = new PersonDTO();\n\n\t\t\tdto.setId(person.getId());\n\t\t\tdto.setTitle(person.getTitle());\n\t\t\tdto.setFirstName(person.getFirstName());\n\t\t\tdto.setLastName(person.getLastName());\n\t\t\tdto.setEmail(person.getEmail());\n\t\t\tdto.setPhone(person.getPhone());\n\t\t\tdto.setAddress1(person.getAddress1());\n\t\t\tdto.setAddress2(person.getAddress2());\n\t\t\tdto.setZipCode(person.getZipCode());\n\t\t\tdto.setCity(person.getCity());\n\t\t\tdto.setCountry(person.getCountry());\n\t\t\t// Add to model list\n\t\t\tpersonDTOs.add(dto);\n\t\t}\n\t\treturn personDTOs;\n\t}", "StudentDTO toStudentDTO(Student student);", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler-ThirdConstructor\")\n void personDTOAssembler_InstatiatesDTOAssembler_ThirdConstructor() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n LedgerID ledgerID = LedgerID.createLedgerID();\n String ledgerId = ledgerID.toString();\n\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace);\n\n //Act\n\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromPrimitiveTypes(mariaEmail, mariaName, mariaBirthDate.toString(), mariaBirthplace);\n\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler-SecondConstructor\")\n void personDTOAssembler_InstatiatesDTOAssembler_SecondConstructor() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n String ledgerId = \"123\";\n LedgerID ledgerID = new LedgerID(ledgerId);\n\n\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail,ledgerId, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, ledgerID, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "V toDto(E entity);", "protected abstract void processDTO();", "OrderDto map(Order order);", "public abstract D convertToDto(T entity);", "public abstract DTO toDTO(M model);", "@Override\n\tpublic ExperienceDTO domainToDto(Experience experience) {\n\t\treturn mapperFacade.map(experience, ExperienceDTO.class);\n\t}", "Assembler newAssembler(final Class< ? > dto, final Class< ? > entity);", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "AccountDTO toDTO(Account account);", "public PersonaDTO consultarPersona(Long idPersona) ;", "List<D> mapToDTO(List<E> entity);", "public NameDTO() {\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n }", "AccountDTO coverAccountToEmpDTO(Account account);", "@Mapper\npublic interface PersonMapper {\n\n PersonDO selectPersonById(Integer id);\n\n List<PersonDO> selectAll();\n\n void insert(PersonDO personDO);\n\n Long update(PersonDO personDO);\n\n Long delete(Integer id);\n}", "@Mappings({\n @Mapping(source = \"address\", target = \"addressDto\"),\n @Mapping(target = \"skills\", ignore = true)\n })\n UserDto toDTO(UserEntity userEntity);", "E mapToEntity(D dto);", "private Book mapBookDTOToBook(BookDTO bookDTO) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBook book = mapper.map(bookDTO, Book.class);\n\t\tbook.setCategory(new Category(bookDTO.getCategory().getCode(), \"\"));\n\t\tbook.setRegisterDate(LocalDate.now());\n\t\treturn book;\n\t}", "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "ExerciseDTO convertToExerciseDTO(Exercise exercise);", "public List<PersonaDTO> consultarPersonas() ;", "@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}", "@Component\n@Mapper(componentModel = \"spring\")\npublic interface CarriageMapper {\n\n Carriage carriageModelToCarriage(CarriageModel carriageModel);\n\n CarriageModel carriageToCarriageModel(Carriage carriage);\n\n CarriageModel carriageDtoToCarriageModel(CarriageDto carriageDto);\n\n CarriageDto carriageModelToCarriageDto(CarriageModel carriageModel);\n\n List<CarriageModel> carriagesToCarriageModels(List<Carriage> carriages);\n\n List<CarriageDto> carriageModelsToCarriageDtos(List<CarriageModel> carriageModels);\n\n List<Carriage> carriageModelsToCarriages(List<CarriageModel> carriageModels);\n}", "Account toDomain(AccountDTO accountDto);", "@Override\n\tpublic Experience dtoToDomain(ExperienceDTO experience) {\n\t\treturn mapperFacade.map(experience, Experience.class);\n\t}", "@Mapper(componentModel = \"cdi\")\npublic interface ArchivoMapper {\n\n ArchivoDTO toDTO(Archivo source);\n List<ArchivoDTO> toDTOList(List<Archivo> sourceList);\n\n void updateFromDTO(ArchivoDTO source, @MappingTarget Archivo target);\n}", "@Mapper(uses = DateMapper.class)\npublic interface ExerciseMapper {\n\n // Autogenerated code will map exercise object to ExerciseDTO\n // @Mapping(source = \"firstName\", target = \"name\") can be used if the field names do not match.\n ExerciseDTO convertToExerciseDTO(Exercise exercise);\n\n Exercise convertToExercise(ExerciseDTO exerciseDTO);\n\n}", "@Mapping(target = \"id\", ignore = true)\n PhoneDTO fromProtobuf(Customer.Phone phone);", "@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}", "WordDtoImpl convertFromDomainImpl(Word word);", "public interface DTOMapper<E> {\n\n /**\n * Fills the DTO with information from the entity.\n *\n * @param entity the <code>E</code> generics entity\n */\n void buildFromEntity(E entity);\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "public interface BookConverter {\n BookDto toBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(BookDto bookDto);\n\n FullBookDto toFullBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(FullBookDto fullBookDto);\n}", "@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);", "private BookDTO mapBookToBookDTO(Book book) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBookDTO bookDTO = mapper.map(book, BookDTO.class);\n\t\tif (book.getCategory() != null) {\n\t\t\tbookDTO.setCategory(new CategoryDTO(book.getCategory().getCode(), book.getCategory().getLabel()));\n\t\t}\n\t\treturn bookDTO;\n\t}", "private LecturerDto mapDto(Lecturer lecturer) {\n return new LecturerDto(lecturer.getLecturerID(), lecturer.getFirstName(), lecturer.getLastName(), lecturer.getEmail(), lecturer.getType());\n }", "public PersonaDTO obtenerPersona(Long idPersona) throws CustomErrorException {\n\t\tPersonaDTO personaDTO = new PersonaDTO();\n\t\ttry {\n\t\t\tpersonaDTO = Converter.toDto((Persona) gPersona.getById(idPersona)); \n\t\t} catch (CustomErrorException cer) {\n\t\t\tthrow cer;\n\t\t} catch (Exception e) {\n\t\t\tthrow new CustomErrorException(CustomErrorException.ERROR_SERVICIO,this.getClass().getSimpleName(),e.getStackTrace());\n\t\t}\n\n\t\treturn personaDTO;\n\t}", "@Test\n public void testConvertComputerToComputerDTO() {\n ComputerDTO computerDTO = new ComputerDTO();\n computerDTO.setId(1);\n computerDTO.setName(\"test\");\n ComputerDTO computerResult = DTOMapper.fromComputer(new Computer.Builder(\"test\").id(1L).build());\n assertEquals(computerDTO, computerResult);\n }", "@Mapper\npublic interface SeguridadDtoMap {\n SeguridadDtoMap INSTANCE = Mappers.getMapper( SeguridadDtoMap.class );\n\n GrupoDto grupoToGrupoDto(Grupo grupo);\n\n Grupo grupoDtoToGrupo(GrupoDto grupoDto);\n}", "public abstract T convertToEntity(D dto);", "@Bean\n public TypeMap<Carriage, CarriageDto> getCarriageCarriageDtoTypeMap() {\n Converter<List<Driver>, List<DriverDto>> toDriverDtoList = new AbstractConverter<List<Driver>, List<DriverDto>>() {\n protected List<DriverDto> convert(List<Driver> source) {\n if (source == null) {\n return null;\n } else {\n List<DriverDto> driverDtos = new ArrayList<>(source.size());\n for (Driver driver : source) {\n driverDtos.add(getModelMapper().getTypeMap(Driver.class, DriverDto.class, \"DriverDriverDto\").map(driver));\n }\n return driverDtos;\n }\n }\n };\n\n Converter<Vehicle, VehicleDto> toVehicleDto = new AbstractConverter<Vehicle, VehicleDto>() {\n @Override\n protected VehicleDto convert(Vehicle vehicle) {\n if (vehicle == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Vehicle.class, VehicleDto.class, \"VehicleVehicleDto\")\n .map(vehicle);\n }\n }\n };\n\n /*\n\n Converter<? super Cargo, CargoDto> toCargoDto = new AbstractConverter<Cargo, CargoDto>() {\n @Override\n protected CargoDto convert(Cargo cargo) {\n if (cargo == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Cargo.class, CargoDto.class, \"CargoCargoDto\")\n .map(cargo);\n }\n }\n };*/\n\n return getModelMapper().createTypeMap(Carriage.class, CarriageDto.class, \"CarriageCarriageDto\")\n .addMappings(mapper -> mapper.skip(CarriageDto::setMaxWeight))\n\n// .addMappings(mapper -> mapper.using(toCargoDto).map(Carriage::getCargoes, CarriageDto::setCargoes))\n// .addMappings(mapper -> mapper.using(toWaypointDto).map(Carriage::getWaypoints, CarriageDto::setWaypoints))\n .addMappings(mapper -> mapper.using(toVehicleDto).map(Carriage::getVehicle, CarriageDto::setVehicle))\n .addMappings(mapper -> mapper.using(toDriverDtoList).map(Carriage::getDrivers, CarriageDto::setDrivers));\n }", "public abstract M toModel(DTO dto);", "@Mapper(componentModel = \"spring\", uses = {OrgaoMapper.class, PermissaoMapper.class})\npublic interface UsuarioMapper {\n\n @Mapping(target = \"orgao\", ignore = true)\n UsuarioDTO usuarioToUsuarioDTO(Usuario usuario);\n\n List<UsuarioDTO> usuariosToUsuarioDTOs(List<Usuario> usuarios);\n\n Usuario usuarioDTOToUsuario(UsuarioDTO usuarioDTO);\n\n List<Usuario> usuarioDTOsToUsuarios(List<UsuarioDTO> usuarioDTOs);\n}", "public SkillDTO toDTO(Skill skill) {\n return toDTO(skill, 1);\n }", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CustomerMapper {\n\n CustomerDTO customerToCustomerDTO(Customer customer);\n\n List<CustomerDTO> customersToCustomerDTOs(List<Customer> customers);\n\n @Mapping(target = \"orders\", ignore = true)\n Customer customerDTOToCustomer(CustomerDTO customerDTO);\n\n List<Customer> customerDTOsToCustomers(List<CustomerDTO> customerDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ExerciseFamilyMapper {\n\n ExerciseFamilyDTO exerciseFamilyToExerciseFamilyDTO(ExerciseFamily exerciseFamily);\n\n List<ExerciseFamilyDTO> exerciseFamiliesToExerciseFamilyDTOs(List<ExerciseFamily> exerciseFamilies);\n\n @Mapping(target = \"exercises\", ignore = true)\n ExerciseFamily exerciseFamilyDTOToExerciseFamily(ExerciseFamilyDTO exerciseFamilyDTO);\n\n List<ExerciseFamily> exerciseFamilyDTOsToExerciseFamilies(List<ExerciseFamilyDTO> exerciseFamilyDTOs);\n}", "public interface IReglaUtilDTO {\n\n\t/**\n\t * To business.\n\t * \n\t * @param reglaDTO\n\t * the regla dto\n\t * @return the regla\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tRegla toBusiness(ReglaDTO reglaDTO) throws TransferObjectException;\n\n\t/**\n\t * To rest.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRest(Regla regla) throws TransferObjectException;\n\n\t/**\n\t * To rest info.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRestInfo(Regla regla) throws TransferObjectException;\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "@Override\r\n\tpublic MainDTO toDTO() {\n\t\tFamiliaresDTO familiaresDTO = new FamiliaresDTO();\r\n\t\tDomicilioDTO domicilioDTO = null;\r\n\t\tfamiliaresDTO.setIdfamiliar(this.getIdFamiliar());\r\n\t\tfamiliaresDTO.setNombre(this.getNombre());\r\n\t\tfamiliaresDTO.setApellidoPaterno(this.getApellidoPaterno());\r\n\t\tfamiliaresDTO.setApellidoMaterno(this.getAppelidoMaterno());\r\n\t\tfamiliaresDTO.setDireccion(this.getDireccion());\r\n\t\tfamiliaresDTO.setIdpaciente(this.getIdpaciente());\r\n\t\tfamiliaresDTO.setDependencia(this.getDependencia());\r\n\t\tdomicilioDTO = (DomicilioDTO) this.getDomicilio().toDTO();\r\n\t\tfamiliaresDTO.setDomicilio(domicilioDTO);\r\n\t\treturn familiaresDTO;\r\n\t}", "List<StudentDTO> toStudentDTOs(List<Student> students);", "@Mapper(componentModel = \"cdi\", uses = EnumMapper.class)\npublic interface DocumentoMapper {\n\n DocumentoDTO toDTO(Documento documento);\n\n Documento fromDTO(DocumentoDTO documentoDTO);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "@Override\n\tpublic ExamDTO toDto(Exam exam) {\n\t\treturn null;\n\t}", "@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface WwtreatmentthreeMapper {\n\n WwtreatmentthreeDTO wwtreatmentthreeToWwtreatmentthreeDTO(Wwtreatmentthree wwtreatmentthree);\n\n List<WwtreatmentthreeDTO> wwtreatmentthreesToWwtreatmentthreeDTOs(List<Wwtreatmentthree> wwtreatmentthrees);\n\n Wwtreatmentthree wwtreatmentthreeDTOToWwtreatmentthree(WwtreatmentthreeDTO wwtreatmentthreeDTO);\n\n List<Wwtreatmentthree> wwtreatmentthreeDTOsToWwtreatmentthrees(List<WwtreatmentthreeDTO> wwtreatmentthreeDTOs);\n}", "@Mapper(componentModel = \"spring\")\npublic interface PedidoMapper {\n\t\n\t@AfterMapping\n\tdefault void afterMapping(@MappingTarget PedidoDTO target, Pedido source) {\n\t\t\n\t\tFloat totalIVA = new Float(0);\n\t\tFloat totalDomicilio = new Float(0);\n\t\tFloat totalNeto = new Float(0);\n\t\t\n\t\tif(source.getEstado().equals(Constantes.ESTADO_PEDIDO_ACTIVO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEIDIDO_ACTIVO_STRING);\n\t\t\ttotalIVA = new Float(target.getSubtotal() * 0.19);\n\t\t\ttotalDomicilio = target.getSubtotal() >= Constantes.VALOR_MINIMO_PARA_COBRO_DE_DOMICILIO && target.getSubtotal() <= Constantes.VALOR_MAXIMO_PARA_COBRO_DE_DOMICILIO ? new Float(target.getSubtotal() * 0.05) : new Float(0);\n\t\t\ttotalNeto = target.getSubtotal() + totalIVA + totalDomicilio;\n\t\t}\n\t\telse if (source.getEstado().equals(Constantes.ESTADO_PEDIDO_CANCELADO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEDIDO_CANCELADO_STRING);\n\t\t\ttotalNeto = new Float(target.getSubtotal() * 0.10);\n\t\t}\t\t \n\t\t\n\t\t\n\t\ttarget.setTotalIVA(totalIVA);\n\t\ttarget.setTotalDomicilio(totalDomicilio);\n\t\ttarget.setTotalNeto(totalNeto);\n\t}\n\t\n\t@Mapping(source = \"entity.idUsuario.idUsuario\", target = \"idUsuario\")\n\t@Mapping(source = \"entity.idUsuario.nombre\", target = \"nombreUsuario\")\n\t@Mapping(source = \"entity.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"entity.estado\", target = \"estado\")\n\t@Mapping(target = \"idProductosConcatenados\", ignore = true)\n\t@Mapping(target = \"totalIVA\", ignore = true)\n\t@Mapping(target = \"totalDomicilio\", ignore = true)\n\t@Mapping(target = \"totalNeto\", ignore = true)\n\t@Mapping(target = \"codigoRespuesta\", ignore = true)\n\t@Mapping(target = \"mensajeRespuesta\", ignore = true)\n\t@Mapping(target = \"estadoString\", ignore = true)\n\tpublic PedidoDTO transformEntityToDTO(Pedido entity);\n\t\n\t@Mapping(source = \"DTO.idUsuario\", target = \"idUsuario.idUsuario\")\n\t@Mapping(source = \"DTO.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"DTO.estado\", target = \"estado\")\n\tpublic Pedido transformDTOToEntity(PedidoDTO DTO);\n\t\n\tpublic List<PedidoDTO> transformEntitiesToDTO(List<Pedido> listEntities);\n\t\n\tpublic List<Pedido> transformDTOToEntities(List<Pedido> listDTO);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AddressMapper {\n\n @Mapping(source = \"city.id\", target = \"cityId\")\n AddressDTO addressToAddressDTO(Address address);\n\n List<AddressDTO> addressesToAddressDTOs(List<Address> addresses);\n\n @Mapping(source = \"cityId\", target = \"city\")\n Address addressDTOToAddress(AddressDTO addressDTO);\n\n List<Address> addressDTOsToAddresses(List<AddressDTO> addressDTOs);\n\n default City cityFromId(Long id) {\n if (id == null) {\n return null;\n }\n City city = new City();\n city.setId(id);\n return city;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}", "Account coverEmpDTOToAccount(AccountDTO accountDTO);", "public List<PersonDto> findByFirstName(String firstName) {\n List<Person> models = Collections.emptyList();\n return models.stream()\n .map(personMapper::toDto)\n .collect(Collectors.toList());\n }", "CommentDto entityToDto(Comment comment);", "public MemberDto copyEntityToDto(Member entity, MemberDto dto) {\r\n reflectMemberIdToDto(entity, dto);\r\n reflectMemberNameToDto(entity, dto);\r\n reflectFormalizedDatetimeToDto(entity, dto);\r\n reflectUpdateDatetimeToDto(entity, dto);\r\n\r\n return dto;\r\n }", "@Mapper(componentModel = \"spring\", uses = {Business.class})\npublic interface BusinessMapper {\n\n BusinessDTO toDTO(Business business);\n\n @Mapping(target = \"advertisements\", ignore = true)\n Business toEntity(BusinessDTO businessDTO);\n}", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "CustomerDto createCustomer(CustomerEntity customerEntity);", "public interface CompanyJsonTransformer {\n\n /**\n * Transforms a CompanyJson element with id as UUID to a new CompanyInternal internal element.\n *\n * @param companyId the ID of the CompanyJson object\n * @param company the CompanyJson object\n * @return the CompanyInternal object\n */\n CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);\n\n /**\n * Transforms a CompanyInternal and BeneficialOwnerInternals to a new CompanyJson element.\n *\n * @param company the CompanyInternal object\n * @param beneficialOwners the List<BeneficialOwnerInternal> object\n * @return the CompanyJson object\n */\n CompanyJson toCompanyJson(CompanyInternal company, List<BeneficialOwnerInternal> beneficialOwners);\n}", "@Mapper(componentModel = \"spring\", uses = {ApplicationProspectMapper.class, NomineeMapper.class})\npublic interface AddressMapper extends EntityMapper<AddressDTO, Address> {\n\n @Mapping(source = \"applicationProspect.id\", target = \"applicationProspectId\")\n @Mapping(source = \"nominee.id\", target = \"nomineeId\")\n AddressDTO toDto(Address address);\n\n @Mapping(source = \"applicationProspectId\", target = \"applicationProspect\")\n @Mapping(source = \"nomineeId\", target = \"nominee\")\n Address toEntity(AddressDTO addressDTO);\n\n default Address fromId(Long id) {\n if (id == null) {\n return null;\n }\n Address address = new Address();\n address.setId(id);\n return address;\n }\n}", "public ProdutoDTO()\n {\n super();\n }", "@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EheartMapper {\n\n EheartDTO eheartToEheartDTO(Eheart eheart);\n\n List<EheartDTO> eheartsToEheartDTOs(List<Eheart> ehearts);\n\n Eheart eheartDTOToEheart(EheartDTO eheartDTO);\n\n List<Eheart> eheartDTOsToEhearts(List<EheartDTO> eheartDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OTHERMapper extends EntityMapper<OTHERDTO, OTHER> {\n\n\n\n default OTHER fromId(Long id) {\n if (id == null) {\n return null;\n }\n OTHER oTHER = new OTHER();\n oTHER.setId(id);\n return oTHER;\n }\n}", "private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}", "@Override\n public PaymentReadDTO wrapDTO(Payment payment, Collection<DtoOption> options) throws Exception {\n PaymentReadDTO dto = mapper.map(payment, PaymentReadDTO.class);\n\n /* Add dependency */\n /* TODO:\n if (options != null && !options.isEmpty()) {\n if (options.contains(DtoOption.FK)) {\n FkReadDTO fkDTO = fkService.getDTOById(payment.getFkId());\n dto.setFk(fkDTO);\n }\n\n if (options.contains(DtoOption.FK_LIST)) {\n List<FkReadDTO> fkDTOList = fkService.getAllDTOById(payment.getFkId());\n dto.setFkList(fkDTOList);\n }\n }\n */\n\n return dto;\n }", "@Mapper\npublic interface UserConvert {\n\n UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);\n\n static UserConvertConvertor instance() {\n return INSTANCE;\n }\n\n @Mappings({})\n User toUser(UserDTO userDTO);\n\n @Mappings({})\n UserDTO toUserDTO(User user);\n\n List<UserDTO> toUserDTOs(List<User> users);\n\n List<User> toUsers(List<UserDTO> userDTOs);\n}", "@Mapper\npublic interface TestMapper extends MyMapper<Person1> {\n //List<Person1> findAll();\n}", "@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}", "public GetAllCarsDTO() {\n }", "public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }", "protected MovieDtoExample(MovieDtoExample example) {\n this.orderByClause = example.orderByClause;\n this.oredCriteria = example.oredCriteria;\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AlterationDisplayTypeMapper {\n\n AlterationDisplayTypeDTO alterationDisplayTypeToAlterationDisplayTypeDTO(AlterationDisplayType alterationDisplayType);\n\n List<AlterationDisplayTypeDTO> alterationDisplayTypesToAlterationDisplayTypeDTOs(List<AlterationDisplayType> alterationDisplayTypes);\n\n @Mapping(target = \"alterations\", ignore = true)\n AlterationDisplayType alterationDisplayTypeDTOToAlterationDisplayType(AlterationDisplayTypeDTO alterationDisplayTypeDTO);\n\n List<AlterationDisplayType> alterationDisplayTypeDTOsToAlterationDisplayTypes(List<AlterationDisplayTypeDTO> alterationDisplayTypeDTOs);\n}", "@Mapper\npublic interface ProjectMapper {\n\n ProjectMapper INSTANCE = Mappers.getMapper(ProjectMapper.class);\n\n Project toModel(ProjectDTO projectDTO);\n\n ProjectDTO toDTO(Project project);\n}", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "public MedicationDTO2 (Medication medication) {\n \tthis.id = medication.getId();\n \tthis.name = medication.getName();\n \tthis.code = medication.getCode();\n \tthis.typeOfMedication = medication.getTypeOfMedication();\n \tthis.medicationForm = medication.getMedicationForm();\n \tthis.structure = medication.getStructure();\n \tthis.contraindications = medication.getContraindications();\n \tthis.recommendedIntake = medication.getRecommendedIntake();\n //\tthis.pharmacyID = \n \tthis.manufacturer = medication.getManufacturer();\n \tthis.prescriptionRegime = medication.getPrescriptionRegime();\n \tthis.description = medication.getDescription();\n \t\n \tfor(Medication m : medication.getReplacementMedications()) {\n \t\tthis.replacementMedicationsIDs.add(m.getId());\n \t}\n }", "@Mapper\npublic interface MissionMapper {\n\n MissionMapper INSTANCE = Mappers.getMapper(MissionMapper.class);\n\n @Mapping(source = \"izQuestion\", target = \"izQuestion\")\n @Mapping(source = \"missionDescription\", target = \"missionDescription\")\n @Mapping(source = \"missionName\", target = \"missionName\")\n @Mapping(source = \"shortDescription\", target = \"shortDescription\")\n @Mapping(source = \"winnerScore\", target = \"winnerScore\")\n @Mapping(source = \"storyId\", target = \"story.id\")\n Mission dtoToMission (MissionDTO missionDTO);\n}", "private EmployeeDto toDto(Employee employee){\n\t\tEmployeeDto employeeDto = new EmployeeDto();\n\t\temployeeDto.id = employee.getId();\n\n\t\temployeeDto.name = employee.getName();\n\t\temployeeDto.email = employee.getEmail();\n\n\t\temployeeDto.jobTypeId = employee.getJobtype().getId();\n\n\t\temployeeDto.bossId = employee.getBossId();\n\n\t\temployeeDto.netPayment = employee.getNetPayment();\n\t\temployeeDto.grossPayment = employee.getGrossPayment();\n\t\temployeeDto.employerTotalCost = employee.getEmployerTotalCost();\n\t\temployeeDto.workHours = employee.getWorkHours();\n\n\t\temployeeDto.children = employee.getChildren();\n\n\t\temployeeDto.workStatus = employee.getWorkStatus().getStringValue();\n\n\t\temployeeDto.isEntrant = employee.isEntrant();\n\t\temployeeDto.isJustMarried = employee.isJustMarried();\n\t\temployeeDto.isSingleParent = employee.isSingleParent();\n\n\t\treturn employeeDto;\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TxnActivityAuditMapper {\n\n @Mapping(source = \"editedBy.id\", target = \"editedById\")\n TxnActivityAuditDTO txnActivityAuditToTxnActivityAuditDTO(TxnActivityAudit txnActivityAudit);\n\n @Mapping(source = \"editedById\", target = \"editedBy\")\n TxnActivityAudit txnActivityAuditDTOToTxnActivityAudit(TxnActivityAuditDTO txnActivityAuditDTO);\n\n default Staff staffFromId(Long id) {\n if (id == null) {\n return null;\n }\n Staff staff = new Staff();\n staff.setId(id);\n return staff;\n }\n}", "SurveyQuestionDTO convertSurveyQuestionToSurveyQuestionDTO(SurveyQuestion question);" ]
[ "0.73979706", "0.7192396", "0.69763947", "0.6740301", "0.6671329", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63905215", "0.63847554", "0.63505775", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.6010855", "0.59998727", "0.59807646", "0.59544283", "0.5943492", "0.59149295", "0.5894155", "0.58833814", "0.5808219", "0.57750195", "0.57668066", "0.5761838", "0.5751175", "0.573665", "0.5735213", "0.57335585", "0.57217956", "0.5700575", "0.5698903", "0.5693827", "0.5673914", "0.56679183", "0.56618637", "0.5649339", "0.5635711", "0.5628919", "0.5618725", "0.56059974", "0.5593568", "0.5589039", "0.558151", "0.55779994", "0.5576326", "0.557629", "0.5572549", "0.5569024", "0.55656993", "0.55492467", "0.5518626", "0.55095804", "0.5504652", "0.549708", "0.5496518", "0.5496145", "0.54932016", "0.5486676", "0.5480258", "0.5479153", "0.54778844", "0.54648626", "0.54604685", "0.5442837", "0.54284984", "0.542459", "0.54238486", "0.54114306", "0.5404944", "0.5404856", "0.5404057", "0.53992164", "0.5391367", "0.53809154", "0.53795207", "0.5378824", "0.5373316", "0.5363157", "0.53589654", "0.5356848", "0.5342475", "0.5330356", "0.53299093", "0.5325332", "0.5324569", "0.5321285", "0.5317239", "0.53160113", "0.5312925", "0.5311536", "0.52957255", "0.52925485" ]
0.6342465
13
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - Intantiates DTOAssembler") void personDTOAssembler_InstatiatesDTOAssembler() { String mariaEmail = "[email protected]"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); PersonID fatherID = null; PersonID motherID = null; String IS_NOT_DEFINED = "Is Not Defined"; //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED); //Act PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler(); PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - WithMotherAndFather\")\n void personDTOAssembler_WithMotherAndFather() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n PersonID fatherID = PersonID.createPersonID(\"[email protected]\");\n String fatherEmail = fatherID.getEmail().getEmail();\n PersonID motherID = PersonID.createPersonID(\"[email protected]\");\n String motherEmail = motherID.getEmail().getEmail();\n\n\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, fatherEmail, motherEmail);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n\tpublic void testPersonToPersonDtoMap() {\n\t\t\n\t\t// prepare \n\t\tPerson person = this.getFakePersonToMap();\n\t\tAddress address = person.getAddress();\n\t\tContactDetail contactDetail = person.getContactDetail();\n\t\t\n\t\t// sut (system / class under test)\n\t\tMapper testee = new Mapper();\n\t\t\n\t\t// act\t\t\n\t\tPersonDto personDto = testee.map(person, PersonDto.class);\n\t\t\n\t\t// tests\n\t\t// address\n\t\tassertEquals(personDto.getAddressCity(), address.getCity());\n\t\tassertEquals(personDto.getAddressCountry(), address.getCountry());\n\t\t\n\t\t// contact details\n\t\tassertEquals(personDto.getPhoneNumber1(), contactDetail.getPhoneNumber1());\n\t\tassertEquals(personDto.getPhoneNumber2(), contactDetail.getPhoneNumber2());\n\t\tassertEquals(personDto.getPhoneNumber3(), contactDetail.getPhoneNumber3());\n\t\tassertEquals(personDto.getFax(), contactDetail.getFax());\n\t\t\n\t}", "D mapToDTO(E entity);", "public void crearPersona(PersonaDTO personaDTO);", "public List<PersonDTO> getDTOs(){\n\t\tList<PersonDTO> personDTOs = new ArrayList<PersonDTO>();\n\t\tList<Person> persons = personRepository.getAll();\n\t\tfor (Person person: persons) {\n\t\t\t// Create new data transfer object\n\t\t\tPersonDTO dto = new PersonDTO();\n\n\t\t\tdto.setId(person.getId());\n\t\t\tdto.setTitle(person.getTitle());\n\t\t\tdto.setFirstName(person.getFirstName());\n\t\t\tdto.setLastName(person.getLastName());\n\t\t\tdto.setEmail(person.getEmail());\n\t\t\tdto.setPhone(person.getPhone());\n\t\t\tdto.setAddress1(person.getAddress1());\n\t\t\tdto.setAddress2(person.getAddress2());\n\t\t\tdto.setZipCode(person.getZipCode());\n\t\t\tdto.setCity(person.getCity());\n\t\t\tdto.setCountry(person.getCountry());\n\t\t\t// Add to model list\n\t\t\tpersonDTOs.add(dto);\n\t\t}\n\t\treturn personDTOs;\n\t}", "StudentDTO toStudentDTO(Student student);", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler-ThirdConstructor\")\n void personDTOAssembler_InstatiatesDTOAssembler_ThirdConstructor() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n LedgerID ledgerID = LedgerID.createLedgerID();\n String ledgerId = ledgerID.toString();\n\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace);\n\n //Act\n\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromPrimitiveTypes(mariaEmail, mariaName, mariaBirthDate.toString(), mariaBirthplace);\n\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler-SecondConstructor\")\n void personDTOAssembler_InstatiatesDTOAssembler_SecondConstructor() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n String ledgerId = \"123\";\n LedgerID ledgerID = new LedgerID(ledgerId);\n\n\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail,ledgerId, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, ledgerID, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n @DisplayName(\"PersonDTOAssembler - Test create data transfer objects from Domain Object || Happy case\")\n void personDTOAssembler_CreateDTOFromDomainObjectTest() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "V toDto(E entity);", "protected abstract void processDTO();", "OrderDto map(Order order);", "public abstract D convertToDto(T entity);", "public abstract DTO toDTO(M model);", "@Override\n\tpublic ExperienceDTO domainToDto(Experience experience) {\n\t\treturn mapperFacade.map(experience, ExperienceDTO.class);\n\t}", "Assembler newAssembler(final Class< ? > dto, final Class< ? > entity);", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "AccountDTO toDTO(Account account);", "public PersonaDTO consultarPersona(Long idPersona) ;", "List<D> mapToDTO(List<E> entity);", "public NameDTO() {\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n }", "AccountDTO coverAccountToEmpDTO(Account account);", "@Mapper\npublic interface PersonMapper {\n\n PersonDO selectPersonById(Integer id);\n\n List<PersonDO> selectAll();\n\n void insert(PersonDO personDO);\n\n Long update(PersonDO personDO);\n\n Long delete(Integer id);\n}", "@Mappings({\n @Mapping(source = \"address\", target = \"addressDto\"),\n @Mapping(target = \"skills\", ignore = true)\n })\n UserDto toDTO(UserEntity userEntity);", "E mapToEntity(D dto);", "private Book mapBookDTOToBook(BookDTO bookDTO) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBook book = mapper.map(bookDTO, Book.class);\n\t\tbook.setCategory(new Category(bookDTO.getCategory().getCode(), \"\"));\n\t\tbook.setRegisterDate(LocalDate.now());\n\t\treturn book;\n\t}", "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "ExerciseDTO convertToExerciseDTO(Exercise exercise);", "public List<PersonaDTO> consultarPersonas() ;", "@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}", "@Component\n@Mapper(componentModel = \"spring\")\npublic interface CarriageMapper {\n\n Carriage carriageModelToCarriage(CarriageModel carriageModel);\n\n CarriageModel carriageToCarriageModel(Carriage carriage);\n\n CarriageModel carriageDtoToCarriageModel(CarriageDto carriageDto);\n\n CarriageDto carriageModelToCarriageDto(CarriageModel carriageModel);\n\n List<CarriageModel> carriagesToCarriageModels(List<Carriage> carriages);\n\n List<CarriageDto> carriageModelsToCarriageDtos(List<CarriageModel> carriageModels);\n\n List<Carriage> carriageModelsToCarriages(List<CarriageModel> carriageModels);\n}", "Account toDomain(AccountDTO accountDto);", "@Override\n\tpublic Experience dtoToDomain(ExperienceDTO experience) {\n\t\treturn mapperFacade.map(experience, Experience.class);\n\t}", "@Mapper(componentModel = \"cdi\")\npublic interface ArchivoMapper {\n\n ArchivoDTO toDTO(Archivo source);\n List<ArchivoDTO> toDTOList(List<Archivo> sourceList);\n\n void updateFromDTO(ArchivoDTO source, @MappingTarget Archivo target);\n}", "@Mapper(uses = DateMapper.class)\npublic interface ExerciseMapper {\n\n // Autogenerated code will map exercise object to ExerciseDTO\n // @Mapping(source = \"firstName\", target = \"name\") can be used if the field names do not match.\n ExerciseDTO convertToExerciseDTO(Exercise exercise);\n\n Exercise convertToExercise(ExerciseDTO exerciseDTO);\n\n}", "@Mapping(target = \"id\", ignore = true)\n PhoneDTO fromProtobuf(Customer.Phone phone);", "@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}", "WordDtoImpl convertFromDomainImpl(Word word);", "public interface DTOMapper<E> {\n\n /**\n * Fills the DTO with information from the entity.\n *\n * @param entity the <code>E</code> generics entity\n */\n void buildFromEntity(E entity);\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "public interface BookConverter {\n BookDto toBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(BookDto bookDto);\n\n FullBookDto toFullBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(FullBookDto fullBookDto);\n}", "@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);", "private BookDTO mapBookToBookDTO(Book book) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBookDTO bookDTO = mapper.map(book, BookDTO.class);\n\t\tif (book.getCategory() != null) {\n\t\t\tbookDTO.setCategory(new CategoryDTO(book.getCategory().getCode(), book.getCategory().getLabel()));\n\t\t}\n\t\treturn bookDTO;\n\t}", "private LecturerDto mapDto(Lecturer lecturer) {\n return new LecturerDto(lecturer.getLecturerID(), lecturer.getFirstName(), lecturer.getLastName(), lecturer.getEmail(), lecturer.getType());\n }", "public PersonaDTO obtenerPersona(Long idPersona) throws CustomErrorException {\n\t\tPersonaDTO personaDTO = new PersonaDTO();\n\t\ttry {\n\t\t\tpersonaDTO = Converter.toDto((Persona) gPersona.getById(idPersona)); \n\t\t} catch (CustomErrorException cer) {\n\t\t\tthrow cer;\n\t\t} catch (Exception e) {\n\t\t\tthrow new CustomErrorException(CustomErrorException.ERROR_SERVICIO,this.getClass().getSimpleName(),e.getStackTrace());\n\t\t}\n\n\t\treturn personaDTO;\n\t}", "@Test\n public void testConvertComputerToComputerDTO() {\n ComputerDTO computerDTO = new ComputerDTO();\n computerDTO.setId(1);\n computerDTO.setName(\"test\");\n ComputerDTO computerResult = DTOMapper.fromComputer(new Computer.Builder(\"test\").id(1L).build());\n assertEquals(computerDTO, computerResult);\n }", "@Mapper\npublic interface SeguridadDtoMap {\n SeguridadDtoMap INSTANCE = Mappers.getMapper( SeguridadDtoMap.class );\n\n GrupoDto grupoToGrupoDto(Grupo grupo);\n\n Grupo grupoDtoToGrupo(GrupoDto grupoDto);\n}", "public abstract T convertToEntity(D dto);", "@Bean\n public TypeMap<Carriage, CarriageDto> getCarriageCarriageDtoTypeMap() {\n Converter<List<Driver>, List<DriverDto>> toDriverDtoList = new AbstractConverter<List<Driver>, List<DriverDto>>() {\n protected List<DriverDto> convert(List<Driver> source) {\n if (source == null) {\n return null;\n } else {\n List<DriverDto> driverDtos = new ArrayList<>(source.size());\n for (Driver driver : source) {\n driverDtos.add(getModelMapper().getTypeMap(Driver.class, DriverDto.class, \"DriverDriverDto\").map(driver));\n }\n return driverDtos;\n }\n }\n };\n\n Converter<Vehicle, VehicleDto> toVehicleDto = new AbstractConverter<Vehicle, VehicleDto>() {\n @Override\n protected VehicleDto convert(Vehicle vehicle) {\n if (vehicle == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Vehicle.class, VehicleDto.class, \"VehicleVehicleDto\")\n .map(vehicle);\n }\n }\n };\n\n /*\n\n Converter<? super Cargo, CargoDto> toCargoDto = new AbstractConverter<Cargo, CargoDto>() {\n @Override\n protected CargoDto convert(Cargo cargo) {\n if (cargo == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Cargo.class, CargoDto.class, \"CargoCargoDto\")\n .map(cargo);\n }\n }\n };*/\n\n return getModelMapper().createTypeMap(Carriage.class, CarriageDto.class, \"CarriageCarriageDto\")\n .addMappings(mapper -> mapper.skip(CarriageDto::setMaxWeight))\n\n// .addMappings(mapper -> mapper.using(toCargoDto).map(Carriage::getCargoes, CarriageDto::setCargoes))\n// .addMappings(mapper -> mapper.using(toWaypointDto).map(Carriage::getWaypoints, CarriageDto::setWaypoints))\n .addMappings(mapper -> mapper.using(toVehicleDto).map(Carriage::getVehicle, CarriageDto::setVehicle))\n .addMappings(mapper -> mapper.using(toDriverDtoList).map(Carriage::getDrivers, CarriageDto::setDrivers));\n }", "public abstract M toModel(DTO dto);", "@Mapper(componentModel = \"spring\", uses = {OrgaoMapper.class, PermissaoMapper.class})\npublic interface UsuarioMapper {\n\n @Mapping(target = \"orgao\", ignore = true)\n UsuarioDTO usuarioToUsuarioDTO(Usuario usuario);\n\n List<UsuarioDTO> usuariosToUsuarioDTOs(List<Usuario> usuarios);\n\n Usuario usuarioDTOToUsuario(UsuarioDTO usuarioDTO);\n\n List<Usuario> usuarioDTOsToUsuarios(List<UsuarioDTO> usuarioDTOs);\n}", "public SkillDTO toDTO(Skill skill) {\n return toDTO(skill, 1);\n }", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CustomerMapper {\n\n CustomerDTO customerToCustomerDTO(Customer customer);\n\n List<CustomerDTO> customersToCustomerDTOs(List<Customer> customers);\n\n @Mapping(target = \"orders\", ignore = true)\n Customer customerDTOToCustomer(CustomerDTO customerDTO);\n\n List<Customer> customerDTOsToCustomers(List<CustomerDTO> customerDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ExerciseFamilyMapper {\n\n ExerciseFamilyDTO exerciseFamilyToExerciseFamilyDTO(ExerciseFamily exerciseFamily);\n\n List<ExerciseFamilyDTO> exerciseFamiliesToExerciseFamilyDTOs(List<ExerciseFamily> exerciseFamilies);\n\n @Mapping(target = \"exercises\", ignore = true)\n ExerciseFamily exerciseFamilyDTOToExerciseFamily(ExerciseFamilyDTO exerciseFamilyDTO);\n\n List<ExerciseFamily> exerciseFamilyDTOsToExerciseFamilies(List<ExerciseFamilyDTO> exerciseFamilyDTOs);\n}", "public interface IReglaUtilDTO {\n\n\t/**\n\t * To business.\n\t * \n\t * @param reglaDTO\n\t * the regla dto\n\t * @return the regla\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tRegla toBusiness(ReglaDTO reglaDTO) throws TransferObjectException;\n\n\t/**\n\t * To rest.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRest(Regla regla) throws TransferObjectException;\n\n\t/**\n\t * To rest info.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRestInfo(Regla regla) throws TransferObjectException;\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "@Override\r\n\tpublic MainDTO toDTO() {\n\t\tFamiliaresDTO familiaresDTO = new FamiliaresDTO();\r\n\t\tDomicilioDTO domicilioDTO = null;\r\n\t\tfamiliaresDTO.setIdfamiliar(this.getIdFamiliar());\r\n\t\tfamiliaresDTO.setNombre(this.getNombre());\r\n\t\tfamiliaresDTO.setApellidoPaterno(this.getApellidoPaterno());\r\n\t\tfamiliaresDTO.setApellidoMaterno(this.getAppelidoMaterno());\r\n\t\tfamiliaresDTO.setDireccion(this.getDireccion());\r\n\t\tfamiliaresDTO.setIdpaciente(this.getIdpaciente());\r\n\t\tfamiliaresDTO.setDependencia(this.getDependencia());\r\n\t\tdomicilioDTO = (DomicilioDTO) this.getDomicilio().toDTO();\r\n\t\tfamiliaresDTO.setDomicilio(domicilioDTO);\r\n\t\treturn familiaresDTO;\r\n\t}", "List<StudentDTO> toStudentDTOs(List<Student> students);", "@Mapper(componentModel = \"cdi\", uses = EnumMapper.class)\npublic interface DocumentoMapper {\n\n DocumentoDTO toDTO(Documento documento);\n\n Documento fromDTO(DocumentoDTO documentoDTO);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "@Override\n\tpublic ExamDTO toDto(Exam exam) {\n\t\treturn null;\n\t}", "@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface WwtreatmentthreeMapper {\n\n WwtreatmentthreeDTO wwtreatmentthreeToWwtreatmentthreeDTO(Wwtreatmentthree wwtreatmentthree);\n\n List<WwtreatmentthreeDTO> wwtreatmentthreesToWwtreatmentthreeDTOs(List<Wwtreatmentthree> wwtreatmentthrees);\n\n Wwtreatmentthree wwtreatmentthreeDTOToWwtreatmentthree(WwtreatmentthreeDTO wwtreatmentthreeDTO);\n\n List<Wwtreatmentthree> wwtreatmentthreeDTOsToWwtreatmentthrees(List<WwtreatmentthreeDTO> wwtreatmentthreeDTOs);\n}", "@Mapper(componentModel = \"spring\")\npublic interface PedidoMapper {\n\t\n\t@AfterMapping\n\tdefault void afterMapping(@MappingTarget PedidoDTO target, Pedido source) {\n\t\t\n\t\tFloat totalIVA = new Float(0);\n\t\tFloat totalDomicilio = new Float(0);\n\t\tFloat totalNeto = new Float(0);\n\t\t\n\t\tif(source.getEstado().equals(Constantes.ESTADO_PEDIDO_ACTIVO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEIDIDO_ACTIVO_STRING);\n\t\t\ttotalIVA = new Float(target.getSubtotal() * 0.19);\n\t\t\ttotalDomicilio = target.getSubtotal() >= Constantes.VALOR_MINIMO_PARA_COBRO_DE_DOMICILIO && target.getSubtotal() <= Constantes.VALOR_MAXIMO_PARA_COBRO_DE_DOMICILIO ? new Float(target.getSubtotal() * 0.05) : new Float(0);\n\t\t\ttotalNeto = target.getSubtotal() + totalIVA + totalDomicilio;\n\t\t}\n\t\telse if (source.getEstado().equals(Constantes.ESTADO_PEDIDO_CANCELADO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEDIDO_CANCELADO_STRING);\n\t\t\ttotalNeto = new Float(target.getSubtotal() * 0.10);\n\t\t}\t\t \n\t\t\n\t\t\n\t\ttarget.setTotalIVA(totalIVA);\n\t\ttarget.setTotalDomicilio(totalDomicilio);\n\t\ttarget.setTotalNeto(totalNeto);\n\t}\n\t\n\t@Mapping(source = \"entity.idUsuario.idUsuario\", target = \"idUsuario\")\n\t@Mapping(source = \"entity.idUsuario.nombre\", target = \"nombreUsuario\")\n\t@Mapping(source = \"entity.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"entity.estado\", target = \"estado\")\n\t@Mapping(target = \"idProductosConcatenados\", ignore = true)\n\t@Mapping(target = \"totalIVA\", ignore = true)\n\t@Mapping(target = \"totalDomicilio\", ignore = true)\n\t@Mapping(target = \"totalNeto\", ignore = true)\n\t@Mapping(target = \"codigoRespuesta\", ignore = true)\n\t@Mapping(target = \"mensajeRespuesta\", ignore = true)\n\t@Mapping(target = \"estadoString\", ignore = true)\n\tpublic PedidoDTO transformEntityToDTO(Pedido entity);\n\t\n\t@Mapping(source = \"DTO.idUsuario\", target = \"idUsuario.idUsuario\")\n\t@Mapping(source = \"DTO.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"DTO.estado\", target = \"estado\")\n\tpublic Pedido transformDTOToEntity(PedidoDTO DTO);\n\t\n\tpublic List<PedidoDTO> transformEntitiesToDTO(List<Pedido> listEntities);\n\t\n\tpublic List<Pedido> transformDTOToEntities(List<Pedido> listDTO);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AddressMapper {\n\n @Mapping(source = \"city.id\", target = \"cityId\")\n AddressDTO addressToAddressDTO(Address address);\n\n List<AddressDTO> addressesToAddressDTOs(List<Address> addresses);\n\n @Mapping(source = \"cityId\", target = \"city\")\n Address addressDTOToAddress(AddressDTO addressDTO);\n\n List<Address> addressDTOsToAddresses(List<AddressDTO> addressDTOs);\n\n default City cityFromId(Long id) {\n if (id == null) {\n return null;\n }\n City city = new City();\n city.setId(id);\n return city;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}", "Account coverEmpDTOToAccount(AccountDTO accountDTO);", "public List<PersonDto> findByFirstName(String firstName) {\n List<Person> models = Collections.emptyList();\n return models.stream()\n .map(personMapper::toDto)\n .collect(Collectors.toList());\n }", "CommentDto entityToDto(Comment comment);", "public MemberDto copyEntityToDto(Member entity, MemberDto dto) {\r\n reflectMemberIdToDto(entity, dto);\r\n reflectMemberNameToDto(entity, dto);\r\n reflectFormalizedDatetimeToDto(entity, dto);\r\n reflectUpdateDatetimeToDto(entity, dto);\r\n\r\n return dto;\r\n }", "@Mapper(componentModel = \"spring\", uses = {Business.class})\npublic interface BusinessMapper {\n\n BusinessDTO toDTO(Business business);\n\n @Mapping(target = \"advertisements\", ignore = true)\n Business toEntity(BusinessDTO businessDTO);\n}", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "CustomerDto createCustomer(CustomerEntity customerEntity);", "public interface CompanyJsonTransformer {\n\n /**\n * Transforms a CompanyJson element with id as UUID to a new CompanyInternal internal element.\n *\n * @param companyId the ID of the CompanyJson object\n * @param company the CompanyJson object\n * @return the CompanyInternal object\n */\n CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);\n\n /**\n * Transforms a CompanyInternal and BeneficialOwnerInternals to a new CompanyJson element.\n *\n * @param company the CompanyInternal object\n * @param beneficialOwners the List<BeneficialOwnerInternal> object\n * @return the CompanyJson object\n */\n CompanyJson toCompanyJson(CompanyInternal company, List<BeneficialOwnerInternal> beneficialOwners);\n}", "@Mapper(componentModel = \"spring\", uses = {ApplicationProspectMapper.class, NomineeMapper.class})\npublic interface AddressMapper extends EntityMapper<AddressDTO, Address> {\n\n @Mapping(source = \"applicationProspect.id\", target = \"applicationProspectId\")\n @Mapping(source = \"nominee.id\", target = \"nomineeId\")\n AddressDTO toDto(Address address);\n\n @Mapping(source = \"applicationProspectId\", target = \"applicationProspect\")\n @Mapping(source = \"nomineeId\", target = \"nominee\")\n Address toEntity(AddressDTO addressDTO);\n\n default Address fromId(Long id) {\n if (id == null) {\n return null;\n }\n Address address = new Address();\n address.setId(id);\n return address;\n }\n}", "public ProdutoDTO()\n {\n super();\n }", "@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EheartMapper {\n\n EheartDTO eheartToEheartDTO(Eheart eheart);\n\n List<EheartDTO> eheartsToEheartDTOs(List<Eheart> ehearts);\n\n Eheart eheartDTOToEheart(EheartDTO eheartDTO);\n\n List<Eheart> eheartDTOsToEhearts(List<EheartDTO> eheartDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OTHERMapper extends EntityMapper<OTHERDTO, OTHER> {\n\n\n\n default OTHER fromId(Long id) {\n if (id == null) {\n return null;\n }\n OTHER oTHER = new OTHER();\n oTHER.setId(id);\n return oTHER;\n }\n}", "private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}", "@Override\n public PaymentReadDTO wrapDTO(Payment payment, Collection<DtoOption> options) throws Exception {\n PaymentReadDTO dto = mapper.map(payment, PaymentReadDTO.class);\n\n /* Add dependency */\n /* TODO:\n if (options != null && !options.isEmpty()) {\n if (options.contains(DtoOption.FK)) {\n FkReadDTO fkDTO = fkService.getDTOById(payment.getFkId());\n dto.setFk(fkDTO);\n }\n\n if (options.contains(DtoOption.FK_LIST)) {\n List<FkReadDTO> fkDTOList = fkService.getAllDTOById(payment.getFkId());\n dto.setFkList(fkDTOList);\n }\n }\n */\n\n return dto;\n }", "@Mapper\npublic interface UserConvert {\n\n UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);\n\n static UserConvertConvertor instance() {\n return INSTANCE;\n }\n\n @Mappings({})\n User toUser(UserDTO userDTO);\n\n @Mappings({})\n UserDTO toUserDTO(User user);\n\n List<UserDTO> toUserDTOs(List<User> users);\n\n List<User> toUsers(List<UserDTO> userDTOs);\n}", "@Mapper\npublic interface TestMapper extends MyMapper<Person1> {\n //List<Person1> findAll();\n}", "@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}", "public GetAllCarsDTO() {\n }", "public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }", "protected MovieDtoExample(MovieDtoExample example) {\n this.orderByClause = example.orderByClause;\n this.oredCriteria = example.oredCriteria;\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AlterationDisplayTypeMapper {\n\n AlterationDisplayTypeDTO alterationDisplayTypeToAlterationDisplayTypeDTO(AlterationDisplayType alterationDisplayType);\n\n List<AlterationDisplayTypeDTO> alterationDisplayTypesToAlterationDisplayTypeDTOs(List<AlterationDisplayType> alterationDisplayTypes);\n\n @Mapping(target = \"alterations\", ignore = true)\n AlterationDisplayType alterationDisplayTypeDTOToAlterationDisplayType(AlterationDisplayTypeDTO alterationDisplayTypeDTO);\n\n List<AlterationDisplayType> alterationDisplayTypeDTOsToAlterationDisplayTypes(List<AlterationDisplayTypeDTO> alterationDisplayTypeDTOs);\n}", "@Mapper\npublic interface ProjectMapper {\n\n ProjectMapper INSTANCE = Mappers.getMapper(ProjectMapper.class);\n\n Project toModel(ProjectDTO projectDTO);\n\n ProjectDTO toDTO(Project project);\n}", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "public MedicationDTO2 (Medication medication) {\n \tthis.id = medication.getId();\n \tthis.name = medication.getName();\n \tthis.code = medication.getCode();\n \tthis.typeOfMedication = medication.getTypeOfMedication();\n \tthis.medicationForm = medication.getMedicationForm();\n \tthis.structure = medication.getStructure();\n \tthis.contraindications = medication.getContraindications();\n \tthis.recommendedIntake = medication.getRecommendedIntake();\n //\tthis.pharmacyID = \n \tthis.manufacturer = medication.getManufacturer();\n \tthis.prescriptionRegime = medication.getPrescriptionRegime();\n \tthis.description = medication.getDescription();\n \t\n \tfor(Medication m : medication.getReplacementMedications()) {\n \t\tthis.replacementMedicationsIDs.add(m.getId());\n \t}\n }", "@Mapper\npublic interface MissionMapper {\n\n MissionMapper INSTANCE = Mappers.getMapper(MissionMapper.class);\n\n @Mapping(source = \"izQuestion\", target = \"izQuestion\")\n @Mapping(source = \"missionDescription\", target = \"missionDescription\")\n @Mapping(source = \"missionName\", target = \"missionName\")\n @Mapping(source = \"shortDescription\", target = \"shortDescription\")\n @Mapping(source = \"winnerScore\", target = \"winnerScore\")\n @Mapping(source = \"storyId\", target = \"story.id\")\n Mission dtoToMission (MissionDTO missionDTO);\n}", "private EmployeeDto toDto(Employee employee){\n\t\tEmployeeDto employeeDto = new EmployeeDto();\n\t\temployeeDto.id = employee.getId();\n\n\t\temployeeDto.name = employee.getName();\n\t\temployeeDto.email = employee.getEmail();\n\n\t\temployeeDto.jobTypeId = employee.getJobtype().getId();\n\n\t\temployeeDto.bossId = employee.getBossId();\n\n\t\temployeeDto.netPayment = employee.getNetPayment();\n\t\temployeeDto.grossPayment = employee.getGrossPayment();\n\t\temployeeDto.employerTotalCost = employee.getEmployerTotalCost();\n\t\temployeeDto.workHours = employee.getWorkHours();\n\n\t\temployeeDto.children = employee.getChildren();\n\n\t\temployeeDto.workStatus = employee.getWorkStatus().getStringValue();\n\n\t\temployeeDto.isEntrant = employee.isEntrant();\n\t\temployeeDto.isJustMarried = employee.isJustMarried();\n\t\temployeeDto.isSingleParent = employee.isSingleParent();\n\n\t\treturn employeeDto;\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TxnActivityAuditMapper {\n\n @Mapping(source = \"editedBy.id\", target = \"editedById\")\n TxnActivityAuditDTO txnActivityAuditToTxnActivityAuditDTO(TxnActivityAudit txnActivityAudit);\n\n @Mapping(source = \"editedById\", target = \"editedBy\")\n TxnActivityAudit txnActivityAuditDTOToTxnActivityAudit(TxnActivityAuditDTO txnActivityAuditDTO);\n\n default Staff staffFromId(Long id) {\n if (id == null) {\n return null;\n }\n Staff staff = new Staff();\n staff.setId(id);\n return staff;\n }\n}", "SurveyQuestionDTO convertSurveyQuestionToSurveyQuestionDTO(SurveyQuestion question);" ]
[ "0.73979706", "0.7192396", "0.69763947", "0.6671329", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63905215", "0.63847554", "0.63505775", "0.6342465", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.6010855", "0.59998727", "0.59807646", "0.59544283", "0.5943492", "0.59149295", "0.5894155", "0.58833814", "0.5808219", "0.57750195", "0.57668066", "0.5761838", "0.5751175", "0.573665", "0.5735213", "0.57335585", "0.57217956", "0.5700575", "0.5698903", "0.5693827", "0.5673914", "0.56679183", "0.56618637", "0.5649339", "0.5635711", "0.5628919", "0.5618725", "0.56059974", "0.5593568", "0.5589039", "0.558151", "0.55779994", "0.5576326", "0.557629", "0.5572549", "0.5569024", "0.55656993", "0.55492467", "0.5518626", "0.55095804", "0.5504652", "0.549708", "0.5496518", "0.5496145", "0.54932016", "0.5486676", "0.5480258", "0.5479153", "0.54778844", "0.54648626", "0.54604685", "0.5442837", "0.54284984", "0.542459", "0.54238486", "0.54114306", "0.5404944", "0.5404856", "0.5404057", "0.53992164", "0.5391367", "0.53809154", "0.53795207", "0.5378824", "0.5373316", "0.5363157", "0.53589654", "0.5356848", "0.5342475", "0.5330356", "0.53299093", "0.5325332", "0.5324569", "0.5321285", "0.5317239", "0.53160113", "0.5312925", "0.5311536", "0.52957255", "0.52925485" ]
0.6740301
3
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - WithMotherAndFather") void personDTOAssembler_WithMotherAndFather() { String mariaEmail = "[email protected]"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); PersonID fatherID = PersonID.createPersonID("[email protected]"); String fatherEmail = fatherID.getEmail().getEmail(); PersonID motherID = PersonID.createPersonID("[email protected]"); String motherEmail = motherID.getEmail().getEmail(); //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, fatherEmail, motherEmail); //Act PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler(); PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler\")\n void personDTOAssembler_InstatiatesDTOAssembler() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n\tpublic void testPersonToPersonDtoMap() {\n\t\t\n\t\t// prepare \n\t\tPerson person = this.getFakePersonToMap();\n\t\tAddress address = person.getAddress();\n\t\tContactDetail contactDetail = person.getContactDetail();\n\t\t\n\t\t// sut (system / class under test)\n\t\tMapper testee = new Mapper();\n\t\t\n\t\t// act\t\t\n\t\tPersonDto personDto = testee.map(person, PersonDto.class);\n\t\t\n\t\t// tests\n\t\t// address\n\t\tassertEquals(personDto.getAddressCity(), address.getCity());\n\t\tassertEquals(personDto.getAddressCountry(), address.getCountry());\n\t\t\n\t\t// contact details\n\t\tassertEquals(personDto.getPhoneNumber1(), contactDetail.getPhoneNumber1());\n\t\tassertEquals(personDto.getPhoneNumber2(), contactDetail.getPhoneNumber2());\n\t\tassertEquals(personDto.getPhoneNumber3(), contactDetail.getPhoneNumber3());\n\t\tassertEquals(personDto.getFax(), contactDetail.getFax());\n\t\t\n\t}", "D mapToDTO(E entity);", "public void crearPersona(PersonaDTO personaDTO);", "public List<PersonDTO> getDTOs(){\n\t\tList<PersonDTO> personDTOs = new ArrayList<PersonDTO>();\n\t\tList<Person> persons = personRepository.getAll();\n\t\tfor (Person person: persons) {\n\t\t\t// Create new data transfer object\n\t\t\tPersonDTO dto = new PersonDTO();\n\n\t\t\tdto.setId(person.getId());\n\t\t\tdto.setTitle(person.getTitle());\n\t\t\tdto.setFirstName(person.getFirstName());\n\t\t\tdto.setLastName(person.getLastName());\n\t\t\tdto.setEmail(person.getEmail());\n\t\t\tdto.setPhone(person.getPhone());\n\t\t\tdto.setAddress1(person.getAddress1());\n\t\t\tdto.setAddress2(person.getAddress2());\n\t\t\tdto.setZipCode(person.getZipCode());\n\t\t\tdto.setCity(person.getCity());\n\t\t\tdto.setCountry(person.getCountry());\n\t\t\t// Add to model list\n\t\t\tpersonDTOs.add(dto);\n\t\t}\n\t\treturn personDTOs;\n\t}", "StudentDTO toStudentDTO(Student student);", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler-ThirdConstructor\")\n void personDTOAssembler_InstatiatesDTOAssembler_ThirdConstructor() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n LedgerID ledgerID = LedgerID.createLedgerID();\n String ledgerId = ledgerID.toString();\n\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace);\n\n //Act\n\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromPrimitiveTypes(mariaEmail, mariaName, mariaBirthDate.toString(), mariaBirthplace);\n\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler-SecondConstructor\")\n void personDTOAssembler_InstatiatesDTOAssembler_SecondConstructor() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n String ledgerId = \"123\";\n LedgerID ledgerID = new LedgerID(ledgerId);\n\n\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail,ledgerId, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, ledgerID, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n @DisplayName(\"PersonDTOAssembler - Test create data transfer objects from Domain Object || Happy case\")\n void personDTOAssembler_CreateDTOFromDomainObjectTest() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "V toDto(E entity);", "protected abstract void processDTO();", "OrderDto map(Order order);", "public abstract D convertToDto(T entity);", "public abstract DTO toDTO(M model);", "@Override\n\tpublic ExperienceDTO domainToDto(Experience experience) {\n\t\treturn mapperFacade.map(experience, ExperienceDTO.class);\n\t}", "Assembler newAssembler(final Class< ? > dto, final Class< ? > entity);", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "AccountDTO toDTO(Account account);", "public PersonaDTO consultarPersona(Long idPersona) ;", "List<D> mapToDTO(List<E> entity);", "public NameDTO() {\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n }", "AccountDTO coverAccountToEmpDTO(Account account);", "@Mapper\npublic interface PersonMapper {\n\n PersonDO selectPersonById(Integer id);\n\n List<PersonDO> selectAll();\n\n void insert(PersonDO personDO);\n\n Long update(PersonDO personDO);\n\n Long delete(Integer id);\n}", "@Mappings({\n @Mapping(source = \"address\", target = \"addressDto\"),\n @Mapping(target = \"skills\", ignore = true)\n })\n UserDto toDTO(UserEntity userEntity);", "E mapToEntity(D dto);", "private Book mapBookDTOToBook(BookDTO bookDTO) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBook book = mapper.map(bookDTO, Book.class);\n\t\tbook.setCategory(new Category(bookDTO.getCategory().getCode(), \"\"));\n\t\tbook.setRegisterDate(LocalDate.now());\n\t\treturn book;\n\t}", "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "ExerciseDTO convertToExerciseDTO(Exercise exercise);", "public List<PersonaDTO> consultarPersonas() ;", "@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}", "@Component\n@Mapper(componentModel = \"spring\")\npublic interface CarriageMapper {\n\n Carriage carriageModelToCarriage(CarriageModel carriageModel);\n\n CarriageModel carriageToCarriageModel(Carriage carriage);\n\n CarriageModel carriageDtoToCarriageModel(CarriageDto carriageDto);\n\n CarriageDto carriageModelToCarriageDto(CarriageModel carriageModel);\n\n List<CarriageModel> carriagesToCarriageModels(List<Carriage> carriages);\n\n List<CarriageDto> carriageModelsToCarriageDtos(List<CarriageModel> carriageModels);\n\n List<Carriage> carriageModelsToCarriages(List<CarriageModel> carriageModels);\n}", "Account toDomain(AccountDTO accountDto);", "@Override\n\tpublic Experience dtoToDomain(ExperienceDTO experience) {\n\t\treturn mapperFacade.map(experience, Experience.class);\n\t}", "@Mapper(componentModel = \"cdi\")\npublic interface ArchivoMapper {\n\n ArchivoDTO toDTO(Archivo source);\n List<ArchivoDTO> toDTOList(List<Archivo> sourceList);\n\n void updateFromDTO(ArchivoDTO source, @MappingTarget Archivo target);\n}", "@Mapper(uses = DateMapper.class)\npublic interface ExerciseMapper {\n\n // Autogenerated code will map exercise object to ExerciseDTO\n // @Mapping(source = \"firstName\", target = \"name\") can be used if the field names do not match.\n ExerciseDTO convertToExerciseDTO(Exercise exercise);\n\n Exercise convertToExercise(ExerciseDTO exerciseDTO);\n\n}", "@Mapping(target = \"id\", ignore = true)\n PhoneDTO fromProtobuf(Customer.Phone phone);", "@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}", "WordDtoImpl convertFromDomainImpl(Word word);", "public interface DTOMapper<E> {\n\n /**\n * Fills the DTO with information from the entity.\n *\n * @param entity the <code>E</code> generics entity\n */\n void buildFromEntity(E entity);\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "public interface BookConverter {\n BookDto toBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(BookDto bookDto);\n\n FullBookDto toFullBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(FullBookDto fullBookDto);\n}", "@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);", "private BookDTO mapBookToBookDTO(Book book) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBookDTO bookDTO = mapper.map(book, BookDTO.class);\n\t\tif (book.getCategory() != null) {\n\t\t\tbookDTO.setCategory(new CategoryDTO(book.getCategory().getCode(), book.getCategory().getLabel()));\n\t\t}\n\t\treturn bookDTO;\n\t}", "private LecturerDto mapDto(Lecturer lecturer) {\n return new LecturerDto(lecturer.getLecturerID(), lecturer.getFirstName(), lecturer.getLastName(), lecturer.getEmail(), lecturer.getType());\n }", "public PersonaDTO obtenerPersona(Long idPersona) throws CustomErrorException {\n\t\tPersonaDTO personaDTO = new PersonaDTO();\n\t\ttry {\n\t\t\tpersonaDTO = Converter.toDto((Persona) gPersona.getById(idPersona)); \n\t\t} catch (CustomErrorException cer) {\n\t\t\tthrow cer;\n\t\t} catch (Exception e) {\n\t\t\tthrow new CustomErrorException(CustomErrorException.ERROR_SERVICIO,this.getClass().getSimpleName(),e.getStackTrace());\n\t\t}\n\n\t\treturn personaDTO;\n\t}", "@Test\n public void testConvertComputerToComputerDTO() {\n ComputerDTO computerDTO = new ComputerDTO();\n computerDTO.setId(1);\n computerDTO.setName(\"test\");\n ComputerDTO computerResult = DTOMapper.fromComputer(new Computer.Builder(\"test\").id(1L).build());\n assertEquals(computerDTO, computerResult);\n }", "@Mapper\npublic interface SeguridadDtoMap {\n SeguridadDtoMap INSTANCE = Mappers.getMapper( SeguridadDtoMap.class );\n\n GrupoDto grupoToGrupoDto(Grupo grupo);\n\n Grupo grupoDtoToGrupo(GrupoDto grupoDto);\n}", "public abstract T convertToEntity(D dto);", "@Bean\n public TypeMap<Carriage, CarriageDto> getCarriageCarriageDtoTypeMap() {\n Converter<List<Driver>, List<DriverDto>> toDriverDtoList = new AbstractConverter<List<Driver>, List<DriverDto>>() {\n protected List<DriverDto> convert(List<Driver> source) {\n if (source == null) {\n return null;\n } else {\n List<DriverDto> driverDtos = new ArrayList<>(source.size());\n for (Driver driver : source) {\n driverDtos.add(getModelMapper().getTypeMap(Driver.class, DriverDto.class, \"DriverDriverDto\").map(driver));\n }\n return driverDtos;\n }\n }\n };\n\n Converter<Vehicle, VehicleDto> toVehicleDto = new AbstractConverter<Vehicle, VehicleDto>() {\n @Override\n protected VehicleDto convert(Vehicle vehicle) {\n if (vehicle == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Vehicle.class, VehicleDto.class, \"VehicleVehicleDto\")\n .map(vehicle);\n }\n }\n };\n\n /*\n\n Converter<? super Cargo, CargoDto> toCargoDto = new AbstractConverter<Cargo, CargoDto>() {\n @Override\n protected CargoDto convert(Cargo cargo) {\n if (cargo == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Cargo.class, CargoDto.class, \"CargoCargoDto\")\n .map(cargo);\n }\n }\n };*/\n\n return getModelMapper().createTypeMap(Carriage.class, CarriageDto.class, \"CarriageCarriageDto\")\n .addMappings(mapper -> mapper.skip(CarriageDto::setMaxWeight))\n\n// .addMappings(mapper -> mapper.using(toCargoDto).map(Carriage::getCargoes, CarriageDto::setCargoes))\n// .addMappings(mapper -> mapper.using(toWaypointDto).map(Carriage::getWaypoints, CarriageDto::setWaypoints))\n .addMappings(mapper -> mapper.using(toVehicleDto).map(Carriage::getVehicle, CarriageDto::setVehicle))\n .addMappings(mapper -> mapper.using(toDriverDtoList).map(Carriage::getDrivers, CarriageDto::setDrivers));\n }", "public abstract M toModel(DTO dto);", "@Mapper(componentModel = \"spring\", uses = {OrgaoMapper.class, PermissaoMapper.class})\npublic interface UsuarioMapper {\n\n @Mapping(target = \"orgao\", ignore = true)\n UsuarioDTO usuarioToUsuarioDTO(Usuario usuario);\n\n List<UsuarioDTO> usuariosToUsuarioDTOs(List<Usuario> usuarios);\n\n Usuario usuarioDTOToUsuario(UsuarioDTO usuarioDTO);\n\n List<Usuario> usuarioDTOsToUsuarios(List<UsuarioDTO> usuarioDTOs);\n}", "public SkillDTO toDTO(Skill skill) {\n return toDTO(skill, 1);\n }", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CustomerMapper {\n\n CustomerDTO customerToCustomerDTO(Customer customer);\n\n List<CustomerDTO> customersToCustomerDTOs(List<Customer> customers);\n\n @Mapping(target = \"orders\", ignore = true)\n Customer customerDTOToCustomer(CustomerDTO customerDTO);\n\n List<Customer> customerDTOsToCustomers(List<CustomerDTO> customerDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ExerciseFamilyMapper {\n\n ExerciseFamilyDTO exerciseFamilyToExerciseFamilyDTO(ExerciseFamily exerciseFamily);\n\n List<ExerciseFamilyDTO> exerciseFamiliesToExerciseFamilyDTOs(List<ExerciseFamily> exerciseFamilies);\n\n @Mapping(target = \"exercises\", ignore = true)\n ExerciseFamily exerciseFamilyDTOToExerciseFamily(ExerciseFamilyDTO exerciseFamilyDTO);\n\n List<ExerciseFamily> exerciseFamilyDTOsToExerciseFamilies(List<ExerciseFamilyDTO> exerciseFamilyDTOs);\n}", "public interface IReglaUtilDTO {\n\n\t/**\n\t * To business.\n\t * \n\t * @param reglaDTO\n\t * the regla dto\n\t * @return the regla\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tRegla toBusiness(ReglaDTO reglaDTO) throws TransferObjectException;\n\n\t/**\n\t * To rest.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRest(Regla regla) throws TransferObjectException;\n\n\t/**\n\t * To rest info.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRestInfo(Regla regla) throws TransferObjectException;\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "@Override\r\n\tpublic MainDTO toDTO() {\n\t\tFamiliaresDTO familiaresDTO = new FamiliaresDTO();\r\n\t\tDomicilioDTO domicilioDTO = null;\r\n\t\tfamiliaresDTO.setIdfamiliar(this.getIdFamiliar());\r\n\t\tfamiliaresDTO.setNombre(this.getNombre());\r\n\t\tfamiliaresDTO.setApellidoPaterno(this.getApellidoPaterno());\r\n\t\tfamiliaresDTO.setApellidoMaterno(this.getAppelidoMaterno());\r\n\t\tfamiliaresDTO.setDireccion(this.getDireccion());\r\n\t\tfamiliaresDTO.setIdpaciente(this.getIdpaciente());\r\n\t\tfamiliaresDTO.setDependencia(this.getDependencia());\r\n\t\tdomicilioDTO = (DomicilioDTO) this.getDomicilio().toDTO();\r\n\t\tfamiliaresDTO.setDomicilio(domicilioDTO);\r\n\t\treturn familiaresDTO;\r\n\t}", "List<StudentDTO> toStudentDTOs(List<Student> students);", "@Mapper(componentModel = \"cdi\", uses = EnumMapper.class)\npublic interface DocumentoMapper {\n\n DocumentoDTO toDTO(Documento documento);\n\n Documento fromDTO(DocumentoDTO documentoDTO);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "@Override\n\tpublic ExamDTO toDto(Exam exam) {\n\t\treturn null;\n\t}", "@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface WwtreatmentthreeMapper {\n\n WwtreatmentthreeDTO wwtreatmentthreeToWwtreatmentthreeDTO(Wwtreatmentthree wwtreatmentthree);\n\n List<WwtreatmentthreeDTO> wwtreatmentthreesToWwtreatmentthreeDTOs(List<Wwtreatmentthree> wwtreatmentthrees);\n\n Wwtreatmentthree wwtreatmentthreeDTOToWwtreatmentthree(WwtreatmentthreeDTO wwtreatmentthreeDTO);\n\n List<Wwtreatmentthree> wwtreatmentthreeDTOsToWwtreatmentthrees(List<WwtreatmentthreeDTO> wwtreatmentthreeDTOs);\n}", "@Mapper(componentModel = \"spring\")\npublic interface PedidoMapper {\n\t\n\t@AfterMapping\n\tdefault void afterMapping(@MappingTarget PedidoDTO target, Pedido source) {\n\t\t\n\t\tFloat totalIVA = new Float(0);\n\t\tFloat totalDomicilio = new Float(0);\n\t\tFloat totalNeto = new Float(0);\n\t\t\n\t\tif(source.getEstado().equals(Constantes.ESTADO_PEDIDO_ACTIVO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEIDIDO_ACTIVO_STRING);\n\t\t\ttotalIVA = new Float(target.getSubtotal() * 0.19);\n\t\t\ttotalDomicilio = target.getSubtotal() >= Constantes.VALOR_MINIMO_PARA_COBRO_DE_DOMICILIO && target.getSubtotal() <= Constantes.VALOR_MAXIMO_PARA_COBRO_DE_DOMICILIO ? new Float(target.getSubtotal() * 0.05) : new Float(0);\n\t\t\ttotalNeto = target.getSubtotal() + totalIVA + totalDomicilio;\n\t\t}\n\t\telse if (source.getEstado().equals(Constantes.ESTADO_PEDIDO_CANCELADO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEDIDO_CANCELADO_STRING);\n\t\t\ttotalNeto = new Float(target.getSubtotal() * 0.10);\n\t\t}\t\t \n\t\t\n\t\t\n\t\ttarget.setTotalIVA(totalIVA);\n\t\ttarget.setTotalDomicilio(totalDomicilio);\n\t\ttarget.setTotalNeto(totalNeto);\n\t}\n\t\n\t@Mapping(source = \"entity.idUsuario.idUsuario\", target = \"idUsuario\")\n\t@Mapping(source = \"entity.idUsuario.nombre\", target = \"nombreUsuario\")\n\t@Mapping(source = \"entity.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"entity.estado\", target = \"estado\")\n\t@Mapping(target = \"idProductosConcatenados\", ignore = true)\n\t@Mapping(target = \"totalIVA\", ignore = true)\n\t@Mapping(target = \"totalDomicilio\", ignore = true)\n\t@Mapping(target = \"totalNeto\", ignore = true)\n\t@Mapping(target = \"codigoRespuesta\", ignore = true)\n\t@Mapping(target = \"mensajeRespuesta\", ignore = true)\n\t@Mapping(target = \"estadoString\", ignore = true)\n\tpublic PedidoDTO transformEntityToDTO(Pedido entity);\n\t\n\t@Mapping(source = \"DTO.idUsuario\", target = \"idUsuario.idUsuario\")\n\t@Mapping(source = \"DTO.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"DTO.estado\", target = \"estado\")\n\tpublic Pedido transformDTOToEntity(PedidoDTO DTO);\n\t\n\tpublic List<PedidoDTO> transformEntitiesToDTO(List<Pedido> listEntities);\n\t\n\tpublic List<Pedido> transformDTOToEntities(List<Pedido> listDTO);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AddressMapper {\n\n @Mapping(source = \"city.id\", target = \"cityId\")\n AddressDTO addressToAddressDTO(Address address);\n\n List<AddressDTO> addressesToAddressDTOs(List<Address> addresses);\n\n @Mapping(source = \"cityId\", target = \"city\")\n Address addressDTOToAddress(AddressDTO addressDTO);\n\n List<Address> addressDTOsToAddresses(List<AddressDTO> addressDTOs);\n\n default City cityFromId(Long id) {\n if (id == null) {\n return null;\n }\n City city = new City();\n city.setId(id);\n return city;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}", "Account coverEmpDTOToAccount(AccountDTO accountDTO);", "public List<PersonDto> findByFirstName(String firstName) {\n List<Person> models = Collections.emptyList();\n return models.stream()\n .map(personMapper::toDto)\n .collect(Collectors.toList());\n }", "CommentDto entityToDto(Comment comment);", "public MemberDto copyEntityToDto(Member entity, MemberDto dto) {\r\n reflectMemberIdToDto(entity, dto);\r\n reflectMemberNameToDto(entity, dto);\r\n reflectFormalizedDatetimeToDto(entity, dto);\r\n reflectUpdateDatetimeToDto(entity, dto);\r\n\r\n return dto;\r\n }", "@Mapper(componentModel = \"spring\", uses = {Business.class})\npublic interface BusinessMapper {\n\n BusinessDTO toDTO(Business business);\n\n @Mapping(target = \"advertisements\", ignore = true)\n Business toEntity(BusinessDTO businessDTO);\n}", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "CustomerDto createCustomer(CustomerEntity customerEntity);", "public interface CompanyJsonTransformer {\n\n /**\n * Transforms a CompanyJson element with id as UUID to a new CompanyInternal internal element.\n *\n * @param companyId the ID of the CompanyJson object\n * @param company the CompanyJson object\n * @return the CompanyInternal object\n */\n CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);\n\n /**\n * Transforms a CompanyInternal and BeneficialOwnerInternals to a new CompanyJson element.\n *\n * @param company the CompanyInternal object\n * @param beneficialOwners the List<BeneficialOwnerInternal> object\n * @return the CompanyJson object\n */\n CompanyJson toCompanyJson(CompanyInternal company, List<BeneficialOwnerInternal> beneficialOwners);\n}", "@Mapper(componentModel = \"spring\", uses = {ApplicationProspectMapper.class, NomineeMapper.class})\npublic interface AddressMapper extends EntityMapper<AddressDTO, Address> {\n\n @Mapping(source = \"applicationProspect.id\", target = \"applicationProspectId\")\n @Mapping(source = \"nominee.id\", target = \"nomineeId\")\n AddressDTO toDto(Address address);\n\n @Mapping(source = \"applicationProspectId\", target = \"applicationProspect\")\n @Mapping(source = \"nomineeId\", target = \"nominee\")\n Address toEntity(AddressDTO addressDTO);\n\n default Address fromId(Long id) {\n if (id == null) {\n return null;\n }\n Address address = new Address();\n address.setId(id);\n return address;\n }\n}", "public ProdutoDTO()\n {\n super();\n }", "@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EheartMapper {\n\n EheartDTO eheartToEheartDTO(Eheart eheart);\n\n List<EheartDTO> eheartsToEheartDTOs(List<Eheart> ehearts);\n\n Eheart eheartDTOToEheart(EheartDTO eheartDTO);\n\n List<Eheart> eheartDTOsToEhearts(List<EheartDTO> eheartDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OTHERMapper extends EntityMapper<OTHERDTO, OTHER> {\n\n\n\n default OTHER fromId(Long id) {\n if (id == null) {\n return null;\n }\n OTHER oTHER = new OTHER();\n oTHER.setId(id);\n return oTHER;\n }\n}", "private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}", "@Override\n public PaymentReadDTO wrapDTO(Payment payment, Collection<DtoOption> options) throws Exception {\n PaymentReadDTO dto = mapper.map(payment, PaymentReadDTO.class);\n\n /* Add dependency */\n /* TODO:\n if (options != null && !options.isEmpty()) {\n if (options.contains(DtoOption.FK)) {\n FkReadDTO fkDTO = fkService.getDTOById(payment.getFkId());\n dto.setFk(fkDTO);\n }\n\n if (options.contains(DtoOption.FK_LIST)) {\n List<FkReadDTO> fkDTOList = fkService.getAllDTOById(payment.getFkId());\n dto.setFkList(fkDTOList);\n }\n }\n */\n\n return dto;\n }", "@Mapper\npublic interface UserConvert {\n\n UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);\n\n static UserConvertConvertor instance() {\n return INSTANCE;\n }\n\n @Mappings({})\n User toUser(UserDTO userDTO);\n\n @Mappings({})\n UserDTO toUserDTO(User user);\n\n List<UserDTO> toUserDTOs(List<User> users);\n\n List<User> toUsers(List<UserDTO> userDTOs);\n}", "@Mapper\npublic interface TestMapper extends MyMapper<Person1> {\n //List<Person1> findAll();\n}", "@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}", "public GetAllCarsDTO() {\n }", "public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }", "protected MovieDtoExample(MovieDtoExample example) {\n this.orderByClause = example.orderByClause;\n this.oredCriteria = example.oredCriteria;\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AlterationDisplayTypeMapper {\n\n AlterationDisplayTypeDTO alterationDisplayTypeToAlterationDisplayTypeDTO(AlterationDisplayType alterationDisplayType);\n\n List<AlterationDisplayTypeDTO> alterationDisplayTypesToAlterationDisplayTypeDTOs(List<AlterationDisplayType> alterationDisplayTypes);\n\n @Mapping(target = \"alterations\", ignore = true)\n AlterationDisplayType alterationDisplayTypeDTOToAlterationDisplayType(AlterationDisplayTypeDTO alterationDisplayTypeDTO);\n\n List<AlterationDisplayType> alterationDisplayTypeDTOsToAlterationDisplayTypes(List<AlterationDisplayTypeDTO> alterationDisplayTypeDTOs);\n}", "@Mapper\npublic interface ProjectMapper {\n\n ProjectMapper INSTANCE = Mappers.getMapper(ProjectMapper.class);\n\n Project toModel(ProjectDTO projectDTO);\n\n ProjectDTO toDTO(Project project);\n}", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "public MedicationDTO2 (Medication medication) {\n \tthis.id = medication.getId();\n \tthis.name = medication.getName();\n \tthis.code = medication.getCode();\n \tthis.typeOfMedication = medication.getTypeOfMedication();\n \tthis.medicationForm = medication.getMedicationForm();\n \tthis.structure = medication.getStructure();\n \tthis.contraindications = medication.getContraindications();\n \tthis.recommendedIntake = medication.getRecommendedIntake();\n //\tthis.pharmacyID = \n \tthis.manufacturer = medication.getManufacturer();\n \tthis.prescriptionRegime = medication.getPrescriptionRegime();\n \tthis.description = medication.getDescription();\n \t\n \tfor(Medication m : medication.getReplacementMedications()) {\n \t\tthis.replacementMedicationsIDs.add(m.getId());\n \t}\n }", "@Mapper\npublic interface MissionMapper {\n\n MissionMapper INSTANCE = Mappers.getMapper(MissionMapper.class);\n\n @Mapping(source = \"izQuestion\", target = \"izQuestion\")\n @Mapping(source = \"missionDescription\", target = \"missionDescription\")\n @Mapping(source = \"missionName\", target = \"missionName\")\n @Mapping(source = \"shortDescription\", target = \"shortDescription\")\n @Mapping(source = \"winnerScore\", target = \"winnerScore\")\n @Mapping(source = \"storyId\", target = \"story.id\")\n Mission dtoToMission (MissionDTO missionDTO);\n}", "private EmployeeDto toDto(Employee employee){\n\t\tEmployeeDto employeeDto = new EmployeeDto();\n\t\temployeeDto.id = employee.getId();\n\n\t\temployeeDto.name = employee.getName();\n\t\temployeeDto.email = employee.getEmail();\n\n\t\temployeeDto.jobTypeId = employee.getJobtype().getId();\n\n\t\temployeeDto.bossId = employee.getBossId();\n\n\t\temployeeDto.netPayment = employee.getNetPayment();\n\t\temployeeDto.grossPayment = employee.getGrossPayment();\n\t\temployeeDto.employerTotalCost = employee.getEmployerTotalCost();\n\t\temployeeDto.workHours = employee.getWorkHours();\n\n\t\temployeeDto.children = employee.getChildren();\n\n\t\temployeeDto.workStatus = employee.getWorkStatus().getStringValue();\n\n\t\temployeeDto.isEntrant = employee.isEntrant();\n\t\temployeeDto.isJustMarried = employee.isJustMarried();\n\t\temployeeDto.isSingleParent = employee.isSingleParent();\n\n\t\treturn employeeDto;\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TxnActivityAuditMapper {\n\n @Mapping(source = \"editedBy.id\", target = \"editedById\")\n TxnActivityAuditDTO txnActivityAuditToTxnActivityAuditDTO(TxnActivityAudit txnActivityAudit);\n\n @Mapping(source = \"editedById\", target = \"editedBy\")\n TxnActivityAudit txnActivityAuditDTOToTxnActivityAudit(TxnActivityAuditDTO txnActivityAuditDTO);\n\n default Staff staffFromId(Long id) {\n if (id == null) {\n return null;\n }\n Staff staff = new Staff();\n staff.setId(id);\n return staff;\n }\n}", "SurveyQuestionDTO convertSurveyQuestionToSurveyQuestionDTO(SurveyQuestion question);" ]
[ "0.73979706", "0.7192396", "0.69763947", "0.6740301", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63905215", "0.63847554", "0.63505775", "0.6342465", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.6010855", "0.59998727", "0.59807646", "0.59544283", "0.5943492", "0.59149295", "0.5894155", "0.58833814", "0.5808219", "0.57750195", "0.57668066", "0.5761838", "0.5751175", "0.573665", "0.5735213", "0.57335585", "0.57217956", "0.5700575", "0.5698903", "0.5693827", "0.5673914", "0.56679183", "0.56618637", "0.5649339", "0.5635711", "0.5628919", "0.5618725", "0.56059974", "0.5593568", "0.5589039", "0.558151", "0.55779994", "0.5576326", "0.557629", "0.5572549", "0.5569024", "0.55656993", "0.55492467", "0.5518626", "0.55095804", "0.5504652", "0.549708", "0.5496518", "0.5496145", "0.54932016", "0.5486676", "0.5480258", "0.5479153", "0.54778844", "0.54648626", "0.54604685", "0.5442837", "0.54284984", "0.542459", "0.54238486", "0.54114306", "0.5404944", "0.5404856", "0.5404057", "0.53992164", "0.5391367", "0.53809154", "0.53795207", "0.5378824", "0.5373316", "0.5363157", "0.53589654", "0.5356848", "0.5342475", "0.5330356", "0.53299093", "0.5325332", "0.5324569", "0.5321285", "0.5317239", "0.53160113", "0.5312925", "0.5311536", "0.52957255", "0.52925485" ]
0.6671329
4
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - Intantiates DTOAssembler-SecondConstructor") void personDTOAssembler_InstatiatesDTOAssembler_SecondConstructor() { String mariaEmail = "[email protected]"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); String ledgerId = "123"; LedgerID ledgerID = new LedgerID(ledgerId); PersonID fatherID = null; PersonID motherID = null; String IS_NOT_DEFINED = "Is Not Defined"; //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail,ledgerId, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED); //Act PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, ledgerID, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler\")\n void personDTOAssembler_InstatiatesDTOAssembler() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n @DisplayName(\"PersonDTOAssembler - WithMotherAndFather\")\n void personDTOAssembler_WithMotherAndFather() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n PersonID fatherID = PersonID.createPersonID(\"[email protected]\");\n String fatherEmail = fatherID.getEmail().getEmail();\n PersonID motherID = PersonID.createPersonID(\"[email protected]\");\n String motherEmail = motherID.getEmail().getEmail();\n\n\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, fatherEmail, motherEmail);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n\tpublic void testPersonToPersonDtoMap() {\n\t\t\n\t\t// prepare \n\t\tPerson person = this.getFakePersonToMap();\n\t\tAddress address = person.getAddress();\n\t\tContactDetail contactDetail = person.getContactDetail();\n\t\t\n\t\t// sut (system / class under test)\n\t\tMapper testee = new Mapper();\n\t\t\n\t\t// act\t\t\n\t\tPersonDto personDto = testee.map(person, PersonDto.class);\n\t\t\n\t\t// tests\n\t\t// address\n\t\tassertEquals(personDto.getAddressCity(), address.getCity());\n\t\tassertEquals(personDto.getAddressCountry(), address.getCountry());\n\t\t\n\t\t// contact details\n\t\tassertEquals(personDto.getPhoneNumber1(), contactDetail.getPhoneNumber1());\n\t\tassertEquals(personDto.getPhoneNumber2(), contactDetail.getPhoneNumber2());\n\t\tassertEquals(personDto.getPhoneNumber3(), contactDetail.getPhoneNumber3());\n\t\tassertEquals(personDto.getFax(), contactDetail.getFax());\n\t\t\n\t}", "D mapToDTO(E entity);", "public void crearPersona(PersonaDTO personaDTO);", "public List<PersonDTO> getDTOs(){\n\t\tList<PersonDTO> personDTOs = new ArrayList<PersonDTO>();\n\t\tList<Person> persons = personRepository.getAll();\n\t\tfor (Person person: persons) {\n\t\t\t// Create new data transfer object\n\t\t\tPersonDTO dto = new PersonDTO();\n\n\t\t\tdto.setId(person.getId());\n\t\t\tdto.setTitle(person.getTitle());\n\t\t\tdto.setFirstName(person.getFirstName());\n\t\t\tdto.setLastName(person.getLastName());\n\t\t\tdto.setEmail(person.getEmail());\n\t\t\tdto.setPhone(person.getPhone());\n\t\t\tdto.setAddress1(person.getAddress1());\n\t\t\tdto.setAddress2(person.getAddress2());\n\t\t\tdto.setZipCode(person.getZipCode());\n\t\t\tdto.setCity(person.getCity());\n\t\t\tdto.setCountry(person.getCountry());\n\t\t\t// Add to model list\n\t\t\tpersonDTOs.add(dto);\n\t\t}\n\t\treturn personDTOs;\n\t}", "StudentDTO toStudentDTO(Student student);", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler-ThirdConstructor\")\n void personDTOAssembler_InstatiatesDTOAssembler_ThirdConstructor() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n LedgerID ledgerID = LedgerID.createLedgerID();\n String ledgerId = ledgerID.toString();\n\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace);\n\n //Act\n\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromPrimitiveTypes(mariaEmail, mariaName, mariaBirthDate.toString(), mariaBirthplace);\n\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);", "@Test\n @DisplayName(\"PersonDTOAssembler - Test create data transfer objects from Domain Object || Happy case\")\n void personDTOAssembler_CreateDTOFromDomainObjectTest() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "V toDto(E entity);", "protected abstract void processDTO();", "OrderDto map(Order order);", "public abstract D convertToDto(T entity);", "public abstract DTO toDTO(M model);", "@Override\n\tpublic ExperienceDTO domainToDto(Experience experience) {\n\t\treturn mapperFacade.map(experience, ExperienceDTO.class);\n\t}", "Assembler newAssembler(final Class< ? > dto, final Class< ? > entity);", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "AccountDTO toDTO(Account account);", "public PersonaDTO consultarPersona(Long idPersona) ;", "List<D> mapToDTO(List<E> entity);", "public NameDTO() {\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n }", "AccountDTO coverAccountToEmpDTO(Account account);", "@Mapper\npublic interface PersonMapper {\n\n PersonDO selectPersonById(Integer id);\n\n List<PersonDO> selectAll();\n\n void insert(PersonDO personDO);\n\n Long update(PersonDO personDO);\n\n Long delete(Integer id);\n}", "@Mappings({\n @Mapping(source = \"address\", target = \"addressDto\"),\n @Mapping(target = \"skills\", ignore = true)\n })\n UserDto toDTO(UserEntity userEntity);", "E mapToEntity(D dto);", "private Book mapBookDTOToBook(BookDTO bookDTO) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBook book = mapper.map(bookDTO, Book.class);\n\t\tbook.setCategory(new Category(bookDTO.getCategory().getCode(), \"\"));\n\t\tbook.setRegisterDate(LocalDate.now());\n\t\treturn book;\n\t}", "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "ExerciseDTO convertToExerciseDTO(Exercise exercise);", "public List<PersonaDTO> consultarPersonas() ;", "@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}", "@Component\n@Mapper(componentModel = \"spring\")\npublic interface CarriageMapper {\n\n Carriage carriageModelToCarriage(CarriageModel carriageModel);\n\n CarriageModel carriageToCarriageModel(Carriage carriage);\n\n CarriageModel carriageDtoToCarriageModel(CarriageDto carriageDto);\n\n CarriageDto carriageModelToCarriageDto(CarriageModel carriageModel);\n\n List<CarriageModel> carriagesToCarriageModels(List<Carriage> carriages);\n\n List<CarriageDto> carriageModelsToCarriageDtos(List<CarriageModel> carriageModels);\n\n List<Carriage> carriageModelsToCarriages(List<CarriageModel> carriageModels);\n}", "Account toDomain(AccountDTO accountDto);", "@Override\n\tpublic Experience dtoToDomain(ExperienceDTO experience) {\n\t\treturn mapperFacade.map(experience, Experience.class);\n\t}", "@Mapper(componentModel = \"cdi\")\npublic interface ArchivoMapper {\n\n ArchivoDTO toDTO(Archivo source);\n List<ArchivoDTO> toDTOList(List<Archivo> sourceList);\n\n void updateFromDTO(ArchivoDTO source, @MappingTarget Archivo target);\n}", "@Mapper(uses = DateMapper.class)\npublic interface ExerciseMapper {\n\n // Autogenerated code will map exercise object to ExerciseDTO\n // @Mapping(source = \"firstName\", target = \"name\") can be used if the field names do not match.\n ExerciseDTO convertToExerciseDTO(Exercise exercise);\n\n Exercise convertToExercise(ExerciseDTO exerciseDTO);\n\n}", "@Mapping(target = \"id\", ignore = true)\n PhoneDTO fromProtobuf(Customer.Phone phone);", "@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}", "WordDtoImpl convertFromDomainImpl(Word word);", "public interface DTOMapper<E> {\n\n /**\n * Fills the DTO with information from the entity.\n *\n * @param entity the <code>E</code> generics entity\n */\n void buildFromEntity(E entity);\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "public interface BookConverter {\n BookDto toBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(BookDto bookDto);\n\n FullBookDto toFullBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(FullBookDto fullBookDto);\n}", "@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);", "private BookDTO mapBookToBookDTO(Book book) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBookDTO bookDTO = mapper.map(book, BookDTO.class);\n\t\tif (book.getCategory() != null) {\n\t\t\tbookDTO.setCategory(new CategoryDTO(book.getCategory().getCode(), book.getCategory().getLabel()));\n\t\t}\n\t\treturn bookDTO;\n\t}", "private LecturerDto mapDto(Lecturer lecturer) {\n return new LecturerDto(lecturer.getLecturerID(), lecturer.getFirstName(), lecturer.getLastName(), lecturer.getEmail(), lecturer.getType());\n }", "public PersonaDTO obtenerPersona(Long idPersona) throws CustomErrorException {\n\t\tPersonaDTO personaDTO = new PersonaDTO();\n\t\ttry {\n\t\t\tpersonaDTO = Converter.toDto((Persona) gPersona.getById(idPersona)); \n\t\t} catch (CustomErrorException cer) {\n\t\t\tthrow cer;\n\t\t} catch (Exception e) {\n\t\t\tthrow new CustomErrorException(CustomErrorException.ERROR_SERVICIO,this.getClass().getSimpleName(),e.getStackTrace());\n\t\t}\n\n\t\treturn personaDTO;\n\t}", "@Test\n public void testConvertComputerToComputerDTO() {\n ComputerDTO computerDTO = new ComputerDTO();\n computerDTO.setId(1);\n computerDTO.setName(\"test\");\n ComputerDTO computerResult = DTOMapper.fromComputer(new Computer.Builder(\"test\").id(1L).build());\n assertEquals(computerDTO, computerResult);\n }", "@Mapper\npublic interface SeguridadDtoMap {\n SeguridadDtoMap INSTANCE = Mappers.getMapper( SeguridadDtoMap.class );\n\n GrupoDto grupoToGrupoDto(Grupo grupo);\n\n Grupo grupoDtoToGrupo(GrupoDto grupoDto);\n}", "public abstract T convertToEntity(D dto);", "@Bean\n public TypeMap<Carriage, CarriageDto> getCarriageCarriageDtoTypeMap() {\n Converter<List<Driver>, List<DriverDto>> toDriverDtoList = new AbstractConverter<List<Driver>, List<DriverDto>>() {\n protected List<DriverDto> convert(List<Driver> source) {\n if (source == null) {\n return null;\n } else {\n List<DriverDto> driverDtos = new ArrayList<>(source.size());\n for (Driver driver : source) {\n driverDtos.add(getModelMapper().getTypeMap(Driver.class, DriverDto.class, \"DriverDriverDto\").map(driver));\n }\n return driverDtos;\n }\n }\n };\n\n Converter<Vehicle, VehicleDto> toVehicleDto = new AbstractConverter<Vehicle, VehicleDto>() {\n @Override\n protected VehicleDto convert(Vehicle vehicle) {\n if (vehicle == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Vehicle.class, VehicleDto.class, \"VehicleVehicleDto\")\n .map(vehicle);\n }\n }\n };\n\n /*\n\n Converter<? super Cargo, CargoDto> toCargoDto = new AbstractConverter<Cargo, CargoDto>() {\n @Override\n protected CargoDto convert(Cargo cargo) {\n if (cargo == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Cargo.class, CargoDto.class, \"CargoCargoDto\")\n .map(cargo);\n }\n }\n };*/\n\n return getModelMapper().createTypeMap(Carriage.class, CarriageDto.class, \"CarriageCarriageDto\")\n .addMappings(mapper -> mapper.skip(CarriageDto::setMaxWeight))\n\n// .addMappings(mapper -> mapper.using(toCargoDto).map(Carriage::getCargoes, CarriageDto::setCargoes))\n// .addMappings(mapper -> mapper.using(toWaypointDto).map(Carriage::getWaypoints, CarriageDto::setWaypoints))\n .addMappings(mapper -> mapper.using(toVehicleDto).map(Carriage::getVehicle, CarriageDto::setVehicle))\n .addMappings(mapper -> mapper.using(toDriverDtoList).map(Carriage::getDrivers, CarriageDto::setDrivers));\n }", "public abstract M toModel(DTO dto);", "@Mapper(componentModel = \"spring\", uses = {OrgaoMapper.class, PermissaoMapper.class})\npublic interface UsuarioMapper {\n\n @Mapping(target = \"orgao\", ignore = true)\n UsuarioDTO usuarioToUsuarioDTO(Usuario usuario);\n\n List<UsuarioDTO> usuariosToUsuarioDTOs(List<Usuario> usuarios);\n\n Usuario usuarioDTOToUsuario(UsuarioDTO usuarioDTO);\n\n List<Usuario> usuarioDTOsToUsuarios(List<UsuarioDTO> usuarioDTOs);\n}", "public SkillDTO toDTO(Skill skill) {\n return toDTO(skill, 1);\n }", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CustomerMapper {\n\n CustomerDTO customerToCustomerDTO(Customer customer);\n\n List<CustomerDTO> customersToCustomerDTOs(List<Customer> customers);\n\n @Mapping(target = \"orders\", ignore = true)\n Customer customerDTOToCustomer(CustomerDTO customerDTO);\n\n List<Customer> customerDTOsToCustomers(List<CustomerDTO> customerDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ExerciseFamilyMapper {\n\n ExerciseFamilyDTO exerciseFamilyToExerciseFamilyDTO(ExerciseFamily exerciseFamily);\n\n List<ExerciseFamilyDTO> exerciseFamiliesToExerciseFamilyDTOs(List<ExerciseFamily> exerciseFamilies);\n\n @Mapping(target = \"exercises\", ignore = true)\n ExerciseFamily exerciseFamilyDTOToExerciseFamily(ExerciseFamilyDTO exerciseFamilyDTO);\n\n List<ExerciseFamily> exerciseFamilyDTOsToExerciseFamilies(List<ExerciseFamilyDTO> exerciseFamilyDTOs);\n}", "public interface IReglaUtilDTO {\n\n\t/**\n\t * To business.\n\t * \n\t * @param reglaDTO\n\t * the regla dto\n\t * @return the regla\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tRegla toBusiness(ReglaDTO reglaDTO) throws TransferObjectException;\n\n\t/**\n\t * To rest.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRest(Regla regla) throws TransferObjectException;\n\n\t/**\n\t * To rest info.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRestInfo(Regla regla) throws TransferObjectException;\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "@Override\r\n\tpublic MainDTO toDTO() {\n\t\tFamiliaresDTO familiaresDTO = new FamiliaresDTO();\r\n\t\tDomicilioDTO domicilioDTO = null;\r\n\t\tfamiliaresDTO.setIdfamiliar(this.getIdFamiliar());\r\n\t\tfamiliaresDTO.setNombre(this.getNombre());\r\n\t\tfamiliaresDTO.setApellidoPaterno(this.getApellidoPaterno());\r\n\t\tfamiliaresDTO.setApellidoMaterno(this.getAppelidoMaterno());\r\n\t\tfamiliaresDTO.setDireccion(this.getDireccion());\r\n\t\tfamiliaresDTO.setIdpaciente(this.getIdpaciente());\r\n\t\tfamiliaresDTO.setDependencia(this.getDependencia());\r\n\t\tdomicilioDTO = (DomicilioDTO) this.getDomicilio().toDTO();\r\n\t\tfamiliaresDTO.setDomicilio(domicilioDTO);\r\n\t\treturn familiaresDTO;\r\n\t}", "List<StudentDTO> toStudentDTOs(List<Student> students);", "@Mapper(componentModel = \"cdi\", uses = EnumMapper.class)\npublic interface DocumentoMapper {\n\n DocumentoDTO toDTO(Documento documento);\n\n Documento fromDTO(DocumentoDTO documentoDTO);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "@Override\n\tpublic ExamDTO toDto(Exam exam) {\n\t\treturn null;\n\t}", "@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface WwtreatmentthreeMapper {\n\n WwtreatmentthreeDTO wwtreatmentthreeToWwtreatmentthreeDTO(Wwtreatmentthree wwtreatmentthree);\n\n List<WwtreatmentthreeDTO> wwtreatmentthreesToWwtreatmentthreeDTOs(List<Wwtreatmentthree> wwtreatmentthrees);\n\n Wwtreatmentthree wwtreatmentthreeDTOToWwtreatmentthree(WwtreatmentthreeDTO wwtreatmentthreeDTO);\n\n List<Wwtreatmentthree> wwtreatmentthreeDTOsToWwtreatmentthrees(List<WwtreatmentthreeDTO> wwtreatmentthreeDTOs);\n}", "@Mapper(componentModel = \"spring\")\npublic interface PedidoMapper {\n\t\n\t@AfterMapping\n\tdefault void afterMapping(@MappingTarget PedidoDTO target, Pedido source) {\n\t\t\n\t\tFloat totalIVA = new Float(0);\n\t\tFloat totalDomicilio = new Float(0);\n\t\tFloat totalNeto = new Float(0);\n\t\t\n\t\tif(source.getEstado().equals(Constantes.ESTADO_PEDIDO_ACTIVO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEIDIDO_ACTIVO_STRING);\n\t\t\ttotalIVA = new Float(target.getSubtotal() * 0.19);\n\t\t\ttotalDomicilio = target.getSubtotal() >= Constantes.VALOR_MINIMO_PARA_COBRO_DE_DOMICILIO && target.getSubtotal() <= Constantes.VALOR_MAXIMO_PARA_COBRO_DE_DOMICILIO ? new Float(target.getSubtotal() * 0.05) : new Float(0);\n\t\t\ttotalNeto = target.getSubtotal() + totalIVA + totalDomicilio;\n\t\t}\n\t\telse if (source.getEstado().equals(Constantes.ESTADO_PEDIDO_CANCELADO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEDIDO_CANCELADO_STRING);\n\t\t\ttotalNeto = new Float(target.getSubtotal() * 0.10);\n\t\t}\t\t \n\t\t\n\t\t\n\t\ttarget.setTotalIVA(totalIVA);\n\t\ttarget.setTotalDomicilio(totalDomicilio);\n\t\ttarget.setTotalNeto(totalNeto);\n\t}\n\t\n\t@Mapping(source = \"entity.idUsuario.idUsuario\", target = \"idUsuario\")\n\t@Mapping(source = \"entity.idUsuario.nombre\", target = \"nombreUsuario\")\n\t@Mapping(source = \"entity.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"entity.estado\", target = \"estado\")\n\t@Mapping(target = \"idProductosConcatenados\", ignore = true)\n\t@Mapping(target = \"totalIVA\", ignore = true)\n\t@Mapping(target = \"totalDomicilio\", ignore = true)\n\t@Mapping(target = \"totalNeto\", ignore = true)\n\t@Mapping(target = \"codigoRespuesta\", ignore = true)\n\t@Mapping(target = \"mensajeRespuesta\", ignore = true)\n\t@Mapping(target = \"estadoString\", ignore = true)\n\tpublic PedidoDTO transformEntityToDTO(Pedido entity);\n\t\n\t@Mapping(source = \"DTO.idUsuario\", target = \"idUsuario.idUsuario\")\n\t@Mapping(source = \"DTO.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"DTO.estado\", target = \"estado\")\n\tpublic Pedido transformDTOToEntity(PedidoDTO DTO);\n\t\n\tpublic List<PedidoDTO> transformEntitiesToDTO(List<Pedido> listEntities);\n\t\n\tpublic List<Pedido> transformDTOToEntities(List<Pedido> listDTO);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AddressMapper {\n\n @Mapping(source = \"city.id\", target = \"cityId\")\n AddressDTO addressToAddressDTO(Address address);\n\n List<AddressDTO> addressesToAddressDTOs(List<Address> addresses);\n\n @Mapping(source = \"cityId\", target = \"city\")\n Address addressDTOToAddress(AddressDTO addressDTO);\n\n List<Address> addressDTOsToAddresses(List<AddressDTO> addressDTOs);\n\n default City cityFromId(Long id) {\n if (id == null) {\n return null;\n }\n City city = new City();\n city.setId(id);\n return city;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}", "Account coverEmpDTOToAccount(AccountDTO accountDTO);", "public List<PersonDto> findByFirstName(String firstName) {\n List<Person> models = Collections.emptyList();\n return models.stream()\n .map(personMapper::toDto)\n .collect(Collectors.toList());\n }", "CommentDto entityToDto(Comment comment);", "public MemberDto copyEntityToDto(Member entity, MemberDto dto) {\r\n reflectMemberIdToDto(entity, dto);\r\n reflectMemberNameToDto(entity, dto);\r\n reflectFormalizedDatetimeToDto(entity, dto);\r\n reflectUpdateDatetimeToDto(entity, dto);\r\n\r\n return dto;\r\n }", "@Mapper(componentModel = \"spring\", uses = {Business.class})\npublic interface BusinessMapper {\n\n BusinessDTO toDTO(Business business);\n\n @Mapping(target = \"advertisements\", ignore = true)\n Business toEntity(BusinessDTO businessDTO);\n}", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "CustomerDto createCustomer(CustomerEntity customerEntity);", "public interface CompanyJsonTransformer {\n\n /**\n * Transforms a CompanyJson element with id as UUID to a new CompanyInternal internal element.\n *\n * @param companyId the ID of the CompanyJson object\n * @param company the CompanyJson object\n * @return the CompanyInternal object\n */\n CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);\n\n /**\n * Transforms a CompanyInternal and BeneficialOwnerInternals to a new CompanyJson element.\n *\n * @param company the CompanyInternal object\n * @param beneficialOwners the List<BeneficialOwnerInternal> object\n * @return the CompanyJson object\n */\n CompanyJson toCompanyJson(CompanyInternal company, List<BeneficialOwnerInternal> beneficialOwners);\n}", "@Mapper(componentModel = \"spring\", uses = {ApplicationProspectMapper.class, NomineeMapper.class})\npublic interface AddressMapper extends EntityMapper<AddressDTO, Address> {\n\n @Mapping(source = \"applicationProspect.id\", target = \"applicationProspectId\")\n @Mapping(source = \"nominee.id\", target = \"nomineeId\")\n AddressDTO toDto(Address address);\n\n @Mapping(source = \"applicationProspectId\", target = \"applicationProspect\")\n @Mapping(source = \"nomineeId\", target = \"nominee\")\n Address toEntity(AddressDTO addressDTO);\n\n default Address fromId(Long id) {\n if (id == null) {\n return null;\n }\n Address address = new Address();\n address.setId(id);\n return address;\n }\n}", "public ProdutoDTO()\n {\n super();\n }", "@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EheartMapper {\n\n EheartDTO eheartToEheartDTO(Eheart eheart);\n\n List<EheartDTO> eheartsToEheartDTOs(List<Eheart> ehearts);\n\n Eheart eheartDTOToEheart(EheartDTO eheartDTO);\n\n List<Eheart> eheartDTOsToEhearts(List<EheartDTO> eheartDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OTHERMapper extends EntityMapper<OTHERDTO, OTHER> {\n\n\n\n default OTHER fromId(Long id) {\n if (id == null) {\n return null;\n }\n OTHER oTHER = new OTHER();\n oTHER.setId(id);\n return oTHER;\n }\n}", "private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}", "@Override\n public PaymentReadDTO wrapDTO(Payment payment, Collection<DtoOption> options) throws Exception {\n PaymentReadDTO dto = mapper.map(payment, PaymentReadDTO.class);\n\n /* Add dependency */\n /* TODO:\n if (options != null && !options.isEmpty()) {\n if (options.contains(DtoOption.FK)) {\n FkReadDTO fkDTO = fkService.getDTOById(payment.getFkId());\n dto.setFk(fkDTO);\n }\n\n if (options.contains(DtoOption.FK_LIST)) {\n List<FkReadDTO> fkDTOList = fkService.getAllDTOById(payment.getFkId());\n dto.setFkList(fkDTOList);\n }\n }\n */\n\n return dto;\n }", "@Mapper\npublic interface UserConvert {\n\n UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);\n\n static UserConvertConvertor instance() {\n return INSTANCE;\n }\n\n @Mappings({})\n User toUser(UserDTO userDTO);\n\n @Mappings({})\n UserDTO toUserDTO(User user);\n\n List<UserDTO> toUserDTOs(List<User> users);\n\n List<User> toUsers(List<UserDTO> userDTOs);\n}", "@Mapper\npublic interface TestMapper extends MyMapper<Person1> {\n //List<Person1> findAll();\n}", "@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}", "public GetAllCarsDTO() {\n }", "public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }", "protected MovieDtoExample(MovieDtoExample example) {\n this.orderByClause = example.orderByClause;\n this.oredCriteria = example.oredCriteria;\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AlterationDisplayTypeMapper {\n\n AlterationDisplayTypeDTO alterationDisplayTypeToAlterationDisplayTypeDTO(AlterationDisplayType alterationDisplayType);\n\n List<AlterationDisplayTypeDTO> alterationDisplayTypesToAlterationDisplayTypeDTOs(List<AlterationDisplayType> alterationDisplayTypes);\n\n @Mapping(target = \"alterations\", ignore = true)\n AlterationDisplayType alterationDisplayTypeDTOToAlterationDisplayType(AlterationDisplayTypeDTO alterationDisplayTypeDTO);\n\n List<AlterationDisplayType> alterationDisplayTypeDTOsToAlterationDisplayTypes(List<AlterationDisplayTypeDTO> alterationDisplayTypeDTOs);\n}", "@Mapper\npublic interface ProjectMapper {\n\n ProjectMapper INSTANCE = Mappers.getMapper(ProjectMapper.class);\n\n Project toModel(ProjectDTO projectDTO);\n\n ProjectDTO toDTO(Project project);\n}", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "public MedicationDTO2 (Medication medication) {\n \tthis.id = medication.getId();\n \tthis.name = medication.getName();\n \tthis.code = medication.getCode();\n \tthis.typeOfMedication = medication.getTypeOfMedication();\n \tthis.medicationForm = medication.getMedicationForm();\n \tthis.structure = medication.getStructure();\n \tthis.contraindications = medication.getContraindications();\n \tthis.recommendedIntake = medication.getRecommendedIntake();\n //\tthis.pharmacyID = \n \tthis.manufacturer = medication.getManufacturer();\n \tthis.prescriptionRegime = medication.getPrescriptionRegime();\n \tthis.description = medication.getDescription();\n \t\n \tfor(Medication m : medication.getReplacementMedications()) {\n \t\tthis.replacementMedicationsIDs.add(m.getId());\n \t}\n }", "@Mapper\npublic interface MissionMapper {\n\n MissionMapper INSTANCE = Mappers.getMapper(MissionMapper.class);\n\n @Mapping(source = \"izQuestion\", target = \"izQuestion\")\n @Mapping(source = \"missionDescription\", target = \"missionDescription\")\n @Mapping(source = \"missionName\", target = \"missionName\")\n @Mapping(source = \"shortDescription\", target = \"shortDescription\")\n @Mapping(source = \"winnerScore\", target = \"winnerScore\")\n @Mapping(source = \"storyId\", target = \"story.id\")\n Mission dtoToMission (MissionDTO missionDTO);\n}", "private EmployeeDto toDto(Employee employee){\n\t\tEmployeeDto employeeDto = new EmployeeDto();\n\t\temployeeDto.id = employee.getId();\n\n\t\temployeeDto.name = employee.getName();\n\t\temployeeDto.email = employee.getEmail();\n\n\t\temployeeDto.jobTypeId = employee.getJobtype().getId();\n\n\t\temployeeDto.bossId = employee.getBossId();\n\n\t\temployeeDto.netPayment = employee.getNetPayment();\n\t\temployeeDto.grossPayment = employee.getGrossPayment();\n\t\temployeeDto.employerTotalCost = employee.getEmployerTotalCost();\n\t\temployeeDto.workHours = employee.getWorkHours();\n\n\t\temployeeDto.children = employee.getChildren();\n\n\t\temployeeDto.workStatus = employee.getWorkStatus().getStringValue();\n\n\t\temployeeDto.isEntrant = employee.isEntrant();\n\t\temployeeDto.isJustMarried = employee.isJustMarried();\n\t\temployeeDto.isSingleParent = employee.isSingleParent();\n\n\t\treturn employeeDto;\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TxnActivityAuditMapper {\n\n @Mapping(source = \"editedBy.id\", target = \"editedById\")\n TxnActivityAuditDTO txnActivityAuditToTxnActivityAuditDTO(TxnActivityAudit txnActivityAudit);\n\n @Mapping(source = \"editedById\", target = \"editedBy\")\n TxnActivityAudit txnActivityAuditDTOToTxnActivityAudit(TxnActivityAuditDTO txnActivityAuditDTO);\n\n default Staff staffFromId(Long id) {\n if (id == null) {\n return null;\n }\n Staff staff = new Staff();\n staff.setId(id);\n return staff;\n }\n}", "SurveyQuestionDTO convertSurveyQuestionToSurveyQuestionDTO(SurveyQuestion question);" ]
[ "0.73979706", "0.7192396", "0.69763947", "0.6740301", "0.6671329", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63905215", "0.63847554", "0.6342465", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.6010855", "0.59998727", "0.59807646", "0.59544283", "0.5943492", "0.59149295", "0.5894155", "0.58833814", "0.5808219", "0.57750195", "0.57668066", "0.5761838", "0.5751175", "0.573665", "0.5735213", "0.57335585", "0.57217956", "0.5700575", "0.5698903", "0.5693827", "0.5673914", "0.56679183", "0.56618637", "0.5649339", "0.5635711", "0.5628919", "0.5618725", "0.56059974", "0.5593568", "0.5589039", "0.558151", "0.55779994", "0.5576326", "0.557629", "0.5572549", "0.5569024", "0.55656993", "0.55492467", "0.5518626", "0.55095804", "0.5504652", "0.549708", "0.5496518", "0.5496145", "0.54932016", "0.5486676", "0.5480258", "0.5479153", "0.54778844", "0.54648626", "0.54604685", "0.5442837", "0.54284984", "0.542459", "0.54238486", "0.54114306", "0.5404944", "0.5404856", "0.5404057", "0.53992164", "0.5391367", "0.53809154", "0.53795207", "0.5378824", "0.5373316", "0.5363157", "0.53589654", "0.5356848", "0.5342475", "0.5330356", "0.53299093", "0.5325332", "0.5324569", "0.5321285", "0.5317239", "0.53160113", "0.5312925", "0.5311536", "0.52957255", "0.52925485" ]
0.63505775
12
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - Intantiates DTOAssembler-ThirdConstructor") void personDTOAssembler_InstatiatesDTOAssembler_ThirdConstructor() { String mariaEmail = "[email protected]"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); LedgerID ledgerID = LedgerID.createLedgerID(); String ledgerId = ledgerID.toString(); PersonID fatherID = null; PersonID motherID = null; String IS_NOT_DEFINED = "Is Not Defined"; //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace); //Act PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler(); PersonDTO personDTO = personDTOAssembler.createDTOFromPrimitiveTypes(mariaEmail, mariaName, mariaBirthDate.toString(), mariaBirthplace); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler\")\n void personDTOAssembler_InstatiatesDTOAssembler() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n @DisplayName(\"PersonDTOAssembler - WithMotherAndFather\")\n void personDTOAssembler_WithMotherAndFather() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n PersonID fatherID = PersonID.createPersonID(\"[email protected]\");\n String fatherEmail = fatherID.getEmail().getEmail();\n PersonID motherID = PersonID.createPersonID(\"[email protected]\");\n String motherEmail = motherID.getEmail().getEmail();\n\n\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, fatherEmail, motherEmail);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n\tpublic void testPersonToPersonDtoMap() {\n\t\t\n\t\t// prepare \n\t\tPerson person = this.getFakePersonToMap();\n\t\tAddress address = person.getAddress();\n\t\tContactDetail contactDetail = person.getContactDetail();\n\t\t\n\t\t// sut (system / class under test)\n\t\tMapper testee = new Mapper();\n\t\t\n\t\t// act\t\t\n\t\tPersonDto personDto = testee.map(person, PersonDto.class);\n\t\t\n\t\t// tests\n\t\t// address\n\t\tassertEquals(personDto.getAddressCity(), address.getCity());\n\t\tassertEquals(personDto.getAddressCountry(), address.getCountry());\n\t\t\n\t\t// contact details\n\t\tassertEquals(personDto.getPhoneNumber1(), contactDetail.getPhoneNumber1());\n\t\tassertEquals(personDto.getPhoneNumber2(), contactDetail.getPhoneNumber2());\n\t\tassertEquals(personDto.getPhoneNumber3(), contactDetail.getPhoneNumber3());\n\t\tassertEquals(personDto.getFax(), contactDetail.getFax());\n\t\t\n\t}", "D mapToDTO(E entity);", "public void crearPersona(PersonaDTO personaDTO);", "public List<PersonDTO> getDTOs(){\n\t\tList<PersonDTO> personDTOs = new ArrayList<PersonDTO>();\n\t\tList<Person> persons = personRepository.getAll();\n\t\tfor (Person person: persons) {\n\t\t\t// Create new data transfer object\n\t\t\tPersonDTO dto = new PersonDTO();\n\n\t\t\tdto.setId(person.getId());\n\t\t\tdto.setTitle(person.getTitle());\n\t\t\tdto.setFirstName(person.getFirstName());\n\t\t\tdto.setLastName(person.getLastName());\n\t\t\tdto.setEmail(person.getEmail());\n\t\t\tdto.setPhone(person.getPhone());\n\t\t\tdto.setAddress1(person.getAddress1());\n\t\t\tdto.setAddress2(person.getAddress2());\n\t\t\tdto.setZipCode(person.getZipCode());\n\t\t\tdto.setCity(person.getCity());\n\t\t\tdto.setCountry(person.getCountry());\n\t\t\t// Add to model list\n\t\t\tpersonDTOs.add(dto);\n\t\t}\n\t\treturn personDTOs;\n\t}", "StudentDTO toStudentDTO(Student student);", "List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler-SecondConstructor\")\n void personDTOAssembler_InstatiatesDTOAssembler_SecondConstructor() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n String ledgerId = \"123\";\n LedgerID ledgerID = new LedgerID(ledgerId);\n\n\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail,ledgerId, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, ledgerID, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\n @DisplayName(\"PersonDTOAssembler - Test create data transfer objects from Domain Object || Happy case\")\n void personDTOAssembler_CreateDTOFromDomainObjectTest() {\n String mariaEmail = \"[email protected]\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "V toDto(E entity);", "protected abstract void processDTO();", "OrderDto map(Order order);", "public abstract D convertToDto(T entity);", "public abstract DTO toDTO(M model);", "@Override\n\tpublic ExperienceDTO domainToDto(Experience experience) {\n\t\treturn mapperFacade.map(experience, ExperienceDTO.class);\n\t}", "Assembler newAssembler(final Class< ? > dto, final Class< ? > entity);", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "AccountDTO toDTO(Account account);", "public PersonaDTO consultarPersona(Long idPersona) ;", "List<D> mapToDTO(List<E> entity);", "public NameDTO() {\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n }", "AccountDTO coverAccountToEmpDTO(Account account);", "@Mapper\npublic interface PersonMapper {\n\n PersonDO selectPersonById(Integer id);\n\n List<PersonDO> selectAll();\n\n void insert(PersonDO personDO);\n\n Long update(PersonDO personDO);\n\n Long delete(Integer id);\n}", "@Mappings({\n @Mapping(source = \"address\", target = \"addressDto\"),\n @Mapping(target = \"skills\", ignore = true)\n })\n UserDto toDTO(UserEntity userEntity);", "E mapToEntity(D dto);", "private Book mapBookDTOToBook(BookDTO bookDTO) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBook book = mapper.map(bookDTO, Book.class);\n\t\tbook.setCategory(new Category(bookDTO.getCategory().getCode(), \"\"));\n\t\tbook.setRegisterDate(LocalDate.now());\n\t\treturn book;\n\t}", "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "ExerciseDTO convertToExerciseDTO(Exercise exercise);", "public List<PersonaDTO> consultarPersonas() ;", "@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}", "@Component\n@Mapper(componentModel = \"spring\")\npublic interface CarriageMapper {\n\n Carriage carriageModelToCarriage(CarriageModel carriageModel);\n\n CarriageModel carriageToCarriageModel(Carriage carriage);\n\n CarriageModel carriageDtoToCarriageModel(CarriageDto carriageDto);\n\n CarriageDto carriageModelToCarriageDto(CarriageModel carriageModel);\n\n List<CarriageModel> carriagesToCarriageModels(List<Carriage> carriages);\n\n List<CarriageDto> carriageModelsToCarriageDtos(List<CarriageModel> carriageModels);\n\n List<Carriage> carriageModelsToCarriages(List<CarriageModel> carriageModels);\n}", "Account toDomain(AccountDTO accountDto);", "@Override\n\tpublic Experience dtoToDomain(ExperienceDTO experience) {\n\t\treturn mapperFacade.map(experience, Experience.class);\n\t}", "@Mapper(componentModel = \"cdi\")\npublic interface ArchivoMapper {\n\n ArchivoDTO toDTO(Archivo source);\n List<ArchivoDTO> toDTOList(List<Archivo> sourceList);\n\n void updateFromDTO(ArchivoDTO source, @MappingTarget Archivo target);\n}", "@Mapper(uses = DateMapper.class)\npublic interface ExerciseMapper {\n\n // Autogenerated code will map exercise object to ExerciseDTO\n // @Mapping(source = \"firstName\", target = \"name\") can be used if the field names do not match.\n ExerciseDTO convertToExerciseDTO(Exercise exercise);\n\n Exercise convertToExercise(ExerciseDTO exerciseDTO);\n\n}", "@Mapping(target = \"id\", ignore = true)\n PhoneDTO fromProtobuf(Customer.Phone phone);", "@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}", "WordDtoImpl convertFromDomainImpl(Word word);", "public interface DTOMapper<E> {\n\n /**\n * Fills the DTO with information from the entity.\n *\n * @param entity the <code>E</code> generics entity\n */\n void buildFromEntity(E entity);\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "public interface BookConverter {\n BookDto toBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(BookDto bookDto);\n\n FullBookDto toFullBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(FullBookDto fullBookDto);\n}", "@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);", "private BookDTO mapBookToBookDTO(Book book) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBookDTO bookDTO = mapper.map(book, BookDTO.class);\n\t\tif (book.getCategory() != null) {\n\t\t\tbookDTO.setCategory(new CategoryDTO(book.getCategory().getCode(), book.getCategory().getLabel()));\n\t\t}\n\t\treturn bookDTO;\n\t}", "private LecturerDto mapDto(Lecturer lecturer) {\n return new LecturerDto(lecturer.getLecturerID(), lecturer.getFirstName(), lecturer.getLastName(), lecturer.getEmail(), lecturer.getType());\n }", "public PersonaDTO obtenerPersona(Long idPersona) throws CustomErrorException {\n\t\tPersonaDTO personaDTO = new PersonaDTO();\n\t\ttry {\n\t\t\tpersonaDTO = Converter.toDto((Persona) gPersona.getById(idPersona)); \n\t\t} catch (CustomErrorException cer) {\n\t\t\tthrow cer;\n\t\t} catch (Exception e) {\n\t\t\tthrow new CustomErrorException(CustomErrorException.ERROR_SERVICIO,this.getClass().getSimpleName(),e.getStackTrace());\n\t\t}\n\n\t\treturn personaDTO;\n\t}", "@Test\n public void testConvertComputerToComputerDTO() {\n ComputerDTO computerDTO = new ComputerDTO();\n computerDTO.setId(1);\n computerDTO.setName(\"test\");\n ComputerDTO computerResult = DTOMapper.fromComputer(new Computer.Builder(\"test\").id(1L).build());\n assertEquals(computerDTO, computerResult);\n }", "@Mapper\npublic interface SeguridadDtoMap {\n SeguridadDtoMap INSTANCE = Mappers.getMapper( SeguridadDtoMap.class );\n\n GrupoDto grupoToGrupoDto(Grupo grupo);\n\n Grupo grupoDtoToGrupo(GrupoDto grupoDto);\n}", "public abstract T convertToEntity(D dto);", "@Bean\n public TypeMap<Carriage, CarriageDto> getCarriageCarriageDtoTypeMap() {\n Converter<List<Driver>, List<DriverDto>> toDriverDtoList = new AbstractConverter<List<Driver>, List<DriverDto>>() {\n protected List<DriverDto> convert(List<Driver> source) {\n if (source == null) {\n return null;\n } else {\n List<DriverDto> driverDtos = new ArrayList<>(source.size());\n for (Driver driver : source) {\n driverDtos.add(getModelMapper().getTypeMap(Driver.class, DriverDto.class, \"DriverDriverDto\").map(driver));\n }\n return driverDtos;\n }\n }\n };\n\n Converter<Vehicle, VehicleDto> toVehicleDto = new AbstractConverter<Vehicle, VehicleDto>() {\n @Override\n protected VehicleDto convert(Vehicle vehicle) {\n if (vehicle == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Vehicle.class, VehicleDto.class, \"VehicleVehicleDto\")\n .map(vehicle);\n }\n }\n };\n\n /*\n\n Converter<? super Cargo, CargoDto> toCargoDto = new AbstractConverter<Cargo, CargoDto>() {\n @Override\n protected CargoDto convert(Cargo cargo) {\n if (cargo == null) {\n return null;\n } else {\n return getModelMapper().getTypeMap(Cargo.class, CargoDto.class, \"CargoCargoDto\")\n .map(cargo);\n }\n }\n };*/\n\n return getModelMapper().createTypeMap(Carriage.class, CarriageDto.class, \"CarriageCarriageDto\")\n .addMappings(mapper -> mapper.skip(CarriageDto::setMaxWeight))\n\n// .addMappings(mapper -> mapper.using(toCargoDto).map(Carriage::getCargoes, CarriageDto::setCargoes))\n// .addMappings(mapper -> mapper.using(toWaypointDto).map(Carriage::getWaypoints, CarriageDto::setWaypoints))\n .addMappings(mapper -> mapper.using(toVehicleDto).map(Carriage::getVehicle, CarriageDto::setVehicle))\n .addMappings(mapper -> mapper.using(toDriverDtoList).map(Carriage::getDrivers, CarriageDto::setDrivers));\n }", "public abstract M toModel(DTO dto);", "@Mapper(componentModel = \"spring\", uses = {OrgaoMapper.class, PermissaoMapper.class})\npublic interface UsuarioMapper {\n\n @Mapping(target = \"orgao\", ignore = true)\n UsuarioDTO usuarioToUsuarioDTO(Usuario usuario);\n\n List<UsuarioDTO> usuariosToUsuarioDTOs(List<Usuario> usuarios);\n\n Usuario usuarioDTOToUsuario(UsuarioDTO usuarioDTO);\n\n List<Usuario> usuarioDTOsToUsuarios(List<UsuarioDTO> usuarioDTOs);\n}", "public SkillDTO toDTO(Skill skill) {\n return toDTO(skill, 1);\n }", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CustomerMapper {\n\n CustomerDTO customerToCustomerDTO(Customer customer);\n\n List<CustomerDTO> customersToCustomerDTOs(List<Customer> customers);\n\n @Mapping(target = \"orders\", ignore = true)\n Customer customerDTOToCustomer(CustomerDTO customerDTO);\n\n List<Customer> customerDTOsToCustomers(List<CustomerDTO> customerDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ExerciseFamilyMapper {\n\n ExerciseFamilyDTO exerciseFamilyToExerciseFamilyDTO(ExerciseFamily exerciseFamily);\n\n List<ExerciseFamilyDTO> exerciseFamiliesToExerciseFamilyDTOs(List<ExerciseFamily> exerciseFamilies);\n\n @Mapping(target = \"exercises\", ignore = true)\n ExerciseFamily exerciseFamilyDTOToExerciseFamily(ExerciseFamilyDTO exerciseFamilyDTO);\n\n List<ExerciseFamily> exerciseFamilyDTOsToExerciseFamilies(List<ExerciseFamilyDTO> exerciseFamilyDTOs);\n}", "public interface IReglaUtilDTO {\n\n\t/**\n\t * To business.\n\t * \n\t * @param reglaDTO\n\t * the regla dto\n\t * @return the regla\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tRegla toBusiness(ReglaDTO reglaDTO) throws TransferObjectException;\n\n\t/**\n\t * To rest.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRest(Regla regla) throws TransferObjectException;\n\n\t/**\n\t * To rest info.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRestInfo(Regla regla) throws TransferObjectException;\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "@Override\r\n\tpublic MainDTO toDTO() {\n\t\tFamiliaresDTO familiaresDTO = new FamiliaresDTO();\r\n\t\tDomicilioDTO domicilioDTO = null;\r\n\t\tfamiliaresDTO.setIdfamiliar(this.getIdFamiliar());\r\n\t\tfamiliaresDTO.setNombre(this.getNombre());\r\n\t\tfamiliaresDTO.setApellidoPaterno(this.getApellidoPaterno());\r\n\t\tfamiliaresDTO.setApellidoMaterno(this.getAppelidoMaterno());\r\n\t\tfamiliaresDTO.setDireccion(this.getDireccion());\r\n\t\tfamiliaresDTO.setIdpaciente(this.getIdpaciente());\r\n\t\tfamiliaresDTO.setDependencia(this.getDependencia());\r\n\t\tdomicilioDTO = (DomicilioDTO) this.getDomicilio().toDTO();\r\n\t\tfamiliaresDTO.setDomicilio(domicilioDTO);\r\n\t\treturn familiaresDTO;\r\n\t}", "List<StudentDTO> toStudentDTOs(List<Student> students);", "@Mapper(componentModel = \"cdi\", uses = EnumMapper.class)\npublic interface DocumentoMapper {\n\n DocumentoDTO toDTO(Documento documento);\n\n Documento fromDTO(DocumentoDTO documentoDTO);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "@Override\n\tpublic ExamDTO toDto(Exam exam) {\n\t\treturn null;\n\t}", "@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface WwtreatmentthreeMapper {\n\n WwtreatmentthreeDTO wwtreatmentthreeToWwtreatmentthreeDTO(Wwtreatmentthree wwtreatmentthree);\n\n List<WwtreatmentthreeDTO> wwtreatmentthreesToWwtreatmentthreeDTOs(List<Wwtreatmentthree> wwtreatmentthrees);\n\n Wwtreatmentthree wwtreatmentthreeDTOToWwtreatmentthree(WwtreatmentthreeDTO wwtreatmentthreeDTO);\n\n List<Wwtreatmentthree> wwtreatmentthreeDTOsToWwtreatmentthrees(List<WwtreatmentthreeDTO> wwtreatmentthreeDTOs);\n}", "@Mapper(componentModel = \"spring\")\npublic interface PedidoMapper {\n\t\n\t@AfterMapping\n\tdefault void afterMapping(@MappingTarget PedidoDTO target, Pedido source) {\n\t\t\n\t\tFloat totalIVA = new Float(0);\n\t\tFloat totalDomicilio = new Float(0);\n\t\tFloat totalNeto = new Float(0);\n\t\t\n\t\tif(source.getEstado().equals(Constantes.ESTADO_PEDIDO_ACTIVO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEIDIDO_ACTIVO_STRING);\n\t\t\ttotalIVA = new Float(target.getSubtotal() * 0.19);\n\t\t\ttotalDomicilio = target.getSubtotal() >= Constantes.VALOR_MINIMO_PARA_COBRO_DE_DOMICILIO && target.getSubtotal() <= Constantes.VALOR_MAXIMO_PARA_COBRO_DE_DOMICILIO ? new Float(target.getSubtotal() * 0.05) : new Float(0);\n\t\t\ttotalNeto = target.getSubtotal() + totalIVA + totalDomicilio;\n\t\t}\n\t\telse if (source.getEstado().equals(Constantes.ESTADO_PEDIDO_CANCELADO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEDIDO_CANCELADO_STRING);\n\t\t\ttotalNeto = new Float(target.getSubtotal() * 0.10);\n\t\t}\t\t \n\t\t\n\t\t\n\t\ttarget.setTotalIVA(totalIVA);\n\t\ttarget.setTotalDomicilio(totalDomicilio);\n\t\ttarget.setTotalNeto(totalNeto);\n\t}\n\t\n\t@Mapping(source = \"entity.idUsuario.idUsuario\", target = \"idUsuario\")\n\t@Mapping(source = \"entity.idUsuario.nombre\", target = \"nombreUsuario\")\n\t@Mapping(source = \"entity.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"entity.estado\", target = \"estado\")\n\t@Mapping(target = \"idProductosConcatenados\", ignore = true)\n\t@Mapping(target = \"totalIVA\", ignore = true)\n\t@Mapping(target = \"totalDomicilio\", ignore = true)\n\t@Mapping(target = \"totalNeto\", ignore = true)\n\t@Mapping(target = \"codigoRespuesta\", ignore = true)\n\t@Mapping(target = \"mensajeRespuesta\", ignore = true)\n\t@Mapping(target = \"estadoString\", ignore = true)\n\tpublic PedidoDTO transformEntityToDTO(Pedido entity);\n\t\n\t@Mapping(source = \"DTO.idUsuario\", target = \"idUsuario.idUsuario\")\n\t@Mapping(source = \"DTO.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"DTO.estado\", target = \"estado\")\n\tpublic Pedido transformDTOToEntity(PedidoDTO DTO);\n\t\n\tpublic List<PedidoDTO> transformEntitiesToDTO(List<Pedido> listEntities);\n\t\n\tpublic List<Pedido> transformDTOToEntities(List<Pedido> listDTO);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AddressMapper {\n\n @Mapping(source = \"city.id\", target = \"cityId\")\n AddressDTO addressToAddressDTO(Address address);\n\n List<AddressDTO> addressesToAddressDTOs(List<Address> addresses);\n\n @Mapping(source = \"cityId\", target = \"city\")\n Address addressDTOToAddress(AddressDTO addressDTO);\n\n List<Address> addressDTOsToAddresses(List<AddressDTO> addressDTOs);\n\n default City cityFromId(Long id) {\n if (id == null) {\n return null;\n }\n City city = new City();\n city.setId(id);\n return city;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}", "Account coverEmpDTOToAccount(AccountDTO accountDTO);", "public List<PersonDto> findByFirstName(String firstName) {\n List<Person> models = Collections.emptyList();\n return models.stream()\n .map(personMapper::toDto)\n .collect(Collectors.toList());\n }", "CommentDto entityToDto(Comment comment);", "public MemberDto copyEntityToDto(Member entity, MemberDto dto) {\r\n reflectMemberIdToDto(entity, dto);\r\n reflectMemberNameToDto(entity, dto);\r\n reflectFormalizedDatetimeToDto(entity, dto);\r\n reflectUpdateDatetimeToDto(entity, dto);\r\n\r\n return dto;\r\n }", "@Mapper(componentModel = \"spring\", uses = {Business.class})\npublic interface BusinessMapper {\n\n BusinessDTO toDTO(Business business);\n\n @Mapping(target = \"advertisements\", ignore = true)\n Business toEntity(BusinessDTO businessDTO);\n}", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "CustomerDto createCustomer(CustomerEntity customerEntity);", "public interface CompanyJsonTransformer {\n\n /**\n * Transforms a CompanyJson element with id as UUID to a new CompanyInternal internal element.\n *\n * @param companyId the ID of the CompanyJson object\n * @param company the CompanyJson object\n * @return the CompanyInternal object\n */\n CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);\n\n /**\n * Transforms a CompanyInternal and BeneficialOwnerInternals to a new CompanyJson element.\n *\n * @param company the CompanyInternal object\n * @param beneficialOwners the List<BeneficialOwnerInternal> object\n * @return the CompanyJson object\n */\n CompanyJson toCompanyJson(CompanyInternal company, List<BeneficialOwnerInternal> beneficialOwners);\n}", "@Mapper(componentModel = \"spring\", uses = {ApplicationProspectMapper.class, NomineeMapper.class})\npublic interface AddressMapper extends EntityMapper<AddressDTO, Address> {\n\n @Mapping(source = \"applicationProspect.id\", target = \"applicationProspectId\")\n @Mapping(source = \"nominee.id\", target = \"nomineeId\")\n AddressDTO toDto(Address address);\n\n @Mapping(source = \"applicationProspectId\", target = \"applicationProspect\")\n @Mapping(source = \"nomineeId\", target = \"nominee\")\n Address toEntity(AddressDTO addressDTO);\n\n default Address fromId(Long id) {\n if (id == null) {\n return null;\n }\n Address address = new Address();\n address.setId(id);\n return address;\n }\n}", "public ProdutoDTO()\n {\n super();\n }", "@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EheartMapper {\n\n EheartDTO eheartToEheartDTO(Eheart eheart);\n\n List<EheartDTO> eheartsToEheartDTOs(List<Eheart> ehearts);\n\n Eheart eheartDTOToEheart(EheartDTO eheartDTO);\n\n List<Eheart> eheartDTOsToEhearts(List<EheartDTO> eheartDTOs);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OTHERMapper extends EntityMapper<OTHERDTO, OTHER> {\n\n\n\n default OTHER fromId(Long id) {\n if (id == null) {\n return null;\n }\n OTHER oTHER = new OTHER();\n oTHER.setId(id);\n return oTHER;\n }\n}", "private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}", "@Override\n public PaymentReadDTO wrapDTO(Payment payment, Collection<DtoOption> options) throws Exception {\n PaymentReadDTO dto = mapper.map(payment, PaymentReadDTO.class);\n\n /* Add dependency */\n /* TODO:\n if (options != null && !options.isEmpty()) {\n if (options.contains(DtoOption.FK)) {\n FkReadDTO fkDTO = fkService.getDTOById(payment.getFkId());\n dto.setFk(fkDTO);\n }\n\n if (options.contains(DtoOption.FK_LIST)) {\n List<FkReadDTO> fkDTOList = fkService.getAllDTOById(payment.getFkId());\n dto.setFkList(fkDTOList);\n }\n }\n */\n\n return dto;\n }", "@Mapper\npublic interface UserConvert {\n\n UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);\n\n static UserConvertConvertor instance() {\n return INSTANCE;\n }\n\n @Mappings({})\n User toUser(UserDTO userDTO);\n\n @Mappings({})\n UserDTO toUserDTO(User user);\n\n List<UserDTO> toUserDTOs(List<User> users);\n\n List<User> toUsers(List<UserDTO> userDTOs);\n}", "@Mapper\npublic interface TestMapper extends MyMapper<Person1> {\n //List<Person1> findAll();\n}", "@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}", "public GetAllCarsDTO() {\n }", "public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }", "protected MovieDtoExample(MovieDtoExample example) {\n this.orderByClause = example.orderByClause;\n this.oredCriteria = example.oredCriteria;\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AlterationDisplayTypeMapper {\n\n AlterationDisplayTypeDTO alterationDisplayTypeToAlterationDisplayTypeDTO(AlterationDisplayType alterationDisplayType);\n\n List<AlterationDisplayTypeDTO> alterationDisplayTypesToAlterationDisplayTypeDTOs(List<AlterationDisplayType> alterationDisplayTypes);\n\n @Mapping(target = \"alterations\", ignore = true)\n AlterationDisplayType alterationDisplayTypeDTOToAlterationDisplayType(AlterationDisplayTypeDTO alterationDisplayTypeDTO);\n\n List<AlterationDisplayType> alterationDisplayTypeDTOsToAlterationDisplayTypes(List<AlterationDisplayTypeDTO> alterationDisplayTypeDTOs);\n}", "@Mapper\npublic interface ProjectMapper {\n\n ProjectMapper INSTANCE = Mappers.getMapper(ProjectMapper.class);\n\n Project toModel(ProjectDTO projectDTO);\n\n ProjectDTO toDTO(Project project);\n}", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "public MedicationDTO2 (Medication medication) {\n \tthis.id = medication.getId();\n \tthis.name = medication.getName();\n \tthis.code = medication.getCode();\n \tthis.typeOfMedication = medication.getTypeOfMedication();\n \tthis.medicationForm = medication.getMedicationForm();\n \tthis.structure = medication.getStructure();\n \tthis.contraindications = medication.getContraindications();\n \tthis.recommendedIntake = medication.getRecommendedIntake();\n //\tthis.pharmacyID = \n \tthis.manufacturer = medication.getManufacturer();\n \tthis.prescriptionRegime = medication.getPrescriptionRegime();\n \tthis.description = medication.getDescription();\n \t\n \tfor(Medication m : medication.getReplacementMedications()) {\n \t\tthis.replacementMedicationsIDs.add(m.getId());\n \t}\n }", "@Mapper\npublic interface MissionMapper {\n\n MissionMapper INSTANCE = Mappers.getMapper(MissionMapper.class);\n\n @Mapping(source = \"izQuestion\", target = \"izQuestion\")\n @Mapping(source = \"missionDescription\", target = \"missionDescription\")\n @Mapping(source = \"missionName\", target = \"missionName\")\n @Mapping(source = \"shortDescription\", target = \"shortDescription\")\n @Mapping(source = \"winnerScore\", target = \"winnerScore\")\n @Mapping(source = \"storyId\", target = \"story.id\")\n Mission dtoToMission (MissionDTO missionDTO);\n}", "private EmployeeDto toDto(Employee employee){\n\t\tEmployeeDto employeeDto = new EmployeeDto();\n\t\temployeeDto.id = employee.getId();\n\n\t\temployeeDto.name = employee.getName();\n\t\temployeeDto.email = employee.getEmail();\n\n\t\temployeeDto.jobTypeId = employee.getJobtype().getId();\n\n\t\temployeeDto.bossId = employee.getBossId();\n\n\t\temployeeDto.netPayment = employee.getNetPayment();\n\t\temployeeDto.grossPayment = employee.getGrossPayment();\n\t\temployeeDto.employerTotalCost = employee.getEmployerTotalCost();\n\t\temployeeDto.workHours = employee.getWorkHours();\n\n\t\temployeeDto.children = employee.getChildren();\n\n\t\temployeeDto.workStatus = employee.getWorkStatus().getStringValue();\n\n\t\temployeeDto.isEntrant = employee.isEntrant();\n\t\temployeeDto.isJustMarried = employee.isJustMarried();\n\t\temployeeDto.isSingleParent = employee.isSingleParent();\n\n\t\treturn employeeDto;\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TxnActivityAuditMapper {\n\n @Mapping(source = \"editedBy.id\", target = \"editedById\")\n TxnActivityAuditDTO txnActivityAuditToTxnActivityAuditDTO(TxnActivityAudit txnActivityAudit);\n\n @Mapping(source = \"editedById\", target = \"editedBy\")\n TxnActivityAudit txnActivityAuditDTOToTxnActivityAudit(TxnActivityAuditDTO txnActivityAuditDTO);\n\n default Staff staffFromId(Long id) {\n if (id == null) {\n return null;\n }\n Staff staff = new Staff();\n staff.setId(id);\n return staff;\n }\n}", "SurveyQuestionDTO convertSurveyQuestionToSurveyQuestionDTO(SurveyQuestion question);" ]
[ "0.73979706", "0.7192396", "0.69763947", "0.6740301", "0.6671329", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63847554", "0.63505775", "0.6342465", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.6010855", "0.59998727", "0.59807646", "0.59544283", "0.5943492", "0.59149295", "0.5894155", "0.58833814", "0.5808219", "0.57750195", "0.57668066", "0.5761838", "0.5751175", "0.573665", "0.5735213", "0.57335585", "0.57217956", "0.5700575", "0.5698903", "0.5693827", "0.5673914", "0.56679183", "0.56618637", "0.5649339", "0.5635711", "0.5628919", "0.5618725", "0.56059974", "0.5593568", "0.5589039", "0.558151", "0.55779994", "0.5576326", "0.557629", "0.5572549", "0.5569024", "0.55656993", "0.55492467", "0.5518626", "0.55095804", "0.5504652", "0.549708", "0.5496518", "0.5496145", "0.54932016", "0.5486676", "0.5480258", "0.5479153", "0.54778844", "0.54648626", "0.54604685", "0.5442837", "0.54284984", "0.542459", "0.54238486", "0.54114306", "0.5404944", "0.5404856", "0.5404057", "0.53992164", "0.5391367", "0.53809154", "0.53795207", "0.5378824", "0.5373316", "0.5363157", "0.53589654", "0.5356848", "0.5342475", "0.5330356", "0.53299093", "0.5325332", "0.5324569", "0.5321285", "0.5317239", "0.53160113", "0.5312925", "0.5311536", "0.52957255", "0.52925485" ]
0.63905215
10
/ JADX WARNING: Illegal instructions before constructor call
public KscRuntimeException(int i, String str, Throwable th) { super(r0.toString(), KscException.getSerial(th)); String str2; StringBuilder sb = new StringBuilder(); sb.append("ErrCode:"); sb.append(i); if (str == null) { str2 = ""; } else { str2 = " details:" + str; } sb.append(str2); this.errCode = i; this.detailMessage = str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void __sep__Constructors__() {}", "Reproducible newInstance();", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public C23317d() {\n }", "protected abstract void construct();", "private JadTool() { }", "public As21Id27()\n\t{\n\t\tsuper() ;\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private Rekenhulp()\n\t{\n\t}", "public Constructor(){\n\t\t\n\t}", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "public Clade() {}", "public Pitonyak_09_02() {\r\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private void translateConstructor( ) {\n \n Set<MethodInfoFlags> flags = EnumSet.noneOf( MethodInfoFlags.class );\n \n AVM2Method method = new AVM2Method( null, flags );\n avm2Class.avm2Class.constructor = method;\n \n AVM2MethodBody body = method.methodBody;\n body.maxStack = 1;\n body.maxRegisters = 1;\n body.maxScope = 11;\n body.scopeDepth = 10;\n \n InstructionList il = body.instructions;\n \n// il.append( OP_getlocal0 );\n// il.append( OP_pushscope );\n il.append( OP_getlocal0 );\n il.append( OP_constructsuper, 0 );\n \n// il.append( OP_findpropstrict, new AVM2QName( PUBLIC_NAMESPACE, \"drawTest\" ));\n il.append( OP_getlocal0 );\n \n il.append( OP_callpropvoid, new AVM2QName( EmptyPackage.namespace, \"drawTest\" ), 0 );\n\n il.append( OP_returnvoid );\n }", "private Instantiation(){}", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private FlexOrderTransformer() {\n // constructor preventing instantiation.\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private TMCourse() {\n\t}", "private SingleObject()\r\n {\r\n }", "private UsineJoueur() {}", "private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public Identity()\n {\n super( Fields.ARGS );\n }", "defaultConstructor(){}", "public native void constructor();", "private NaturePackage() {}", "protected Warning() {\n\n }", "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}", "public S11()\r\n {\r\n super();\r\n strapAllowed = false;\r\n }", "protected Problem() {/* intentionally empty block */}", "public MonHoc() {\n }", "private Ex() {\n }", "private MApi() {}", "public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }", "protected Signer() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>():void\");\n }", "private CheckingTools() {\r\n super();\r\n }", "public mapper3c() { super(); }", "public AnimationParameters() {\n/* 279 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CyanSus() {\n\n }", "public Sad() {\n }", "@DISPID(-2147417603)\n @PropGet\n com4j.Com4jObject constructor();", "public Pleasure() {\r\n\t\t}", "public void testConstructorA3() {\r\n try {\r\n new BidUpdateHandler(\"auctionId\", \"bidId\", \" \");\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public MethodEx2() {\n \n }", "private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "@SuppressWarnings(\"unused\")\n public Coordinate() {}", "public XObject(){\r\n }", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "void DefaultConstructor(){}", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public D() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Pasien() {\r\n }", "@Test( expected = IllegalStateException.class )\n\tpublic void constructorShouldNotBeInstantiable() {\n\t\tnew ReflectionUtil() {\n\t\t\t// constructor is protected\n\t\t};\n\t}", "private Main()\n {{\n System.err.println ( \"Internal error: \"+\n\t \"unexpected call to default constructor for Main.\" );\n System.exit(-127);\n }}", "public lo() {}", "public Anschrift() {\r\n }", "@Test\r\n public void testBadConstructor() {\r\n try {\r\n SnakeSquare instance = new SnakeSquare(33,44);\r\n fail();\r\n } catch (IllegalArgumentException e) { }\r\n }", "private Ognl() {\n }", "private Marinator() {\n }", "private Marinator() {\n }", "private ReportPluginConstant() {\n\t\t// NO_PMD DUMMY CONSTRUCTOR\n\t}", "public ecDSAnone() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSAnone.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSAnone.<init>():void\");\n }", "protected void initialize() {}", "protected void initialize() {}", "public PSRelation()\n {\n }", "public JavaException()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public DABeneficios() {\n }", "public Attributes2Impl() {\n /*\n // Can't load method instructions: Load method exception: null in method: org.xml.sax.ext.Attributes2Impl.<init>():void, dex: in method: org.xml.sax.ext.Attributes2Impl.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.<init>():void\");\n }", "public void testConstructorB1() {\r\n try {\r\n new BidUpdateHandler((Element) null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }", "O() { super(null); }", "public Vbc(java.lang.Object instance) throws Throwable {\n super(instance);\n if (instance instanceof JCObject) {\n classInstance = (JCObject) instance;\n } else\n throw new Exception(\"Cannot manage object, it is not a JCObject\");\n }", "public TestIssue13() { // explicit to avoid a warning from JDK 18 javadoc\r\n }", "private JacobUtils() {}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "private CZ()\n {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "public Lanceur() {\n\t}", "public p7p2() {\n }", "protected DiagClassVisitor() {\n super(ASM5);\n }", "@Override\n public void init() {}", "AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.location.GpsClock.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.<init>():void\");\n }", "private IndexBitmapObject() {\n\t}", "public void testConstructorA4() {\r\n try {\r\n new BidUpdateHandler(null, \"bidId\", \"maxAmount\");\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }", "public Aanbieder() {\r\n\t\t}", "public XObject(){\n }", "public Soil()\n\t{\n\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "CollationDataBuilder() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.icu.impl.coll.CollationDataBuilder.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.<init>():void\");\n }", "public _355() {\n\n }", "private EagerlySinleton()\n\t{\n\t}", "private BigB()\r\n{\tsuper();\t\r\n}", "private UniqueChromosomeReconstructor() { }" ]
[ "0.69689465", "0.68679726", "0.6805558", "0.6801261", "0.6797892", "0.67212576", "0.6703833", "0.6693608", "0.66880536", "0.66715336", "0.66418827", "0.6619065", "0.6590146", "0.6542643", "0.65065783", "0.65038776", "0.6501138", "0.6497327", "0.64758235", "0.64206815", "0.64018244", "0.63919336", "0.6361646", "0.6333285", "0.6331109", "0.6300864", "0.62964845", "0.62846893", "0.62778276", "0.6262329", "0.62549996", "0.6248483", "0.62441516", "0.62385225", "0.6236547", "0.62330407", "0.62286854", "0.62090224", "0.6199818", "0.61973256", "0.61968315", "0.6196274", "0.6195076", "0.61814487", "0.61805516", "0.61763495", "0.61695164", "0.6154481", "0.61538666", "0.6152637", "0.61511797", "0.61500436", "0.6144022", "0.6138709", "0.6134289", "0.61313546", "0.6129849", "0.6124718", "0.612191", "0.612012", "0.61162245", "0.61139965", "0.6109095", "0.60966915", "0.6096145", "0.60912937", "0.6089843", "0.6089843", "0.6087886", "0.60869133", "0.60851556", "0.60851556", "0.6077773", "0.6077494", "0.6076981", "0.6073717", "0.60733885", "0.60732406", "0.6072104", "0.6070464", "0.6067146", "0.60668343", "0.6066561", "0.606625", "0.6063856", "0.6061991", "0.60607606", "0.60600024", "0.60575503", "0.605471", "0.60521454", "0.605145", "0.60511035", "0.6050438", "0.6050118", "0.6040989", "0.60406953", "0.604045", "0.60384554", "0.6037167", "0.60357034" ]
0.0
-1
/ JADX INFO: this call moved to the top of the method (can break code semantics)
public KscRuntimeException(int i, Throwable th) { this(i, th == null ? null : th.toString(), th); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }", "public final void mo91715d() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private stendhal() {\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void mo21779D() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "public void mo21785J() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public abstract void mo70713b();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo21793R() {\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}", "@Override\n protected void prot() {\n }", "protected boolean func_70041_e_() { return false; }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "public void method_6349() {\r\n super.method_6349();\r\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo23813b() {\n }", "private void level7() {\n }", "public void mo21792Q() {\n }", "public void m9741j() throws cf {\r\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21787L() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo21782G() {\n }", "private static void cajas() {\n\t\t\n\t}", "public void mo97908d() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void mo21791P() {\n }", "public void mo21781F() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mo21794S() {\n }", "public boolean method_218() {\r\n return false;\r\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "public final void mo8775b() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private void m50367F() {\n }", "void berechneFlaeche() {\n\t}", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "public void mo3376r() {\n }", "public boolean method_216() {\r\n return false;\r\n }", "public void mo6081a() {\n }", "public boolean method_194() {\r\n return false;\r\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "public void mo21878t() {\n }", "public void mo3749d() {\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 }", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "public final void mo1285b() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo1531a() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public void mo9848a() {\n }", "public void mo44053a() {\n }", "public final void mo11687c() {\n }", "public void mo21795T() {\n }", "@Override\n\tpublic void jugar() {}", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "@Override\n\tprotected void prepare() {\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 mo21877s() {\n }", "public void skystonePos4() {\n }" ]
[ "0.683091", "0.6681837", "0.66092", "0.6524662", "0.65181047", "0.64955086", "0.6465008", "0.6446277", "0.6385758", "0.6360469", "0.632474", "0.6315754", "0.63088393", "0.62681156", "0.6254658", "0.62398624", "0.6222707", "0.6198083", "0.61892426", "0.617641", "0.617641", "0.6151701", "0.61385775", "0.6135002", "0.6134985", "0.6117517", "0.6116131", "0.61149895", "0.609632", "0.6092762", "0.60669017", "0.6062335", "0.6057662", "0.6056324", "0.6056324", "0.6051966", "0.6045991", "0.60388494", "0.6035536", "0.6026841", "0.6022531", "0.6018611", "0.6012919", "0.5996773", "0.5991171", "0.5986166", "0.59845746", "0.59842324", "0.5975689", "0.59731483", "0.5970004", "0.5947092", "0.59469414", "0.59467506", "0.5946456", "0.594567", "0.59392035", "0.59385747", "0.59375644", "0.5924737", "0.5921274", "0.5913905", "0.5912952", "0.5908585", "0.59055185", "0.58985704", "0.58980834", "0.58919144", "0.58895725", "0.5883975", "0.58811164", "0.5879346", "0.5877257", "0.5876988", "0.58704466", "0.5863892", "0.5860086", "0.58509934", "0.5849776", "0.58459073", "0.58419365", "0.5839864", "0.5837926", "0.5834416", "0.58329105", "0.58320737", "0.5831681", "0.58285695", "0.5827087", "0.5819905", "0.5818555", "0.58090997", "0.58071035", "0.58071035", "0.58071035", "0.58071035", "0.58071035", "0.58071035", "0.58071035", "0.5801068", "0.5797361" ]
0.0
-1
Create the test case
public AppTest( String testName ) { super( testName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Testcase createTestcase();", "@Test\n public void testCreate() {\n\n }", "private void generate_test_code()\n {\n int I;\n DataType[] ParamTypes = m_Problem.getParamTypes();\n DataType ReturnType = m_Problem.getReturnType();\n TestCase[] Cases = m_Problem.getTestCases();\n StringBuffer Code = new StringBuffer();\n\n Code.append(\"private:\\n\");\n\n // Generate the vector output function\n Code.append(\"\\ttemplate <typename T> string print_array(const vector<T> &V) { ostringstream os; os << \\\"{ \\\"; for (typename vector<T>::const_iterator iter = V.begin(); iter != V.end(); ++iter) os << \\'\\\\\\\"\\' << *iter << \\\"\\\\\\\",\\\"; os << \\\" }\\\"; return os.str(); }\\n\\n\");\n\n // Generate the verification function\n generate_verification_code(Code, ReturnType);\n\n // Generate the individual test cases\n Code.append(\"\\n\");\n\n /*\n * Generate the test wrapper function that can call\n * either all or individual test cases. (-1 for all)\n */\n Code.append(\"public:\\n\");\n Code.append(\"\\tvoid run_test(int Case) { \\n\");\n Code.append(\"\\t\\tint n = 0;\\n\\n\");\n for (I = 0; I < Cases.length; ++I)\n generate_test_case(I, Code, ParamTypes, ReturnType, Cases[I]);\n // next\n Code.append(\"\\t}\\n\");\n\n // Insert the cut tags\n Code.insert(0, k_BEGINCUT);\n Code.append(k_ENDCUT);\n\n m_Tags.put(k_TESTCODE, Code.toString());\n }", "@Test\n public void autocreateLesson() throws Exception{\n\n }", "@Test\n public void shouldCreateCase() {\n assertThat(DatabaseHelper.getCaseDao().queryForAll().size(), is(0));\n\n TestEntityCreator.createCase();\n\n // Assure that the case has been successfully created\n assertThat(DatabaseHelper.getCaseDao().queryForAll().size(), is(1));\n }", "public void createTestCase(String testName) {\r\n\t\tif (!active) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (testName == null || testName.isEmpty()) {\r\n\t\t\tthrow new ConfigurationException(\"testName must not be null or empty\");\r\n\t\t}\r\n\t\t\r\n\t\tif (applicationId == null) {\r\n\t\t\tcreateApplication();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tJSONObject testJson = getJSonResponse(Unirest.post(url + TESTCASE_API_URL)\r\n\t\t\t\t\t.field(\"name\", testName)\r\n\t\t\t\t\t.field(\"application\", applicationId));\r\n\t\t\ttestCaseId = testJson.getInt(\"id\");\r\n\t\t} catch (UnirestException | JSONException e) {\r\n\t\t\tthrow new SeleniumRobotServerException(\"cannot create test case\", e);\r\n\t\t}\r\n\t}", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "TestTarget createTestTarget();", "Case createCase();", "@BeforeMethod\r\n\tpublic void startTestCase() {\n\t\ttest = extent.createTest(testCaseName, testCaseDescription);\r\n\t\ttest.assignAuthor(author);\r\n\t\ttest.assignCategory(category);\r\n\t}", "@Test\r\n\tpublic void createChapterDriver() {\r\n\t\tfinal Object testingData[][] = {\r\n\t\t\t{ // Successful test\r\n\t\t\t\t\"producer3\", 305, null\r\n\t\t\t}, { // Content without year\r\n\t\t\t\t\"producer1\", 305, IllegalArgumentException.class\r\n\t\t\t}, { // A user tries to create an content \r\n\t\t\t\t\"user3\", 305, IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++)\r\n\t\t\tthis.createChapterTemplate((String) testingData[i][0], (Integer) testingData[i][1], (Class<?>) testingData[i][2]);\r\n\t}", "public void createTestSuite(TestSuite testsuite, String[] testcases)\r\n\t\t\tthrows Exception {\r\n\r\n\t\tlogger\r\n\t\t\t\t.info(\"start to create testsuite:\"\r\n\t\t\t\t\t\t+ testsuite.getTestSuiteName());\r\n\t\tint suiteRowNum = addTestSuite(testsuite);\r\n\t\tcaseSuiteMapImpl.addTestCaseBatchByStringArray(testcases, suiteRowNum);\r\n\t\tlogger.info(\"create testsuit:\" + testsuite.getTestSuiteName()\r\n\t\t\t\t+ \" success!\");\r\n\r\n\t}", "private Test createSuite()\n {\n //Let's discover what tests have been scheduled for execution.\n // (we expect a list of fully qualified test class names)\n String tests = System.getProperty(TEST_LIST_PROPERTY_NAME);\n if (tests == null || tests.trim().length() == 0)\n {\n tests = \"\";\n }\n logger.debug(\"specfied test list is: \" + tests);\n\n StringTokenizer st = new StringTokenizer(tests);\n String[] ids = new String[st.countTokens()];\n int n = 0;\n while (st.hasMoreTokens())\n {\n ids[n++] = st.nextToken().trim();\n }\n\n TestSuite suite = new TestSuite();\n for (int i=0; i<n; i++)\n {\n String testName = ids[i];\n if (testName != null && testName.trim().length() > 0)\n {\n try\n {\n Class<?> testClass = Class.forName(testName);\n if ((bc == null)\n && BundleActivator.class.isAssignableFrom(testClass))\n {\n logger.error(\"test \" + testName\n + \" skipped - it must run under felix\");\n }\n else\n {\n suite.addTest(new TestSuite(testClass));\n }\n }\n catch (ClassNotFoundException e)\n {\n logger.error(\"Failed to load standalone test \" + testName);\n }\n }\n }\n return suite;\n }", "@Test\n public void test_create_scenario() {\n try {\n TestData X = new TestData(\"project2.opt\");\n String new_name = \"new_scenario\";\n X.project.create_scenario(new_name);\n assertNotNull(X.project.get_scenario_with_name(new_name));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "TrainingTest createTrainingTest();", "public void shouldCreate() {\n }", "@Test\n public void functionalityTest() {\n new TestBuilder()\n .setModel(MODEL_PATH)\n .setContext(new ModelImplementationGroup3())\n .setPathGenerator(new RandomPath(new EdgeCoverage(100)))\n .setStart(\"e_GoToPage\")\n .execute();\n }", "private String generateJUnitTestCasesSkeletonCode(List<TestCaseList> testCases, ProductMaster product, String packageName, String refClassName, String destinationDirectory, int nameSource, String testExecutionEngine, String testStepOption) {\n\t\tJCodeModel codeModel = new JCodeModel();\r\n\t\tString message = null;\r\n\t\ttry {\r\n\t\t\tif (testExecutionEngine == null)\r\n\t\t\t\ttestExecutionEngine = TAFConstants.TESTENGINE_SEETEST;\r\n\t\t\tlog.info(\"Test Execution Engine : \" + testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\tJClass junitAfterReference = null;\r\n\t\t\tJClass junitBeforeReference = null;\r\n\t\t\tJClass junitTestReference = null;\r\n\t\t\tJClass junitFixMethodOrderReference = null;\r\n\t\t\tJClass junitMethodSortersReference = null;\r\n\t\t\tjunitAfterReference = codeModel.ref(\"org.junit.After\");\r\n\t\t\tjunitBeforeReference = codeModel.ref(\"org.junit.Before\");\r\n\t\t\tjunitTestReference = codeModel.ref(\"org.junit.Test\");\r\n\t\t\tjunitFixMethodOrderReference = codeModel.ref(\"org.junit.FixMethodOrder\");\r\n\t\t\tjunitMethodSortersReference = codeModel.ref(\"org.junit.runners.MethodSorters\");\r\n\r\n\t\t\tfor (TestCaseList testCase : testCases) {\r\n\r\n\t\t\t\t// 1. Create the class for the test case\r\n\t\t\t\tString testCaseName = null;\r\n\t\t\t\tString classPackageName = null;\r\n\t\t\t\tif (testCase.getTestCaseScriptFileName() == null || testCase.getTestCaseScriptFileName().trim().isEmpty()) {\r\n\t\t\t\t\ttestCaseName = ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttestCaseName = testCase.getTestCaseScriptFileName();\r\n\t\t\t\t\tif(testCaseName.contains(\".java\")){\r\n\t\t\t\t\t\ttestCaseName = testCaseName.replace(testCaseName.substring(testCaseName.lastIndexOf(\".\")),\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (testCase.getTestCaseScriptQualifiedName() == null || testCase.getTestCaseScriptQualifiedName().trim().isEmpty()) {\r\n\t\t\t\t\tclassPackageName = packageName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tclassPackageName = testCase.getTestCaseScriptQualifiedName();\r\n\t\t\t\t}\r\n\t\t\t\tJDefinedClass testCaseClass = codeModel._class(classPackageName + \".\" + testCaseName);\r\n\t\t\t\tJDocComment classComment = testCaseClass.javadoc();\r\n\t\t\t\tString javadocCommentClass = \"Automation Script for Testcase : \" + testCase.getTestCaseName()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Product \t\t\t: \" + product.getProductDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase ID\t\t: \" + testCase.getTestCaseId()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase Code \t: \" + testCase.getTestCaseCode()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Description \t\t: \" + testCase.getTestCaseDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test case type \t: \" + testCase.getTestCaseType()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Script Type \t\t: \" + TAFConstants.TESTSCRIPT_TYPE_JUNIT\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test Execution Engine \t: \" + testExecutionEngine\r\n\t\t\t\t\t\t+ \"\\n\" + \"Code generated by TAF on \t: \" + new Date(System.currentTimeMillis());\r\n\t\t\t\tclassComment.append(javadocCommentClass);\r\n\t\t\t\ttestCaseClass.annotate(junitFixMethodOrderReference).param(\"value\", MethodSorters.NAME_ASCENDING);\r\n\r\n\t\t\t\ttestCaseClass = addClassVariablesForTestCaseClass(codeModel, testCaseClass, testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (testStepOption == null)\r\n\t\t\t\t\ttestStepOption = \"SINGLE_METHOD\";\r\n\t\t\t\t// 4. Add methods for the test steps of the test case\r\n\t\t\t\t// 4.a Add the setup and tear down methods\r\n\t\t\t\tJMethod setUpMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"setUp\");\r\n\t\t\t\tJDocComment methodComment1 = setUpMethod.javadoc();\r\n\t\t\t\tString commentString = \"Setup method for testcase\";\r\n\t\t\t\tmethodComment1.append(commentString);\r\n\t\t\t\tsetUpMethod = constructSetUpMethodForTestCase(setUpMethod, testExecutionEngine, refClassName, testCaseName);\r\n\t\t\t\tsetUpMethod.annotate(junitBeforeReference);\r\n\t\t\t\t\r\n\t\t\t\tJMethod tearDownMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"tearDown\");\r\n\t\t\t\tJDocComment methodComment2 = tearDownMethod.javadoc();\r\n\t\t\t\tcommentString = \"Teardown method for the testcase\";\r\n\t\t\t\tmethodComment2.append(commentString);\r\n\t\t\t\ttearDownMethod = constructTearDownMethodForTestCase(tearDownMethod, testExecutionEngine);\r\n\t\t\t\ttearDownMethod.annotate(junitAfterReference);\r\n\t\t\t\t\r\n\t\t\t\tList<TestCaseStepsList> testSteps = testCaseService.listTestCaseSteps(testCase.getTestCaseId());\r\n\t\t\t\tif (testSteps == null || testSteps.isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"No steps in the testcase : \" + testCaseName);\r\n\t\t\t\t\tJMethod testCaseMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\ttestCaseMethod.annotate(junitTestReference);\r\n\t\t\t\t\ttestCaseMethod = constructDefaultTestCaseMethodForTestCase(testCaseMethod, testExecutionEngine, testCase);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(testStepOption.contains(\"SEPARATE_METHOD\")) {\r\n\t\t\t\t\t\tJMethod mainTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"mainTest\");\r\n\t\t\t\t\t\tmainTestStepMethod.annotate(junitTestReference);\r\n\t\t\t\t\t\tString stepMethod = \"\";\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tJMethod testStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testStepName);\r\n\t\t\t\t\t\t\ttestStepMethod = constructTestStepMethodForTestCase(testStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t\tstepMethod = testStepName+\"();\";\r\n\t\t\t\t\t\t\tmainTestStepMethod.body().directStatement(stepMethod);\r\n\t\t\t\t\t\t\tstepMethod = \"\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJMethod singleTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\t\tsingleTestStepMethod.annotate(junitTestReference);\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tsingleTestStepMethod = addTestStepForSingleTestStepMethodForTestCase(singleTestStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\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\tFile sourceFile = new File(destinationDirectory);\r\n\t\t\t\tif (!sourceFile.exists()) {\r\n\t\t\t\t\tlog.info(\"Created Directory for source code generation : \" + destinationDirectory);\r\n\t\t\t\t\tsourceFile.mkdirs();\r\n\t\t\t\t}\r\n\t\t\t\tcodeModel.build(sourceFile);\r\n\t\t\t\tString CLASS_PACKAGE_NAME_FOLDER = classPackageName.replace(\".\", File.separator);\r\n\t\t\t\tlog.info(\"CLASS_PACKAGE_NAME_FOLDER : \" + CLASS_PACKAGE_NAME_FOLDER);\r\n\t\t\t\tmessage = sourceFile.getAbsolutePath() + File.separator + CLASS_PACKAGE_NAME_FOLDER + File.separator + testCaseName + \".java\";\r\n\t\t\t}\r\n\t\t} catch (JClassAlreadyExistsException e) {\r\n\t\t\tlog.error(\"Unable to generate testcase ref source code class\", e);\r\n\t\t\tmessage = \"Failed : Unable to generate testcase ref source code class\";\r\n\t\t} catch (IOException io) {\r\n\t\t\tlog.error(\"Unable to create file in file system\", io);\r\n\t\t\tmessage = \"Failed : Unable to create file in file system\";\r\n\t\t}\r\n\t\t\r\n\t\tlog.debug(\"Success : Generated Testcases source code framework.\" );\r\n\t\treturn message;\r\n\r\n\t}", "@Test // (groups={\"All\"}) //(groups={\"smoke\"})\r\n\tpublic void createLead() {\n\t\tSystem.out.println(\"create\");\r\n\t}", "public TestCase(String name) {\n fName= name;\n }", "public Tests(){\n \n }", "@Test\n void createParkingLot() {\n }", "@Test\n public void testCrear() {\n System.out.println(\"crear\");\n usuarioController.crear(usuario1);\n usuarioController.crear(usuario2);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "public HockeyTeamTest()\n {\n }", "@Test\n public void createProduct() {\n }", "@Test\n public void shouldCreateEpiDataTravel() {\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataTravel(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(1));\n }", "@Test\npublic void TC11(){\n\n}", "TeststepBlock createTeststepBlock();", "protected TestResult createResult() {\n return new TestResult();\n }", "@Test\n public void testProductOfferingCreate() {\n // TODO: test ProductOfferingCreate\n }", "protected TeststepRunner() {}", "LoadTest createLoadTest();", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "public void testZRecordingCreation() {\n\t\tsolo.pressSpinnerItem(3, 1);\n\t\tsolo.clickOnText(\"Begin Rehearsing\");\n\t\tsolo.clickOnText(\"Rec\");\n\t\tsolo.clickOnText(\"Rec\");\n\t\tsolo.typeText(0, \"testName\");\n\t\tsolo.clickOnText(\"Save\");\n\t\t// If file exists already then overwrite it\n\t\tif (solo.searchButton(\"Yes\")) {\n\t\t\tsolo.clickOnButton(\"Yes\");\n\t\t}\n\t\tsolo.pressMenuItem(4);\n\t\tassertTrue(solo.searchText(\"testName\"));\n\t}", "public PerezosoTest()\n {\n }", "@Test\n void scCreation() {\n StandardCalc sc = new StandardCalc();\n }", "public TestPrelab2()\n {\n }", "@Test\n public void testTemplate(){\n }", "public ActivitiTestCase() {\n }", "public void createTestSuite(TestSuite testsuite) throws Exception {\r\n\t\tlogger\r\n\t\t\t\t.info(\"start to create testsuite:\"\r\n\t\t\t\t\t\t+ testsuite.getTestSuiteName());\r\n\t\tint suiteRowNum = addTestSuite(testsuite);\r\n\t\tcaseSuiteMapImpl.addTestCaseBatchByArrayList(testsuite\r\n\t\t\t\t.getTestcaseList(), suiteRowNum);\r\n\t\tlogger.info(\"create testsuite:\" + testsuite.getTestSuiteName()\r\n\t\t\t\t+ \" success!\");\r\n\r\n\t}", "@Test\n public void TestCreateCat() {\n String expectedName = \"Milo\";\n Date expectedBirthDate = new Date();\n\n Cat newCat = AnimalFactory.createCat(expectedName, expectedBirthDate);\n\n Assert.assertEquals(expectedName, newCat.getName());\n Assert.assertEquals(expectedBirthDate, newCat.getBirthDate());\n }", "@Test\n public void testCrearArchivo() {\n System.out.println(\"CrearArchivo\");\n String Ruta = \"\";\n RandomX instance = null;\n instance.CrearArchivo(Ruta);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n void addTask() {\n }", "@Test(priority=1)\r\n\tpublic void createStudentSeraliztion() {\r\n\t\t//for seralization i used java object student.\r\n\t\t\r\n\t\tStudent student = new Student();\r\n\t\t//information look at book tutorial-9.\r\n\t\tstudent .setId(102);\r\n\t\tstudent .setFirstName(\"Mango\");\r\n\t\tstudent .setLastName(\"Rasalu\");\r\n\t\tstudent .setEmail(\"[email protected]\");\r\n\t\tstudent .setProgramme(\"King\");\r\n\t\t//Courses have two courses.wer using ArrayList To hold different courses.\r\n\t\tArrayList<String> courseList = new ArrayList<String>();\r\n\t\tcourseList.add(\"java\");\r\n\t\tcourseList.add(\"Selenium\");\r\n\t\tstudent.setCourses(courseList);\r\n\t\tgiven()\r\n\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t.body(student)\r\n\t\t.when()\r\n\t\t\t.post(\"http://localhost:8085/student\")\r\n\t\t.then()\r\n\t\t\t.statusCode(201)\r\n\t\t\t.assertThat()\r\n\t\t\t.body(\"msg\",equalTo(\"student added\"));\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "TestNode createTestNode();", "@Test\n\tpublic void test04_CreateNewPageUsingExistingTemplate() {\n\t\tinfo(\"Test 4: Create new page using existing template\");\n\t\tString template1 = wTempData.getWikiTemplate(0);\n\t\tString title1 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template1);\n\t\tString template2 = wTempData.getWikiTemplate(1);\n\t\tString title2 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template2);\n\t\tString template3 = wTempData.getWikiTemplate(2);\n\t\tString title3 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template3);\n\t\tString template4 = wTempData.getWikiTemplate(3);\n\t\tString title4 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template4);\n\t\tString template5 = wTempData.getWikiTemplate(4);\n\t\tString title5 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template5);\n\t\t\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open form to create new page\n\t\t*Step Description: \n\t\t\t- Choose path to add new page\n\t\t\t- Click [Add Page] --> [From Template...]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- By default, the [Create Wiki page] is displayed in the [Rich Text] mode */\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t \n\t /*Step Number: 2\n\t\t*Step Name: Step 2: Create new page with Two Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Two Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with two column layout*/\n\t\twikiMg.addSimpleWikiPageByTemplate(template1,title1);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title1);\n\t\tarrayPage.add(title1);\n\t \n\t\t /*Step Number: 3\n\t\t*Step Name: Step 3: Create new page with Three Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Three Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with three column layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template2,title2);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title2);\n\t\tarrayPage.add(title2);\n\t\t\n\t\t /*Step Number: 4\n\t\t*Step Name: Step 4: Create new page with Status Meeting layout\n\t\t*Step Description: \n\t\t\t- Choose template \"Status Meeting\" in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Status Meeting layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template3,title3);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title3);\n\t\tarrayPage.add(title3);\n\t\t\n\t\t /*Step Number: 5\n\t\t*Step Name: Step 5: Create new page with HOW-TO Guide layout\n\t\t*Step Description: \n\t\t\t- Choose template [HOW-TO Guide] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with HOW-TO Guide layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template4,title4);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title4);\n\t\tarrayPage.add(title4);\n\t\t\n\t\t/*Step Number: 6\n\t\t*Step Name: Step 6: Create new page with Leave Planning layout\n\t\t*Step Description: \n\t\t\t- Choose template [Leave Planning] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Leave Planning layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template5,title5);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title5);\n\t\tarrayPage.add(title5);\n \t}", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test\n public void testFindByCreate() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // find item\n\n String action2 = \"5\";\n\n Input input2 = new StubInput(new String[]{action2, create, yes});\n new StartUI(input2).init(tracker);\n\n }", "public BookcaseTest () {\n }", "private static void testgen(String[] args) {\n JSONParser parser = new JSONParser();\n TestgenOptions options = parseTestgenOptions(args);\n CLI.setVerbosity(options);\n if (options.numTasks < 1) {\n API.throwCLIError(\"Invalid number of tasks provided (-n): \" + options.numTasks);\n }\n\n Map<String, Object> objects;\n if (!options.inFile.isEmpty()) {\n objects = parser.parse(options.inFile, true);\n } else if (!options.inString.isEmpty()) {\n objects = parser.parse(options.inString, false);\n } else {\n API.throwCLIError(\"No input JSON provided (-i)\");\n return;\n }\n\n if (objects.get(\"initialState\") == null || objects.get(\"goalState\") == null) {\n API.throwCLIError(\"Both an initial state and a goal state must be provided.\");\n }\n\n TestCaseGenerator generator = new TestCaseGenerator(\n (SystemState) objects.get(\"initialState\"),\n (GoalState) objects.get(\"goalState\"),\n options.numTasks,\n options.optimalPlan,\n options.output\n );\n\n ArrayList<Task> tasks = generator.generateTestCase();\n ArrayList<Optimization> ops = generator.generateOptimizations();\n try{\n generator.testCaseToJSON(tasks, ops, options.perturbations);\n } catch (IOException e){\n API.throwCLIError(\"Failed to write testCase to JSON\");\n }\n\n }", "@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}", "public void testCreation() {\n // First the two standard constructors with meaningfull data.\n // Also test the different setters.\n final String title1 = \"Title1\";\n final String cleavage1 = \"ARNDCQ\";\n final String restrict1 = \"PG\";\n final char[] cv1 = cleavage1.toCharArray();\n final char[] rs1 = restrict1.toCharArray();\n final String pos1 = \"Cterm\";\n final String pos2 = \"nteRm\";\n final int miscleavage = 3;\n\n Enzyme e = new Enzyme(title1, cleavage1, restrict1, pos1);\n Assert.assertEquals(title1, e.getTitle());\n Assert.assertEquals(new String(cv1), new String(e.getCleavage()));\n Assert.assertEquals(new String(rs1), new String(e.getRestrict()));\n Assert.assertEquals(Enzyme.CTERM, e.getPosition());\n Assert.assertEquals(1, e.getMiscleavages());\n\n final String otherTitle = \"other\";\n final String otherCleavage = \"HIK\";\n final String otherRestrict = \"MN\";\n final char[] otherCv = otherCleavage.toCharArray();\n final char[] otherRs = otherRestrict.toCharArray();\n\n e.setTitle(otherTitle);\n e.setCleavage(otherCleavage);\n e.setRestrict(otherRestrict);\n e.setPosition(Enzyme.NTERM);\n e.setMiscleavages(miscleavage);\n\n Assert.assertEquals(otherTitle, e.getTitle());\n Assert.assertEquals(new String(otherCv), new String(e.getCleavage()));\n Assert.assertEquals(new String(otherRs), new String(e.getRestrict()));\n Assert.assertEquals(Enzyme.NTERM, e.getPosition());\n Assert.assertEquals(miscleavage, e.getMiscleavages());\n\n e.setCleavage(cleavage1);\n e.setRestrict(rs1);\n Assert.assertEquals(new String(cv1), new String(e.getCleavage()));\n Assert.assertEquals(new String(rs1), new String(e.getRestrict()));\n\n e = new Enzyme(null, cleavage1, null, pos2, 5);\n Assert.assertTrue(e.getTitle() == null);\n Assert.assertEquals(new String(cv1), new String(e.getCleavage()));\n Assert.assertTrue(e.getRestrict() == null);\n Assert.assertEquals(Enzyme.NTERM, e.getPosition());\n Assert.assertEquals(5, e.getMiscleavages());\n\n try {\n e = new Enzyme(title1, null, restrict1, null);\n fail(\"No NullPointerException thrown when Enzyme constructor was presented with a 'null' cleavage and position String!\");\n } catch(NullPointerException npe) {\n // Okay, this is what we wanted.\n }\n\n try {\n e = new Enzyme(title1, cleavage1, restrict1, null);\n fail(\"No NullPointerException thrown when Enzyme constructor was presented with a 'null' position String!\");\n } catch(NullPointerException npe) {\n // Okay, this is what we wanted.\n }\n }", "public static void main(String[] args) {\n testFactoryMethod();\n }", "public static void startTestCase(String testCase) throws Exception\n\t{\n\t\tint currentSuiteID;\n\t\tint currentTestCaseID;\n\t\tString currentTestSuite;\n\t\tString currentTestCaseName;\n\t\tXls_Reader currentTestSuiteXLS;\n\t\tXls_Reader Wb = new Xls_Reader(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\java\\\\com\\\\test\\\\automation\\\\uIAutomation\\\\data\\\\Controller.xlsx\");\n\t\tString TestURL = VerifyLoginWithValidCredentials.CONFIG.getProperty(\"TestURL\");\n\t\tfor (currentSuiteID = 2; currentSuiteID <= Wb.getRowCount(ObjectRepository.TEST_SUITE_SHEET); currentSuiteID++)\n\t\t{\n\t\t\tcurrentTestSuite = Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.Test_Suite_ID, currentSuiteID);\n\t if(Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.RUNMODE, currentSuiteID).equals(ObjectRepository.RUNMODE_YES))\n\t \t\t{\n\t\t\t\tcurrentTestSuiteXLS = new Xls_Reader(\"src/config/\" + currentTestSuite + \".xlsx\");\n\t\t\t\tfor (currentTestCaseID = 2; currentTestCaseID <= currentTestSuiteXLS.getRowCount(ObjectRepository.TEST_CASES_SHEET); currentTestCaseID++) \n\t\t\t\t{\n\t\t\t\t\tcurrentTestCaseName = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, ObjectRepository.Test_Case_ID, currentTestCaseID);\n\t\t\t\t\tif (currentTestCaseName.equals(testCase))\n\t {\n\t\t\t\t\t\tString desc = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Description\", currentTestCaseID);\n\t\t\t\t\t\tString subModule = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Sub Module\", currentTestCaseID);\n\t\t\t\t\t\tLog.test = Log.extent.startTest(currentTestCaseName, desc).assignCategory(currentTestSuite + \" Module\", subModule + \" Sub-Module\");\n\t\t\t\t\t\tLog.test.log(LogStatus.INFO, \"Testing on URL : \" + TestURL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public AllLaboTest() {\n }", "@Test\n\tpublic static void create_Task() {\n\t\tString testName = \"Valid Scenario- When all the data are valid\";\n\t\tlog.info(\"Valid Scenario: Create Task\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Task Controller- Create Task\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 201);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}", "@Test\n public void testCarregarTrimestre() {\n }", "@Test\n\tpublic void constructortest() {\n\t\tMainDish dessertTest = new MainDish(\"quiche\");\n\t\tassertTrue(dessertTest.getName().equals(\"quiche\"));\n\t}", "@Test\n public void test() {\n Solution solution = new Solution();\n\n }", "@Test\n public void test() {\n Solution solution = new Solution();\n\n }", "public Vending_MachineTest()\n {\n // initialise instance variables\n \n \n }", "@Test\r\n public void testNew_doctor() {\r\n System.out.println(\"new_doctor\");\r\n doctor instance = new doctor();\r\n instance.new_doctor();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Before\n\tpublic void setUp() {\n\t\tcompteTest = FactoryCompte.getCompteVide();\n\t\tcompteTest.setIdClient(3630);\n\t\tcompteTest.setBalance(89.8);\n\t\tcompteTest.setNegativeBalanceAllowed(false);\n\t\t\n\t\tinstance.createWithId(compteTest);\t\t\n\t}", "@Before\n public void setUp()\n {\n bookingS1 = new src.ticketbookingsystem.BookingSystem();\n bookingS1.newFlight(\"LHR - KIX\", \"11:30\", \"ANA 23\", \"15\");\n System.out.println(\"Setup flight done.\");\n bookingS1.newTicket(15, 5, \"Bobby Lee\");\n System.out.println(\"Setup Bobby done.\");\n bookingS1.newTicket(25, 3, \"Khalyla Lee\");\n System.out.println(\"Setup Khalyla done.\");\n System.out.println();\n }", "public WizardsTest(String testName) {\n super(testName);\n }", "@Test\r\n\tpublic void testConstructor() {\r\n\t\tnew ConstructorTestClass();\r\n\t}", "@Test\r\n\tpublic void testConstructor() {\r\n\t\tnew ConstructorTestClass();\r\n\t}", "@Test\n\tvoid testLectureChoixInt() {\n\t\t\n\t}", "private String generateTestNGTestCasesSkeletonCode(List<TestCaseList> testCases, ProductMaster product, String packageName, String refClassName, String destinationDirectory, int nameSource, String testExecutionEngine, String testStepOption) {\n\t\tJCodeModel codeModel = new JCodeModel();\r\n\t\tString message = null;\r\n\t\ttry {\r\n\t\t\tif (testExecutionEngine == null)\r\n\t\t\t\ttestExecutionEngine = TAFConstants.TESTENGINE_SEETEST;\r\n\t\t\tlog.info(\"Test Execution Engine : \" + testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\tJClass testNGAfterMethodReference = null;\r\n\t\t\tJClass testNGBeforeMethodReference = null;\r\n\t\t\tJClass testNGTestReference = null;\r\n\t\t\ttestNGAfterMethodReference = codeModel.ref(\"org.testng.annotations.AfterMethod\");\r\n\t\t\ttestNGBeforeMethodReference = codeModel.ref(\"org.testng.annotations.BeforeMethod\");\r\n\t\t\ttestNGTestReference = codeModel.ref(\"org.testng.annotations.Test\");\r\n\r\n\t\t\tfor (TestCaseList testCase : testCases) {\r\n\r\n\t\t\t\t// 1. Create the class for the test case\r\n\t\t\t\t//String testCaseName = getTestCaseClassName(testCase, nameSource);\r\n\t\t\t\t//String testCaseName = null;\r\n\t\t\t\tString testCaseName = null;\r\n\t\t\t\tString classPackageName = null;\r\n\t\t\t\tif (testCase.getTestCaseScriptFileName() == null || testCase.getTestCaseScriptFileName().trim().isEmpty()) {\r\n\t\t\t\t\ttestCaseName = ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttestCaseName = testCase.getTestCaseScriptFileName();\r\n\t\t\t\t\tif(testCaseName.contains(\".java\")){\r\n\t\t\t\t\t\ttestCaseName = testCaseName.replace(testCaseName.substring(testCaseName.lastIndexOf(\".\")),\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (testCase.getTestCaseScriptQualifiedName() == null || testCase.getTestCaseScriptQualifiedName().trim().isEmpty()) {\r\n\t\t\t\t\tclassPackageName = packageName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tclassPackageName = testCase.getTestCaseScriptQualifiedName();\r\n\t\t\t\t}\r\n\t\t\t\tJDefinedClass testCaseClass = codeModel._class(classPackageName + \".\" + testCaseName);\r\n\t\t\t\tJDocComment classComment = testCaseClass.javadoc();\r\n\t\t\t\tString javadocCommentClass = \"Automation Script for Testcase : \" + testCase.getTestCaseName()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Product : \" + product.getProductDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase ID \t\t: \" + testCase.getTestCaseId()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase Code\t\t: \" + testCase.getTestCaseCode()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Description \t\t: \" + testCase.getTestCaseDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test case type \t: \" + testCase.getTestCaseType()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Script Type \t\t: \" + TAFConstants.TESTSCRIPT_TYPE_TESTNG\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test Execution Engine \t: \" + testExecutionEngine\r\n\t\t\t\t\t\t+ \"\\n\" + \"Code generated by TAF on \t: \" + new Date(System.currentTimeMillis());\r\n\t\t\t\tclassComment.append(javadocCommentClass);\r\n\t\t\t\t\r\n\t\t\t\ttestCaseClass = addClassVariablesForTestCaseClass(codeModel, testCaseClass, testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\t\t// 4.a Add the setup method\r\n\t\t\t\tJMethod setUpMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"setUp\");\r\n\t\t\t\tJDocComment methodComment1 = setUpMethod.javadoc();\r\n\t\t\t\tString commentString = \"Setup method for testcase\";\r\n\t\t\t\tmethodComment1.append(commentString);\r\n\t\t\t\tsetUpMethod = constructSetUpMethodForTestCase(setUpMethod, testExecutionEngine, refClassName, testCaseName);\r\n\t\t\t\tsetUpMethod.annotate(testNGBeforeMethodReference);\r\n\t\t\t\t\r\n\t\t\t\tJMethod tearDownMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"tearDown\");\r\n\t\t\t\tJDocComment methodComment2 = tearDownMethod.javadoc();\r\n\t\t\t\tcommentString = \"Teardown method for the testcase\";\r\n\t\t\t\tmethodComment2.append(commentString);\r\n\t\t\t\ttearDownMethod = constructTearDownMethodForTestCase(setUpMethod, testExecutionEngine);\r\n\t\t\t\ttearDownMethod.annotate(testNGAfterMethodReference);\r\n\t\t\t\t\r\n\t\t\t\tif (testStepOption == null)\r\n\t\t\t\t\ttestStepOption = \"SINGLE_METHOD\";\r\n\t\t\t\tList<TestCaseStepsList> testSteps = testCaseService.listTestCaseSteps(testCase.getTestCaseId());\r\n\t\t\t\tif (testSteps == null || testSteps.isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"No steps in the testcase : \" + testCaseName);\r\n\t\t\t\t\tJMethod testCaseMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\ttestCaseMethod.annotate(testNGTestReference);\r\n\t\t\t\t\ttestCaseMethod = constructDefaultTestCaseMethodForTestCase(testCaseMethod, testExecutionEngine, testCase);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(testStepOption.contains(\"SEPARATE_METHOD\")) {\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tJMethod testStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testStepName);\r\n\t\t\t\t\t\t\ttestStepMethod.annotate(testNGTestReference);\r\n\t\t\t\t\t\t\ttestStepMethod = constructTestStepMethodForTestCase(testStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJMethod singleTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\t\tsingleTestStepMethod.annotate(testNGTestReference);\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tsingleTestStepMethod = addTestStepForSingleTestStepMethodForTestCase(singleTestStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tFile sourceFile = new File(destinationDirectory);\r\n\t\t\t\tif (!sourceFile.exists()) {\r\n\t\t\t\t\tlog.info(\"Created Directory for source code generation : \" + destinationDirectory);\r\n\t\t\t\t\tsourceFile.mkdirs();\r\n\t\t\t\t}\r\n\t\t\t\tcodeModel.build(sourceFile);\r\n\t\t\t\tmessage = sourceFile.getAbsolutePath() + DEFAULT_PACKAGE_NAME_FOLDER + File.separator + testCaseName + \".java\";\r\n\t\t\t}\r\n\t\t} catch (JClassAlreadyExistsException e) {\r\n\t\t\tlog.error(\"Unable to generate testcase ref source code class\", e);\r\n\t\t\tmessage = \"Failed : Unable to generate testcase ref source code class\";\r\n\t\t} catch (IOException io) {\r\n\t\t\tlog.error(\"Unable to create file in file system\", io);\r\n\t\t\tmessage = \"Failed : Unable to create file in file system\";\r\n\t\t}\r\n\t\t\r\n\t\tlog.debug(\"Success : Generated Testcases source code framework.\" );\r\n\t\treturn message;\r\n\r\n\t}", "@Test\n\tpublic void testDoGeneration() {\n\t}", "public ClimbingClubTest()\n {\n \n }", "public AcceptanceTestRun() {\n }", "public NewTestWizardPage() {\n\t\tsuper(true, \"New Groovy Test Settings\");\n\n\t\tsetTitle(\"Groovy Test Class\");\n\t\tsetDescription(\"Create a new Groovy unit test class\");\n\t}", "public AcuityTest() {\r\n }", "@Test\n public void onCreate() {\n }", "@Test\n public void onCreate() {\n }", "@Test\n public void testCarregarAno() {\n }", "@Test\n\tpublic void testConstructor() {\n\t\tnew ConstructorTestClass();\n\t}", "@Test\n\tpublic void testConstructor() {\n\t\tnew ConstructorTestClass();\n\t}", "public void testWizards() {\n // open new file wizard\n NewFileWizardOperator nfwo = NewFileWizardOperator.invoke();\n nfwo.selectProject(\"SampleProject\");\n nfwo.selectCategory(\"Java\");\n nfwo.selectFileType(\"Java Class\");\n // go to next page\n nfwo.next();\n // create operator for the next page\n NewJavaFileNameLocationStepOperator nfnlso = new NewJavaFileNameLocationStepOperator();\n nfnlso.txtObjectName().typeText(\"MyNewClass\");\n // finish wizard\n //nfnlso.finish();\n // cancel wizard\n nfnlso.cancel();\n }", "public static Test suite() {\n return createModuleTest(WizardsTest.class);\n }", "@Test\n public void z_topDown_TC02() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }", "@Test\n public void testGenerarIdentificacion() {\n }", "@Test\n public void detailsTest() {\n // TODO: test details\n }", "@Test\n public void detailsTest() {\n // TODO: test details\n }", "public void run(TestCase testCase) {\n }", "@Test\n public void EmployeesTest() {\n\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void createTestData() {\n\t\t\n\t\tusers.put(\"User0\", objectHandler.createUser(25.0));\n\t\tusers.put(\"User1\", objectHandler.createUser(1.0));\n\t\t\n\t\tdocuments.put(\"Doc0\", objectHandler.createDocument(\"mydoc\", 25, '4', 'C'));\n\t\tdocuments.put(\"Doc1\", objectHandler.createDocument(\"another\", 15, '3', 'B'));\n\t\t\n\t\tusers.get(\"User0\").addDocument(documents.get(\"Doc0\"));\n\t\tusers.get(\"User1\").addDocument(documents.get(\"Doc1\"));\n\t\t\n\t\tPrinterCapability capability1 = objectHandler.createPrinterCapability(true, false, true, true);\n\t\tPrinterCapability capability2 = objectHandler.createPrinterCapability(false, true, true, false);\n\t\tPrinterCapability capability3 = objectHandler.createPrinterCapability(false, true, true, false);\n\t\t\n\t\tPrinterPricing pricing = objectHandler.createPrinterPricing(0.03, 0.14, 0.06, 0.24);\n\t\t\n\t\tPrinterCapacity capacity1 = objectHandler.createPrinterCapacity(25, 0, 10, 30);\n\t\tPrinterCapacity capacity2 = objectHandler.createPrinterCapacity(0, 10, 15, 0);\n\t\tPrinterCapacity capacity3 = objectHandler.createPrinterCapacity(0, 10, 15, 0);\n\t\t\n\t\tprinters.put(\"Printer0\", objectHandler.createPrinter(\"A4All\", capability1, pricing, capacity1, objectHandler.createPrinterStatus()));\n\t\tprinters.put(\"Printer1\", objectHandler.createPrinter(\"A3B\", capability2, pricing, capacity2, objectHandler.createPrinterStatus()));\n\t\tprinters.put(\"Printer2\", objectHandler.createPrinter(\"A3B-rip\", capability3, pricing, capacity3, objectHandler.createPrinterStatus()));\n\t\t\n\t\tVDMSet status = new VDMSet();\n\t\tstatus.add(\"needFixing\");\n\t\tprinters.get(\"Printer2\").break_(status);\n\t}", "@Test\n public void testCrearBibliotecario() {\n System.out.println(\"BibliotecaController\");\n String email = \"mail\";\n String login = \"login\";\n String password = \"pass\";\n String nif = \"nif\";\n BibliotecarioController instance = new BibliotecarioController();\n Bibliotecario result = instance.crearBibliotecario(email, login, password, nif);\n assertEquals(email, result.getEmail());\n assertEquals(login, result.getLogin());\n assertEquals(password, result.getPassword());\n assertEquals(nif , result.getNif());\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testGatewayCreateProducerChef() {\n // TODO: test GatewayCreateProducerChef\n }", "public Test TestStart(boolean run){\n Test theTest = new Test(\n \"Test Start\",//Test Title\n CLASSNAME,//Class Name\n \"start()\",//Method Being Tested\n \"A test to seethe slide can start\", //Description\n \"N/A\", //Input Data\n \"True\" //Expected output\n ); \n \n \n \n \n \n if(run){\n theTest.hasRun();\n try{\n sl.start();\n theTest.setPassed(true);\n }catch(Exception e){\n theTest.setPassed(false);\n }\n \n }\n return theTest;\n }", "public ProjektTest()\n {\n }", "@Test\n\tpublic void testHardPuzzleGeneration() {\n\t}", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void allAcctsStdUserCreation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether the user can successfully enter details in Add new user page and registers it\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation();\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewStdUser(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile)\n\t\t.AdduserConfirmationPage()\n\t\t.confirmationPageVerificationLinks();\n\t}", "@Test\n\tpublic void createNewBankTest() {\n\t\tBank bank = data.createNewBank();\n\t\tassertEquals(bankTest, bank);\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void createSuite(String gridProject, String suiteName, String includeCategory) throws IOException\n\t{\n\t\tfileNames =\"\";\n\t\timportStatements =\"\";\n\t\t\n\t\tString classesDetails[];\n\t\tString classesNames;\n\t\tString classesImportStatements;\n\t\t\n\t\t\tclassesDetails = getTestClassNames(\"../\"+gridProject);\n\t\t\tclassesNames = classesDetails[0].replaceFirst(\" , \",\"\");\n\t\t\tclassesImportStatements = classesDetails[1];\n\t\t\t\t\n\t\t\tFileOutputStream fout; \n \t\t PrintStream prints; \n\n\t\t File file = new File(\"../common/src/com/oracle/pgbu/common/helpers/\"+suiteName+\".java\"); \n\t\t\tfout = new FileOutputStream(file); \n\t prints = new PrintStream(fout); \n\t prints.println(\"package com.oracle.pgbu.common.helpers;\\n\");\n\t prints.println(\"import com.oracle.pgbu.common.categories.ParallelCategories;\\n\");\n\t \tprints.println(\"import org.junit.runner.RunWith;\\n\");\n\t prints.println(\"import org.junit.runners.Suite.SuiteClasses;\\n\");\n\t prints.println(classesImportStatements+\"\\n\");\n\t \n\t if (!includeCategory.equals(\"All\"))\n\t { \n\t \t prints.println(\"import org.junit.experimental.categories.Categories.IncludeCategory;\\n\");\n\t \t prints.println(\"import com.oracle.pgbu.common.categories.\"+includeCategory+\";\\n\");\n\t \t\n\t prints.println(\"@IncludeCategory(\"+includeCategory+\".class)\");\n\t \n\t \t }\n\t \n\t prints.println(\"@RunWith(ParallelCategories.class)\");\n\t prints.println(\"@SuiteClasses({ \"+ classesNames +\" })\\n\");\n\t prints.println(\"public class \"+suiteName+\" { \\n }\");\n\t \n\t fout.close(); \n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\ttestObj = new EdgeTable(\"1|test\");\r\n\t\ttestObj.makeArrays();\r\n\t}", "@Test\r\n public void testCrear() throws Exception {\r\n System.out.println(\"crear\");\r\n String pcodigo = \"bravos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n MultiReparacion instance = new MultiReparacion();\r\n Reparacion expResult = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n Reparacion result = instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n \r\n assertEquals(expResult.getCodigo(), result.getCodigo());\r\n assertEquals(expResult.getNombre(), result.getNombre());\r\n assertEquals(expResult.getTipo(), result.getTipo());\r\n assertEquals(expResult.getPlacaVehiculo(), result.getPlacaVehiculo());\r\n assertEquals(expResult.getFechaAsignacion(), result.getFechaAsignacion());\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }" ]
[ "0.81283677", "0.6874562", "0.68583983", "0.6802808", "0.675316", "0.67282486", "0.6657648", "0.65971994", "0.65593016", "0.6553712", "0.6546584", "0.6538934", "0.6538514", "0.65184474", "0.6518316", "0.64980024", "0.64724445", "0.6466226", "0.6465721", "0.6435358", "0.64273566", "0.64136714", "0.6413018", "0.6369979", "0.6351548", "0.63515025", "0.63477296", "0.6331806", "0.63248795", "0.6321431", "0.62964433", "0.6294108", "0.62838215", "0.6283075", "0.6268399", "0.62637925", "0.6262718", "0.6259338", "0.625931", "0.6256794", "0.62527776", "0.62508386", "0.6245588", "0.62378514", "0.6235432", "0.6233658", "0.6223998", "0.62224543", "0.62208647", "0.62203777", "0.62200344", "0.6206722", "0.6201702", "0.61985296", "0.61970264", "0.61926466", "0.6187957", "0.6180819", "0.61778957", "0.6176379", "0.6176379", "0.61722463", "0.6166145", "0.6159052", "0.61578643", "0.6156937", "0.61532444", "0.61532444", "0.61474574", "0.6141149", "0.6131061", "0.6129804", "0.61297864", "0.6124746", "0.6114458", "0.61087507", "0.61087507", "0.6107131", "0.610554", "0.610554", "0.61046946", "0.61033076", "0.61007833", "0.61003697", "0.60682094", "0.60682094", "0.6063922", "0.6058757", "0.6056857", "0.60423434", "0.604163", "0.60326576", "0.6028278", "0.6028272", "0.6019412", "0.60183406", "0.60140324", "0.60111547", "0.6009298", "0.60073847", "0.6000861" ]
0.0
-1
SOAP Binding: Difference between Document and RPC Style Web Services
@WebService public interface ManualService { @WebMethod public int arrival(int regionCode, String berthCode); @WebMethod public int departure(int regionCode, String berthCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}", "@WebService(targetNamespace = \"http://www.example.org/s2/\", name = \"s2\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface S2 {\n\n @WebMethod(operationName = \"S2Operation\", action = \"http://www.example.org/s2/S2Operation\")\n @WebResult(name = \"FulfillmentResponse\", targetNamespace = \"http://www.example.org/s2/\", partName = \"parameters\")\n public FulfillmentResponse s2Operation(\n @WebParam(partName = \"parameters\", name = \"FulfillmentRequest\", targetNamespace = \"http://www.example.org/s2/\")\n FulfillmentRequest parameters\n );\n}", "@WebService(targetNamespace = \"http://example.org/signature\", name = \"SignatureDocumentLiteral\")\n@XmlSeeAlso({ ObjectFactory.class })\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface SignatureDocumentLiteral\n{\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInAlternate\", output = \"http://example.org/action/SignatureOutAlternate\")\n @WebMethod(operationName = \"Sign2\", action = \"http://example.org/action/SignatureInAlternate\")\n public java.lang.String sign2(@WebParam(partName = \"SignatureIn\", name = \"SignatureIn\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureIn);\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInEmpty\", output = \"http://example.org/action/SignatureOutEmpty\")\n @WebMethod(operationName = \"Sign3\", action = \"http://example.org/action/SignatureInEmpty\")\n public java.lang.String sign3();\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInAlternateEmpty\", output = \"http://example.org/action/SignatureOutAlternateEmpty\")\n @WebMethod(operationName = \"Sign4\", action = \"http://example.org/action/SignatureInAlternateEmpty\")\n public java.lang.String sign4();\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInMultipart\", output = \"http://example.org/action/SignatureOutMultipart\")\n @WebMethod(operationName = \"Sign6\", action = \"http://example.org/action/SignatureInMultipart\")\n public java.lang.String sign6(@WebParam(partName = \"parameters\", name = \"SignatureInMultipartMessage\", targetNamespace = \"http://example.org/signature\")\n SignatureInMultipartMessage parameters);\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureIn\", output = \"http://example.org/action/SignatureOut\")\n @WebMethod(operationName = \"Sign1\", action = \"http://example.org/action/SignatureIn\")\n public java.lang.String sign1(@WebParam(partName = \"SignatureIn\", name = \"SignatureIn\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureIn);\n\n @Action(input = \"http://example.org/action/SignatureEmptyPartIn\", output = \"http://example.org/action/SignatureEmptyPartOut\")\n @WebMethod(operationName = \"Sign5\", action = \"http://example.org/action/SignatureEmptyPartIn\")\n public void sign5();\n\n @WebResult(name = \"SignatureOutHeaderMember\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOutHeaderMember\")\n @Action(input = \"http://example.org/action/SignatureHeaderIn\", output = \"http://example.org/action/SignatureHeaderReply\", fault = { @FaultAction(className = SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.class, value = \"http://example.org/action/SignatureHeaderFault\") })\n @WebMethod(operationName = \"Sign7\", action = \"http://example.org/action/SignatureHeaderIn\")\n public java.lang.String sign7(@WebParam(partName = \"SignatureInHeaderMember\", name = \"SignatureInHeaderMember\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureInHeaderMember,\n @WebParam(partName = \"HeaderText\", mode = WebParam.Mode.INOUT, name = \"SignatureOutHeader\", targetNamespace = \"http://example.org/signature\", header = true)\n javax.xml.ws.Holder<java.lang.String> headerText) throws SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage;\n\n}", "@WebService(name = \"Servicio\", targetNamespace = \"http://Servicio/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Servicio {\n\n\n /**\n * \n * @return\n * returns java.util.List<servicio.Persona>\n */\n @WebMethod(operationName = \"ListPersons\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ListPersons\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersons\")\n @ResponseWrapper(localName = \"ListPersonsResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersonsResponse\")\n @Action(input = \"http://Servicio/Servicio/ListPersonsRequest\", output = \"http://Servicio/Servicio/ListPersonsResponse\")\n public List<Persona> listPersons();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Object\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"readPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPerson\")\n @ResponseWrapper(localName = \"readPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/readPersonRequest\", output = \"http://Servicio/Servicio/readPersonResponse\")\n public Object readPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/updatePersonRequest\", output = \"http://Servicio/Servicio/updatePersonResponse\")\n public String updatePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/deletePersonRequest\", output = \"http://Servicio/Servicio/deletePersonResponse\")\n public String deletePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPerson\")\n @ResponseWrapper(localName = \"insertPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/insertPersonRequest\", output = \"http://Servicio/Servicio/insertPersonResponse\")\n public String insertPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n}", "@WebService\r\n@SOAPBinding(style = Style.RPC)\r\n// @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL) // optional\r\npublic interface DiaryWebService {\r\n\t@WebMethod\r\n\tString getAllRecord();\r\n}", "@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}", "@WebService(targetNamespace = \"http://www.example.org/BuyMart/\", name = \"BuyMartPortType\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface BuyMartPortType {\n\n @WebMethod(operationName = \"GetOrders\")\n @WebResult(name = \"GetOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public GetOrdersResponse getOrders(\n @WebParam(partName = \"parameters\", name = \"GetOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n GetOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"UpdateOrders\")\n @WebResult(name = \"UpdateOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public UpdateOrdersResponse updateOrders(\n @WebParam(partName = \"parameters\", name = \"UpdateOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n UpdateOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"CreateOrders\")\n @WebResult(name = \"CreateOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public CreateOrdersResponse createOrders(\n @WebParam(partName = \"parameters\", name = \"CreateOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n CreateOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"DeleteOrders\")\n @WebResult(name = \"DeleteOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public DeleteOrdersResponse deleteOrders(\n @WebParam(partName = \"parameters\", name = \"DeleteOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n DeleteOrdersRequest parameters\n );\n}", "@WebService(name = \"DocumentValidationSchemaService\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\")\n@XmlSeeAlso({\n pl.softfly.integ.doc.entity.ObjectFactory.class,\n pl.softfly.integ.endpoint.entity.ObjectFactory.class,\n pl.softfly.integ.entity.ObjectFactory.class,\n pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ObjectFactory.class,\n pl.softfly.integ.shipment.entity.ObjectFactory.class\n})\npublic interface DocumentValidationSchemaService {\n\n\n /**\n * @param arg0\n * @return returns pl.softfly.integ.doc.entity.DocumentHeader\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ValidateResponse\")\n public DocumentHeader validate(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n DocumentHeader arg0);\n\n}", "@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}", "@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}", "public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}", "@WebService(name = \"PaymentMgmtService\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/wsdl/ao/PaymentMgmtService\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface PaymentMgmtService {\n\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrievePaymentHistoryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrievePaymentHistory\", action = \"RetrievePaymentHistory\")\n @WebResult(name = \"RetrievePaymentHistoryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrievePaymentHistory\", partName = \"reply\")\n public RetrievePaymentHistoryResponse retrievePaymentHistory(@WebParam(name = \"RetrievePaymentHistoryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrievePaymentHistory\",\n partName = \"request\")\n RetrievePaymentHistoryRequest request) throws FaultMessage;\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrieveSTRSummaryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrieveSTRSummary\", action = \"RetrieveSTRSummary\")\n @WebResult(name = \"RetrieveSTRSummaryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRSummary\", partName = \"reply\")\n public RetrieveSTRSummaryResponse retrieveSTRSummary(@WebParam(name = \"RetrieveSTRSummaryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRSummary\",\n partName = \"request\")\n RetrieveSTRSummaryRequest request) throws FaultMessage;\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrieveSTRChangeHistoryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrieveSTRChangeHistory\", action = \"RetrieveSTRChangeHistory\")\n @WebResult(name = \"RetrieveSTRChangeHistoryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRChangeHistory\", partName = \"reply\")\n public RetrieveSTRChangeHistoryResponse retrieveSTRChangeHistory(@WebParam(name = \"RetrieveSTRChangeHistoryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRChangeHistory\",\n partName = \"request\")\n RetrieveSTRChangeHistoryRequest request) throws FaultMessage;\n\n}", "@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}", "@WebService(name = \"TerminationCoordinatorPortType\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TerminationCoordinatorPortType {\n\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CompleteOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete\")\n @Oneway\n public void completeOperation(\n @WebParam(name = \"Complete\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CloseOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Close\")\n @Oneway\n public void closeOperation(\n @WebParam(name = \"Close\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CancelOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel\")\n @Oneway\n public void cancelOperation(\n @WebParam(name = \"Cancel\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n}", "@WebService(name = \"NumberGeneratorServiceSoap\", targetNamespace = \"NS_NumGen\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface NumberGeneratorServiceSoap {\n\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/primeRange\")\n @WebResult(name = \"primeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"primeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRange\")\n @ResponseWrapper(localName = \"primeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRangeResponse\")\n public String primeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/compositeRange\")\n @WebResult(name = \"compositeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"compositeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRange\")\n @ResponseWrapper(localName = \"compositeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRangeResponse\")\n public String compositeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/perfectSquaresRange\")\n @WebResult(name = \"perfectSquaresRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"perfectSquaresRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRange\")\n @ResponseWrapper(localName = \"perfectSquaresRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRangeResponse\")\n public String perfectSquaresRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/fibonacciRange\")\n @WebResult(name = \"fibonacciRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"fibonacciRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRange\")\n @ResponseWrapper(localName = \"fibonacciRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRangeResponse\")\n public String fibonacciRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @param n\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/randomNumbers\")\n @WebResult(name = \"randomNumbersResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"randomNumbers\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbers\")\n @ResponseWrapper(localName = \"randomNumbersResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbersResponse\")\n public String randomNumbers(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high,\n @WebParam(name = \"n\", targetNamespace = \"NS_NumGen\")\n int n);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/powersofTwo\")\n @WebResult(name = \"powersofTwoResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"powersofTwo\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwo\")\n @ResponseWrapper(localName = \"powersofTwoResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwoResponse\")\n public String powersofTwo(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/evenRange\")\n @WebResult(name = \"evenRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"evenRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRange\")\n @ResponseWrapper(localName = \"evenRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRangeResponse\")\n public String evenRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/oddRange\")\n @WebResult(name = \"oddRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"oddRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRange\")\n @ResponseWrapper(localName = \"oddRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRangeResponse\")\n public String oddRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/palindromeRange\")\n @WebResult(name = \"palindromeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"palindromeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRange\")\n @ResponseWrapper(localName = \"palindromeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRangeResponse\")\n public String palindromeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n}", "@WebService(name = \"MyServ\", targetNamespace = \"http://myServ\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MyServ {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns double\r\n */\r\n @WebMethod(operationName = \"ConvertMtoKm\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"ConvertMtoKm\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKm\")\r\n @ResponseWrapper(localName = \"ConvertMtoKmResponse\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKmResponse\")\r\n public double convertMtoKm(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n double arg0);\r\n\r\n}", "@WebService(targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", name = \"Baeldung\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Baeldung {\n\n @WebMethod\n @RequestWrapper(localName = \"helloStudent\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudent\")\n @ResponseWrapper(localName = \"helloStudentResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudentResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String helloStudent(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.uwefuchs.demo.soap.apachecxf.endpoint.Student arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getStudents\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudents\")\n @ResponseWrapper(localName = \"getStudentsResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudentsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.uwefuchs.demo.soap.apachecxf.endpoint.StudentMap getStudents();\n}", "@WebService(name = \"LDBSVServiceSoap\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2012_01_13.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2013_11_28.token.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2014_02_20.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2016_02_16.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2007_10_10.ldb.commontypes.ObjectFactory.class\r\n})\r\npublic interface LDBSVServiceSoap {\r\n\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByCRS\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByCRS(\r\n @WebParam(name = \"GetArrivalDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByCRS\")\r\n @WebResult(name = \"GetArrivalBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByCRS(\r\n @WebParam(name = \"GetArrivalBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByCRS\")\r\n @WebResult(name = \"GetDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByCRS(\r\n @WebParam(name = \"GetDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetServiceDetailsByRID\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetServiceDetailsByRID\")\r\n @WebResult(name = \"GetServiceDetailsByRIDResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetServiceDetailsResponseType getServiceDetailsByRID(\r\n @WebParam(name = \"GetServiceDetailsByRIDRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetServiceDetailsByRIDParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryServices\")\r\n @WebResult(name = \"QueryServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryServicesResponseType queryServices(\r\n @WebParam(name = \"QueryServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCode\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCode\")\r\n @WebResult(name = \"GetReasonCodeResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeResponseType getReasonCode(\r\n @WebParam(name = \"GetReasonCodeRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetReasonCodeRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeListResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCodeList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCodeList\")\r\n @WebResult(name = \"GetReasonCodeListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeListResponseType getReasonCodeList(\r\n @WebParam(name = \"GetReasonCodeListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetDisruptionListResponseType\r\n */\r\n @WebMethod(operationName = \"GetDisruptionList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDisruptionList\")\r\n @WebResult(name = \"GetDisruptionListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetDisruptionListResponseType getDisruptionList(\r\n @WebParam(name = \"GetDisruptionListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDisruptionListRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetSourceInstanceNamesResponseType\r\n */\r\n @WebMethod(operationName = \"GetSourceInstanceNames\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetSourceInstanceNames\")\r\n @WebResult(name = \"GetSourceInstanceNamesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetSourceInstanceNamesResponseType getSourceInstanceNames(\r\n @WebParam(name = \"GetSourceInstanceNamesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricDepartureBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricDepartureBoard\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricDepartureBoard\")\r\n @WebResult(name = \"GetHistoricDepartureBoardResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricDepartureBoardResponseType getHistoricDepartureBoard(\r\n @WebParam(name = \"GetHistoricDepartureBoardRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricDepartureBoardRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricServiceDetails\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricServiceDetails\")\r\n @WebResult(name = \"GetHistoricServiceDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricServiceDetailsResponseType getHistoricServiceDetails(\r\n @WebParam(name = \"GetHistoricServiceDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricServiceDetailsRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricTimeLineResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricTimeLine\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricTimeLine\")\r\n @WebResult(name = \"GetHistoricTimeLineResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricTimeLineResponseType getHistoricTimeLine(\r\n @WebParam(name = \"GetHistoricTimeLineRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricTimeLineRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryHistoricServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryHistoricServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryHistoricServices\")\r\n @WebResult(name = \"QueryHistoricServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryHistoricServicesResponseType queryHistoricServices(\r\n @WebParam(name = \"QueryHistoricServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryHistoricServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrDepBoardWithDetails\")\r\n @WebResult(name = \"GetArrDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrDepBoardWithDetails(\r\n @WebParam(name = \"GetArrDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrBoardWithDetails\")\r\n @WebResult(name = \"GetArrBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrBoardWithDetails(\r\n @WebParam(name = \"GetArrBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetDepBoardWithDetails\")\r\n @WebResult(name = \"GetDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getDepBoardWithDetails(\r\n @WebParam(name = \"GetDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDepartures\")\r\n @WebResult(name = \"GetNextDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getNextDepartures(\r\n @WebParam(name = \"GetNextDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDepartures\")\r\n @WebResult(name = \"GetFastestDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getFastestDepartures(\r\n @WebParam(name = \"GetFastestDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDeparturesWithDetails\")\r\n @WebResult(name = \"GetNextDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getNextDeparturesWithDetails(\r\n @WebParam(name = \"GetNextDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDeparturesWithDetails\")\r\n @WebResult(name = \"GetFastestDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getFastestDeparturesWithDetails(\r\n @WebParam(name = \"GetFastestDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n}", "@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}", "@WebService(name = \"WebServiceEntry\", targetNamespace = \"http://ws.adapter.bsoft.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WebServiceEntry {\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String invoke(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") StringArray arg4)\n\t\t\tthrows Exception_Exception;\n\n\t/**\n * \n */\n\t@WebMethod\n\tpublic void startWs();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String transportData(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows Exception_Exception;\n\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}", "@WebService(wsdlLocation=\"https://salescloud-hostname/crmCommonSalesParties/AccountService?WSDL\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/\",\n name=\"AccountService\")\n@XmlSeeAlso(\n { ObjectFactory.class })\npublic interface AccountService\n{\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccountResponse\")\n @ResponseWrapper(localName=\"processCSAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountResponse\")\n @RequestWrapper(localName=\"processCSAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ProcessData processCSAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @RequestWrapper(localName=\"processCSAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountAsync\")\n @Oneway\n public void processCSAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHints/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHintsResponse\")\n @ResponseWrapper(localName=\"getDfltObjAttrHintsResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsResponse\")\n @RequestWrapper(localName=\"getDfltObjAttrHints\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHints\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ObjAttrHints getDfltObjAttrHints(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTime/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTimeResponse\")\n @ResponseWrapper(localName=\"getServiceLastUpdateTimeResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeResponse\")\n @RequestWrapper(localName=\"getServiceLastUpdateTime\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTime\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public XMLGregorianCalendar getServiceLastUpdateTime()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityList/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityListResponse\")\n @ResponseWrapper(localName=\"getEntityListResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListResponse\")\n @RequestWrapper(localName=\"getEntityList\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityList\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public List<ServiceViewInfo> getEntityList()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @RequestWrapper(localName=\"getEntityListAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListAsync\")\n @Oneway\n public void getEntityListAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @RequestWrapper(localName=\"getDfltObjAttrHintsAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsAsync\")\n @Oneway\n public void getDfltObjAttrHintsAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @RequestWrapper(localName=\"getServiceLastUpdateTimeAsync\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeAsync\")\n @Oneway\n public void getServiceLastUpdateTimeAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccountResponse\")\n @ResponseWrapper(localName=\"getAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountResponse\")\n @RequestWrapper(localName=\"getAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult getAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccountResponse\")\n @ResponseWrapper(localName=\"createAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountResponse\")\n @RequestWrapper(localName=\"createAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult createAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccountResponse\")\n @ResponseWrapper(localName=\"updateAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountResponse\")\n @RequestWrapper(localName=\"updateAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult updateAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccountResponse\")\n @ResponseWrapper(localName=\"deleteAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountResponse\")\n @RequestWrapper(localName=\"deleteAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public MethodResult deleteAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccountResponse\")\n @ResponseWrapper(localName=\"mergeAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountResponse\")\n @RequestWrapper(localName=\"mergeAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult mergeAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccountResponse\")\n @ResponseWrapper(localName=\"findAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountResponse\")\n @RequestWrapper(localName=\"findAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult findAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccountResponse\")\n @ResponseWrapper(localName=\"processAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountResponse\")\n @RequestWrapper(localName=\"processAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult processAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @RequestWrapper(localName=\"findAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountAsync\")\n @Oneway\n public void findAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @RequestWrapper(localName=\"updateAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountAsync\")\n @Oneway\n public void updateAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @RequestWrapper(localName=\"createAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountAsync\")\n @Oneway\n public void createAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @RequestWrapper(localName=\"mergeAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountAsync\")\n @Oneway\n public void mergeAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @RequestWrapper(localName=\"getAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountAsync\")\n @Oneway\n public void getAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @RequestWrapper(localName=\"processAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountAsync\")\n @Oneway\n public void processAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @RequestWrapper(localName=\"deleteAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountAsync\")\n @Oneway\n public void deleteAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n}", "@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}", "@WebService(name = \"serverPortType\", targetNamespace = \"urn:server\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ServerPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateRequestResponseType\n */\n @WebMethod(operationName = \"CreateRequest\", action = \"urn:server#CreateRequest\")\n @WebResult(name = \"CreateRequestResponse\", partName = \"parameters\")\n public CreateRequestResponseType createRequest(\n @WebParam(name = \"CreateRequest\", partName = \"parameters\")\n CreateRequestRequestType parameters);\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateIncidentResponseType\n */\n @WebMethod(operationName = \"CreateIncident\", action = \"urn:server#CreateIncident\")\n @WebResult(name = \"CreateIncidentResponse\", partName = \"parameters\")\n public CreateIncidentResponseType createIncident(\n @WebParam(name = \"CreateIncident\", partName = \"parameters\")\n CreateIncidentRequestType parameters);\n\n}", "@WebService(name = \"BonusOperationWebService\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BonusOperationWebService {\n\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundResponse tranformFrznBonusFund(\n @WebParam(name = \"tranformFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundCompensationResponse tranformBonusFundCompensation(\n @WebParam(name = \"tranformBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundResponse tranformBonusFund(\n @WebParam(name = \"tranformBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundResponse tranformUnFrznBonusFund(\n @WebParam(name = \"tranformUnFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundCompensationResponse tranformUnFrznBonusFundCompensation(\n @WebParam(name = \"tranformUnFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundCompensationResponse tranformFrznBonusFundCompensation(\n @WebParam(name = \"tranformFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n}", "@WebService(targetNamespace = \"http://publicar.uytubeLogica/\", name = \"WebServices\")\r\n@XmlSeeAlso({ObjectFactory.class, net.java.dev.jaxb.array.ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface WebServices {\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/cambiarPrivLDRRequest\", output = \"http://publicar.uytubeLogica/WebServices/cambiarPrivLDRResponse\")\r\n public void cambiarPrivLDR(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/operacionPruebaRequest\", output = \"http://publicar.uytubeLogica/WebServices/operacionPruebaResponse\")\r\n public void operacionPrueba();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRPublicasPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRPublicasPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray listarLDRPublicasPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRPorCategoriaRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRPorCategoriaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray listarLDRPorCategoria(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n Privacidad arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verificarDispUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/verificarDispUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean verificarDispUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueSigueRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueSigueResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarUsuariosQueSigue(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarCanalesPublicosPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarCanalesPublicosPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCanalArray listarCanalesPublicosPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarDatosUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarDatosUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtUsuario listarDatosUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/seguirUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/seguirUsuarioResponse\")\r\n public void seguirUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/valorarVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/valorarVideoResponse\")\r\n public void valorarVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n boolean arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoLDRdeUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoLDRdeUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray infoLDRdeUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/mostrarInfoCanalRequest\", output = \"http://publicar.uytubeLogica/WebServices/mostrarInfoCanalResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCanal mostrarInfoCanal(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/agregarVideoListaRequest\", output = \"http://publicar.uytubeLogica/WebServices/agregarVideoListaResponse\")\r\n public void agregarVideoLista(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verDetallesVideoExtRequest\", output = \"http://publicar.uytubeLogica/WebServices/verDetallesVideoExtResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtInfoVideo verDetallesVideoExt(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/responderComentarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/responderComentarioResponse\")\r\n public void responderComentario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n DtFecha arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n java.lang.String arg4\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/memberVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/memberVideoResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean memberVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/agregarVisitaRequest\", output = \"http://publicar.uytubeLogica/WebServices/agregarVisitaResponse\")\r\n public void agregarVisita(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideosPorCategoriaRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideosPorCategoriaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideosPorCategoria(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n Privacidad arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevoUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevoUsuarioResponse\")\r\n public void nuevoUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n java.lang.String arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n java.lang.String arg4,\r\n @WebParam(partName = \"arg5\", name = \"arg5\")\r\n DtFecha arg5,\r\n @WebParam(partName = \"arg6\", name = \"arg6\")\r\n byte[] arg6,\r\n @WebParam(partName = \"arg7\", name = \"arg7\")\r\n java.lang.String arg7,\r\n @WebParam(partName = \"arg8\", name = \"arg8\")\r\n java.lang.String arg8,\r\n @WebParam(partName = \"arg9\", name = \"arg9\")\r\n Privacidad arg9,\r\n @WebParam(partName = \"arg10\", name = \"arg10\")\r\n java.lang.String arg10\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verificarLoginRequest\", output = \"http://publicar.uytubeLogica/WebServices/verificarLoginResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean verificarLogin(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevaListaParticularRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevaListaParticularResponse\")\r\n public void nuevaListaParticular(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevoComentarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevoComentarioResponse\")\r\n public void nuevoComentario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n DtFecha arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n java.lang.String arg3\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/eliminarVideoListaRequest\", output = \"http://publicar.uytubeLogica/WebServices/eliminarVideoListaResponse\")\r\n public void eliminarVideoLista(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideoListaReproduccionRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideoListaReproduccionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideoListaReproduccion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/getEstadoValoracionRequest\", output = \"http://publicar.uytubeLogica/WebServices/getEstadoValoracionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public java.lang.String getEstadoValoracion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarCategoriasRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarCategoriasResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCategoriaArray listarCategorias();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideoHistorialRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideoHistorialResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoHistorialArray listarVideoHistorial(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/memberListaReproduccionPropiaRequest\", output = \"http://publicar.uytubeLogica/WebServices/memberListaReproduccionPropiaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean memberListaReproduccionPropia(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarComentariosRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarComentariosResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtComentarioArray listarComentarios(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/obtenerDtsVideosListaReproduccionUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/obtenerDtsVideosListaReproduccionUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray obtenerDtsVideosListaReproduccionUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoListaReproduccionRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoListaReproduccionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccion infoListaReproduccion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/aniadirVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/aniadirVideoResponse\")\r\n public void aniadirVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n int arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n DtFecha arg4,\r\n @WebParam(partName = \"arg5\", name = \"arg5\")\r\n java.lang.String arg5,\r\n @WebParam(partName = \"arg6\", name = \"arg6\")\r\n DtCategoria arg6,\r\n @WebParam(partName = \"arg7\", name = \"arg7\")\r\n Privacidad arg7\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueLeSigueRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueLeSigueResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarUsuariosQueLeSigue(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoVideosCanalRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoVideosCanalResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray infoVideosCanal(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRdeUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRdeUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarLDRdeUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/bajaUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/bajaUsuarioResponse\")\r\n public void bajaUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoAddVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoAddVideoResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideo infoAddVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/cargarDatosRequest\", output = \"http://publicar.uytubeLogica/WebServices/cargarDatosResponse\")\r\n public void cargarDatos();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideosPublicosPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideosPublicosPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideosPublicosPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/dejarUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/dejarUsuarioResponse\")\r\n public void dejarUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n}", "@WebService(name = \"InformacionClientePort\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface InformacionClientePort {\n\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.ListaCLienteType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/consultarClientes\")\n @WebResult(name = \"consultarClientesRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public ListaCLienteType consultarClientes(@WebParam(name = \"consultarClientesRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.MoraType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/clientePoseeMora\")\n @WebResult(name = \"clientePoseeMoraRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public MoraType clientePoseeMora(@WebParam(name = \"clientePoseeMoraRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n}", "@WebService(name = \"HelloWS\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HelloWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHello\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHello\")\n @ResponseWrapper(localName = \"getHelloResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloResponse\")\n public String getHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHelloWithAuth\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuth\")\n @ResponseWrapper(localName = \"getHelloWithAuthResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuthResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthResponse\")\n public String getHelloWithAuth(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}", "@WebService(targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/requester\", name = \"ConnectionRequesterPort\")\n@XmlSeeAlso({net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.ObjectFactory.class, net.es.nsi.lib.soap.gen.saml.assertion.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmlenc.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmldsig.ObjectFactory.class})\npublic interface ConnectionRequesterPort {\n\n /**\n * This reserveFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a reserve failure. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveFailed\")\n @RequestWrapper(localName = \"reserveFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This querySummaryConfirmed message is sent from the target NSA to\n * requesting NSA as an indication of a successful querySummary\n * operation. This is in response to an original querySummary request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/querySummaryConfirmed\")\n @RequestWrapper(localName = \"querySummaryConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void querySummaryConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This provisionConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful provision operation.\n * This is in response to an original provision request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/provisionConfirmed\")\n @RequestWrapper(localName = \"provisionConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void provisionConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * The error message is sent from a Provider NSA to Requester\n * NSA as an indication of the occurence of an error condition.\n * This is in response to an original request from the associated\n * Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This terminateConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful terminate operation.\n * This is in response to an original terminate request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/terminateConfirmed\")\n @RequestWrapper(localName = \"terminateConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void terminateConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This releaseConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful release operation.\n * This is in response to an original release request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/releaseConfirmed\")\n @RequestWrapper(localName = \"releaseConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void releaseConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous error message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/dataPlaneStateChange\")\n @RequestWrapper(localName = \"dataPlaneStateChange\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStateChangeRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void dataPlaneStateChange(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"dataPlaneStatus\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStatusType dataPlaneStatus,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveAbortConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveAbort.\n * This is in response to an original reserveAbort request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveAbortConfirmed\")\n @RequestWrapper(localName = \"reserveAbortConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveAbortConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/messageDeliveryTimeout\")\n @RequestWrapper(localName = \"messageDeliveryTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.MessageDeliveryTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void messageDeliveryTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"correlationId\", targetNamespace = \"\")\n java.lang.String correlationId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a modify failure. This\n * is in response to an original modify request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitFailed\")\n @RequestWrapper(localName = \"reserveCommitFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryNotificationConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryNotification\n * operation. This is in response to an original queryNotification request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryNotificationConfirmed\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n @WebResult(name = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", partName = \"acknowledgment\")\n public net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType queryNotificationConfirmed(\n @WebParam(partName = \"queryNotificationConfirmed\", name = \"queryNotificationConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryNotificationConfirmedType queryNotificationConfirmed,\n @WebParam(partName = \"header\", mode = WebParam.Mode.INOUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryResultConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryResult operation.\n * This is in response to an original queryResult request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryResultConfirmed\")\n @RequestWrapper(localName = \"queryResultConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryResultConfirmed(\n @WebParam(name = \"result\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultResponseType> result,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveCommit request.\n * This is in response to an original reserveCommit request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitConfirmed\")\n @RequestWrapper(localName = \"reserveCommitConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveTimeout\")\n @RequestWrapper(localName = \"reserveTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"timeoutValue\", targetNamespace = \"\")\n int timeoutValue,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reservation. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveConfirmed\")\n @RequestWrapper(localName = \"reserveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"globalReservationId\", targetNamespace = \"\")\n java.lang.String globalReservationId,\n @WebParam(name = \"description\", targetNamespace = \"\")\n java.lang.String description,\n @WebParam(name = \"criteria\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReservationConfirmCriteriaType criteria,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryRecursiveConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryRecursive\n * operation. This is in response to an original queryRecursive request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryRecursiveConfirmed\")\n @RequestWrapper(localName = \"queryRecursiveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryRecursiveConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n}", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/AddressService\", name = \"AddressService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.addressservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AddressService {\r\n\r\n @WebResult(name = \"GetDoNotDisturbResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetDoNotDisturb\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetDoNotDisturbResponse getDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"GetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetDoNotDisturbException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetAddressCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"OriginateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"Originate\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/Originate\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ContactResponse originate(\r\n @WebParam(partName = \"parameters\", name = \"OriginateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressOriginateRequest parameters\r\n ) throws OriginateException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetDoNotDisturb\")\r\n public void setDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"SetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetDoNotDisturbRequest parameters\r\n ) throws SessionNotCreatedException, SetDoNotDisturbException;\r\n\r\n @WebResult(name = \"IsForwardedResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsForwarded\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsForwarded\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsForwardedResponse isForwarded(\r\n @WebParam(partName = \"parameters\", name = \"IsForwardedRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsForwardedException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetForwarding\")\r\n public void setForwarding(\r\n @WebParam(partName = \"parameters\", name = \"SetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetForwardingRequest parameters\r\n ) throws SetForwardingException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"CancelForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/CancelForwarding\")\r\n public void cancelForwarding(\r\n @WebParam(partName = \"parameters\", name = \"CancelForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, CancelForwardingException;\r\n\r\n @WebResult(name = \"GetStateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetState\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetState\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetStateResponse getState(\r\n @WebParam(partName = \"parameters\", name = \"GetStateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetStateException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminals\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminals\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalsResponse getTerminals(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetTerminalsException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetPresenceResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetPresence\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetPresence\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetPresenceResponse getPresence(\r\n @WebParam(partName = \"parameters\", name = \"GetPresenceRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetPresenceException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnection\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnection\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ConnectionResponse getConnection(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.ConnectionRequest parameters\r\n ) throws GetConnectionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetMessageWaitingResponse getMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"GetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalStatusResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminalStatus\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminalStatus\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalStatusResponse getTerminalStatus(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalStatusRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetTerminalStatusException;\r\n\r\n @WebMethod(operationName = \"PresenceSubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceSubscribe\")\r\n public void presenceSubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceSubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.PresenceSubscribeRequest parameters\r\n ) throws PresenceSubscribeException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnections\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnections\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetConnectionsResponse getConnections(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetConnectionsException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SendInstantMessage\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SendInstantMessage\")\r\n public void sendInstantMessage(\r\n @WebParam(partName = \"parameters\", name = \"SendInstantMessage\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.InstantMessageRequest parameters\r\n ) throws SessionNotCreatedException, SendInstantMessageException;\r\n\r\n @WebResult(name = \"GetUriResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetUri\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetUri\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetUriResponse getUri(\r\n @WebParam(partName = \"parameters\", name = \"GetUriRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetUriException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetForwardingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetForwarding\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetForwardingResponse getForwarding(\r\n @WebParam(partName = \"parameters\", name = \"GetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetForwardingException;\r\n\r\n @WebMethod(operationName = \"PresenceUnsubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceUnsubscribe\")\r\n public void presenceUnsubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceUnsubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws PresenceUnsubscribeException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetMessageWaiting\")\r\n public void setMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"SetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetMessageWaitingRequest parameters\r\n ) throws SetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"IsMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsMessageWaitingResponse isMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"IsMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsMessageWaitingException, SessionNotCreatedException;\r\n}", "@WebService(targetNamespace = \"http://soa.agh.edu.pl/\", name = \"HelloWorld\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HelloWorld {\n\n @WebMethod(operationName = \"Hi\")\n @RequestWrapper(localName = \"Hi\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hi\")\n @ResponseWrapper(localName = \"HiResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HiResponse\")\n @WebResult(name = \"ElementsWraper\", targetNamespace = \"\")\n public pl.edu.agh.soa.HiResponse.ElementsWraper hi(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n\n @WebMethod(action = \"Hello\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n}", "@WebService(name = \"infra_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface InfraPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.IncidentRegisterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"incidentRegisterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public IncidentRegisterResponse incidentRegister(\n @WebParam(name = \"incidentRegisterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n IncidentRegisterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.DeviceStateCheckResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"deviceStateCheckResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public DeviceStateCheckResponse deviceStateCheck(\n @WebParam(name = \"deviceStateCheckRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n DeviceStateCheckRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListParameterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listParameterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListParameterResponse listParameter(\n @WebParam(name = \"listParameterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListParameterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListServiceResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listServiceResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListServiceResponse listService(\n @WebParam(name = \"listServiceRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListServiceRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeeResponse listFee(\n @WebParam(name = \"listFeeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListOfficeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listOfficeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListOfficeResponse listOffice(\n @WebParam(name = \"listOfficeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListOfficeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListSWPResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listSWPResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListSWPResponse listSWP(\n @WebParam(name = \"listSWPRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListSWPRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListCountryResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listCountryResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListCountryResponse listCountry(\n @WebParam(name = \"listCountryRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListCountryRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListDeviceInfoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listDeviceInfoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListDeviceInfoResponse listDeviceInfo(\n @WebParam(name = \"listDeviceInfoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListDeviceInfoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeDevicesResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeDevicesResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeDevicesResponse listFeDevices(\n @WebParam(name = \"listFeDevicesRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeDevicesRequest parameters)\n throws BloxFaultMessage\n ;\n\n}", "@WebService(name = \"DesktopAppJax2\", targetNamespace = \"http://api.soap.shared.pmstation.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface DesktopAppJax2 {\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String run(@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getFreeSpace(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItem\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItem getRoot(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String login(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1);\n\n\t/**\n\t * \n\t * @return returns boolean\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic boolean hasRightUpload();\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getItems(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void uploadCancelFile(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getFiles(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") LongArray arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getSpaceLimit(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.DirHistoryDTOArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic DirHistoryDTOArray getHistory(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getPlaylistLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.UserSettings\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic UserSettings getSettings(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @return returns com.pmstation.shared.soap.client.StringArray\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic StringArray getToolList();\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getToolUrl(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1);\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getToolVersion(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1);\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.StringArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic StringArray getFileDescription(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getDirDescription(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.FileUploadInfo\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic FileUploadInfo simpleUploadStart(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") long arg4)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg5\n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @param arg6\n\t * @param arg7\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String setFileDescription(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") String arg4,\n\t\t\t@WebParam(name = \"arg5\", partName = \"arg5\") String arg5,\n\t\t\t@WebParam(name = \"arg6\", partName = \"arg6\") boolean arg6,\n\t\t\t@WebParam(name = \"arg7\", partName = \"arg7\") boolean arg7)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg5\n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String setDirDescription(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") boolean arg4,\n\t\t\t@WebParam(name = \"arg5\", partName = \"arg5\") boolean arg5)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg5\n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @param arg6\n\t * @param arg7\n\t * @param arg8\n\t * @param arg9\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String reportAbuse(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") boolean arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") String arg4,\n\t\t\t@WebParam(name = \"arg5\", partName = \"arg5\") String arg5,\n\t\t\t@WebParam(name = \"arg6\", partName = \"arg6\") String arg6,\n\t\t\t@WebParam(name = \"arg7\", partName = \"arg7\") String arg7,\n\t\t\t@WebParam(name = \"arg8\", partName = \"arg8\") String arg8,\n\t\t\t@WebParam(name = \"arg9\", partName = \"arg9\") String arg9)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.StringArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic StringArray checkSettings(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") UserSettings arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.StringArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic StringArray applySettings(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") UserSettings arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns int\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic int checkSharedDirAccess(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") String arg4)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String checkSubdomain(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long createNewFolder(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String createUploadSessionKey(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns boolean\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic boolean creatNewFolder(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String decodeId(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long decodeLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void deleteFile(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void deleteFileFinal(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void deleteFolder(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void deleteFolderFinal(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void downloadFinished(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getAllFolders(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getAllItems(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @return returns long\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getCurrentUploaderVersion();\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getDirectLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItem\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItem getDirInfo(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getFileDownloadLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItem\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItem getFileInfo(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns\n\t * com.pmstation.shared.soap.client.SharedFolderPropertiesArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic SharedFolderPropertiesArray getFolderSharingProperties(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.DirHistoryDTOArrayArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic DirHistoryDTOArrayArray getHistoriesFromId(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") LongArray arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") LongArray arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.DirHistoryDTOArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic DirHistoryDTOArray getHistoryFromId(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") long arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getHistoryLastId(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItem\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItem getItemInfo(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") boolean arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getItemsCount(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getItemsPartial(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") int arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") int arg4)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getMaxFileSize(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getNewFileDataCenter(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @return returns long\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getNotOwnedSizeLimit();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.DirHistoryDTOArrayArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic DirHistoryDTOArrayArray getNotRecursiveHistories(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") LongArray arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") LongArray arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @return returns com.pmstation.shared.soap.client.StringArray\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic StringArray getOperationDescriptions();\n\n\t/**\n\t * \n\t * @return returns long\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long getOwnedSizeLimit();\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getRecycleBinItems(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getDirLinkItems(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getSharedDirItems(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") String arg4)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getUploadFormUrl(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") int arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1);\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns boolean\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic boolean isAccountActive(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns boolean\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic boolean isAccountBanned(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns boolean\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic boolean isAccountPremium(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns boolean\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic boolean isExistsLoginPassword(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void markSynchronized(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg5\n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String pasteFilesDirs(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") boolean arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") LongArray arg4,\n\t\t\t@WebParam(name = \"arg5\", partName = \"arg5\") LongArray arg5)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long renameFile(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long renameFolder(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void restoreFile(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void restoreFiles(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") LongArray arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String setFolderSharingProperties(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") SharedFolderProperties arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String signup(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1);\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\tpublic void syncFinished(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns boolean\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic boolean uploaderLoggedIn(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String uploadFinishFile(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns boolean\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic boolean uploadStartedFileExists(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long uploadStartFile(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") long arg4)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long uploadStartFileUpdate(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") long arg4)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String signupUsername(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2);\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.UserSettingsArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic UserSettingsArray getAllSettings(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.SettingsGroupArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic SettingsGroupArray getSettingGroups(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String addToMyAccount(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.AccountItemArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic AccountItemArray getFavorites(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long addToFavorites(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns long\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic long removeFromFavorites(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns int\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic int emptyRecycleBin(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.Mp3Info\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic Mp3Info getMp3FileInfo(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.Mp3InfoArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic Mp3InfoArray getMp3FileInfos(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.ExifInfoArray\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic ExifInfoArray getExifFileInfos(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns com.pmstation.shared.soap.client.ExifInfo\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic ExifInfo getExifFileInfo(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getPreviewLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getVideoPreviewLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getSmallImageLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") int arg3)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getSharedPlaylistLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") String arg4)\n\t\t\tthrows ApiException;\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws ApiException\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String getFileVersionLink(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") long arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") int arg3)\n\t\t\tthrows ApiException;\n\n}", "@WebService(targetNamespace = \"http://payment.services.adyen.com\", name = \"PaymentPortType\")\r\n@XmlSeeAlso({com.adyen.services.common.ObjectFactory.class, ObjectFactory.class})\r\npublic interface PaymentPortType {\r\n\r\n @WebResult(name = \"captureResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"capture\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Capture\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"captureResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CaptureResponse\")\r\n public com.adyen.services.payment.ModificationResult capture(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"refundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Refund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundResponse\")\r\n public com.adyen.services.payment.ModificationResult refund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransfer\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransferResponse\")\r\n public com.adyen.services.payment.FundTransferResult fundTransfer(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.FundTransferRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"authoriseReferralResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authoriseReferral\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferral\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseReferralResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferralResponse\")\r\n public com.adyen.services.payment.ModificationResult authoriseReferral(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refundWithData\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithData\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundWithDataResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithDataResponse\")\r\n public com.adyen.services.payment.PaymentResult refundWithData(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Cancel\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelResponse\")\r\n public com.adyen.services.payment.ModificationResult cancel(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise3d\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3D\")\r\n @WebMethod(operationName = \"authorise3d\")\r\n @ResponseWrapper(localName = \"authorise3dResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3DResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise3D(\r\n @WebParam(name = \"paymentRequest3d\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest3D paymentRequest3D\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"balanceCheck\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheck\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"balanceCheckResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheckResponse\")\r\n public com.adyen.services.payment.BalanceCheckResult balanceCheck(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.BalanceCheckRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"directdebit\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Directdebit\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"directdebitResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.DirectdebitResponse\")\r\n public com.adyen.services.payment.DirectDebitResponse2 directdebit(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.DirectDebitRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelOrRefundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancelOrRefund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelOrRefundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefundResponse\")\r\n public com.adyen.services.payment.ModificationResult cancelOrRefund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"checkFraud\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraud\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"checkFraudResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraudResponse\")\r\n public com.adyen.services.payment.PaymentResult checkFraud(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n}", "@WebService(targetNamespace = \"http://services.bookservice.atatorus.fr/\", name = \"Hello\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Hello {\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.Hello_Type\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"nom\", targetNamespace = \"\")\n java.lang.String nom\n );\n}", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}", "@WebService(name = \"LegislationSearch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface LegislationSearch {\n\n\n /**\n * \n * @param startIndex\n * @param pageSize\n * @param constraints\n * @return\n * returns gov.ga.legis.legislation.LegislationSearchResultsPaged\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetLegislationSearchResultsPaged\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationSearchResultsPaged\")\n @WebResult(name = \"GetLegislationSearchResultsPagedResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationSearchResultsPaged\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPaged\")\n @ResponseWrapper(localName = \"GetLegislationSearchResultsPagedResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPagedResponse\")\n public LegislationSearchResultsPaged getLegislationSearchResultsPaged(\n @WebParam(name = \"Constraints\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationSearchConstraints constraints,\n @WebParam(name = \"PageSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer pageSize,\n @WebParam(name = \"StartIndex\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer startIndex)\n throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage, LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n ;\n\n /**\n * \n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndex\n */\n @WebMethod(operationName = \"GetLegislationForSession\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationForSession\")\n @WebResult(name = \"GetLegislationForSessionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationForSession\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSession\")\n @ResponseWrapper(localName = \"GetLegislationForSessionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSessionResponse\")\n public ArrayOfLegislationIndex getLegislationForSession(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param documentType\n * @param sessionId\n * @param rangeSize\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndexRangeSet\n */\n @WebMethod(operationName = \"GetLegislationRanges\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRanges\")\n @WebResult(name = \"GetLegislationRangesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRanges\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRanges\")\n @ResponseWrapper(localName = \"GetLegislationRangesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangesResponse\")\n public ArrayOfLegislationIndexRangeSet getLegislationRanges(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId,\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"RangeSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer rangeSize);\n\n /**\n * \n * @param range\n * @return\n * returns gov.ga.legis.legislation.LegislationIndexRange\n */\n @WebMethod(operationName = \"GetLegislationRange\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRange\")\n @WebResult(name = \"GetLegislationRangeResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRange\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRange\")\n @ResponseWrapper(localName = \"GetLegislationRangeResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangeResponse\")\n public LegislationIndexRange getLegislationRange(\n @WebParam(name = \"Range\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationIndexRangeSet range);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetail\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetail\")\n @WebResult(name = \"GetLegislationDetailResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetail\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetail\")\n @ResponseWrapper(localName = \"GetLegislationDetailResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailResponse\")\n public LegislationDetail getLegislationDetail(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param number\n * @param documentType\n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetailByDescription\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetailByDescription\")\n @WebResult(name = \"GetLegislationDetailByDescriptionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetailByDescription\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescription\")\n @ResponseWrapper(localName = \"GetLegislationDetailByDescriptionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescriptionResponse\")\n public LegislationDetail getLegislationDetailByDescription(\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"Number\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer number,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @return\n * returns gov.ga.legis.legislation.ArrayOfSubject\n */\n @WebMethod(operationName = \"GetTitles\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetTitles\")\n @WebResult(name = \"GetTitlesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetTitles\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitles\")\n @ResponseWrapper(localName = \"GetTitlesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitlesResponse\")\n public ArrayOfSubject getTitles();\n\n}", "@WebService(name = \"SoapService\", targetNamespace = \"http://test/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapService {\n\n\n /**\n * \n * @param fileName\n * @return\n * returns java.lang.Integer\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResult\", targetNamespace = \"http://test/\", className = \"test.GetResult\")\n @ResponseWrapper(localName = \"getResultResponse\", targetNamespace = \"http://test/\", className = \"test.GetResultResponse\")\n @Action(input = \"http://test/SoapService/getResultRequest\", output = \"http://test/SoapService/getResultResponse\")\n public Integer getResult(\n @WebParam(name = \"fileName\", targetNamespace = \"\")\n String fileName);\n\n /**\n * \n * @param path\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"getFilePath\", targetNamespace = \"http://test/\", className = \"test.GetFilePath\")\n @Action(input = \"http://test/SoapService/getFilePath\")\n public void getFilePath(\n @WebParam(name = \"path\", targetNamespace = \"\")\n String path);\n\n}", "@WebService(name = \"HelloService\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface HelloService {\r\n\r\n\r\n /**\r\n * \r\n * @param name\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"say\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.Say\")\r\n @ResponseWrapper(localName = \"sayResponse\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.SayResponse\")\r\n public String say(\r\n @WebParam(name = \"name\", targetNamespace = \"\")\r\n String name);\r\n\r\n}", "@WebService(wsdlLocation=\"https://jcs.my-oraclecloudapps.com/HealthCare/HealthCarePort?WSDL\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", name=\"HealthCare\")\n@XmlSeeAlso(\n { com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.ObjectFactory.class })\npublic interface HealthCare\n{\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupResponse\")\n @ResponseWrapper(localName=\"isMedicationReadyToPickupResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickupResponse\")\n @RequestWrapper(localName=\"isMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickup\")\n @WebResult(targetNamespace=\"\")\n public boolean isMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusResponse\")\n @ResponseWrapper(localName=\"requestOrderStatusResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatusResponse\")\n @RequestWrapper(localName=\"requestOrderStatus\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatus\")\n @WebResult(targetNamespace=\"\")\n public String requestOrderStatus(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/setMedicationReadyToPickup\")\n @RequestWrapper(localName=\"setMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.SetMedicationReadyToPickup\")\n @Oneway\n public void setMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionResponse\")\n @ResponseWrapper(localName=\"loadPrescriptionResponse\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescriptionResponse\")\n @RequestWrapper(localName=\"loadPrescription\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescription\")\n @WebResult(targetNamespace=\"\")\n public String loadPrescription(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n}", "@WebMethod\n Endpoint bindExternalService(URI wsdlURI);", "@WebService(name = \"SharedGalleryServerSOAP\", targetNamespace = \"http://SOAP.svr.tp1.sd/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharedGalleryServerSOAP {\n\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfAlbums\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbums\")\n @ResponseWrapper(localName = \"getListOfAlbumsResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbumsResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsResponse\")\n public List<String> getListOfAlbums();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfPictures\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPictures\")\n @ResponseWrapper(localName = \"getListOfPicturesResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPicturesResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesResponse\")\n public List<String> getListOfPictures(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns byte[]\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPictureData\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureData\")\n @ResponseWrapper(localName = \"getPictureDataResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureDataResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataResponse\")\n public byte[] getPictureData(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbum\")\n @ResponseWrapper(localName = \"createAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumResponse\")\n public String createAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbum\")\n @ResponseWrapper(localName = \"deleteAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumResponse\")\n public Boolean deleteAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"uploadPicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPicture\")\n @ResponseWrapper(localName = \"uploadPictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureResponse\")\n public String uploadPicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n byte[] arg2);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePicture\")\n @ResponseWrapper(localName = \"deletePictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureResponse\")\n public Boolean deletePicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "@WebService\n@SOAPBinding (style = SOAPBinding.Style.RPC)\npublic interface SystemeAmendes {\n\n @WebMethod\n void enregistrer (Voiture car);\n\n @WebMethod\n int signaler(String immatriculation, String modele, int tarif);\n\n @WebMethod\n String lister(String immatriculation);\n\n @WebMethod\n int payer(int numero, String nom, String prenom);\n\n\n}", "@WebService(name = \"EntityServer\", targetNamespace=\"http://activitiderbysoapservice.spqr.de/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface EntityServer {\n @WebMethod @WebResult(partName = \"return\")String getTimeAsString();\n @WebMethod @WebResult(partName = \"return\")long getTimeAsElapsed();\n @WebMethod @WebResult(partName = \"return\")long orderParts(String part);\n @WebMethod @WebResult(partName = \"return\")boolean changeBackWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeDoorAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeFronWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeEngineAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeTireAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeWheelAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")long amountOfParts(String part);\n \n}", "@WebService(name = \"EiccToKgdUniversalPortType\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EiccToKgdUniversalPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns ResponseMessage\n * @throws SendMessageException\n */\n @WebMethod(operationName = \"SendMessage\", action = \"http://10.8.255.50:1274/EiccToKgdUniversal/SendMessage\")\n @WebResult(name = \"sendMessageResponse\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n public ResponseMessage sendMessage(\n @WebParam(name = \"sendMessageRequest\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n RequestMessage parameters)\n throws SendMessageException\n ;\n\n}", "@WebService(name = \"SharesBrokeringSystem\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharesBrokeringSystem {\n\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"sellShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SellShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/sellShares\")\n public void sellShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"companyList\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyList\")\n @ResponseWrapper(localName = \"companyListResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyListResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListResponse\")\n public List<Company> companyList();\n\n /**\n * \n * @param company\n * @return\n * returns org.me.sharesbrokeringsystem.Company\n * @throws CertificateException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"moreCompanyInfo\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfo\")\n @ResponseWrapper(localName = \"moreCompanyInfoResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfoResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoResponse\", fault = {\n @FaultAction(className = CertificateException_Exception.class, value = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfo/Fault/CertificateException\")\n })\n public Company moreCompanyInfo(\n @WebParam(name = \"_company\", targetNamespace = \"\")\n Company company)\n throws CertificateException_Exception\n ;\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns org.me.sharesbrokeringsystem.Client\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logIn\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogIn\")\n @ResponseWrapper(localName = \"logInResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogInResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInResponse\")\n public Client logIn(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param currentTrades\n * @return\n * returns org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompanies\")\n @ResponseWrapper(localName = \"updateCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesResponse\")\n public org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return updateCompanies(\n @WebParam(name = \"_currentTrades\", targetNamespace = \"\")\n org.me.sharesbrokeringsystem.UpdateCompanies.CurrentTrades currentTrades);\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"signUp\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUp\")\n @ResponseWrapper(localName = \"signUpResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUpResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpResponse\")\n public int signUp(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param client\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logOut\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOut\")\n @ResponseWrapper(localName = \"logOutResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOutResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutResponse\")\n public int logOut(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client);\n\n /**\n * \n * @param amount\n * @param client\n * @param currency\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"depositAmount\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmount\")\n @ResponseWrapper(localName = \"depositAmountResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmountResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountResponse\")\n public double depositAmount(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"amount\", targetNamespace = \"\")\n double amount,\n @WebParam(name = \"currency\", targetNamespace = \"\")\n String currency);\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"buyShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.BuyShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/buyShares\")\n public void buyShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompanies\")\n @ResponseWrapper(localName = \"getCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesResponse\")\n public List<Company> getCompanies();\n\n}", "@WebService(name = \"wsFoo\", targetNamespace = \"http://helloworldws.yv84.me/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WsFoo {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEcho\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEcho\")\n @ResponseWrapper(localName = \"getEchoResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEchoResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getEchoRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getEchoResponse\")\n public String getEcho(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetListResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getListRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getListResponse\")\n public List<String> getList();\n\n}", "@WebService(name = \"UtenteServant\", targetNamespace = \"http://utente.servant.car2go.it/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UtenteServant {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"verificaPresenzaUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsername\")\n @ResponseWrapper(localName = \"verificaPresenzaUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameResponse\")\n public boolean verificaPresenzaUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"salvaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtente\")\n @ResponseWrapper(localName = \"salvaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteResponse\")\n public void salvaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsernamePassword\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePassword\")\n @ResponseWrapper(localName = \"getUtenteByUsernamePasswordResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePasswordResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordResponse\")\n public Utente getUtenteByUsernamePassword(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsername\")\n @ResponseWrapper(localName = \"getUtenteByUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameResponse\")\n public Utente getUtenteByUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Ruolo\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRuoloUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteById\")\n @ResponseWrapper(localName = \"getRuoloUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdResponse\")\n public Ruolo getRuoloUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"cancellaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtente\")\n @ResponseWrapper(localName = \"cancellaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteResponse\")\n public void cancellaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenti\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenti\")\n @ResponseWrapper(localName = \"getUtentiResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtentiResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtentiRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtentiResponse\")\n public List<Utente> getUtenti();\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteById\")\n @ResponseWrapper(localName = \"getUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdResponse\")\n public Utente getUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"elencoUtentiSemplici\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSemplici\")\n @ResponseWrapper(localName = \"elencoUtentiSempliciResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSempliciResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciResponse\")\n public List<Utente> elencoUtentiSemplici(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"aggiornaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtente\")\n @ResponseWrapper(localName = \"aggiornaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteResponse\")\n public void aggiornaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n}", "@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}", "@WebService(targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", name = \"ZSDRFC_AMC_CONTRACT_VALIDATION\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ZSDRFCAMCCONTRACTVALIDATION {\n\n @WebMethod(operationName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", action = \"urn:sap-com:document:sap:rfc:functions:ZSDRFC_AMC_CONTRACT_VALIDATION:ZSDRFC_AMC_CONTRACT_VALIDATIONRequest\")\n @RequestWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATION_Type\")\n @ResponseWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATIONResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATIONResponse\")\n public void zsdrfcAMCCONTRACTVALIDATION(\n @WebParam(name = \"CHASSIS_NO\", targetNamespace = \"\")\n java.lang.String chassisNO,\n @WebParam(name = \"CHASSIS_PL\", targetNamespace = \"\")\n java.lang.String chassisPL,\n @WebParam(name = \"CONTRACT_NO\", targetNamespace = \"\")\n java.lang.String contractNO,\n @WebParam(name = \"CRM_SALE_DATE\", targetNamespace = \"\")\n java.lang.String crmSALEDATE,\n @WebParam(mode = WebParam.Mode.INOUT, name = \"IT_AMC\", targetNamespace = \"\")\n javax.xml.ws.Holder<TABLEOFZSDAMCLINEITEM> itAMC,\n @WebParam(name = \"KMS\", targetNamespace = \"\")\n int kms,\n @WebParam(mode = WebParam.Mode.OUT, name = \"REMARKS\", targetNamespace = \"\")\n javax.xml.ws.Holder<java.lang.String> remarks\n );\n}", "@WebService(targetNamespace = \"http://iso8583.org/payload\", name = \"CoreServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.team5.bank.core.server.service.model.xsd.ObjectFactory.class})\npublic interface CoreServicePortType {\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getTransactionHistory\", output = \"urn:getTransactionHistoryResponse\")\n @RequestWrapper(localName = \"getTransactionHistory\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistory\")\n @WebMethod(action = \"urn:getTransactionHistory\")\n @ResponseWrapper(localName = \"getTransactionHistoryResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistoryResponse\")\n public java.util.List<org.team5.bank.core.server.service.model.xsd.Transaction> getTransactionHistory(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getBalance\", output = \"urn:getBalanceResponse\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalance\")\n @WebMethod(action = \"urn:getBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalanceResponse\")\n public java.lang.String getBalance(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getAccount\", output = \"urn:getAccountResponse\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccount\")\n @WebMethod(action = \"urn:getAccount\")\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccountResponse\")\n public org.team5.bank.core.server.service.model.xsd.Account getAccount(\n @WebParam(name = \"userId\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Long userId\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:withdraw\", output = \"urn:withdrawResponse\")\n @RequestWrapper(localName = \"withdraw\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Withdraw\")\n @WebMethod(action = \"urn:withdraw\")\n @ResponseWrapper(localName = \"withdrawResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.WithdrawResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse withdraw(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:fundTransfer\", output = \"urn:fundTransferResponse\")\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransfer\")\n @WebMethod(action = \"urn:fundTransfer\")\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransferResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse fundTransfer(\n @WebParam(name = \"from\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String from,\n @WebParam(name = \"to\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String to,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:deposit\", output = \"urn:depositResponse\")\n @RequestWrapper(localName = \"deposit\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Deposit\")\n @WebMethod(action = \"urn:deposit\")\n @ResponseWrapper(localName = \"depositResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.DepositResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse deposit(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n}", "@WebService(name = \"OrderPortType\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OrderPortType {\n\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"getDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType getDish(\n @WebParam(name = \"getDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"addDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType addDish(\n @WebParam(name = \"addDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetDishListResponse\n */\n @WebMethod\n @WebResult(name = \"getDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetDishListResponse getDishList(\n @WebParam(name = \"getDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"getOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType getOrder(\n @WebParam(name = \"getOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"addOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType addOrder(\n @WebParam(name = \"addOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetOrderListResponse\n */\n @WebMethod\n @WebResult(name = \"getOrderListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetOrderListResponse getOrderList(\n @WebParam(name = \"getOrderListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishListType\n */\n @WebMethod\n @WebResult(name = \"getOrderDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishListType getOrderDishList(\n @WebParam(name = \"getOrderDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishType\n */\n @WebMethod\n @WebResult(name = \"addOrderDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishType addOrderDish(\n @WebParam(name = \"addOrderDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderDishRequest parameter);\n\n}", "@WebService(targetNamespace = \"http://service.cxf.rain6.com/\", name = \"TestWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface TestWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"selectByPrimaryKey\", targetNamespace = \"http://service.cxf.rain6.com/\", className = \"com.rain6.cxf.service.SelectByPrimaryKey\")\n @ResponseWrapper(localName = \"selectByPrimaryKeyResponse\", targetNamespace = \"http://service.cxf.rain6.com/\", className = \"com.rain6.cxf.service.SelectByPrimaryKeyResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public Lawyer selectByPrimaryKey(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0\n );\n}", "@WebService(name = \"Repositorio\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Repositorio {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaEstatusComprobante\n * @throws RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"EstatusComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/EstatusComprobante\")\n @WebResult(name = \"RespuestaEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaEstatusComprobante estatusComprobante(\n @WebParam(name = \"SolicitudEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudEstatusComprobante parameters)\n throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage, RepositorioEstatusComprobanteFallaSesionFaultFaultMessage, RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerComprobante\n * @throws RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaSesionFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerComprobante\")\n @WebResult(name = \"RespuestaObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerComprobante obtenerComprobante(\n @WebParam(name = \"SolicitudObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerComprobante parameters)\n throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage, RepositorioObtenerComprobanteFallaSesionFaultFaultMessage, RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaCancelaComprobante\n * @throws RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"CancelaComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/CancelaComprobante\")\n @WebResult(name = \"RespuestaCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaCancelaComprobante cancelaComprobante(\n @WebParam(name = \"SolicitudCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudCancelaComprobante parameters)\n throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage, RepositorioCancelaComprobanteFallaSesionFaultFaultMessage, RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerQR\n * @throws RepositorioObtenerQRFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaSesionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerQR\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerQR\")\n @WebResult(name = \"RespuestaObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerQR obtenerQR(\n @WebParam(name = \"SolicitudObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerQR parameters)\n throws RepositorioObtenerQRFallaServicioFaultFaultMessage, RepositorioObtenerQRFallaSesionFaultFaultMessage, RepositorioObtenerQRFallaValidacionFaultFaultMessage\n ;\n\n}", "@WebService(name = \"WSSimWebService\", targetNamespace = \"http://webservice.bis.edu/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface WSSimWebService {\r\n\r\n\r\n /**\r\n * \r\n * @param firstOperationName\r\n * @param firstServiceURI\r\n * @param secondOperationName\r\n * @param secondServiceURI\r\n * @return\r\n * returns edu.bis.webservice_client.OperationPairSimilarity\r\n */\r\n @WebMethod(operationName = \"GetOperationPairInfo\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetOperationPairInfo\", targetNamespace = \"http://webservice.bis.edu/\", className = \"edu.bis.webservice_client.GetOperationPairInfo\")\r\n @ResponseWrapper(localName = \"GetOperationPairInfoResponse\", targetNamespace = \"http://webservice.bis.edu/\", className = \"edu.bis.webservice_client.GetOperationPairInfoResponse\")\r\n @Action(input = \"http://webservice.bis.edu/WSSimWebService/GetOperationPairInfoRequest\", output = \"http://webservice.bis.edu/WSSimWebService/GetOperationPairInfoResponse\")\r\n public OperationPairSimilarity getOperationPairInfo(\r\n @WebParam(name = \"firstServiceURI\", targetNamespace = \"\")\r\n String firstServiceURI,\r\n @WebParam(name = \"firstOperationName\", targetNamespace = \"\")\r\n String firstOperationName,\r\n @WebParam(name = \"secondServiceURI\", targetNamespace = \"\")\r\n String secondServiceURI,\r\n @WebParam(name = \"secondOperationName\", targetNamespace = \"\")\r\n String secondOperationName);\r\n\r\n /**\r\n * \r\n * @param firstServiceURI\r\n * @param secondServiceURI\r\n * @return\r\n * returns java.lang.Float\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"getServiceSimilarity\", targetNamespace = \"http://webservice.bis.edu/\", className = \"edu.bis.webservice_client.GetServiceSimilarity\")\r\n @ResponseWrapper(localName = \"getServiceSimilarityResponse\", targetNamespace = \"http://webservice.bis.edu/\", className = \"edu.bis.webservice_client.GetServiceSimilarityResponse\")\r\n @Action(input = \"http://webservice.bis.edu/WSSimWebService/getServiceSimilarityRequest\", output = \"http://webservice.bis.edu/WSSimWebService/getServiceSimilarityResponse\")\r\n public Float getServiceSimilarity(\r\n @WebParam(name = \"firstServiceURI\", targetNamespace = \"\")\r\n String firstServiceURI,\r\n @WebParam(name = \"secondServiceURI\", targetNamespace = \"\")\r\n String secondServiceURI);\r\n\r\n /**\r\n * \r\n * @param firstServiceURI\r\n * @param secondServiceURI\r\n * @return\r\n * returns java.util.List<java.lang.String>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"getSubstitutableOperations\", targetNamespace = \"http://webservice.bis.edu/\", className = \"edu.bis.webservice_client.GetSubstitutableOperations\")\r\n @ResponseWrapper(localName = \"getSubstitutableOperationsResponse\", targetNamespace = \"http://webservice.bis.edu/\", className = \"edu.bis.webservice_client.GetSubstitutableOperationsResponse\")\r\n @Action(input = \"http://webservice.bis.edu/WSSimWebService/getSubstitutableOperationsRequest\", output = \"http://webservice.bis.edu/WSSimWebService/getSubstitutableOperationsResponse\")\r\n public List<String> getSubstitutableOperations(\r\n @WebParam(name = \"firstServiceURI\", targetNamespace = \"\")\r\n String firstServiceURI,\r\n @WebParam(name = \"secondServiceURI\", targetNamespace = \"\")\r\n String secondServiceURI);\r\n\r\n}", "@WebService(targetNamespace = \"http://www.talend.org/jpa\", name = \"JPAService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface JPAService {\n\n @WebResult(name = \"deleteResponse\", targetNamespace = \"http://www.talend.org/jpa\", partName = \"parameters\")\n @WebMethod(action = \"http://www.talend.org/jpa/delete\")\n public java.lang.String delete(\n @WebParam(partName = \"parameters\", name = \"deleteRequest\", targetNamespace = \"http://www.talend.org/jpa\")\n IdType parameters\n );\n\n @WebResult(name = \"persistResponse\", targetNamespace = \"http://www.talend.org/jpa\", partName = \"parameters\")\n @WebMethod(action = \"http://www.talend.org/jpa/persist\")\n public java.lang.String persist(\n @WebParam(partName = \"parameters\", name = \"persistRequest\", targetNamespace = \"http://www.talend.org/jpa\")\n PersonType parameters\n );\n}", "@WebService(targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", name = \"MDMTableConditionDataNew\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface MDMTableConditionDataNew {\n\n @WebMethod(action = \"process\")\n @RequestWrapper(localName = \"process\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.Process\")\n @ResponseWrapper(localName = \"processResponse\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.ProcessResponse\")\n public void process(\n\n @WebParam(name = \"IN_SYS_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inSYSNAME,\n @WebParam(name = \"IN_MASTER_TYPE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inMASTERTYPE,\n @WebParam(name = \"IN_TABLE_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inTABLENAME,\n @WebParam(name = \"IN_FIELDS_VALUE_TABLE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n HAIERMDMFIELDSVALUETABLE inFIELDSVALUETABLE,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RESULT\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRESULT,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETMSG\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETMSG,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETCODE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETCODE\n );\n}", "@WebService(name = \"MyServicesPort\", targetNamespace = \"http://mglsi.local/soap\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface MyServicesPort {\n\n\n /**\n * Lister Utilisateur Function\n * \n * @return\n * returns local.mglsi.soap.ArrayOfUser\n */\n @WebMethod(action = \"http://mglsi.local/soap#listerUser\")\n @WebResult(partName = \"return\")\n public ArrayOfUser listerUser();\n\n /**\n * Ajouter un Utilisateur Function\n * \n * @param password\n * @param nom\n * @param prenom\n * @param pseudo\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"http://mglsi.local/soap#ajouterUser\")\n @WebResult(partName = \"return\")\n public String ajouterUser(\n @WebParam(name = \"nom\", partName = \"nom\")\n String nom,\n @WebParam(name = \"prenom\", partName = \"prenom\")\n String prenom,\n @WebParam(name = \"pseudo\", partName = \"pseudo\")\n String pseudo,\n @WebParam(name = \"password\", partName = \"password\")\n String password);\n\n /**\n * Ajouter un Utilisateur Function\n * \n * @param password\n * @param id\n * @param nom\n * @param prenom\n * @param pseudo\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"http://mglsi.local/soap#modifierUser\")\n @WebResult(partName = \"return\")\n public String modifierUser(\n @WebParam(name = \"id\", partName = \"id\")\n String id,\n @WebParam(name = \"nom\", partName = \"nom\")\n Object nom,\n @WebParam(name = \"prenom\", partName = \"prenom\")\n Object prenom,\n @WebParam(name = \"pseudo\", partName = \"pseudo\")\n Object pseudo,\n @WebParam(name = \"password\", partName = \"password\")\n Object password);\n\n /**\n * Supprimer un Utilisateur Function\n * \n * @param id\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"http://mglsi.local/soap#supprimerUser\")\n @WebResult(partName = \"return\")\n public String supprimerUser(\n @WebParam(name = \"id\", partName = \"id\")\n int id);\n\n /**\n * Login Function\n * \n * @param pseudo\n * @param token\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Login\", action = \"http://mglsi.local/soap#Login\")\n @WebResult(partName = \"return\")\n public String login(\n @WebParam(name = \"pseudo\", partName = \"pseudo\")\n String pseudo,\n @WebParam(name = \"token\", partName = \"token\")\n String token);\n\n /**\n * Returns Hello World.\n * \n * @param world\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"http://mglsi.local/soap#getInterAdmins\")\n @WebResult(partName = \"return\")\n public String getInterAdmins(\n @WebParam(name = \"world\", partName = \"world\")\n String world);\n\n /**\n * Use test soap service\n * \n * @param name\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"SayHello\", action = \"http://mglsi.local/soap#SayHello\")\n @WebResult(partName = \"return\")\n public String sayHello(\n @WebParam(name = \"name\", partName = \"name\")\n String name);\n\n}", "@WebService\npublic interface HelloWorld {\n String sayHi(String name);\n\n}", "@WebService(name = \"CustomerSoapType\", targetNamespace = \"http://test.co.id/ws/customer/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerSoapType {\n\n\n /**\n * Request All Customer\n * \n * @return\n * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType\n */\n @WebMethod(operationName = \"GetAllCustomer\")\n @WebResult(name = \"GetAllCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public ListOfCustomerType getAllCustomer();\n\n /**\n * Insert Customer\n * \n * @param parameters\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"InsertCustomer\")\n @WebResult(name = \"InsertCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public String insertCustomer(\n @WebParam(name = \"InsertCustomer\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n CustomerType parameters);\n\n}", "@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethod\")\n @ResponseWrapper(localName = \"serviceMethodResponse\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethodResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String serviceMethod();\n}", "@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}", "@WebService(targetNamespace = \"http://www.ftn.uns.ac.rs/izvestaj\", name = \"IzvestajServicePortType\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface IzvestajServicePortType {\n\n @WebMethod(action = \"http://www.ftn.uns.ac.rs/izvestaj/ws/dodajIzvestaj\")\n @WebResult(name = \"res\", targetNamespace = \"http://www.ftn.uns.ac.rs/izvestaj\", partName = \"res\")\n public java.lang.String dodajIzvestaj(\n @WebParam(partName = \"izvestaj\", name = \"izvestaj\")\n Izvestaj izvestaj\n );\n}", "@Bean\n public HTTPSOAP11Binding soapBinding() {\n return new HTTPSOAP11Binding(parserPool());\n }", "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName = \"ZPSCDFM_VUR_UPDSTATUS\")\r\n @RequestWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUS\")\r\n @ResponseWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUSResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUSResponse\")\r\n public void zpscdfmVURUPDSTATUS(\r\n @WebParam(name = \"I_ESTADO\", targetNamespace = \"\")\r\n String iESTADO,\r\n @WebParam(name = \"I_NROLIQ\", targetNamespace = \"\")\r\n String iNROLIQ,\r\n @WebParam(name = \"E_MESSAGE\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<String> eMESSAGE,\r\n @WebParam(name = \"E_RETURN\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<Integer> eRETURN);\r\n\r\n}", "@WebService(targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", name = \"NotificationPort\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface NotificationPort {\n\n /**\n * Process a number of notifications.\n */\n @WebResult(name = \"Ack\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n @RequestWrapper(localName = \"notifications\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.Notifications\")\n @WebMethod\n @ResponseWrapper(localName = \"notificationsResponse\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.NotificationsResponse\")\n public boolean notifications(\n @WebParam(name = \"OrganizationId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String organizationId,\n @WebParam(name = \"ActionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String actionId,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String sessionId,\n @WebParam(name = \"EnterpriseUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String enterpriseUrl,\n @WebParam(name = \"PartnerUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String partnerUrl,\n @WebParam(name = \"Notification\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.util.List<com.barryku.cloud.cxf.BookCNotification> notification\n );\n}", "@WebService(name = \"AppWebService\", targetNamespace = \"http://pingan.cn/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AppWebService {\n\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceCompareResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceCompare\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompare\")\n @ResponseWrapper(localName = \"faceCompareResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompareResponse\")\n public String faceCompare(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getReturngoodsResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getReturngoods\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoods\")\n @ResponseWrapper(localName = \"getReturngoodsResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoodsResponse\")\n public String getReturngoods(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/boundBankcard\")\n @WebResult(name = \"boundBankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"boundBankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcard\")\n @ResponseWrapper(localName = \"boundBankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcardResponse\")\n public String boundBankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/returnBtvOrder\")\n @WebResult(name = \"returnBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"returnBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrder\")\n @ResponseWrapper(localName = \"returnBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrderResponse\")\n public String returnBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"bankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"bankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Bankcard\")\n @ResponseWrapper(localName = \"bankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BankcardResponse\")\n public String bankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/updateLogisticsinfo\")\n @WebResult(name = \"updateLogisticsinfoResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"updateLogisticsinfo\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfo\")\n @ResponseWrapper(localName = \"updateLogisticsinfoResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfoResponse\")\n public String updateLogisticsinfo(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceDetectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceDetect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetect\")\n @ResponseWrapper(localName = \"faceDetectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetectResponse\")\n public String faceDetect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws SQLException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getCreditline\")\n @WebResult(name = \"getCreditlineResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getCreditline\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditline\")\n @ResponseWrapper(localName = \"getCreditlineResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditlineResponse\")\n public String getCreditline(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws SQLException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"signCheckResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"signCheck\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheck\")\n @ResponseWrapper(localName = \"signCheckResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheckResponse\")\n public String signCheck(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansSelect\")\n @WebResult(name = \"repayPlansSelectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansSelect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelect\")\n @ResponseWrapper(localName = \"repayPlansSelectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelectResponse\")\n public String repayPlansSelect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansQuery\")\n @WebResult(name = \"repayPlansQueryResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansQuery\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQuery\")\n @ResponseWrapper(localName = \"repayPlansQueryResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQueryResponse\")\n public String repayPlansQuery(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"queryPhoneZHHSResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"queryPhoneZHHS\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHS\")\n @ResponseWrapper(localName = \"queryPhoneZHHSResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHSResponse\")\n public String queryPhoneZHHS(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansTrialResult\")\n @WebResult(name = \"repayPlansTrialResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansTrial\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrial\")\n @ResponseWrapper(localName = \"repayPlansTrialResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrialResponse\")\n public String repayPlansTrial(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(operationName = \"Idcard\", action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"IdcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"Idcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Idcard\")\n @ResponseWrapper(localName = \"IdcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.IdcardResponse\")\n public String idcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrder\")\n @ResponseWrapper(localName = \"getOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrderResponse\")\n public String getOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/registerBtvOrder\")\n @WebResult(name = \"registerBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"registerBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrder\")\n @ResponseWrapper(localName = \"registerBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrderResponse\")\n public String registerBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/pubTransLog\")\n @WebResult(name = \"pubTransLogResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"pubTransLog\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLog\")\n @ResponseWrapper(localName = \"pubTransLogResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLogResponse\")\n public String pubTransLog(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n}", "@WebService(name = \"publish_portype\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n bc.intra.middleware.api.schema.fault.ObjectFactory.class,\n bc.intra.middleware.api.schema.pubsub.ObjectFactory.class,\n bc.intra.middleware.api.services.pubsub.push.ObjectFactory.class\n})\npublic interface PublishPortype {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns bc.intra.middleware.api.services.pubsub.push.PublishResponseType\n * @throws PublishFaultMessage\n */\n @WebMethod(operationName = \"Publish\", action = \"http://www.proximus.com/middleware/services/pubsub/Publish\")\n @WebResult(name = \"PublishResponse\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n public PublishResponseType publish(\n @WebParam(name = \"PublishRequest\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n PublishRequestType parameters)\n throws PublishFaultMessage\n ;\n\n}", "@WebService(wsdlLocation=\"http://portal.marketplace.losalpes.com.co:7001/soa-infra/services/default/ProcesoRetornoMaterial/returnmaterialadvice_client_ep?WSDL\",\n targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"ReturnMaterialAdvice\")\n@XmlSeeAlso(\n { co.com.losalpes.marketplace.ws.retornoMaterial.types.ObjectFactory.class })\npublic interface ReturnMaterialAdvice\n{\n @WebMethod(action=\"process\")\n @Action(input=\"process\", output=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice/ReturnMaterialAdvice/processResponse\")\n @ResponseWrapper(localName=\"processResponse\", targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n className=\"co.com.losalpes.marketplace.ws.retornoMaterial.types.ProcessResponse\")\n @RequestWrapper(localName=\"process\", targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n className=\"co.com.losalpes.marketplace.ws.retornoMaterial.types.Process\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"numSeguimientoRMA\")\n public String process(@WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"causa\")\n String causa, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"fecha\")\n XMLGregorianCalendar fecha, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"cantidadProducto\")\n int cantidadProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"valorProducto\")\n long valorProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"nombreProducto\")\n String nombreProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"categoriaProducto\")\n String categoriaProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"referenciaProducto\")\n String referenciaProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"numSeguimientoPO\")\n String numSeguimientoPO, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"numSeguimientoDA\")\n String numSeguimientoDA);\n}", "@WebService(targetNamespace = \"http://ven.ws.pms.dhcc.com/\", name = \"OrderStateWServiceInterface\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface OrderStateWServiceInterface {\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult deliver(\r\n @WebParam(partName = \"deliveritms\", name = \"deliveritms\")\r\n VenDeliveritmArray deliveritms\r\n );\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult getVenInc(\r\n @WebParam(partName = \"venIncWeb\", name = \"venIncWeb\")\r\n VenIncWeb venIncWeb\r\n );\r\n\r\n @WebResult(name = \"orderWebVos\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"orderWebVos\")\r\n @WebMethod\r\n public OrderWebVoArray listOrderWS(\r\n @WebParam(partName = \"passWord\", name = \"passWord\")\r\n java.lang.String passWord,\r\n @WebParam(partName = \"userName\", name = \"userName\")\r\n java.lang.String userName\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"return\")\r\n @WebMethod\r\n public OperateResult recievedMsg(\r\n @WebParam(partName = \"orderId\", name = \"orderId\")\r\n long orderId\r\n );\r\n}", "@AsyncWebService\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED, style = SOAPBinding.Style.DOCUMENT)\n@PortableWebService(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/\",\n name=\"WorkforceReputationService\", wsdlLocation=\"oracle/apps/hcm/hwr/coreService/WorkforceReputationService.wsdl\")\n@SDODatabinding(schemaLocation=\"oracle/apps/hcm/hwr/coreService/WorkforceReputationService.xsd\")\npublic interface WorkforceReputationService {\n\n\n public static final String NAME = \"{http://xmlns.oracle.com/apps/hcm/hwr/coreService/}WorkforceReputationService\";\n\n /**\n * Exported method pollForJob from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/pollForJob\",\n operationName=\"pollForJob\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"pollForJob\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"pollForJobResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String pollForJob(@WebParam(mode = WebParam.Mode.IN, name=\"WLA\")\n String WLA) throws ServiceException;\n\n /**\n * Exported method updateJobProgress from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/updateJobProgress\",\n operationName=\"updateJobProgress\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"updateJobProgress\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"updateJobProgressResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String updateJobProgress(@WebParam(mode = WebParam.Mode.IN, name=\"JobId\")\n String JobId) throws ServiceException;\n\n /**\n * Exported method writeConnectorData from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/writeConnectorData\",\n operationName=\"writeConnectorData\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"writeConnectorData\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"writeConnectorDataResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String writeConnectorData(@WebParam(mode = WebParam.Mode.IN, name=\"DataWriter\")\n String DataWriter) throws ServiceException;\n\n /**\n * Exported method mergePersonaSyncData from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/mergePersonaSyncData\",\n operationName=\"mergePersonaSyncData\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"mergePersonaSyncData\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"mergePersonaSyncDataResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String mergePersonaSyncData(@WebParam(mode = WebParam.Mode.IN, name=\"PersonaSyncdata\")\n String PersonaSyncdata) throws ServiceException;\n\n /**\n * Exported method registerUser from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/registerUser\",\n operationName=\"registerUser\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"registerUser\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"registerUserResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String registerUser(@WebParam(mode = WebParam.Mode.IN, name=\"PersonaSyncdata\")\n String PersonaSyncdata) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/mergePersonaSyncDataAsync\",\n operationName=\"mergePersonaSyncDataAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"mergePersonaSyncDataAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"mergePersonaSyncDataAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/mergePersonaSyncDataAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/mergePersonaSyncDataAsyncResponse\")\n String mergePersonaSyncDataAsync(@WebParam(mode = WebParam.Mode.IN, name=\"PersonaSyncdata\")\n String PersonaSyncdata) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/updateJobProgressAsync\",\n operationName=\"updateJobProgressAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"updateJobProgressAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"updateJobProgressAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/updateJobProgressAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/updateJobProgressAsyncResponse\")\n String updateJobProgressAsync(@WebParam(mode = WebParam.Mode.IN, name=\"JobId\")\n String JobId) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/pollForJobAsync\",\n operationName=\"pollForJobAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"pollForJobAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"pollForJobAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/pollForJobAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/pollForJobAsyncResponse\")\n String pollForJobAsync(@WebParam(mode = WebParam.Mode.IN, name=\"WLA\")\n String WLA) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/writeConnectorDataAsync\",\n operationName=\"writeConnectorDataAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"writeConnectorDataAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"writeConnectorDataAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/writeConnectorDataAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/writeConnectorDataAsyncResponse\")\n String writeConnectorDataAsync(@WebParam(mode = WebParam.Mode.IN, name=\"DataWriter\")\n String DataWriter) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/registerUserAsync\",\n operationName=\"registerUserAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"registerUserAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"registerUserAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/registerUserAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/registerUserAsyncResponse\")\n String registerUserAsync(@WebParam(mode = WebParam.Mode.IN, name=\"PersonaSyncdata\")\n String PersonaSyncdata) throws ServiceException;\n\n /**\n * Exported method initializeWLA from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/initializeWLA\",\n operationName=\"initializeWLA\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"initializeWLA\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"initializeWLAResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String initializeWLA(@WebParam(mode = WebParam.Mode.IN, name=\"initializationInformation\")\n String initializationInformation) throws ServiceException;\n\n /**\n * Exported method getUserProfile from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfile\",\n operationName=\"getUserProfile\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfile\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getUserProfile(@WebParam(mode = WebParam.Mode.IN, name=\"profileInformation\")\n String profileInformation) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/initializeWLAAsync\",\n operationName=\"initializeWLAAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"initializeWLAAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"initializeWLAAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/initializeWLAAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/initializeWLAAsyncResponse\")\n String initializeWLAAsync(@WebParam(mode = WebParam.Mode.IN, name=\"initializationInformation\")\n String initializationInformation) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfileAsync\",\n operationName=\"getUserProfileAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfileAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfileAsyncResponse\")\n String getUserProfileAsync(@WebParam(mode = WebParam.Mode.IN, name=\"profileInformation\")\n String profileInformation) throws ServiceException;\n\n /**\n * Exported method getMyEndorsements from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getMyEndorsements\",\n operationName=\"getMyEndorsements\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getMyEndorsements\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getMyEndorsementsResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getMyEndorsements(@WebParam(mode = WebParam.Mode.IN, name=\"pGlobalProfileId\")\n String pGlobalProfileId) throws ServiceException;\n\n /**\n * Exported method getUserToEndorse from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserToEndorse\",\n operationName=\"getUserToEndorse\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserToEndorse\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserToEndorseResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getUserToEndorse(@WebParam(mode = WebParam.Mode.IN, name=\"pGlobalProfileIds\")\n String pGlobalProfileIds) throws ServiceException;\n\n /**\n * Exported method searchUserToEndorse from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/searchUserToEndorse\",\n operationName=\"searchUserToEndorse\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"searchUserToEndorse\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"searchUserToEndorseResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String searchUserToEndorse(@WebParam(mode = WebParam.Mode.IN, name=\"pSearchCriteria\")\n String pSearchCriteria) throws ServiceException;\n\n /**\n * Exported method EndorseUser from WorkforceReputationPublicServiceAM.\n */\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/EndorseUser\",\n operationName=\"EndorseUser\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"EndorseUser\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"EndorseUserResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String EndorseUser(@WebParam(mode = WebParam.Mode.IN, name=\"pEndorsement\")\n String pEndorsement) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/searchUserToEndorseAsync\",\n operationName=\"searchUserToEndorseAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"searchUserToEndorseAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"searchUserToEndorseAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/searchUserToEndorseAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/searchUserToEndorseAsyncResponse\")\n String searchUserToEndorseAsync(@WebParam(mode = WebParam.Mode.IN, name=\"pSearchCriteria\")\n String pSearchCriteria) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/EndorseUserAsync\",\n operationName=\"EndorseUserAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"EndorseUserAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"EndorseUserAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/EndorseUserAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/EndorseUserAsyncResponse\")\n String EndorseUserAsync(@WebParam(mode = WebParam.Mode.IN, name=\"pEndorsement\")\n String pEndorsement) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserToEndorseAsync\",\n operationName=\"getUserToEndorseAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserToEndorseAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserToEndorseAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserToEndorseAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserToEndorseAsyncResponse\")\n String getUserToEndorseAsync(@WebParam(mode = WebParam.Mode.IN, name=\"pGlobalProfileIds\")\n String pGlobalProfileIds) throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getMyEndorsementsAsync\",\n operationName=\"getMyEndorsementsAsync\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getMyEndorsementsAsync\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getMyEndorsementsAsyncResponse\")\n @WebResult(name=\"result\")\n @Action(input=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getMyEndorsementsAsync\",\n output=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getMyEndorsementsAsyncResponse\")\n String getMyEndorsementsAsync(@WebParam(mode = WebParam.Mode.IN, name=\"pGlobalProfileId\")\n String pGlobalProfileId) throws ServiceException;\n}", "@WebService(targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", name = \"PasswordGeneratorWSServer\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface PasswordGeneratorWSServer {\n\n @WebMethod(action = \"urn:GeneratePasswordAction\")\n @RequestWrapper(localName = \"generatePassword\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePassword\")\n @ResponseWrapper(localName = \"generatePasswordResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePasswordResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String generatePassword(\n @WebParam(name = \"length\", targetNamespace = \"\")\n java.lang.String length\n );\n\n @WebMethod(action = \"urn:VersionAction\")\n @RequestWrapper(localName = \"version\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.Version\")\n @ResponseWrapper(localName = \"versionResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.VersionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String version();\n}", "@WebService(name = \"BankInterface\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BankInterface {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByID\")\n @ResponseWrapper(localName = \"getOperationByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByIDResponse\")\n public String getOperationByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.SET\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConti\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetConti\")\n @ResponseWrapper(localName = \"getContiResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetContiResponse\")\n public SET getConti();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationsByClientID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientID\")\n @ResponseWrapper(localName = \"getOperationsByClientIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientIDResponse\")\n public List<String> getOperationsByClientID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientIDs\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDs\")\n @ResponseWrapper(localName = \"getClientIDsResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDsResponse\")\n public List<String> getClientIDs();\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.MAP\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDbop\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbop\")\n @ResponseWrapper(localName = \"getDbopResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbopResponse\")\n public MAP getDbop();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByID\")\n @ResponseWrapper(localName = \"getClientByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByIDResponse\")\n public String getClientByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(targetNamespace = \"http://interfaces.webService.xxdai.com/\", name = \"BaseInfoCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BaseInfoCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"alterBaseInfo\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"alterBaseInfoResponse\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfoResponse\")\n public java.lang.String alterBaseInfo(\n @WebParam(name = \"alterBaseInfoJson\", targetNamespace = \"\")\n java.lang.String alterBaseInfoJson\n );\n}", "@WebService(targetNamespace = \"http://inf.ind.jdo/\", name = \"IndService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface IndService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"onSaveDispense\", targetNamespace = \"http://inf.ind.jdo/\", className = \"action.spc.client.OnSaveDispense\")\n @WebMethod\n @ResponseWrapper(localName = \"onSaveDispenseResponse\", targetNamespace = \"http://inf.ind.jdo/\", className = \"action.spc.client.OnSaveDispenseResponse\")\n public java.lang.String onSaveDispense(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n}", "@WebService(name = \"InterestCalculator\", targetNamespace = \"http://webserviceprovider.easylearnjava.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface InterestCalculator {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns double\n * @throws InterestException_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n @Action(input = \"http://webserviceprovider.easylearnjava.com/InterestCalculator/calculateInterestFromObjectRequest\", output = \"http://webserviceprovider.easylearnjava.com/InterestCalculator/calculateInterestFromObjectResponse\", fault = {\n @FaultAction(className = InterestException_Exception.class, value = \"http://webserviceprovider.easylearnjava.com/InterestCalculator/calculateInterestFromObject/Fault/InterestException\")\n })\n public double calculateInterestFromObject(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Purchase arg0)\n throws InterestException_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns double\n * @throws InterestException_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n @Action(input = \"http://webserviceprovider.easylearnjava.com/InterestCalculator/calculateSimpleInterestRequest\", output = \"http://webserviceprovider.easylearnjava.com/InterestCalculator/calculateSimpleInterestResponse\", fault = {\n @FaultAction(className = InterestException_Exception.class, value = \"http://webserviceprovider.easylearnjava.com/InterestCalculator/calculateSimpleInterest/Fault/InterestException\")\n })\n public double calculateSimpleInterest(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n double arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n double arg1)\n throws InterestException_Exception\n ;\n\n}", "@WebService(name = \"CreditReportServiceDelegate\", targetNamespace = \"http://webservice.icrqs.cfcc.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CreditReportServiceDelegate {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.cfcc.icrqs.webservice.CuResult\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public CuResult sendCuRequest(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n CuSingleRequest arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.cfcc.icrqs.webservice.CuSingleResult\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public CuSingleResult getCuResult(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n CuGetResult arg0);\n\n}", "@WebService(name = \"ProfilePort\", targetNamespace = \"http://ws.clkio.com\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n com.clkio.schemas.ObjectFactory.class,\n com.clkio.schemas.adjusting.ObjectFactory.class,\n com.clkio.schemas.clockinclockout.ObjectFactory.class,\n com.clkio.schemas.common.ObjectFactory.class,\n com.clkio.schemas.day.ObjectFactory.class,\n com.clkio.schemas.email.ObjectFactory.class,\n com.clkio.schemas.login.ObjectFactory.class,\n com.clkio.schemas.manualentering.ObjectFactory.class,\n com.clkio.schemas.profile.ObjectFactory.class,\n com.clkio.schemas.reason.ObjectFactory.class,\n com.clkio.schemas.resetpassword.ObjectFactory.class,\n com.clkio.schemas.timecard.ObjectFactory.class,\n com.clkio.schemas.user.ObjectFactory.class\n})\npublic interface ProfilePort {\n\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.profile.ListProfileResponse\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"listProfileResponse\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ListProfileResponse list(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"listProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n ListProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.ResponseCreated\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"responseCreated\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ResponseCreated insert(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"insertProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n InsertProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response update(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"updateProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n UpdateProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response delete(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"deleteProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n DeleteProfileRequest request)\n throws ResponseException\n ;\n\n}", "@WebService(targetNamespace = \"http://soap.spring.com/ws/poverenik\", name = \"Poverenik\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface Poverenik {\n\n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String sayHi(\n @WebParam(partName = \"text\", name = \"text\")\n String text\n );\n \n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String saveExplanation(\n @WebParam(partName = \"xml\", name = \"xml\")\n String xml\n );\n \n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String saveReport(\n @WebParam(partName = \"izvestaj\", name = \"izvestaj\")\n String izvestaj\n );\n}", "@WebService(targetNamespace = \"http://schemas.bigfix.com/Relevance\", name = \"DashboardVariablePortType\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface DashboardVariablePortType {\n\n @ResponseWrapper(localName = \"StoreSharedVariableResponse\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.StoreSharedVariableResponse\")\n @RequestWrapper(localName = \"StoreSharedVariable\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.StoreSharedVariable\")\n @WebMethod(operationName = \"StoreSharedVariable\")\n public Response<com.bigfix.schemas.relevance.StoreSharedVariableResponse> storeSharedVariableAsync(\n @WebParam(name = \"dashboardVariableIdentifier\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier,\n @WebParam(name = \"variableValue\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n java.lang.String variableValue,\n @WebParam(name = \"RequestHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n RequestHeader requestHeader,\n @WebParam(mode = WebParam.Mode.OUT, name = \"ResponseHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n javax.xml.ws.Holder<ResponseHeader> responseHeader\n );\n\n @ResponseWrapper(localName = \"StoreSharedVariableResponse\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.StoreSharedVariableResponse\")\n @RequestWrapper(localName = \"StoreSharedVariable\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.StoreSharedVariable\")\n @WebMethod(operationName = \"StoreSharedVariable\")\n public Future<?> storeSharedVariableAsync(\n @WebParam(name = \"dashboardVariableIdentifier\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier,\n @WebParam(name = \"variableValue\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n java.lang.String variableValue,\n @WebParam(name = \"RequestHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n RequestHeader requestHeader,\n @WebParam(mode = WebParam.Mode.OUT, name = \"ResponseHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n javax.xml.ws.Holder<ResponseHeader> responseHeader,\n @WebParam(name = \"asyncHandler\", targetNamespace = \"\")\n AsyncHandler<com.bigfix.schemas.relevance.StoreSharedVariableResponse> asyncHandler\n );\n\n @WebResult(name = \"success\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n @ResponseWrapper(localName = \"StoreSharedVariableResponse\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.StoreSharedVariableResponse\")\n @RequestWrapper(localName = \"StoreSharedVariable\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.StoreSharedVariable\")\n @WebMethod(operationName = \"StoreSharedVariable\", action = \"http://schemas.bigfix.com/Relevance/soapaction\")\n public boolean storeSharedVariable(\n @WebParam(name = \"dashboardVariableIdentifier\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier,\n @WebParam(name = \"variableValue\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n java.lang.String variableValue,\n @WebParam(name = \"RequestHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n RequestHeader requestHeader,\n @WebParam(mode = WebParam.Mode.OUT, name = \"ResponseHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n javax.xml.ws.Holder<ResponseHeader> responseHeader\n );\n\n @ResponseWrapper(localName = \"DeleteSharedVariableResponse\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.DeleteSharedVariableResponse\")\n @RequestWrapper(localName = \"DeleteSharedVariable\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.DeleteSharedVariable\")\n @WebMethod(operationName = \"DeleteSharedVariable\")\n public Response<com.bigfix.schemas.relevance.DeleteSharedVariableResponse> deleteSharedVariableAsync(\n @WebParam(name = \"dashboardVariableIdentifier\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier,\n @WebParam(name = \"RequestHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n RequestHeader requestHeader,\n @WebParam(mode = WebParam.Mode.OUT, name = \"ResponseHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n javax.xml.ws.Holder<ResponseHeader> responseHeader\n );\n\n @ResponseWrapper(localName = \"DeleteSharedVariableResponse\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.DeleteSharedVariableResponse\")\n @RequestWrapper(localName = \"DeleteSharedVariable\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.DeleteSharedVariable\")\n @WebMethod(operationName = \"DeleteSharedVariable\")\n public Future<?> deleteSharedVariableAsync(\n @WebParam(name = \"dashboardVariableIdentifier\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier,\n @WebParam(name = \"RequestHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n RequestHeader requestHeader,\n @WebParam(mode = WebParam.Mode.OUT, name = \"ResponseHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n javax.xml.ws.Holder<ResponseHeader> responseHeader,\n @WebParam(name = \"asyncHandler\", targetNamespace = \"\")\n AsyncHandler<com.bigfix.schemas.relevance.DeleteSharedVariableResponse> asyncHandler\n );\n\n @WebResult(name = \"success\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n @ResponseWrapper(localName = \"DeleteSharedVariableResponse\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.DeleteSharedVariableResponse\")\n @RequestWrapper(localName = \"DeleteSharedVariable\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", className = \"com.bigfix.schemas.relevance.DeleteSharedVariable\")\n @WebMethod(operationName = \"DeleteSharedVariable\", action = \"http://schemas.bigfix.com/Relevance/soapaction\")\n public boolean deleteSharedVariable(\n @WebParam(name = \"dashboardVariableIdentifier\", targetNamespace = \"http://schemas.bigfix.com/Relevance\")\n com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier,\n @WebParam(name = \"RequestHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n RequestHeader requestHeader,\n @WebParam(mode = WebParam.Mode.OUT, name = \"ResponseHeaderElement\", targetNamespace = \"http://schemas.bigfix.com/Relevance\", header = true)\n javax.xml.ws.Holder<ResponseHeader> responseHeader\n );\n}", "private void buildRpcRequest(BindingOperation bindingOperation, XmlCursor cursor, SampleXmlUtility xmlGenerator, List<String> parametersToBeRemoved, List<Parameter> parametersToTry, String serviceName)\r\n throws Exception {\n String ns = WsdlUtils.getSoapBodyNamespace(bindingOperation.getBindingInput().getExtensibilityElements());\r\n if (ns == null) {\r\n ns = WsdlUtils.getTargetNamespace(wsdlContext.getDefinition());\r\n log.warn(\"missing namespace on soapbind:body for RPC request, using targetNamespace instead (BP violation)\");\r\n }\r\n cursor.beginElement(new QName(ns, bindingOperation.getName()));\r\n if (xmlGenerator.isSoapEnc()) {\r\n cursor.insertAttributeWithValue(new QName(wsdlContext.getSoapVersion().getEnvelopeNamespace(),\r\n \"encodingStyle\"), wsdlContext.getSoapVersion().getEncodingNamespace());\r\n }\r\n Part[] inputParts = WsdlUtils.getInputParts(bindingOperation);\r\n for (int i = 0; i < inputParts.length; i++) {\r\n Part part = inputParts[i];\r\n if (WsdlUtils.isAttachmentInputPart(part, bindingOperation)) {\r\n if (iface.getSettings().getBoolean(WsdlSettings.ATTACHMENT_PARTS)) {\r\n XmlCursor c = cursor.newCursor();\r\n c.toLastChild();\r\n c.beginElement(part.getName());\r\n c.insertAttributeWithValue(\"href\", part.getName() + \"Attachment\");\r\n c.dispose();\r\n }\r\n } else {\r\n if (wsdlContext.hasSchemaTypes()) {\r\n QName typeName = part.getTypeName();\r\n if (typeName != null) {\r\n SchemaType type = wsdlContext.getInterfaceDefinition().findType(typeName);\r\n if (type != null) {\r\n XmlCursor c = cursor.newCursor();\r\n c.toLastChild();\r\n c.insertElement(part.getName());\r\n c.toPrevToken();\r\n xmlGenerator.createSampleForType(type, c, null, null, null, parametersToBeRemoved, parametersToTry, serviceName, null);\r\n c.dispose();\r\n } else {\r\n log.warn(\"Failed to find type [\" + typeName + \"]\");\r\n }\r\n } else {\r\n SchemaGlobalElement element = wsdlContext.getSchemaTypeLoader().findElement(part.getElementName());\r\n if (element != null) {\r\n XmlCursor c = cursor.newCursor();\r\n c.toLastChild();\r\n c.insertElement(element.getName());\r\n c.toPrevToken();\r\n xmlGenerator.createSampleForType(element.getType(), c, null, null, null, parametersToBeRemoved, parametersToTry, serviceName, null);\r\n c.dispose();\r\n } else {\r\n log.warn(\"Failed to find element [\" + part.getElementName() + \"]\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "public interface WSDLModel extends WSDLExtensible {\n /**\n * Gets {@link WSDLPortType} that models <code>wsdl:portType</code>\n *\n * @param name non-null quaified name of wsdl:message, where the localName is the value of <code>wsdl:portType@name</code> and\n * the namespaceURI is the value of wsdl:definitions@targetNamespace\n * @return A {@link com.sun.xml.ws.api.model.wsdl.WSDLPortType} or null if no wsdl:portType found.\n */\n WSDLPortType getPortType(@NotNull QName name);\n\n /**\n * Gets {@link WSDLBoundPortType} that models <code>wsdl:binding</code>\n *\n * @param name non-null quaified name of wsdl:binding, where the localName is the value of <code>wsdl:binding@name</code> and\n * the namespaceURI is the value of wsdl:definitions@targetNamespace\n * @return A {@link WSDLBoundPortType} or null if no wsdl:binding found\n */\n WSDLBoundPortType getBinding(@NotNull QName name);\n\n /**\n * Give a {@link WSDLBoundPortType} for the given wsdl:service and wsdl:port names.\n *\n * @param serviceName service QName\n * @param portName port QName\n * @return A {@link WSDLBoundPortType}. null if the Binding for the given wsd:service and wsdl:port name are not\n * found.\n */\n WSDLBoundPortType getBinding(@NotNull QName serviceName, @NotNull QName portName);\n\n /**\n * Gets {@link WSDLService} that models <code>wsdl:service</code>\n *\n * @param name non-null quaified name of wsdl:service, where the localName is the value of <code>wsdl:service@name</code> and\n * the namespaceURI is the value of wsdl:definitions@targetNamespace\n * @return A {@link WSDLService} or null if no wsdl:service found\n */\n WSDLService getService(@NotNull QName name);\n\n /**\n * Gives a {@link Map} of wsdl:portType {@link QName} and {@link WSDLPortType}\n *\n * @return an empty Map if the wsdl document has no wsdl:portType\n */\n @NotNull Map<QName, ? extends WSDLPortType> getPortTypes();\n\n /**\n * Gives a {@link Map} of wsdl:binding {@link QName} and {@link WSDLBoundPortType}\n *\n * @return an empty Map if the wsdl document has no wsdl:binding\n */\n @NotNull Map<QName, WSDLBoundPortType> getBindings();\n\n /**\n * Gives a {@link Map} of wsdl:service qualified name and {@link com.sun.xml.ws.api.model.wsdl.WSDLService}\n *\n * @return an empty Map if the wsdl document has no wsdl:service\n */\n @NotNull Map<QName, ? extends WSDLService> getServices();\n\n /**\n * Gives the PolicyMap associated with the WSDLModel\n *\n * @return PolicyMap\n *\n * @deprecated\n * Do not use this method as the PolicyMap API is not final yet and might change in next few months.\n */\n public PolicyMap getPolicyMap();\n\n\n /**\n * Main purpose of this class is to parsing of a WSDL and get the {@link WSDLModel} from it.\n */\n public class WSDLParser{\n /**\n * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.\n *\n * @param wsdlEntityParser Works like an entityResolver to resolve WSDLs\n * @param resolver {@link XMLEntityResolver}, works at XML infoset level\n * @param isClientSide true - its invoked on the client, false means its invoked on the server\n * @param extensions var args of {@link com.sun.xml.ws.api.wsdl.parser.WSDLParserExtension}s\n * @return A {@link WSDLModel} built from the given wsdlLocation}\n * @throws java.io.IOException\n * @throws javax.xml.stream.XMLStreamException\n * @throws org.xml.sax.SAXException\n */\n public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {\n return parse(wsdlEntityParser, resolver, isClientSide, Container.NONE, extensions);\n }\n\n /**\n * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.\n *\n * @param wsdlEntityParser Works like an entityResolver to resolve WSDLs\n * @param resolver {@link XMLEntityResolver}, works at XML infoset level\n * @param isClientSide true - its invoked on the client, false means its invoked on the server\n * @param container - container in which the parser is run\n * @param extensions var args of {@link com.sun.xml.ws.api.wsdl.parser.WSDLParserExtension}s\n * @return A {@link WSDLModel} built from the given wsdlLocation}\n * @throws java.io.IOException\n * @throws javax.xml.stream.XMLStreamException\n * @throws org.xml.sax.SAXException\n */\n public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {\n return parse(wsdlEntityParser, resolver, isClientSide, container, PolicyResolverFactory.create(),extensions);\n }\n\n\n /**\n * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.\n *\n * @param wsdlEntityParser Works like an entityResolver to resolve WSDLs\n * @param resolver {@link XMLEntityResolver}, works at XML infoset level\n * @param isClientSide true - its invoked on the client, false means its invoked on the server\n * @param container - container in which the parser is run\n * @param policyResolver - PolicyResolver for resolving effective Policy\n * @param extensions var args of {@link com.sun.xml.ws.api.wsdl.parser.WSDLParserExtension}s\n * @return A {@link WSDLModel} built from the given wsdlLocation}\n * @throws java.io.IOException\n * @throws javax.xml.stream.XMLStreamException\n * @throws org.xml.sax.SAXException\n */\n public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, PolicyResolver policyResolver, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {\n return RuntimeWSDLParser.parse(wsdlEntityParser, resolver, isClientSide, container, policyResolver, extensions);\n }\n\n }\n}", "@WebService(name = \"BillingService\", targetNamespace = \"http://billing.jaxws.bt.com/\")\n@HandlerChain(file = \"BillingService_handler.xml\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n com.bt.jaxb.model.ObjectFactory.class,\n com.bt.jaxws.billing.ObjectFactory.class\n})\npublic interface BillingService {\n\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns javax.xml.ws.Response<com.bt.jaxws.billing.Invoice>\n */\n @WebMethod(operationName = \"getInvoice\")\n public Response<Invoice> getInvoiceAsync(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @param asyncHandler\n * @return\n * returns java.util.concurrent.Future<? extends java.lang.Object>\n */\n @WebMethod(operationName = \"getInvoice\")\n public Future<?> getInvoiceAsync(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1,\n @WebParam(name = \"asyncHandler\", partName = \"asyncHandler\")\n AsyncHandler<Invoice> asyncHandler);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.bt.jaxws.billing.Invoice\n * @throws InvalidCustomerException_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n @Action(input = \"http://billing.jaxws.bt.com/BillingService/getInvoiceRequest\", output = \"http://billing.jaxws.bt.com/BillingService/getInvoiceResponse\", fault = {\n @FaultAction(className = InvalidCustomerException_Exception.class, value = \"http://billing.jaxws.bt.com/BillingService/getInvoice/Fault/InvalidCustomerException\")\n })\n public Invoice getInvoice(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1)\n throws InvalidCustomerException_Exception\n ;\n\n}", "@WebService(name = \"XMXUTIL2Inmsg2\", targetNamespace = \"http://vistaevolution.va.gov\")\npublic interface XMXUTIL2Inmsg2Endpoint {\n \n \n \n /**\n * <pre>\n * \n * This RPC returns message information (Part 2).\n * \n * </pre>\n * \n * @param request -\n * \n * Domain Object that contains All Inmsg2^XMXUTIL2 input\n * Parameters\n * \n * @return XMXUTIL2Inmsg2Response -\n * \n * Domain Object that contains Inmsg2^XMXUTIL2 output data\n * \n * @throws VistaWebServiceFault\n */\n @WebMethod(action = \"XMXUTIL2Inmsg2Action\", operationName = \"XMXUTIL2Inmsg2\")\n public XMXUTIL2Inmsg2Response inmsg2(@WebParam(name = \"XMXUTIL2Inmsg2Request\") XMXUTIL2Inmsg2Request request)\n throws VistaWebServiceFault;\n}", "@WebService(name = \"memberWs\", targetNamespace = \"http://webservice.cereme.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MemberWs {\r\n\r\n\r\n /**\r\n * \r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"init\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.Init\")\r\n @ResponseWrapper(localName = \"initResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.InitResponse\")\r\n public void init();\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<org.cereme.digital.library.clientws.Member>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findAll\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAll\")\r\n @ResponseWrapper(localName = \"findAllResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAllResponse\")\r\n public List<Member> findAll();\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns org.cereme.digital.library.clientws.Member\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findByUsername\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsername\")\r\n @ResponseWrapper(localName = \"findByUsernameResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsernameResponse\")\r\n public Member findByUsername(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"updateMember\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMember\")\r\n @ResponseWrapper(localName = \"updateMemberResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMemberResponse\")\r\n public String updateMember(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Member arg0);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @return\r\n * returns boolean\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"isValidUser\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUser\")\r\n @ResponseWrapper(localName = \"isValidUserResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUserResponse\")\r\n public boolean isValidUser(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1);\r\n\r\n}", "@WebService(name = \"BookService\", targetNamespace = \"http://webservices.arabie.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BookService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.DeleteBook\")\n @ResponseWrapper(localName = \"deleteBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.DeleteBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/deleteBookRequest\", output = \"http://webservices.arabie.com/BookService/deleteBookResponse\")\n public boolean deleteBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.GetBook\")\n @ResponseWrapper(localName = \"getBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.GetBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/getBookRequest\", output = \"http://webservices.arabie.com/BookService/getBookResponse\")\n public Book getBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.AddBook\")\n @ResponseWrapper(localName = \"addBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.AddBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/addBookRequest\", output = \"http://webservices.arabie.com/BookService/addBookResponse\")\n public Book addBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n double arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.UpdateBook\")\n @ResponseWrapper(localName = \"updateBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.UpdateBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/updateBookRequest\", output = \"http://webservices.arabie.com/BookService/updateBookResponse\")\n public Book updateBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "@WebMethod\n URI proxify(URI wsdlURI);", "@WebService(name = \"IBETicketImplDelegate\", targetNamespace = \"http://webservice.viptrip.com/\")\npublic interface IBETicketImplDelegate {\n\n\t/**\n\t * \n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t */\n\t@WebMethod(operationName = \"SellIBETicket\")\n\t@WebResult(targetNamespace = \"\")\n\t@RequestWrapper(localName = \"SellIBETicket\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.SellIBETicket\")\n\t@ResponseWrapper(localName = \"SellIBETicketResponse\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.SellIBETicketResponse\")\n\tpublic String sellIBETicket(\n\t\t\t@WebParam(name = \"arg0\", targetNamespace = \"\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", targetNamespace = \"\") int arg1);\n\t\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"splitPnrByName\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.SplitPnrByName\")\n @ResponseWrapper(localName = \"splitPnrByNameResponse\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.SplitPnrByNameResponse\")\n public String splitPnrByName(@WebParam(name = \"arg0\", targetNamespace = \"\") String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\") String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\") boolean arg2);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"rrAndIssueIBETicke\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.RrAndIssueIBETicke\")\n @ResponseWrapper(localName = \"rrAndIssueIBETickeResponse\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.RrAndIssueIBETickeResponse\")\n public String rrAndIssueIBETicke(@WebParam(name = \"arg0\", targetNamespace = \"\") String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\") int arg1);\n\n\n\n /**\n * \n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"changeDate\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.ChangeDate\")\n @ResponseWrapper(localName = \"changeDateResponse\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.ChangeDateResponse\")\n public String changeDate(@WebParam(name = \"arg0\", targetNamespace = \"\") String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\") String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\") String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\") String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\") String arg4);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"changePnr\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.ChangePnr\")\n @ResponseWrapper(localName = \"changePnrResponse\", targetNamespace = \"http://webservice.viptrip.com/\", className = \"com.viptrip.wetrip.wsclient.ChangePnrResponse\")\n public String changePnr(@WebParam(name = \"arg0\", targetNamespace = \"\") String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\") List<String> arg1);\n\n}", "@WebService(name = \"BVAC_AGENCYSoap\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BVACAGENCYSoap {\r\n\r\n\r\n /**\r\n * L\\u1ea5y danh sách lo\\u1ea1i \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetDMLoaiAnChi\", action = \"http://tempuri.org/GetDMLoaiAnChi\")\r\n @WebResult(name = \"GetDMLoaiAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetDMLoaiAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChi\")\r\n @ResponseWrapper(localName = \"GetDMLoaiAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChiResponse\")\r\n public String getDMLoaiAnChi(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * L\\u1ea5y danh sách \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetAnChiByAgency\", action = \"http://tempuri.org/GetAnChiByAgency\")\r\n @WebResult(name = \"GetAnChiByAgencyResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetAnChiByAgency\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgency\")\r\n @ResponseWrapper(localName = \"GetAnChiByAgencyResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgencyResponse\")\r\n public String getAnChiByAgency(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * C\\u1eadp nh\\u1eadt danh sách \\u1ea5n ch\\u1ec9 \\u0111ã s\\u1eed d\\u1ee5ng\r\n * \r\n * @param anChis\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"UpdateListAnChi\", action = \"http://tempuri.org/UpdateListAnChi\")\r\n @WebResult(name = \"UpdateListAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"UpdateListAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChi\")\r\n @ResponseWrapper(localName = \"UpdateListAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChiResponse\")\r\n public String updateListAnChi(\r\n @WebParam(name = \"anChis\", targetNamespace = \"http://tempuri.org/\")\r\n String anChis);\r\n\r\n}", "@WebService(targetNamespace = \"http://webservice.account.xxdai.com/\", name = \"AccountQueryCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface AccountQueryCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountLog2ByIdAndType\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLog2ByIdAndType\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountLog2ByIdAndTypeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLog2ByIdAndTypeResponse\")\n public java.lang.String selectAccountLog2ByIdAndType(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"selectMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectMoneyRecordResponse\")\n public java.lang.String selectMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountByIdAndType\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountByIdAndType\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountByIdAndTypeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountByIdAndTypeResponse\")\n public java.lang.String selectAccountByIdAndType(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"increaseAccountUsable\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.IncreaseAccountUsable\")\n @WebMethod\n @ResponseWrapper(localName = \"increaseAccountUsableResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.IncreaseAccountUsableResponse\")\n public java.lang.String increaseAccountUsable(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"counttMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CounttMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"counttMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CounttMoneyRecordResponse\")\n public java.lang.String counttMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"freezeAccount\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.FreezeAccount\")\n @WebMethod\n @ResponseWrapper(localName = \"freezeAccountResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.FreezeAccountResponse\")\n public java.lang.String freezeAccount(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"coinExchange\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CoinExchange\")\n @WebMethod\n @ResponseWrapper(localName = \"coinExchangeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CoinExchangeResponse\")\n public java.lang.String coinExchange(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectOverdueRepaymentByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectOverdueRepaymentByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectOverdueRepaymentByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectOverdueRepaymentByUserIdResponse\")\n public java.lang.String selectOverdueRepaymentByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccountLogSum\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountLogSum\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountLogSumResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountLogSumResponse\")\n public java.lang.String getAccountLogSum(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectUserAccountAndCoupon\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectUserAccountAndCoupon\")\n @WebMethod\n @ResponseWrapper(localName = \"selectUserAccountAndCouponResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectUserAccountAndCouponResponse\")\n public java.lang.String selectUserAccountAndCoupon(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPageAccountMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectPageAccountMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"selectPageAccountMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectPageAccountMoneyRecordResponse\")\n public java.lang.String selectPageAccountMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectSixAccountLogByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectSixAccountLogByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectSixAccountLogByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectSixAccountLogByUserIdResponse\")\n public java.lang.String selectSixAccountLogByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryLevelLogList\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.QueryLevelLogList\")\n @WebMethod\n @ResponseWrapper(localName = \"queryLevelLogListResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.QueryLevelLogListResponse\")\n public java.lang.String queryLevelLogList(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccountSum\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountSum\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountSumResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountSumResponse\")\n public java.lang.String getAccountSum(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveAccountLog\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SaveAccountLog\")\n @WebMethod\n @ResponseWrapper(localName = \"saveAccountLogResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SaveAccountLogResponse\")\n public java.lang.String saveAccountLog(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountLogByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLogByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountLogByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLogByUserIdResponse\")\n public java.lang.String selectAccountLogByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectIsUserOverdue\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectIsUserOverdue\")\n @WebMethod\n @ResponseWrapper(localName = \"selectIsUserOverdueResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectIsUserOverdueResponse\")\n public java.lang.String selectIsUserOverdue(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n}", "@WebService(targetNamespace = \"http://webservice.grtwf.uaf.com/\", name = \"ApprovalWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ApprovalWebService {\n\n @RequestWrapper(localName = \"claimTask\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.ClaimTask\")\n @WebMethod\n @ResponseWrapper(localName = \"claimTaskResponse\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.ClaimTaskResponse\")\n public void claimTask(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n ) throws Exception_Exception;\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVariables\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.GetVariables\")\n @WebMethod\n @ResponseWrapper(localName = \"getVariablesResponse\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.GetVariablesResponse\")\n public com.uaf.grtwf.webservice.MapEntityArray getVariables(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n ) throws Exception_Exception;\n\n @RequestWrapper(localName = \"completeTask\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.CompleteTask\")\n @WebMethod\n @ResponseWrapper(localName = \"completeTaskResponse\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.CompleteTaskResponse\")\n public void completeTask(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n com.uaf.grtwf.webservice.MapEntityArray arg2\n ) throws Exception_Exception;\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"startProcess\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.StartProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"startProcessResponse\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.StartProcessResponse\")\n public java.lang.String startProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n com.uaf.grtwf.webservice.MapEntityArray arg2\n ) throws Exception_Exception;\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"findTodoTasks\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.FindTodoTasks\")\n @WebMethod\n @ResponseWrapper(localName = \"findTodoTasksResponse\", targetNamespace = \"http://webservice.grtwf.uaf.com/\", className = \"com.uaf.grtwf.webservice.FindTodoTasksResponse\")\n public java.util.List<com.uaf.grtwf.webservice.TaskDto> findTodoTasks(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n ) throws Exception_Exception;\n}", "@WebService(name = \"TTTWebService\", targetNamespace = \"http://server.james.ttt/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TTTWebService {\n\n\n /**\n * \n * @param password\n * @param surname\n * @param name\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"register\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Register\")\n @ResponseWrapper(localName = \"registerResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.RegisterResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/registerRequest\", output = \"http://server.james.ttt/TTTWebService/registerResponse\")\n public String register(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"name\", targetNamespace = \"\")\n String name,\n @WebParam(name = \"surname\", targetNamespace = \"\")\n String surname);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"test\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Test\")\n @ResponseWrapper(localName = \"testResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TestResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/testRequest\", output = \"http://server.james.ttt/TTTWebService/testResponse\")\n public String test();\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"newGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.NewGame\")\n @ResponseWrapper(localName = \"newGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.NewGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/newGameRequest\", output = \"http://server.james.ttt/TTTWebService/newGameResponse\")\n public String newGame(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param uid\n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"joinGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.JoinGame\")\n @ResponseWrapper(localName = \"joinGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.JoinGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/joinGameRequest\", output = \"http://server.james.ttt/TTTWebService/joinGameResponse\")\n public String joinGame(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGameState\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetGameState\")\n @ResponseWrapper(localName = \"getGameStateResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetGameStateResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/getGameStateRequest\", output = \"http://server.james.ttt/TTTWebService/getGameStateResponse\")\n public String getGameState(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBoard\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetBoard\")\n @ResponseWrapper(localName = \"getBoardResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetBoardResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/getBoardRequest\", output = \"http://server.james.ttt/TTTWebService/getBoardResponse\")\n public String getBoard(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @param gstate\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setGameState\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.SetGameState\")\n @ResponseWrapper(localName = \"setGameStateResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.SetGameStateResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/setGameStateRequest\", output = \"http://server.james.ttt/TTTWebService/setGameStateResponse\")\n public String setGameState(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"gstate\", targetNamespace = \"\")\n int gstate);\n\n /**\n * \n * @param uid\n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.DeleteGame\")\n @ResponseWrapper(localName = \"deleteGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.DeleteGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/deleteGameRequest\", output = \"http://server.james.ttt/TTTWebService/deleteGameResponse\")\n public String deleteGame(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showMyOpenGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowMyOpenGames\")\n @ResponseWrapper(localName = \"showMyOpenGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowMyOpenGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showMyOpenGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showMyOpenGamesResponse\")\n public String showMyOpenGames(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param gid\n * @param x\n * @param y\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"checkSquare\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckSquare\")\n @ResponseWrapper(localName = \"checkSquareResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckSquareResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/checkSquareRequest\", output = \"http://server.james.ttt/TTTWebService/checkSquareResponse\")\n public String checkSquare(\n @WebParam(name = \"x\", targetNamespace = \"\")\n int x,\n @WebParam(name = \"y\", targetNamespace = \"\")\n int y,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @param x\n * @param y\n * @param pid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"takeSquare\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TakeSquare\")\n @ResponseWrapper(localName = \"takeSquareResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TakeSquareResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/takeSquareRequest\", output = \"http://server.james.ttt/TTTWebService/takeSquareResponse\")\n public String takeSquare(\n @WebParam(name = \"x\", targetNamespace = \"\")\n int x,\n @WebParam(name = \"y\", targetNamespace = \"\")\n int y,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"pid\", targetNamespace = \"\")\n int pid);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"leagueTable\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LeagueTable\")\n @ResponseWrapper(localName = \"leagueTableResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LeagueTableResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/leagueTableRequest\", output = \"http://server.james.ttt/TTTWebService/leagueTableResponse\")\n public String leagueTable();\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showAllMyGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowAllMyGames\")\n @ResponseWrapper(localName = \"showAllMyGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowAllMyGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showAllMyGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showAllMyGamesResponse\")\n public String showAllMyGames(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"checkWin\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckWin\")\n @ResponseWrapper(localName = \"checkWinResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckWinResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/checkWinRequest\", output = \"http://server.james.ttt/TTTWebService/checkWinResponse\")\n public String checkWin(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showOpenGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowOpenGames\")\n @ResponseWrapper(localName = \"showOpenGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowOpenGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showOpenGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showOpenGamesResponse\")\n public String showOpenGames();\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LoginResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/loginRequest\", output = \"http://server.james.ttt/TTTWebService/loginResponse\")\n public int login(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n}", "@WebService\npublic interface HelloWorld {\n String sayHi(@WebParam(name = \"text\") String text);\n\n String sayHiToUser(User user);\n\n String[] sayHiToUserList(List<User> users);\n}", "@WebService(name = \"Calculator\", targetNamespace = \"http://unique.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Calculator {\n\n\n /**\n * \n * @param num1\n * @param num2\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getNumber\", targetNamespace = \"http://unique.com/\", className = \"com.unique.GetNumber\")\n @ResponseWrapper(localName = \"getNumberResponse\", targetNamespace = \"http://unique.com/\", className = \"com.unique.GetNumberResponse\")\n @Action(input = \"http://unique.com/Calculator/getNumberRequest\", output = \"http://unique.com/Calculator/getNumberResponse\")\n public int getNumber(\n @WebParam(name = \"num1\", targetNamespace = \"\")\n int num1,\n @WebParam(name = \"num2\", targetNamespace = \"\")\n int num2);\n\n /**\n * \n * @param num1\n * @param num2\n * @return\n * returns float\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSubtraction\", targetNamespace = \"http://unique.com/\", className = \"com.unique.GetSubtraction\")\n @ResponseWrapper(localName = \"getSubtractionResponse\", targetNamespace = \"http://unique.com/\", className = \"com.unique.GetSubtractionResponse\")\n @Action(input = \"http://unique.com/Calculator/getSubtractionRequest\", output = \"http://unique.com/Calculator/getSubtractionResponse\")\n public float getSubtraction(\n @WebParam(name = \"num1\", targetNamespace = \"\")\n float num1,\n @WebParam(name = \"num2\", targetNamespace = \"\")\n float num2);\n\n /**\n * \n * @param num1\n * @param num2\n * @return\n * returns float\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDivision\", targetNamespace = \"http://unique.com/\", className = \"com.unique.GetDivision\")\n @ResponseWrapper(localName = \"getDivisionResponse\", targetNamespace = \"http://unique.com/\", className = \"com.unique.GetDivisionResponse\")\n @Action(input = \"http://unique.com/Calculator/getDivisionRequest\", output = \"http://unique.com/Calculator/getDivisionResponse\")\n public float getDivision(\n @WebParam(name = \"num1\", targetNamespace = \"\")\n float num1,\n @WebParam(name = \"num2\", targetNamespace = \"\")\n float num2);\n\n /**\n * \n * @param num1\n * @param num2\n * @return\n * returns float\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMultiplication\", targetNamespace = \"http://unique.com/\", className = \"com.unique.GetMultiplication\")\n @ResponseWrapper(localName = \"getMultiplicationResponse\", targetNamespace = \"http://unique.com/\", className = \"com.unique.GetMultiplicationResponse\")\n @Action(input = \"http://unique.com/Calculator/getMultiplicationRequest\", output = \"http://unique.com/Calculator/getMultiplicationResponse\")\n public float getMultiplication(\n @WebParam(name = \"num1\", targetNamespace = \"\")\n float num1,\n @WebParam(name = \"num2\", targetNamespace = \"\")\n float num2);\n\n}", "@WebService(targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", name = \"BillingProcessWebServices\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BillingProcessWebServices {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"billingProcess\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"billingProcessResponse\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcessResponse\")\n public co.nz.pizzashack.client.integration.ws.client.stub.BillingResponse billingProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n co.nz.pizzashack.client.integration.ws.client.stub.BillingDto arg0\n ) throws FaultMessage;\n}", "@WebService(targetNamespace = \"http://jaxws.intergrupo.com.co/\", name = \"InterfaceWebService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface InterfaceWebService {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoReportado\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportado\")\r\n @WebMethod(action = \"urn:vehiculoReportado\")\r\n @ResponseWrapper(localName = \"vehiculoReportadoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportadoResponse\")\r\n public boolean vehiculoReportado(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"saludo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.Saludo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"saludoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.SaludoResponse\")\r\n public java.lang.String saludo(\r\n @WebParam(name = \"nombre\", targetNamespace = \"\")\r\n java.lang.String nombre\r\n );\r\n\r\n @WebResult(name = \"vehiculo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"consultarVehiculo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculo\")\r\n @WebMethod(action = \"urn:consultarVehiculo\")\r\n @ResponseWrapper(localName = \"consultarVehiculoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculoResponse\")\r\n public co.com.intergrupo.cxf.Vehiculo consultarVehiculo(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoAlDiaConImpuesto\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuesto\")\r\n @WebMethod(action = \"urn:vehiculoAlDiaConImpuesto\")\r\n @ResponseWrapper(localName = \"vehiculoAlDiaConImpuestoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuestoResponse\")\r\n public boolean vehiculoAlDiaConImpuesto(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"registradoRunt\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRunt\")\r\n @WebMethod(action = \"urn:registradoRunt\")\r\n @ResponseWrapper(localName = \"registradoRuntResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRuntResponse\")\r\n public boolean registradoRunt(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n}", "@WebService(serviceName = \"CommandService\", targetNamespace = ProcessWebService.NAMESPACE)\npublic interface CommandWebService {\n\n final static String NAMESPACE = \"http://services.remote.kie.org/\" + ServicesVersion.VERSION + \"/command\";\n \n @WebMethod(action = \"urn:Execute\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"executeRequest\", targetNamespace = NAMESPACE, className = \"org.kie.remote.services.ws.wsdl.generated.WrapperCommandRequest\")\n @ResponseWrapper(localName = \"executeResponse\", targetNamespace = NAMESPACE, className = \"org.kie.remote.services.ws.wsdl.generated.WrapperCommandResponse\")\n public JaxbCommandsResponse execute(@WebParam(name = \"request\", targetNamespace = \"\") JaxbCommandsRequest request) throws CommandWebServiceException;\n\n}", "@WebService(targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", name = \"BankManagementInterface\")\r\n@XmlSeeAlso({budgetuserlibrary.gw.fmis.ibm.hr.infotypes.ObjectFactory.class, ObjectFactory.class, budgetuserlibrary.gw.fmis.ibm.hr.messages.ObjectFactory.class})\r\npublic interface BankManagementInterface {\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"retrieveBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.RetrieveBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"retrieveBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.RetrieveBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg retrieveBank(\r\n @WebParam(name = \"bankRetrieveRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankRetrieveRequestMsg bankRetrieveRequestMsg\r\n );\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"changeBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.ChangeBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"changeBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.ChangeBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg changeBank(\r\n @WebParam(name = \"bankChangeRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankChangeRequestMsg bankChangeRequestMsg\r\n );\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"createBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.CreateBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"createBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.CreateBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg createBank(\r\n @WebParam(name = \"bankCreationRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankCreationRequestMsg bankCreationRequestMsg\r\n );\r\n}", "@WebService(targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", name = \"MembershipService\")\n@XmlSeeAlso({com.z2systems.schemas.membership.ObjectFactory.class, com.z2systems.schemas.common.ObjectFactory.class, com.z2systems.schemas.account.ObjectFactory.class, com.z2systems.schemas.donation.ObjectFactory.class, com.z2systems.schemas.store.ObjectFactory.class, ObjectFactory.class, com.z2systems.schemas.event.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface MembershipService {\n\n @WebResult(name = \"listMembershipsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipsResponse listMemberships(\n @WebParam(partName = \"request\", name = \"listMembershipsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipsRequest request\n );\n\n @WebResult(name = \"retrieveMembershipStatsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.RetrieveMembershipStatsResponse retrieveMembershipStats(\n @WebParam(partName = \"request\", name = \"retrieveMembershipStatsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.RetrieveMembershipStatsRequest request\n );\n\n @WebResult(name = \"listMembershipHistoryResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipHistoryResponse listMembershipHistory(\n @WebParam(partName = \"request\", name = \"listMembershipHistoryRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipHistoryRequest request\n );\n\n @WebResult(name = \"listMembershipTermsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipTermsResponse listMembershipTerms(\n @WebParam(partName = \"request\", name = \"listMembershipTermsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipTermsRequest request\n );\n\n @WebResult(name = \"addMembershipToAccountResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.AddMembershipToAccountResponse addMembershipToAccount(\n @WebParam(partName = \"request\", name = \"addMembershipToAccountRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.AddMembershipToAccountRequest request\n );\n}", "@WebService(name = \"Itinerary\", targetNamespace = \"http://service.second.webservice.kth.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Itinerary {\n\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.util.List<se.kth.webservice.second.service.TravelPath>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAvailableItineraries\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAvailableItineraries\")\n @ResponseWrapper(localName = \"getAvailableItinerariesResponse\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAvailableItinerariesResponse\")\n @Action(input = \"http://service.second.webservice.kth.se/Itinerary/getAvailableItinerariesRequest\", output = \"http://service.second.webservice.kth.se/Itinerary/getAvailableItinerariesResponse\")\n public List<TravelPath> getAvailableItineraries(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns se.kth.webservice.second.service.Airport\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAirportById\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAirportById\")\n @ResponseWrapper(localName = \"getAirportByIdResponse\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAirportByIdResponse\")\n @Action(input = \"http://service.second.webservice.kth.se/Itinerary/getAirportByIdRequest\", output = \"http://service.second.webservice.kth.se/Itinerary/getAirportByIdResponse\")\n public Airport getAirportById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns se.kth.webservice.second.service.Airline\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAirlineById\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAirlineById\")\n @ResponseWrapper(localName = \"getAirlineByIdResponse\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAirlineByIdResponse\")\n @Action(input = \"http://service.second.webservice.kth.se/Itinerary/getAirlineByIdRequest\", output = \"http://service.second.webservice.kth.se/Itinerary/getAirlineByIdResponse\")\n public Airline getAirlineById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.kth.webservice.second.service.Departure>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeparturesFromRoute\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetDeparturesFromRoute\")\n @ResponseWrapper(localName = \"getDeparturesFromRouteResponse\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetDeparturesFromRouteResponse\")\n @Action(input = \"http://service.second.webservice.kth.se/Itinerary/getDeparturesFromRouteRequest\", output = \"http://service.second.webservice.kth.se/Itinerary/getDeparturesFromRouteResponse\")\n public List<Departure> getDeparturesFromRoute(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}" ]
[ "0.69077694", "0.6879749", "0.6751517", "0.6689599", "0.66864693", "0.6674889", "0.66687274", "0.66600657", "0.66227764", "0.6585088", "0.65484184", "0.654001", "0.65377593", "0.6511321", "0.65023303", "0.6502249", "0.64965135", "0.64479566", "0.643806", "0.6431664", "0.64304984", "0.6428398", "0.642574", "0.64225346", "0.64221853", "0.63942057", "0.639213", "0.63800156", "0.6358825", "0.6354366", "0.63462335", "0.6344466", "0.63419867", "0.6327175", "0.632036", "0.63203037", "0.63140476", "0.6313268", "0.6311564", "0.6286935", "0.6284242", "0.6271422", "0.62639797", "0.62638587", "0.6257961", "0.6246203", "0.6246106", "0.6223054", "0.6217792", "0.62063026", "0.61987513", "0.6190795", "0.6188682", "0.6188337", "0.6183891", "0.6183628", "0.6174671", "0.6169299", "0.6166086", "0.6157475", "0.6155192", "0.6154822", "0.61458", "0.61219406", "0.61189353", "0.6117348", "0.61148584", "0.6106798", "0.60975057", "0.6086345", "0.6076908", "0.6076892", "0.6049569", "0.6048846", "0.6047497", "0.60421294", "0.603892", "0.60315835", "0.60136324", "0.60127455", "0.60113627", "0.5994857", "0.59944934", "0.5993818", "0.59936225", "0.59908867", "0.5984343", "0.5979012", "0.59756815", "0.59576", "0.59532046", "0.5950946", "0.59487784", "0.5939982", "0.5924733", "0.5917311", "0.59160864", "0.5913741", "0.591296", "0.59017587", "0.5901741" ]
0.0
-1
int getGroupCountByStructureId(GroupProductSearch groupSearch); List getGroupListByStructureId(GroupProductSearch groupSearch);
int getGroupCountByStructureId(Integer structureId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int countByExample(SeGroupExample example);", "int countByExample(ProjGroupExample example);", "int getGroupCount();", "Long queryCount(ProductSearchParm productSearchParm);", "long countByExample(DashboardGoodsExample example);", "public int countByGroupId(long groupId);", "public int countByGroupId(long groupId);", "int countByExample(GrpTagExample example);", "long countByExample(CmGroupRelIndustryExample example);", "int countByExample(organize_infoBeanExample example);", "long countByExample(GroupRightDAOExample example);", "public int getTravelGroupListCount(Map conditions);", "int countByExample(MEsShoppingCartDTOCriteria example);", "int countByExample(UserGroupExample example);", "long countByExample(cskaoyan_mall_order_goodsExample example);", "public int filterCountByGroupId(long groupId);", "public int filterCountByGroupId(long groupId);", "int getListSnIdCount();", "int countByExample(MessageGroupExample example);", "@Override\n\tpublic ArrayList<Object> searchGroupByName(String search) {\n\t\t\n\t\tSystem.out.println(\"i am in service search looking for groups\" + search);\n\t\t\n\t\tif(search == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<Object> list = groupRepository.findGroupByName(search);\n\t\t\n\t\t//System.out.println(Arrays.toString(list));\n\t\treturn list;\n\t}", "int countByExample(CfgSearchRecommendExample example);", "List<SeGroup> selectByExample(SeGroupExample example);", "long countByIdGrupo(TblGrupo tblGrupo);", "int getAndConditionGroupsCount();", "Map<Goods, Integer> getQuantityByGroup(GoodsGroup group) throws StoreKeeperWorkException;", "public int getProductCount();", "int countByExample(ItoProductCriteria example);", "public int countByDataPackId(long dataPackId);", "int countByExample(UserOperateProjectExample example);", "public interface ProductParameterGroupService {\n //查询商品参数组\n List<ProductParameterGroup> queryParameterGroup();\n}", "int countByExample(SysIdExample example);", "int countByExample(UploadStateRegDTOExample example);", "int countByExample(SysTeamExample example);", "int countByExample(UserPonumberGoodsExample example);", "long countByExample(EquipmentOrderExample example);", "long getTotalProductsCount();", "public int countByschoolId(long schoolId);", "int getListCount();", "long countByExample(LtsprojectpoExample example);", "long countByExample(NjProductTaticsRelationExample example);", "int countByExample(PmKeyDbObjExample example);", "int countByExample(HpItemParamItemExample example);", "public int countByUUID_G(java.lang.String uuid, long groupId);", "long countByExample(WfCfgModuleCatalogExample example);", "public int countByP_L(long groupId, java.lang.String language);", "int countByExample(GoodexistsingleExample example);", "int countByExample(BasicinfoCriteria example);", "int countByExample(ClOrderInfoExample example);", "int countByCompanyId(int companyId);", "int countByExample(OrgMemberRecordExample example);", "long countByExample(KaiwaExample example);", "long countByExample(Drug_OutWarehouseExample example);", "public int countByUUID_G(String uuid, long groupId);", "public int countByUUID_G(String uuid, long groupId);", "int countByExample(ProvidersExample example);", "@Override\r\n public Long findListCount(Map<String, Object> params) {\n return assetDao.findListCount(params);\r\n }", "int countByExample(ProSchoolWareExample example);", "int countByExample(SmtOrderProductAttributesExample example);", "List<Object> getCountList();", "Object countTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);", "int countByExample(MWeixinCodeDTOCriteria example);", "int countByExample(PageItemCfgExample example);", "public int countByG_UT(long groupId, String urlTitle);", "long countByExample(CliStaffProjectExample example);", "long countByExample(CompanyExtendExample example);", "int countByExample(SwmsStockOutRecordDetailExample example);", "@Override\n\tpublic int countBySearch(Params params) throws Exception {\n\t\treturn 0;\n\t}", "public int countByProductType(String productType);", "int countByExample(HospitalTypeExample example);", "int countByExample(MVoucherDTOCriteria example);", "Object countTAlgmntBussRulesByTBussRuleConfig(SearchFilter<TBussRuleConfig> searchFilter);", "@ReadOnly\n int countByExample(ProductSellerGoodsExample example);", "public interface SGroupAsIndexQueryDAO extends TableDAO<SGroupAsDO> { \n /**\n * 根据以下索引字段查询实体对象集\n * @param gid 抽象类型id\n * @param sortField 排序字段,传入null时表示不写入sql\n * @param isDesc 排序为降序\n * @param offset 其实位置\n * @param limit 返回条数\n * @return\n */\n public List<SGroupAsDO> queryByGid(@Param(\"gid\") long gid,@Param(\"sortField\") String sortField,@Param(\"isDesc\") boolean isDesc,@Param(\"offset\") int offset,@Param(\"limit\") int limit);\n\r\n\r /**\n * 根据以下索引字段查询实体对象集\n * @param gid 抽象类型id\n * @param asid \n * @param sortField 排序字段,传入null时表示不写入sql\n * @param isDesc 排序为降序\n * @param offset 其实位置\n * @param limit 返回条数\n * @return\n */\n public List<SGroupAsDO> queryByGidAndAsid(@Param(\"gid\") long gid, @Param(\"asid\") long asid,@Param(\"sortField\") String sortField,@Param(\"isDesc\") boolean isDesc,@Param(\"offset\") int offset,@Param(\"limit\") int limit);\n\r\n\r /**\n * 根据以下索引字段计算count\n * @param gid 抽象类型id\n * @return\n */\n public long countByGid(@Param(\"gid\") long gid);\n\r\n\r /**\n * 根据以下索引字段计算count\n * @param gid 抽象类型id\n * @param asid \n * @return\n */\n public long countByGidAndAsid(@Param(\"gid\") long gid, @Param(\"asid\") long asid);\n\r\n\r}", "public int countGroups()\n/* 25: */ {\n/* 26:22 */ return this.members.size();\n/* 27: */ }", "int findAllCount() ;", "long countByExample(NjOrderWork2Example example);", "int countByExample(DisproductExample example);", "int countByExample(SrmFundItemExample example);", "public int searchRowsCount(SearchCriteria cri);", "int countByExample(InspectionAgencyExample example);", "public int countByG_S(long groupId, int status);", "int countByExample(TVmManufacturerExample example);", "long countByExample(ShareholderExample example);", "public int findDanymicRecordDetailTotal(long sgid,String wbuid,DanymicUserSiftDto siftDto);", "int countByExample(ErpOaLicKeyExample example);", "public int countByType(long typeId);", "int countByExample(PensionRoleMenuExample example);", "long countByExample(CmIndustryConfigExample example);", "public List<Object[]> countGroupBy(String hql, Object[] param) {\n\t\tQuery q = this.getSession().createQuery(hql);\n\t\tif (param != null && param.length > 0) {\n\t\t\tfor (int i = 0; i < param.length; i++) {\n\t\t\t\tq.setParameter(i, param[i]);\n\t\t\t}\n\t\t}\n\t\treturn q.list();\n\t}", "int countByExample(TbComEqpModelExample example);", "long countByExample(DepartExample example);", "int countByExample(SrHotelRoomInfoExample example);", "public int countByCompanyId(long companyId);", "int countByExample(StudentCriteria example);", "int countByExample(PayLogInfoPoExample example);", "int countByExample(SysAuthenticationExample example);", "long countByExample(EnterprisePictureExample example);", "int countByExample(SPermsExample example);", "int countByExample(RegsatUserExample example);", "int countByExample(ProcedimientoExample example);" ]
[ "0.67114335", "0.67022187", "0.669637", "0.64874667", "0.64709604", "0.63811207", "0.63811207", "0.6305735", "0.62833244", "0.6167693", "0.61493045", "0.61122835", "0.6102925", "0.60707766", "0.6060397", "0.6010212", "0.6010212", "0.5977489", "0.5962828", "0.5961825", "0.5958557", "0.5942437", "0.59191626", "0.59034884", "0.58678424", "0.5864294", "0.5861093", "0.5844987", "0.58438724", "0.582968", "0.5819395", "0.5812298", "0.58088785", "0.5808877", "0.57967556", "0.5782414", "0.57804596", "0.57788515", "0.5775406", "0.5760543", "0.5753946", "0.5748223", "0.57399946", "0.5723552", "0.5712184", "0.5704118", "0.5703595", "0.5694285", "0.5679772", "0.5679234", "0.5664038", "0.56583756", "0.5657357", "0.5657357", "0.5655152", "0.5651575", "0.5649056", "0.56435347", "0.5642333", "0.56397575", "0.56359696", "0.5635905", "0.56323487", "0.56281877", "0.5627073", "0.5624264", "0.5619421", "0.56156826", "0.56044984", "0.56037307", "0.56029606", "0.560246", "0.55972", "0.55951893", "0.5595061", "0.5594521", "0.5592898", "0.5591927", "0.5583652", "0.55693924", "0.55681914", "0.55661404", "0.55589867", "0.55491316", "0.55473185", "0.5539158", "0.55359215", "0.5527092", "0.5526622", "0.5517575", "0.5508606", "0.5505665", "0.5503036", "0.54944646", "0.5489069", "0.54875064", "0.5481719", "0.547478", "0.54710823", "0.54700637" ]
0.81281614
0
Subclasses implmement this method and return the name of their config file.
protected abstract String getXmppConfigResources();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getConfigFileName() {\r\n\t\treturn configFileName;\r\n\t}", "protected String getConfigurationFileName() \n\t{\n\t\treturn configurationFileName;\n\t}", "String getConfigFileName();", "@Override\n public String getFullDefaultConfigName() {\n return getConfigPath() + defaultConfigFileName;\n }", "@Override\n public String getDefaultConfigName() {\n return defaultConfigFileName;\n }", "public String getConfFileName() {\n return confFileName;\n }", "String getConfigName();", "public String getConfigName () {\n return this.configName;\n }", "public String getSimConfigFilename() {\n return simConfigFile;\n }", "public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}", "public String getConfigurationFileString() {\r\n\t\treturn configurationFileString;\r\n\t}", "public String getConfigurationName() {\n return configurationName;\n }", "static String getDefaultConfigurationFileName() {\n // This is a file calles 'jmx-scandir.xml' located\n // in the user directory.\n final String user = System.getProperty(\"user.home\");\n final String defconf = user+File.separator+\"jmx-scandir.xml\";\n return defconf;\n }", "public String getDisplayName() {\n return configName;\n }", "public String getCurrentConfigSuffix() {\r\n return currentConfigSuffix;\r\n }", "protected String getDefaultConfigName() {\r\n return DEFAULT_CONFIG_NAME;\r\n }", "public String toString() {\r\n\t\treturn configurationFileString;\r\n\t}", "public File getConfigurationFile();", "protected String getDefaultCustomConfigName() {\r\n return DEFAULT_CUSTOM_CONFIG_NAME;\r\n }", "public String getConfigFile()\n {\n return __m_ConfigFile;\n }", "public java.lang.String getAnswerFileConfigString() {\r\n return answerFileConfigString;\r\n }", "private File getConfigurationFile() {\n return new File(BungeeBan.getInstance().getDataFolder(), this.filename);\n }", "@Override // com.android.server.wm.ConfigurationContainer\n public String getName() {\n return this.mName;\n }", "public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }", "public File getConfigRoot()\r\n\t{\n\t\treturn file.getParentFile();\r\n\t}", "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "public String getName() {\n return m_module.getConfiguration().getName();\n }", "public String getName() {\n return _file.getAbsolutePath();\n }", "public final String getSettingsFileName() {\n return settingsFileName;\n }", "public URI getConfigurationFile() {\n return configurationFile;\n }", "public String getNameFile(){\n\t\t\treturn this.nameFile;\n\t\t}", "@Override\r\n public File getProfileConfigurationFile() {\n return new File(getConfigurablePath(ConfigurablePathId.PROFILE_ROOT), MAIN_CONFIGURATION_FILENAME);\r\n }", "private String getProjectName(String configFilePath) {\r\n\t\t// get the project name i.e the first directory name relative to the projects root\r\n\t\tFile projectsRoot = new File(RuntimeVariables.getProjectsRoot());\r\n\t\tString relativePath = configFilePath.substring(projectsRoot.getAbsolutePath().length());\r\n\t\treturn new StringTokenizer(relativePath, File.separator).nextToken();\t\t\r\n\t}", "public String getConfigFile() {\n return configFile;\n }", "public abstract String getConfigurationFolderKey();", "public abstract String getConfig();", "public String getName() {\n return dtedDir + \"/\" + filename;\n }", "public String getName()\n {\n return( file );\n }", "public String configString() {\n return this.configString;\n }", "protected String getConfigKey ()\n {\n return \"ConfigEditor.\" + ResourceUtil.getPrefsPrefix() + (_readOnly ? \".readonly\" : \"\");\n }", "public String getName() { return FilePathUtils.getFileName(getPath()); }", "public abstract String getPropertyFile();", "public File getConfigFile() {\r\n\t\treturn new File(homeDir, \"tacos.config\");\r\n\t}", "public String getConfig();", "private static String getSSLConfigFileName(String base) {\n String testUniqueForkId = System.getProperty(\"test.unique.fork.id\");\n String fileSuffix = testUniqueForkId != null ? \"-\" + testUniqueForkId : \"\";\n return base + fileSuffix + \".xml\";\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Production Configuration\";\n\t}", "public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }", "public String getConfig() {\n\t\treturn(config);\n\t}", "public String getNomeConfigurazione() {\n return null;\r\n }", "public final File getReportingConfig() {\n\t\treturn configFile;\n\t}", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn new File(relativePath).getName();\n\t}", "public static String getClientSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-client\");\n }", "protected String getTestName(File configFile, Properties configProps) {\n if (configProps.containsKey(TEST_NAME)) {\n return configProps.getProperty(TEST_NAME);\n } else {\n int lastSlash = configFile.getAbsolutePath().lastIndexOf('/');\n int secondToLastSlash = configFile.getAbsolutePath().lastIndexOf(\n '/', lastSlash - 1);\n return configFile.getAbsolutePath().substring(\n secondToLastSlash + 1, lastSlash);\n }\n }", "@Override\n protected String getConfFile() {\n return Conf.instance().getProperty(\"alarm.root.cause.peer.end\");\n }", "public String getStrPipelineConfFile() {\n return strPipelineConfFile;\n }", "public final String getPropertyFileName() {\n return propertyFileName;\n }", "public String getPropertyFileName()\r\n\t{\r\n\t\treturn propertyFileName;\r\n\t}", "public String configurationInfo();", "void setConfigFileName( String s );", "private static String getConfigFileName(String command) {\n if (command == null || command.trim().length() == 0) {\n command = \"start\";\n }\n // strip off the leading dash\n if (command.startsWith(\"-\")) {\n command = command.substring(1);\n }\n // shutdown & status hack\n if (command.equalsIgnoreCase(\"shutdown\")) {\n command = \"start\";\n } else if (command.equalsIgnoreCase(\"status\")) {\n command = \"start\";\n }\n\n String configFileName = System.getProperty(\"easyfk.home\",\".\");\n configFileName +=\"/core/base/config/\"+ command + \".properties\";\n return configFileName;\n }", "public String getPropertyStartupFilename() {\r\n\t\treturn getProperty(startupFilenamePropertyName);\r\n\t}", "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "private File getConnConfigFile(){\n\t\tFile f = new File(getHomeDir(),filename);\n\t\treturn f;\n\t}", "public String getNameForFileSystem() {\r\n\t\treturn filename;\r\n\t}", "public String getFixedRotatorConfigName() {\n return null;\n }", "public String getExtentReportConfigFilePath(){\r\n\t\t return rb.getProperty(\"extentReportConfig\");\r\n\t}", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "public String getFeedConfigSuffix();", "public static String getPropertyFile() {\n\t\treturn propertyFileAddress;\n\t}", "private String getLocatorYamlFilePath(HashMap confMap) {\n return confMap.get(\"LocatorFile\").toString();\n }", "public static String getServerSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-server\");\n }", "public String getName() {\r\n return mFile.getName();\r\n }", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "public final String getFileName() {\n\n\t\treturn getValue(FILE_NAME);\n\t}", "public String getConfigurationAlias() {\n return this.configurationAlias;\n }", "public String getConfigurationKey() {\n return configurationKey;\n }", "public static String getPropertyFilename() {\n return propfilename;\n }", "public final File getConfigFile() {\n\t\treturn configFile;\n\t}", "private static Path getConfig(String modName)\n\t{\n\t\treturn Paths.get(\"config\"+File.separator+modName+\".cfg\").toAbsolutePath();\n\t}", "public static String getPropertyFilename() {\n if (propertyFileName == null) {\n setPropertyFilename(\"\");\n }\n \n return propertyFileName;\n }", "protected static String getNewConfigurationName(String fileName) {\n\t\tString configurationName = PHPDebugUIMessages.PHPExeLaunchShortcut_0; \n\t\ttry {\n\t\t\tIPath path = Path.fromOSString(fileName);\n\n\t\t\tNonExistingPHPFileEditorInput editorInput = NonExistingPHPFileEditorInput\n\t\t\t\t\t.findEditorInput(path);\n\t\t\tif (editorInput != null) {\n\t\t\t\tpath = new Path(editorInput.getName());\n\t\t\t}\n\n\t\t\tString fileExtention = path.getFileExtension();\n\t\t\tString lastSegment = path.lastSegment();\n\t\t\tif (lastSegment != null) {\n\t\t\t\tif (fileExtention != null) {\n\t\t\t\t\tlastSegment = lastSegment.replaceFirst(\".\" + fileExtention, //$NON-NLS-1$\n\t\t\t\t\t\t\t\"\"); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t\tconfigurationName = lastSegment;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLogger.log(Logger.WARNING_DEBUG,\n\t\t\t\t\t\"Could not generate configuration name for \" + fileName //$NON-NLS-1$\n\t\t\t\t\t\t\t+ \".\\nThe default name will be used.\", e); //$NON-NLS-1$\n\t\t}\n\t\treturn DebugPlugin.getDefault().getLaunchManager()\n\t\t\t\t.generateUniqueLaunchConfigurationNameFrom(configurationName);\n\t}", "@Override\n public String getDefaultConfig(Log log) throws CommandLineException {\n File defaultCfg = null;\n if (DEFAULT_CONFIG_FILE.equals(defaultConfigFile)) {\n final String conf = ExecutionUtils.executeCommand(log, \"\\\"\" + this.executable + \"\\\" -V SERVER_CONFIG_FILE\");\n final Pattern pattern = Pattern.compile(\"^\\\\s*-D\\\\s*SERVER_CONFIG_FILE=\\\"(.*)?\\\"$\");\n final Matcher matcher = pattern.matcher(conf);\n final String result = matcher.group(1);\n defaultCfg = new File(result);\n if (defaultCfg.isAbsolute()) {\n if (defaultCfg.exists()) {\n return ConfigUtils.readConfigFile(defaultCfg);\n }\n } else {\n final String exec = ExecutionUtils.searchExecutable(log, this.executable);\n if (exec != null) {\n final File execFile = new File(exec);\n File execDir = execFile.getParentFile();\n if (\"bin\".equals(execDir.getName())) {\n execDir = execDir.getParentFile();\n }\n File confDir = new File(execDir, \"conf\");\n if (!confDir.exists()) {\n confDir = execDir;\n }\n defaultCfg = new File(confDir, \"httpd.conf\");\n if (defaultCfg.exists()) {\n return ConfigUtils.readConfigFile(defaultCfg);\n }\n }\n }\n } else {\n defaultCfg = new File(this.defaultConfigFile);\n if (defaultCfg.exists()) {\n return ConfigUtils.readConfigFile(defaultCfg);\n }\n }\n return null;\n }", "@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();", "public String getName() {\n\t\treturn filename;\n\t}", "List<String> getConfigFilePaths();", "public String getName(){\n return(hackerFile.getName());\n }", "public String getConfig() {\n\n return config;\n }", "public String getConfigString()\n {\n return debug ? \"debug\" : \"release\";\n }", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "@Override\n\tpublic String getName()\n\t{\n\t\treturn fileName;\n\t}", "public static String getUserConfigFileName(Context context, String userId) {\r\n\t\tString result = \"\";\r\n\t\tif (TextUtils.isEmpty(userId)) {\r\n\t\t\treturn result;\r\n\t\t} else {\r\n\t\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\t\tif (prefs != null) {\r\n\t\t\t\tString key = getUserConfigFileNameKey(userId);\r\n\t\t\t\tresult = prefs.getString(key, \"\");\r\n\t\t\t\tif (TextUtils.isEmpty(result)) {\r\n\t\t\t\t\tresult = String.format(\"user-config-%s\", userId);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public static String setConfigPath(String propertFileName ) {\n String propFilePath;\n\n propFilePath = \"src\" + File.separator + \"main\" + File.separator\n + \"resources\" + File.separator + propertFileName;\n return propFilePath;\n }", "public abstract String getConfigElementName();", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}", "public Config(String filename) {\n this.filename = filename;\n }", "public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}", "java.lang.String getFileName();", "java.lang.String getFileName();" ]
[ "0.8055608", "0.8023499", "0.78814423", "0.75971854", "0.7524144", "0.7480146", "0.74063516", "0.73264307", "0.71490437", "0.6974878", "0.69443136", "0.6888658", "0.687897", "0.68297344", "0.679598", "0.67398405", "0.6668199", "0.6663682", "0.663157", "0.6628025", "0.6626619", "0.6604252", "0.6592957", "0.65727895", "0.6566817", "0.65219086", "0.65206075", "0.6501368", "0.64979005", "0.64931077", "0.64411634", "0.64166343", "0.6401238", "0.6331905", "0.63284355", "0.6318463", "0.62715185", "0.62285376", "0.62157094", "0.621386", "0.62066144", "0.6204858", "0.6200642", "0.6182102", "0.6144249", "0.61422163", "0.6094033", "0.6087207", "0.6086858", "0.60809886", "0.6079898", "0.606439", "0.6063739", "0.60458267", "0.6045309", "0.6039105", "0.60364753", "0.60357916", "0.6020745", "0.6018173", "0.6009672", "0.600764", "0.60016096", "0.5998381", "0.5976371", "0.5961509", "0.5953196", "0.59529954", "0.5937632", "0.59358644", "0.59356135", "0.5921504", "0.59192646", "0.5912078", "0.5909308", "0.59040195", "0.59016716", "0.5886458", "0.58842903", "0.58833027", "0.587815", "0.58703715", "0.5858561", "0.5854358", "0.5849052", "0.5848121", "0.5847014", "0.5824362", "0.5821842", "0.581253", "0.5811571", "0.58113295", "0.5798593", "0.57870936", "0.577413", "0.57738745", "0.5739214", "0.5738629", "0.57285357", "0.57271963", "0.57271963" ]
0.0
-1
do not hardcode host/user etc here, look it up from the registry so the only place that this info is stored is in the config
private void createAndConnectJabberClient() throws Exception { Properties properties = (Properties) muleContext.getRegistry().lookupObject("properties"); String host = properties.getProperty("host"); conversationPartner = properties.getProperty("conversationPartner"); String password = properties.getProperty("conversationPartnerPassword"); // also save the jid that is used to connect to the jabber server muleJabberUserId = properties.getProperty("user") + "@" + host; jabberClient = new JabberClient(host, conversationPartner, password); configureJabberClient(jabberClient); jabberClient.connect(jabberLatch); assertTrue(jabberLatch.await(STARTUP_TIMEOUT, TimeUnit.MILLISECONDS)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public String getUserHost() {\n return userHost;\n }", "HashMap getRequestingHosts()\n {\n return configfile.requesting_hosts;\n }", "public ConnectInfo() {\n\t\tthis(System.getProperty(\"user.name\"));\n\t}", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHost();", "public String getHost();", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "String getHost()\n {\n return host;\n }", "private void getExternalConfig()\n {\n String PREFIX = \"getExternalConfig override name [{}] value [{}]\";\n // Check to see if the ldap host has been overridden by a system property:\n String szValue = System.getProperty( EXT_LDAP_HOST );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_HOST, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_HOST, szValue );\n }\n // Check to see if the ldap port has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_PORT );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_PORT, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_PORT, szValue );\n }\n\n // Check to see if the admin pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_UID );\n }\n\n // Check to see if the admin pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_PW );\n }\n\n // Check to see if the admin pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n }\n\n // Check to see if the admin pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n }\n\n // Check to see if the log pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_UID );\n }\n\n // Check to see if the log pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_PW );\n }\n\n // Check to see if the log pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n }\n\n // Check to see if the log pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n }\n\n // Check to see if ssl enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL, szValue );\n }\n \n // Check to see if start tls enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_STARTTLS );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n }\n\n // Check to see if the ssl debug enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL_DEBUG );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n }\n\n // Check to see if the trust store location has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE, szValue );\n }\n\n // Check to see if the trust store password has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_PW, szValue );\n // never display password value to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.TRUST_STORE_PW );\n }\n\n // Check to see if the trust store onclasspath parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_ONCLASSPATH );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n }\n\n // Check to see if the suffix has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_SUFFIX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SUFFIX, szValue );\n LOG.info( PREFIX, GlobalIds.SUFFIX, szValue );\n\n }\n\n // Check to see if the config realm name has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_REALM );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_REALM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_REALM, szValue );\n }\n\n // Check to see if the config node dn has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_ROOT_DN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_ROOT_PARAM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_ROOT_PARAM, szValue );\n }\n\n // Check to see if the ldap server type has been overridden by a system property:\n szValue = System.getProperty( EXT_SERVER_TYPE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SERVER_TYPE, szValue );\n LOG.info( PREFIX, GlobalIds.SERVER_TYPE, szValue );\n }\n\n // Check to see if ARBAC02 checking enforced in service layer:\n szValue = System.getProperty( EXT_IS_ARBAC02 );\n if( StringUtils.isNotEmpty( szValue ))\n {\n Boolean isArbac02 = Boolean. valueOf( szValue );\n config.setProperty( GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n LOG.info( PREFIX, GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n }\n }", "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "@Override\n\tpublic java.lang.String getRemoteHost() {\n\t\treturn _userTracker.getRemoteHost();\n\t}", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost(){\n\t\treturn this.host;\n\t}", "private void collectHostInformation() {\n java.lang.management.RuntimeMXBean rtMXB =\n java.lang.management.ManagementFactory.getRuntimeMXBean();\n final String jvmName = rtMXB.getName();\n try {\n metadata_.pid = Integer.parseInt(jvmName.split(\"@\")[0]);\n } catch (NumberFormatException e) {\n metadata_.pid = null;\n }\n\n metadata_.currentDir = System.getProperty(\"user.dir\");\n }", "String getIntegHost();", "public String getHostName (){\n return hostName;\n }", "Host getHost();", "default String getHost() {\n return \"localhost\";\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\r\n return host;\r\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "private void getUserNamePwd() {\n\n try {\n // get Application Connection ID\n LogonCoreContext lgCtx = LogonCore.getInstance().getLogonContext();\n userName = lgCtx.getBackendUser();\n pwd = lgCtx.getBackendPassword();\n appConnID = LogonCore.getInstance().getLogonContext()\n .getConnId();\n } catch (LogonCoreException e) {\n LogManager.writeLogError(Constants.device_reg_failed_txt, e);\n }\n }", "public String getUserConfig() {\n return userConfig;\n }", "public UserRegistry getUserRegistry();", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String customHost() {\n return this.customHost;\n }", "private void getUserInfo() {\n\t}", "public static String getBaseHost() {\r\n if (baseHost == null) {\r\n baseHost = PropertiesProvider.getInstance().getProperty(\"server.name\", \"localhost\");\r\n }\r\n return baseHost;\r\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "private void loadFtpConfiguration(){\n\t\t//Get the active profile\n\t\tProfile activeProfile = settingsService.getActiveProfile();\n\t\tHOST = activeProfile.getIpNmt();\n\t\t\n\t\tString puerto = activeProfile.getFtpPort();\n\t\tif (null != puerto && !\"\".equals(puerto)){\n\t\t\tPORT = Integer.valueOf(puerto);\t\t\n\t\t} else {\n\t\t\tPORT = 21; //DEFAULT PORT\n\t\t}\n\t\tUSERNAME = activeProfile.getFtpUser();\n\t\tPASSWORD = activeProfile.getFtpPassword();\t\t\n\t}", "public String host() {\n return host;\n }", "public String getHost() {\n return m_host;\n }", "public String getHost( ) {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "@Override\n\t\tpublic String getRemoteUser() {\n\t\t\treturn null;\n\t\t}", "String getPreferredHost() {\n return preferredHost;\n }", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }", "HostInfo getHostInfo();", "private void lookUpUsers() {\n\t\ttry {\n\t\t\tString[] regList = Naming.list(\"//localhost:3000\");\n\t\t\tfor (String s : regList) {\n\t\t\t\tif (!s.contains(\"Notary\") && !s.contains(this.id)) {\n\t\t\t\t\tremoteUsers\n\t\t\t\t\t\t.put(s.replace(\"//localhost:3000/\", \"\"), (UserInterface) Naming.lookup(s));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (MalformedURLException | RemoteException | NotBoundException e) {\n\t\t\tSystem.err.println(\"ERROR looking up user\");\n\t\t}\n\t}", "public String getHost() {\n return host.getText();\n }", "public HashMap<String, Object> getUserConfig() {\n return userConfig;\n }", "interface HostConfig {\n\n\t\t/**\n\t\t * Retrieves the value of a single-valued key, or the first if the key\n\t\t * has multiple values. Keys are case-insensitive, so\n\t\t * {@code getValue(\"HostName\") == getValue(\"HOSTNAME\")}.\n\t\t *\n\t\t * @param key\n\t\t * to get the value of\n\t\t * @return the value, or {@code null} if none\n\t\t */\n\t\tString getValue(String key);\n\n\t\t/**\n\t\t * Retrieves the values of a multi- or list-valued key. Keys are\n\t\t * case-insensitive, so\n\t\t * {@code getValue(\"HostName\") == getValue(\"HOSTNAME\")}.\n\t\t *\n\t\t * @param key\n\t\t * to get the values of\n\t\t * @return a possibly empty list of values\n\t\t */\n\t\tList<String> getValues(String key);\n\n\t\t/**\n\t\t * Retrieves an unmodifiable map of all single-valued options, with\n\t\t * case-insensitive lookup by keys.\n\t\t *\n\t\t * @return all single-valued options\n\t\t */\n\t\t@NonNull\n\t\tMap<String, String> getOptions();\n\n\t\t/**\n\t\t * Retrieves an unmodifiable map of all multi- or list-valued options,\n\t\t * with case-insensitive lookup by keys.\n\t\t *\n\t\t * @return all multi-valued options\n\t\t */\n\t\t@NonNull\n\t\tMap<String, List<String>> getMultiValuedOptions();\n\n\t}", "public String getHostName();", "public HostConfigData() {\r\n this.biosWhiteList = false;\r\n this.vmmWhiteList = false;\r\n this.biosWLTarget = HostWhiteListTarget.BIOS_OEM;\r\n this.vmmWLTarget = HostWhiteListTarget.VMM_OEM;\r\n this.biosPCRs = \"\";\r\n this.vmmPCRs = \"\";\r\n this.hostLocation = \"\";\r\n this.registerHost = false;\r\n this.hostVmmType = null;\r\n this.txtHostRecord = null;\r\n this.overWriteWhiteList = false;\r\n this.challengeHex = null;\r\n }", "public String getResearchhost() {\r\n\t\treturn researchhost;\r\n\t}", "private void init() {\n System.out.println(\"Binding to RMIRegistry...\");\n String theName = getConfigManager().getString(\"REMOTE_NAME\");\n if (null != theName) {\n bind(theName, this);\n } else {\n LoggingServices.getCurrent().logMsg(getClass().getName(), \"init()\"\n , \"Could not find name to bind to in registry.\"\n , \"Make sure loyalty.cfg contains a RMIREGISTRY entry.\", LoggingServices.MAJOR);\n }\n }", "public String getHostname() {\n return this.config.getHostname();\n }", "Object getMailhost();", "@Override\n\tpublic void GetServerUser() {\n\n\t}", "@Override\n\tpublic String getRemoteUser() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic String getRemoteHost() {\n\t\t\treturn null;\n\t\t}", "public static void main(String[] args) {\n\t \t\t System.out.println(\"IP:\" + getLocalHostIP()); \n\t System.out.println(\"NAME:\" + getLocalHostName());\n\t System.out.println(\"\\n当前用户名:\" + getLocalUserName());\n\t \t}", "String getHostName();", "String getHostName();", "String host();", "String getRemoteHostName();", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public interface HubConfig {\n\n String HUB_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES = \"hub-modules-deploy-timestamps.properties\";\n String USER_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES = \"user-modules-deploy-timestamps.properties\";\n String USER_CONTENT_DEPLOY_TIMESTAMPS_PROPERTIES = \"user-content-deploy-timestamps.properties\";\n\n String HUB_CONFIG_DIR = \"hub-internal-config\";\n String USER_CONFIG_DIR = \"user-config\";\n String ENTITY_CONFIG_DIR = \"entity-config\";\n String STAGING_ENTITY_SEARCH_OPTIONS_FILE = \"staging-entity-options.xml\";\n String FINAL_ENTITY_SEARCH_OPTIONS_FILE = \"final-entity-options.xml\";\n\n String DEFAULT_STAGING_NAME = \"data-hub-STAGING\";\n String DEFAULT_FINAL_NAME = \"data-hub-FINAL\";\n String DEFAULT_TRACE_NAME = \"data-hub-TRACING\";\n String DEFAULT_JOB_NAME = \"data-hub-JOBS\";\n String DEFAULT_MODULES_DB_NAME = \"data-hub-MODULES\";\n String DEFAULT_TRIGGERS_DB_NAME = \"data-hub-TRIGGERS\";\n String DEFAULT_SCHEMAS_DB_NAME = \"data-hub-SCHEMAS\";\n\n String DEFAULT_ROLE_NAME = \"data-hub-role\";\n String DEFAULT_USER_NAME = \"data-hub-user\";\n\n Integer DEFAULT_STAGING_PORT = 8010;\n Integer DEFAULT_FINAL_PORT = 8011;\n Integer DEFAULT_TRACE_PORT = 8012;\n Integer DEFAULT_JOB_PORT = 8013;\n\n String DEFAULT_AUTH_METHOD = \"digest\";\n\n String DEFAULT_SCHEME = \"http\";\n\n Integer DEFAULT_FORESTS_PER_HOST = 4;\n\n String DEFAULT_CUSTOM_FOREST_PATH = \"forests\";\n\n String getHost();\n\n // staging\n String getStagingDbName();\n void setStagingDbName(String stagingDbName);\n\n String getStagingHttpName();\n void setStagingHttpName(String stagingHttpName);\n\n Integer getStagingForestsPerHost();\n void setStagingForestsPerHost(Integer stagingForestsPerHost);\n\n Integer getStagingPort();\n void setStagingPort(Integer stagingPort);\n\n String getStagingAuthMethod();\n void setStagingAuthMethod(String stagingAuthMethod);\n\n String getStagingScheme();\n void setStagingScheme(String stagingScheme);\n\n boolean getStagingSimpleSsl();\n void setStagingSimpleSsl(boolean stagingSimpleSsl);\n\n @JsonIgnore\n SSLContext getStagingSslContext();\n void setStagingSslContext(SSLContext stagingSslContext);\n\n @JsonIgnore\n DatabaseClientFactory.SSLHostnameVerifier getStagingSslHostnameVerifier();\n void setStagingSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier stagingSslHostnameVerifier);\n\n String getStagingCertFile();\n void setStagingCertFile(String stagingCertFile);\n\n String getStagingCertPassword();\n void setStagingCertPassword(String stagingCertPassword);\n\n String getStagingExternalName();\n void setStagingExternalName(String stagingExternalName);\n\n // final\n String getFinalDbName();\n void setFinalDbName(String finalDbName);\n\n String getFinalHttpName();\n void setFinalHttpName(String finalHttpName);\n\n Integer getFinalForestsPerHost();\n void setFinalForestsPerHost(Integer finalForestsPerHost);\n\n Integer getFinalPort();\n void setFinalPort(Integer finalPort);\n\n String getFinalAuthMethod();\n void setFinalAuthMethod(String finalAuthMethod);\n\n String getFinalScheme();\n void setFinalScheme(String finalScheme);\n\n @JsonIgnore\n boolean getFinalSimpleSsl();\n void setFinalSimpleSsl(boolean finalSimpleSsl);\n\n @JsonIgnore\n SSLContext getFinalSslContext();\n void setFinalSslContext(SSLContext finalSslContext);\n\n DatabaseClientFactory.SSLHostnameVerifier getFinalSslHostnameVerifier();\n void setFinalSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier finalSslHostnameVerifier);\n\n String getFinalCertFile();\n void setFinalCertFile(String finalCertFile);\n\n String getFinalCertPassword();\n void setFinalCertPassword(String finalCertPassword);\n\n String getFinalExternalName();\n void setFinalExternalName(String finalExternalName);\n\n // traces\n String getTraceDbName();\n void setTraceDbName(String traceDbName);\n\n String getTraceHttpName();\n void setTraceHttpName(String traceHttpName);\n\n Integer getTraceForestsPerHost();\n void setTraceForestsPerHost(Integer traceForestsPerHost);\n\n Integer getTracePort();\n void setTracePort(Integer tracePort);\n\n String getTraceAuthMethod();\n void setTraceAuthMethod(String traceAuthMethod);\n\n String getTraceScheme();\n void setTraceScheme(String traceScheme);\n\n @JsonIgnore\n boolean getTraceSimpleSsl();\n void setTraceSimpleSsl(boolean traceSimpleSsl);\n\n @JsonIgnore\n SSLContext getTraceSslContext();\n void setTraceSslContext(SSLContext traceSslContext);\n\n DatabaseClientFactory.SSLHostnameVerifier getTraceSslHostnameVerifier();\n void setTraceSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier traceSslHostnameVerifier);\n\n String getTraceCertFile();\n void setTraceCertFile(String traceCertFile);\n\n String getTraceCertPassword();\n void setTraceCertPassword(String traceCertPassword);\n\n String getTraceExternalName();\n void setTraceExternalName(String traceExternalName);\n\n // jobs\n String getJobDbName();\n void setJobDbName(String jobDbName);\n\n String getJobHttpName();\n void setJobHttpName(String jobHttpName);\n\n Integer getJobForestsPerHost();\n void setJobForestsPerHost(Integer jobForestsPerHost);\n\n Integer getJobPort();\n void setJobPort(Integer jobPort);\n\n String getJobAuthMethod();\n void setJobAuthMethod(String jobAuthMethod);\n\n String getJobScheme();\n void setJobScheme(String jobScheme);\n\n boolean getJobSimpleSsl();\n void setJobSimpleSsl(boolean jobSimpleSsl);\n\n @JsonIgnore\n SSLContext getJobSslContext();\n void setJobSslContext(SSLContext jobSslContext);\n\n @JsonIgnore\n DatabaseClientFactory.SSLHostnameVerifier getJobSslHostnameVerifier();\n void setJobSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier jobSslHostnameVerifier);\n\n String getJobCertFile();\n void setJobCertFile(String jobCertFile);\n\n String getJobCertPassword();\n void setJobCertPassword(String jobCertPassword);\n\n String getJobExternalName();\n void setJobExternalName(String jobExternalName);\n\n String getModulesDbName();\n void setModulesDbName(String modulesDbName);\n\n Integer getModulesForestsPerHost();\n void setModulesForestsPerHost(Integer modulesForestsPerHost);\n\n\n // triggers\n String getTriggersDbName();\n void setTriggersDbName(String triggersDbName);\n\n Integer getTriggersForestsPerHost();\n void setTriggersForestsPerHost(Integer triggersForestsPerHost);\n\n // schemas\n String getSchemasDbName();\n void setSchemasDbName(String schemasDbName);\n\n Integer getSchemasForestsPerHost();\n void setSchemasForestsPerHost(Integer schemasForestsPerHost);\n\n // roles and users\n String getHubRoleName();\n void setHubRoleName(String hubRoleName);\n\n String getHubUserName();\n void setHubUserName(String hubUserName);\n\n\n String[] getLoadBalancerHosts();\n void setLoadBalancerHosts(String[] loadBalancerHosts);\n\n String getCustomForestPath();\n void setCustomForestPath(String customForestPath);\n\n String getModulePermissions();\n void setModulePermissions(String modulePermissions);\n\n String getProjectDir();\n void setProjectDir(String projectDir);\n\n @JsonIgnore\n HubProject getHubProject();\n\n void initHubProject();\n\n @JsonIgnore\n String getHubModulesDeployTimestampFile();\n @JsonIgnore\n String getUserModulesDeployTimestampFile();\n @JsonIgnore\n File getUserContentDeployTimestampFile();\n\n @JsonIgnore\n ManageConfig getManageConfig();\n void setManageConfig(ManageConfig manageConfig);\n @JsonIgnore\n ManageClient getManageClient();\n void setManageClient(ManageClient manageClient);\n\n @JsonIgnore\n AdminConfig getAdminConfig();\n void setAdminConfig(AdminConfig adminConfig);\n @JsonIgnore\n AdminManager getAdminManager();\n void setAdminManager(AdminManager adminManager);\n\n DatabaseClient newAppServicesClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Staging database\n * @return - a DatabaseClient\n */\n DatabaseClient newStagingClient();\n\n DatabaseClient newStagingClient(String databaseName);\n\n /**\n * Creates a new DatabaseClient for accessing the Final database\n * @return - a DatabaseClient\n */\n DatabaseClient newFinalClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Job database\n * @return - a DatabaseClient\n */\n DatabaseClient newJobDbClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Trace database\n * @return - a DatabaseClient\n */\n DatabaseClient newTraceDbClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Hub Modules database\n * @return - a DatabaseClient\n */\n DatabaseClient newModulesDbClient();\n\n @JsonIgnore\n Path getHubPluginsDir();\n @JsonIgnore\n Path getHubEntitiesDir();\n\n @JsonIgnore\n Path getHubConfigDir();\n @JsonIgnore\n Path getHubDatabaseDir();\n @JsonIgnore\n Path getHubServersDir();\n @JsonIgnore\n Path getHubSecurityDir();\n @JsonIgnore\n Path getUserSecurityDir();\n @JsonIgnore\n Path getUserConfigDir();\n @JsonIgnore\n Path getUserDatabaseDir();\n @JsonIgnore\n Path getEntityDatabaseDir();\n @JsonIgnore\n Path getUserServersDir();\n @JsonIgnore\n Path getHubMimetypesDir();\n\n @JsonIgnore\n AppConfig getAppConfig();\n void setAppConfig(AppConfig config);\n\n void setAppConfig(AppConfig config, boolean skipUpdate);\n\n String getJarVersion() throws IOException;\n}", "default String remoteAddr() {\n return (String) metadata().get(\"x-remote-addr\");\n }", "public void setHost(String host);", "java.lang.String getRemoteHost();", "static String getUserName() {\n return System.getProperty(\"user.name\");\n }", "public String getCurrentUrlConfig() {\n String primary = AbstractConfigHandler.getPrimaryDataServer();\n if (primary == null) {\n logger.debug(\"No primary dataserver found\");\n urlUnset();\n return null;\n } else {\n String url = addressHandler.getHttpAddress(primary);\n if (url == null) {\n logger.debug(\"No url set for dataserver: \" + primary);\n urlUnset();\n return null;\n } else {\n return verifyHttpProcess(url);\n }\n }\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getSystemUser()\n\t{\n\t\treturn \"postgres\";\n\t}", "public abstract String getConfig();", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "@Override\n\tpublic java.lang.String getRemoteAddr() {\n\t\treturn _userTracker.getRemoteAddr();\n\t}", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getMetaServerAddress(Env targetEnv);", "public interface Config {\n int MAX_IP_RECORD = 10;\n String ADB_PATH = \"adb_path\";\n String IP_HISTORY = \"ip_history\";\n String TITLE = \"Wifi Adb Ultimate\";\n String HELP = \"https://github.com/Sausure/WIFIADB/tree/master/WIFIADBIntelliJPlugin\";\n String DEFAULT_PORT = \"5555\";\n String EMPTY = \"\";\n String SPACE = \" \";\n String ANY_SPACES = \"\\\\s{1,}\";\n String ENTER = \"\\\\n\";\n String TAB = \"\\\\t\";\n String DEFAULT_PROGRESS_TIP = \"Wait a moment\";\n String DAEMON_FLAG = Utils.concat(SPACE,\"daemon\",SPACE);\n String IP_PATTERN = \"\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}:\\\\d{1,5}\";\n}", "public String getHostID() { return hostID; }", "public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }", "public String getLogonURL()\n {\n return getUnsecuredRootLocation() + configfile.logon_url;\n }", "public String getDbHost() {\r\n return dbHost;\r\n }", "public String getServerDetails();", "private Registry getRegistry( String host )\n {\n Registry registry = null;\n \n try\n {\n if( null != host )\n {\n registry = LocateRegistry.getRegistry( host, RegistrationManager.PORT );\n }\n else\n {\n registry = LocateRegistry.getRegistry( RegistrationManager.PORT );\n }\n }\n catch( Exception ignore )\n {\n }\n\n return( registry );\n }", "public void OnConfHostRequest(BoUserInfoBase user, int permission);", "@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public void printInfo() {\n\t\tSystem.out.println(\"User: \" + userName);\n\t\tSystem.out.println(\"Login: \" + loginName);\n\t\tSystem.out.println(\"Host: \" + hostName);\n\t}" ]
[ "0.6696222", "0.6465766", "0.6432806", "0.6422483", "0.634939", "0.62691855", "0.6249654", "0.6249654", "0.62247354", "0.62215716", "0.61919916", "0.61726576", "0.61726576", "0.6169572", "0.6110767", "0.6095936", "0.60937333", "0.60260123", "0.6019926", "0.60156435", "0.60072136", "0.60016674", "0.5979296", "0.59338796", "0.5889862", "0.5884715", "0.5884715", "0.5864636", "0.5855343", "0.58448243", "0.58331746", "0.5826743", "0.5796661", "0.57886857", "0.5782308", "0.5782308", "0.5777016", "0.5777016", "0.5777016", "0.5777016", "0.5777016", "0.5777016", "0.57654697", "0.57583565", "0.57532847", "0.57450444", "0.57270455", "0.57270455", "0.5721386", "0.5716621", "0.57148075", "0.57028365", "0.5683009", "0.56757545", "0.56753343", "0.56351835", "0.5631897", "0.5627372", "0.55904615", "0.55788946", "0.55769163", "0.557571", "0.5574852", "0.55737716", "0.5568332", "0.55631757", "0.5561912", "0.55586755", "0.5540822", "0.5540822", "0.5530318", "0.55197597", "0.5510749", "0.55015963", "0.54983824", "0.5496985", "0.54819024", "0.548029", "0.547975", "0.5476794", "0.5470868", "0.5470777", "0.54699", "0.54699", "0.5449594", "0.5444467", "0.5444467", "0.5444467", "0.5422856", "0.5421423", "0.54072475", "0.5402822", "0.53806776", "0.5372015", "0.5352489", "0.5344789", "0.5335665", "0.53319275", "0.53319275", "0.533136", "0.53278255" ]
0.0
-1
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary generalinfo: The inputs and results of the instance analysis that can be ongoing, periodic and actual and projected
public Object getPerformanceAssessmentInstanceAnalysisRecord() { return performanceAssessmentInstanceAnalysisRecord; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "@Test\n public void testRun() {\n System.out.println(\"run\");\n FluorescenceImporter importer = null;\n try {\n FluorescenceFixture tf = new FluorescenceFixture();\n importer = new FluorescenceImporter(tf.testData());\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Importing dataset\");\n importer.setProgressHandle(ph);\n \n importer.run();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n //FluorescenceDataset dataset = importer.getDataset();\n Dataset<? extends Instance> plate = importer.getDataset();\n System.out.println(\"inst A1 \"+ plate.instance(0).toString());\n System.out.println(\"plate \"+plate.toString());\n Dataset<Instance> output = new SampleDataset<Instance>();\n output.setParent((Dataset<Instance>) plate);\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Analyzing dataset\");\n // AnalyzeRunner instance = new AnalyzeRunner((Timeseries<ContinuousInstance>) plate, output, ph);\n // instance.run();\n \n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize(\"$tE|HFM4Wv\");\n discretize0.globalInfo();\n // Undeclared exception!\n try { \n discretize0.outputPeek();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "object_detection.protos.Calibration.TrainingDataType getTrainingDataType();", "private FastVector getAccInstanceAttributes() {\n Attribute x_mean = new Attribute(\"x-axis mean\");\n Attribute x_var = new Attribute(\"x-axis var\");\n Attribute y_mean = new Attribute(\"y-axis mean\");\n Attribute y_var = new Attribute(\"y-axis var\");\n Attribute z_mean = new Attribute(\"z-axis mean\");\n Attribute z_var = new Attribute(\"z-axis var\");\n\n // Declare the class attribute along with its values\n FastVector fvClassVal = new FastVector(2);\n fvClassVal.addElement(\"none\");\n fvClassVal.addElement(\"tap\");\n Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n // Declare the feature vector\n FastVector fvWekaAttributes = new FastVector(7);\n\n fvWekaAttributes.addElement(x_mean);\n fvWekaAttributes.addElement(x_var);\n fvWekaAttributes.addElement(y_mean);\n fvWekaAttributes.addElement(y_var);\n fvWekaAttributes.addElement(z_mean);\n fvWekaAttributes.addElement(z_var);\n fvWekaAttributes.addElement(classAttribute);\n\n// // Declare the numeric attributes\n// Attribute x_var = new Attribute(\"var_x\");\n// Attribute x_var_delta = new Attribute(\"delta_var_x\");\n// Attribute y_var = new Attribute(\"var_y\");\n// Attribute y_var_delta = new Attribute(\"delta_var_y\");\n// Attribute z_var = new Attribute(\"var_z\");\n// Attribute z_var_delta = new Attribute(\"delta_var_z\");\n//\n// // Declare the class attribute along with its values\n// FastVector fvClassVal = new FastVector(3);\n// fvClassVal.addElement(\"none\");\n// fvClassVal.addElement(\"motion\");\n// fvClassVal.addElement(\"tap\");\n// Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n// // Declare the feature vector\n// FastVector fvWekaAttributes = new FastVector(7);\n//\n// fvWekaAttributes.addElement(x_var);\n// fvWekaAttributes.addElement(x_var_delta);\n// fvWekaAttributes.addElement(y_var);\n// fvWekaAttributes.addElement(y_var_delta);\n// fvWekaAttributes.addElement(z_var);\n// fvWekaAttributes.addElement(z_var_delta);\n// fvWekaAttributes.addElement(classAttribute);\n\n return fvWekaAttributes;\n }", "public Instance(Instance inst){\r\n\t\tthis.isTrain = inst.isTrain;\r\n\t\tthis.numInputAttributes = inst.numInputAttributes;\r\n\t\tthis.numOutputAttributes = inst.numOutputAttributes;\r\n\t\tthis.numUndefinedAttributes = inst.numUndefinedAttributes;\r\n\r\n\t\tthis.anyMissingValue = Arrays.copyOf(inst.anyMissingValue, inst.anyMissingValue.length);\r\n\r\n\t\tthis.nominalValues = new String[inst.nominalValues.length][];\r\n\t\tfor(int i=0;i<nominalValues.length;i++){\r\n\t\t\tthis.nominalValues[i] = Arrays.copyOf(inst.nominalValues[i],inst.nominalValues[i].length);\r\n\t\t}\r\n\r\n\t\tthis.intNominalValues = new int[inst.intNominalValues.length][];\r\n\t\tfor(int i=0;i<nominalValues.length;i++){\r\n\t\t\tthis.intNominalValues[i] = Arrays.copyOf(inst.intNominalValues[i],inst.intNominalValues[i].length);\r\n\t\t}\r\n\r\n\t\tthis.realValues = new double[inst.realValues.length][];\r\n\t\tfor(int i=0;i<realValues.length;i++){\r\n\t\t\tthis.realValues[i] = Arrays.copyOf(inst.realValues[i],inst.realValues[i].length);\r\n\t\t}\r\n\r\n\t\tthis.missingValues = new boolean[inst.missingValues.length][];\r\n\t\tfor(int i=0;i<missingValues.length;i++){\r\n\t\t\tthis.missingValues[i] = Arrays.copyOf(inst.missingValues[i],inst.missingValues[i].length);\r\n\t\t}\r\n\t}", "public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public void calcualteFeatureValue(Collection<Instance> instanceCollection);", "public VibrationalStructureInfo() {\n }", "public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\n }", "private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObjects + \" object\"\n + ((numObjects == 1) ? \"\" : \"s\") + \" total in current state.\");\n }", "@SuppressWarnings(\"unchecked\")\r\n public static void main(String[] args)\r\n {\r\n //final String INPUT_FILE=\"contact-lenses.arff\";\r\n final String INPUT_FILE=\"adult.merged.arff\";\r\n Instances data;\r\n try {\r\n Reader reader = new FileReader(INPUT_FILE);\r\n data = new Instances(reader);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to read input file \" + INPUT_FILE + \", exiting\");\r\n return;\r\n }\r\n data.setClassIndex(data.numAttributes()-1);\r\n\r\n System.out.println(\"Acquired data from file \" + INPUT_FILE);\r\n System.out.println(\"Got \" + data.numInstances() + \" instances with \" + data.numAttributes() + \" attributes, class attribute is \" + data.classAttribute().name());\r\n AttributeScoreAlgorithm scorer = new MaxScorer ();\r\n Enumeration<Attribute> atts=(Enumeration<Attribute>)data.enumerateAttributes();\r\n while (atts.hasMoreElements())\r\n {\r\n C45Attribute att=new C45Attribute(atts.nextElement());\r\n System.out.println(\"Score for attribute \" + att.WekaAttribute().name() + \" is \" + scorer.Score(data,att));\r\n }\r\n\r\n List<C45Attribute> candidateAttributes = new LinkedList<C45Attribute>();\r\n Enumeration attEnum = data.enumerateAttributes();\r\n while (attEnum.hasMoreElements())\r\n candidateAttributes.add(new C45Attribute((Attribute)attEnum.nextElement()));\r\n BigDecimal epsilon=new BigDecimal(0.1, DiffPrivacyClassifier.MATH_CONTEXT);\r\n PrivacyAgent agent = new PrivacyAgentBudget(epsilon);\r\n\r\n PrivateInstances privData = new PrivateInstances(agent,data);\r\n privData.setDebugMode(true);\r\n\r\n try {\r\n C45Attribute res=privData.privateChooseAttribute(new MaxScorer(), candidateAttributes,epsilon);\r\n System.out.println(\"Picked attribute \" + res.WekaAttribute().name());\r\n } catch(Exception e) { System.out.println(e.getMessage());}\r\n }", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "@VTID(11)\n boolean getOLAP();", "private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(44);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance(6);\n binarySparseInstance1.dataset();\n Discretize discretize0 = new Discretize();\n discretize0.setMakeBinary(true);\n try { \n discretize0.setInputFormat((Instances) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "public static void main(String[] args) {\n\t\tAnalyse ana = new Analyse(20, 5);\r\n//\t\tArrayList<Map.Entry<Integer, Double>> current = ana.getNeighbor(\"\")\r\n//\t\tfor(int i = 0; i < ana.average.length; i++){\r\n//\t\t\tSystem.out.println(ana.average[i]);\r\n//\t\t}\r\n//\t\tfor (int i = 0; i < 5; i++) {\r\n//\t\t\tSystem.out.println(ana.heap.get(i).getValue());\r\n//\t\t}\r\n\t\tSystem.out.println(ana.similarity.size());\r\n//\t\tArrayList<Map.Entry<Integer, Double>> record = ana.getNeighbor(\"0155061224\");\r\n//\t\tSystem.out.println(ana.heap.size());\r\n//\t\tSystem.out.println(record.size());\r\n//\t\tfor(int i = 0; i < record.size(); i++){\r\n//\t\t\tSystem.out.println(record.get(i).getKey());\r\n//\t\t\tSystem.out.println(record.get(i).getValue());\r\n////\t\t\tSystem.out.println(ana.matrix[record.get(i).getKey()][ana.read.getItems().indexOf(3149)]);\r\n//\t\t}\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"score\" + ana.predictionBaseline(\"100\"));\r\n\t\tlong end = System.currentTimeMillis();\r\n\t\tSystem.out.println(end - start);\r\n//\t\tSystem.out.println(ana.predictionBaseline(\"0155061224\"));\r\n\t}", "@Test(timeout = 4000)\n public void test091() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(11);\n IBk iBk0 = new IBk();\n try { \n evaluation0.evaluationForSingleInstance((Classifier) iBk0, (Instance) binarySparseInstance0, true);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // DenseInstance doesn't have access to a dataset!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "@Override\n protected final void process() throws OutOfMemoryError {\n if(!caching()) return;\n \n // get station density\n Vector<EvaluationResult> stationSpeed = Evaluation.getResult(StationSpeed.class, this.opts); \n \n // get section that selected from TICAS GUI\n Section section = this.opts.getSection();\n \n // get stations including the section\n Station[] stations = section.getStations(this.detectorChecker); \n \n Period[] periods = this.opts.getPeriods();\n \n int idx = 0; \n int startIdx = 0;\n if(stationSpeed.size() > 1) startIdx = 1;\n for(int i=startIdx; i<stationSpeed.size(); i++)\n {\n if(printDebug && idx < periods.length) System.out.println(\" - \" + periods[idx++].getPeriodString()); \n \n EvaluationResult res = EvaluationResult.copy(stationSpeed.get(i));\n res = this.removeVirtualStationFromResult(res);\n EvaluationResult accelRes = EvaluationResult.copy(stationSpeed.get(i));\n accelRes = this.removeVirtualStationFromResult(accelRes);\n \n // add first station data (all of data are 0)\n for(int r=accelRes.ROW_DATA_START(); r<res.getRowSize(0); r++) {\n accelRes.set(accelRes.COL_DATA_START(), r, 0D);\n }\n \n for(int c=res.COL_DATA_START()+1; c<res.getColumnSize(); c++)\n {\n int stationIdx = c-res.COL_DATA_START();\n for(int r=res.ROW_DATA_START(); r<res.getRowSize(c); r++)\n {\n double u1 = Double.parseDouble(res.get(c-1, r).toString());\n double u2 = Double.parseDouble(res.get(c, r).toString());\n double distance = TMO.getDistanceInMile(stations[stationIdx-1], stations[stationIdx]);\n double accel = getAcceleration(u1, u2, distance);\n accelRes.set(c, r, accel);\n }\n }\n this.results.add(accelRes);\n } \n hasResult = true;\n }", "@Override\n\tpublic Map<String, Object> fingViolationCarInfo(String query) throws Exception {\n\t\treturn responsitory.fingViolationCarInfo(query);\n\t}", "private DiscretePotentialOperations() {\r\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\tAutoGrease = CAN1Comm.Get_AutoGreaseOperationStatus_3449_PGN65527();\n\t\tQuickcoupler = CAN1Comm.Get_QuickCouplerOperationStatus_3448_PGN65527();\n\t\tRideControl = CAN1Comm.Get_RideControlOperationStatus_3447_PGN65527();\n\t\tBeaconLamp = CAN1Comm.Get_BeaconLampOperationStatus_3444_PGN65527();\n\t\tMirrorHeat = CAN1Comm.Get_MirrorHeatOperationStatus_3450_PGN65527();\n\t\tFineModulation = CAN1Comm.Get_ComponentCode_1699_PGN65330_EHCU();\n\t}", "@Override\n public double classifyInstance(Instance instance) throws Exception {\n\n\n\n int numAttributes = instance.numAttributes();\n int clsIndex = instance.classIndex();\n boolean hasClassAttribute = true;\n int numTestAtt = numAttributes -1;\n if (numAttributes == m_numOfInputNeutrons) {\n hasClassAttribute = false; // it means the test data doesn't has class attribute\n numTestAtt = numTestAtt+1;\n }\n\n for (int i = 0; i< numAttributes; i++){\n if (instance.attribute(i).isNumeric()){\n\n double max = m_normalization[0][i];\n double min = m_normalization[1][i];\n double normValue = 0 ;\n if (instance.value(i)<min) {\n normValue = 0;\n m_normalization[1][i] = instance.value(i); // reset the smallest value\n }else if(instance.value(i)> max){\n normValue = 1;\n m_normalization[0][i] = instance.value(i); // reset the biggest value\n }else {\n if (max == min ){\n if (max == 0){\n normValue = 0;\n }else {\n normValue = max/Math.abs(max);\n }\n }else {\n normValue = (instance.value(i) - min) / (max - min);\n }\n }\n instance.setValue(i, normValue);\n }\n }\n\n double[] testData = new double[numTestAtt];\n\n\n\n\n\n int index = 0 ;\n\n if (!hasClassAttribute){\n\n for (int i =0; i<numAttributes; i++) {\n testData[i] = instance.value(i);\n }\n }else {\n for (int i = 0; i < numAttributes; i++) {\n\n if (i != clsIndex) {\n\n testData[index] = instance.value(i);\n\n index++;\n }\n }\n }\n\n\n\n DenseMatrix prediction = new DenseMatrix(numTestAtt,1);\n for (int i = 0; i<numTestAtt; i++){\n prediction.set(i, 0, testData[i]);\n }\n\n DenseMatrix H_test = generateH(prediction,weightsOfInput,biases, 1);\n\n DenseMatrix H_test_T = new DenseMatrix(1, m_numHiddenNeurons);\n\n H_test.transpose(H_test_T);\n\n DenseMatrix output = new DenseMatrix(1, m_numOfOutputNeutrons);\n\n H_test_T.mult(weightsOfOutput, output);\n\n double result = 0;\n\n if (m_typeOfELM == 0) {\n double value = output.get(0,0);\n result = value*(m_normalization[0][classIndex]-m_normalization[1][classIndex])+m_normalization[1][classIndex];\n //result = value;\n if (m_debug == 1){\n System.out.print(result + \" \");\n }\n }else if (m_typeOfELM == 1){\n int indexMax = 0;\n double labelValue = output.get(0,0);\n\n if (m_debug == 1){\n System.out.println(\"Each instance output neuron result (after activation)\");\n }\n for (int i =0; i< m_numOfOutputNeutrons; i++){\n if (m_debug == 1){\n System.out.print(output.get(0,i) + \" \");\n }\n if (output.get(0,i) > labelValue){\n labelValue = output.get(0,i);\n indexMax = i;\n }\n }\n if (m_debug == 1){\n\n System.out.println(\"//\");\n System.out.println(indexMax);\n }\n result = indexMax;\n }\n\n\n\n return result;\n\n\n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(11);\n try { \n evaluation0.evaluationForSingleInstance((Classifier) null, (Instance) binarySparseInstance0, false);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // DenseInstance doesn't have access to a dataset!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "public void trainOnInstance(Instance inst) {\n\t\t\t\t\t\t\n\t\t\ttry{\t\t\t\t\n\t\t\t\tinstancesSeen++;\n\t\t\t\tupdateStats(inst);\n\t\t\t\t\n\t\t\t\tDoubleVector normaliezedExtendedInstance = PrepareExtendedFeatureVector(inst) ;\n\t\t\t\tdouble normaliezedTargetValue= NormalizeTarget(inst) ;\n\t\t\t\tResultSummary resultSummary = getMemberships (normaliezedExtendedInstance,normaliezedTargetValue) ;\n\t\t\t\t\n\t\t\t\tdouble error = resultSummary.getNormaliezedTargetValue() - resultSummary.getFinalPrediction() ;\n\t\t\t\tthis.CurModSSE += Math.pow(error, 2) ;\n\t\t\t\t\n\t\t\t\t// checking a possible drift\n//\t\t\t\tboolean drift =checkChangeDetection() ;\n//\t\t\t\tif (drift)\n//\t\t\t\t\tthis.countChangeDetected++ ;\n\t\t\t\tboolean drift = false ;\n\t\t\t\tif ((this.instancesSeen % graceperiod)==0){\n\t\t\t\t\tdrift =checkChangeDetection() ;\n\t\t\t\t\tif (drift){\n\t\t\t\t\t\tthis.countChangeDetected++ ;\n//\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\tSystem.out.println(\"########After a drift################\");\n\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n// \t\tVarianceRationREduction\n\t\t\t\tif (learningCriteriaOption.getChosenIndex()==1) {\n\t\t\t\t\t// checking a possible extension\n//\t\t\t\t\tif (this.instancesSeen > graceperiod && !drift ) {\n\t\t\t\t\tif (!drift ) {\n\t\t\t\t\t\tboolean systemChanged = false ;\n\t\t\t\t\t\tVector <RuleVR> removeRules= new Vector<RuleVR>() ;\n\t\t\t\t\t\tVector <RuleVR> newRules= new Vector<RuleVR>() ;\n\t\t\t\t\t\tfor (FuzzyRule rule : rs){\n\t\t\t\t\t\t\tVector <RuleVR> expansions = ((RuleVR)rule).tryToExpand(confidence, tau) ;\n\t\t\t\t\t\t\tif (expansions != null) {\n\t\t\t\t\t\t\t\tsystemChanged = true ;\n\t\t\t\t\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\t\t\t\t\t\t\tif (expansions.get(0).getInitialMerit() > expansions.get(1).getInitialMerit()) {\n\t\t\t\t\t\t\t\t\t\tnewRules.add(expansions.get(0)) ;\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tnewRules.add(expansions.get(1)) ;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (rule !=defaultRule)\n\t\t\t\t\t\t\t\t\t\tremoveRules.add((RuleVR)rule) ;\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tremoveRules.add((RuleVR)rule) ;\n\t\t\t\t\t\t\t\t\tnewRules.addAll(expansions) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (systemChanged) {\n\t\t\t\t\t\t\trs.removeAll(removeRules) ;\n\t\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\tSystem.out.println(\"########################\");\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//RMSEReduction\n\t\t\t\telse{\n\t\t\t\t\t// checking a possible extension\n\t\t\t\t\tif (this.instancesSeen > graceperiod && !drift ) {\n\t\t\t\t\t\tExtendedCandidateErrR bestExtension = this.checkValidExpansion();\n\t\t\t\t\t\tif ((bestExtension != null)) {\n\t\t\t\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\n\t\t\t\t\t\t\t\tVector<RuleErrR> newRules = bestExtension.CreateRuleFromExtension() ;\n\t\t\t\t\t\t\t\tif (bestExtension.getParentRule()!=defaultRule)\n\t\t\t\t\t\t\t\t\trs.remove(bestExtension.getParentRule()) ;\n\t\t\t\t\t\t\t\t\n\t\t//\t\t\t\t\t\tWe must choose the best candidate here!\n\t\t\t\t\t\t\t\tdouble [] SSESingleExtenstions = bestExtension.getMeanSSESingleExension() ;\n\t\t\t\t\t\t\t\tif (SSESingleExtenstions[0]<SSESingleExtenstions[1])\n\t\t\t\t\t\t\t\t\trs.add(newRules.get(0)) ;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\trs.add(newRules.get(1)) ;\t\n\t\t\t\t\t\t\t\t\t\n\t\t//\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\t\tif (bestExtension.getParentRule()==defaultRule)\n\t\t\t\t\t\t\t\t\tdefaultRule.buildExtendedCandidates(bestExtension.getAttributeIndex());\n\t\t\n\t\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tExtendedCandidateErrR cbestExtension = this.checkValidExpansion();\n\n\t\t\t\t\t\t\t\tVector<RuleErrR> newRules = bestExtension.CreateRuleFromExtension() ;\n\t\t\t\t\t\t\t\trs.remove(bestExtension.getParentRule()) ;\n\t\t\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\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}\n\t\t\t\t}\t\n\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\t\t\tdouble maxMembership = 0 ;\n\t\t\t\t\tfor (ResultSummary.ResultPair resultPair: resultSummary.getResultPairs()) {\n\t\t\t\t\t\tresultPair.getRule().trainOnInstance(resultSummary, resultPair);\n\t\t\t\t\t\tmaxMembership = Math.max(maxMembership, resultPair.getMembership()) ;\n\t\t\t\t\t}\n\t\t\t\t\tif (maxMembership < max_Membership_For_Choosing_Single_Rule)\n\t\t\t\t\t\tdefaultRule.trainOnInstance(resultSummary, resultSummary.getResultPairDefaultRule()) ;\n\t\t\t\t}else{\n\t\t\t\t\tfor (ResultSummary.ResultPair resultPair: resultSummary.getResultPairs()) {\n\t\t\t\t\t\tresultPair.getRule().trainOnInstance(resultSummary, resultPair);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}", "public void test_0020() {\n int nFactors = 2;\n FactorAnalysis instance = new FactorAnalysis(data, nFactors);\n\n assertEquals(instance.nObs(), 18., 1e-15);\n assertEquals(instance.nVariables(), 6., 1e-15);\n assertEquals(instance.nFactors(), 2., 1e-15);\n\n FAEstimator estimators = instance.getEstimators(400);\n\n Vector uniqueness = estimators.psi();\n assertArrayEquals(\n new double[]{0.005, 0.114, 0.642, 0.742, 0.005, 0.097},\n uniqueness.toArray(),\n 2e-2);\n\n int dof = estimators.dof();\n assertEquals(dof, 4);\n\n double fitted = estimators.logLikelihood();\n assertEquals(fitted, 1.803, 1e-3);\n\n Matrix loadings = estimators.loadings();\n assertTrue(AreMatrices.equal(\n new DenseMatrix(new double[][]{\n {0.971, 0.228},\n {0.917, 0.213},\n {0.429, 0.418},\n {0.363, 0.355},\n {0.254, 0.965},\n {0.205, 0.928}\n }),\n loadings,\n 1e-3));\n\n double testStats = estimators.statistics();\n assertEquals(testStats, 23.14, 1e-2);\n\n double pValue = estimators.pValue();\n assertEquals(pValue, 0.000119, 1e-6);//R: 1-pchisq(23.14, df=4) = 0.0001187266\n\n// System.out.println(uniqueness.toString());\n// System.out.println(fitted);\n// System.out.println(loadings.toString());\n }", "@Override\n\t\tprotected void process() throws Exception {\n\t\t\tthis.status = \"{\\\"status\\\":\\\"Now processing - Initializing Models...\\\",\\\"starttime\\\":\"\n\t\t\t\t\t+ start_time + \",\\\"uuid\\\":\\\"\" + this.uuid + \"\\\"}\";\n\t\t\tGlobalVars.initialize();\n\n\t\t\t// Processing Step 1. - CoreNLP\n\t\t\tthis.status = \"{\\\"status\\\":\\\"Now processing CoreNLP.\\\",\\\"starttime\\\":\"\n\t\t\t\t\t+ start_time + \",\\\"uuid\\\":\\\"\" + this.uuid + \"\\\"}\";\n\t\t\tString processed_text = Filter\n\t\t\t\t\t.filterdata(GlobalVars.pipeline, text);\n\n\t\t\t// Processing Step 2. - Openie\"\n\t\t\tthis.status = \"{\\\"status\\\":\\\"Now processing Openie.\\\",\\\"starttime\\\":\"\n\t\t\t\t\t+ start_time + \",\\\"uuid\\\":\\\"\" + this.uuid + \"\\\"}\";\n\t\t\tStringBuilder openIEOutput = new StringBuilder();\n\t\t\tString temp = \"\";\n\t\t\tfor (String sentence : processed_text.split(\"\\\\. \")) {\n\n\t\t\t\tSeq<Instance> extractions = GlobalVars.openIE.extract(sentence);\n\n\t\t\t\tInstance[] arr = new Instance[extractions.length()];\n\t\t\t\textractions.copyToArray(arr);\n\n\t\t\t\tfor (Instance inst : arr) {\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tsb.append(inst.sentence() + \"\\n\");\n\t\t\t\t\tDouble conf = inst.confidence();\n\t\t\t\t\tString stringConf = conf.toString().substring(0, 4);\n\t\t\t\t\tsb.append(stringConf).append(\" (\")\n\t\t\t\t\t\t\t.append(inst.extr().arg1().text()).append(\"; \")\n\t\t\t\t\t\t\t.append(inst.extr().rel().text()).append(\"; \");\n\n\t\t\t\t\ttemp += inst.extr().arg1().text() + \"\\n\"\n\t\t\t\t\t\t\t+ inst.extr().rel().text() + \"\\n\";\n\n\t\t\t\t\tPart[] arr2 = new Part[inst.extr().arg2s().length()];\n\t\t\t\t\tinst.extr().arg2s().copyToArray(arr2);\n\t\t\t\t\t/*\n\t\t\t\t\t * for (Part arg : arr2) { sb.append(arg.text()).append(\"\");\n\t\t\t\t\t * System.out.println(\"%\" + arg.text() + \"%\"); }\n\t\t\t\t\t */\n\t\t\t\t\tif (arr2.length != 0) {\n\t\t\t\t\t\tSystem.out.println(\"Hats: \" + arr2[0]);\n\t\t\t\t\t\ttemp += arr2[0] + \"\\n\";\n\t\t\t\t\t\tsb.append(arr2[0]);\n\t\t\t\t\t\tsb.append(\")\\n\\n\");\n\t\t\t\t\t\topenIEOutput.append(sb.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Processing Step 3. - Rewrite\n\t\t\tthis.status = \"{\\\"status\\\":\\\"Now processing Rewrite.\\\",\\\"starttime\\\":\"\n\t\t\t\t\t+ start_time + \",\\\"uuid\\\":\\\"\" + this.uuid + \"\\\"}\";\n\t\t\t// Load load = new Load();\n\t\t\t// result = load.Loadfilter(openIEOutput.toString());\n\t\t\tresult = temp;\n\t\t}", "private void analysisText(){\n\n FileOutput fout = null;\n if(this.fileNumberingSet){\n fout = new FileOutput(this.outputFilename, 'n');\n }\n else{\n fout = new FileOutput(this.outputFilename);\n }\n\n // perform PCA if not already performed\n if(!pcaDone)this.pca();\n if(!this.monteCarloDone)this.monteCarlo();\n\n // output title\n fout.println(\"PRINCIPAL COMPONENT ANALYSIS\");\n fout.println(\"Program: PCA - Analysis Output\");\n for(int i=0; i<this.titleLines; i++)fout.println(title[i]);\n Date d = new Date();\n String day = DateFormat.getDateInstance().format(d);\n String tim = DateFormat.getTimeInstance().format(d);\n fout.println(\"Program executed at \" + tim + \" on \" + day);\n fout.println();\n if(this.covRhoOption){\n fout.println(\"Covariance matrix used\");\n }\n else{\n fout.println(\"Correlation matrix used\");\n }\n fout.println();\n\n // output eigenvalue table\n // field width\n int field1 = 10;\n int field2 = 12;\n int field3 = 2;\n\n fout.println(\"ALL EIGENVALUES\");\n\n fout.print(\"Component \", field1);\n fout.print(\"Unordered \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.println(\"Difference \");\n\n fout.print(\" \", field1);\n fout.print(\"index\", field1);\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.println(\" \");\n\n\n\n for(int i=0; i<this.nItems; i++){\n fout.print(i+1, field1);\n fout.print((this.eigenValueIndices[i]+1), field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[i], this.trunc), field2);\n if(i<this.nItems-1){\n fout.print(Fmath.truncate((this.orderedEigenValues[i] - this.orderedEigenValues[i+1]), this.trunc), field2);\n }\n else{\n fout.print(\" \", field2);\n }\n fout.print(\" \", field3);\n\n fout.println();\n }\n fout.println();\n\n\n // Extracted components\n int nMax = this.greaterThanOneLimit;\n if(nMax<this.meanCrossover)nMax=this.meanCrossover;\n if(nMax<this.percentileCrossover)nMax=this.percentileCrossover;\n fout.println(\"EXTRACTED EIGENVALUES\");\n fout.print(\" \", field1);\n fout.print(\"Greater than unity\", 3*field2 + field3);\n fout.print(\"Greater than Monte Carlo Mean \", 3*field2 + field3);\n fout.println(\"Greater than Monte Carlo Percentile\");\n\n fout.print(\"Component \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.println(\" \");\n\n fout.print(\" \", field1);\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.println(\" \");\n\n int ii=0;\n while(ii<nMax){\n fout.print(ii+1, field1);\n\n if(ii<this.greaterThanOneLimit){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc), (field2+field3));\n }\n\n if(ii<this.meanCrossover){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc), (field2+field3));\n }\n\n if(ii<this.percentileCrossover){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc));\n }\n fout.println();\n ii++;\n }\n fout.println();\n\n\n fout.println(\"PARALLEL ANALYSIS\");\n fout.println(\"Number of simulations = \" + this.nMonteCarlo);\n if(this.gaussianDeviates){\n fout.println(\"Gaussian random deviates used\");\n }\n else{\n fout.println(\"Uniform random deviates used\");\n }\n fout.println(\"Percentile value used = \" + this.percentile + \" %\");\n\n fout.println();\n fout.print(\"Component \", field1);\n fout.print(\"Data \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n fout.print(\"Data \", field2);\n fout.print(\"Monte Carlo \", field2);\n fout.print(\"Monte Carlo \", field2);\n fout.println(\"Monte Carlo \");\n\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Eigenvalue \", field2);\n fout.println(\"Eigenvalue \");\n\n fout.print(\" \", field1);\n fout.print(\" \", field2);\n fout.print(\" \", field2);\n fout.print(\" \", field2);\n fout.print(\" \", field3);\n fout.print(\" \", field2);\n fout.print(\"Percentile \", field2);\n fout.print(\"Mean \", field2);\n fout.println(\"Standard Deviation \");\n\n for(int i=0; i<this.nItems; i++){\n fout.print(i+1, field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[i], this.trunc), field2);\n fout.print(\" \", field3);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.randomEigenValuesPercentiles[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.randomEigenValuesMeans[i], this.trunc), field2);\n fout.println(Fmath.truncate(this.randomEigenValuesSDs[i], this.trunc));\n }\n fout.println();\n\n // Correlation Matrix\n fout.println(\"CORRELATION MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.correlationMatrix.getElement(j,i), this.trunc), field2);\n fout.println();\n }\n fout.println();\n\n // Covariance Matrix\n fout.println(\"COVARIANCE MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.covarianceMatrix.getElement(j,i), this.trunc), field2);\n fout.println();\n }\n\n fout.println();\n\n // Eigenvectors\n fout.println(\"EIGENVECTORS\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println(\"Vector corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.orderedEigenVectorsAsRows[i][j], this.trunc), field2);\n fout.println();\n }\n fout.println();\n\n // Loading factors\n fout.println(\"LOADING FACTORS\");\n fout.println(\"Original indices in parenthesis\");\n fout.println(\"Loading factors corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue\", field2);\n fout.print(\"Proportion\", field2);\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n for(int i=0; i<this.nItems; i++){\n fout.print((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.loadingFactorsAsRows[i][j], this.trunc), field2);\n fout.print(\" \", field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(proportionPercentage[i], this.trunc), field2);\n fout.println(Fmath.truncate(cumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n // Rotated loading factors\n fout.println(\"ROTATED LOADING FACTORS\");\n if(this.varimaxOption){\n fout.println(\"NORMAL VARIMAX\");\n }\n else{\n fout.println(\"RAW VARIMAX\");\n }\n\n String message = \"The ordered eigenvalues with Monte Carlo means and percentiles in parenthesis\";\n message += \"\\n (Total number of eigenvalues = \" + this.nItems + \")\";\n int nDisplay = this.nItems;\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int screenHeight = screenSize.height;\n int nDisplayLimit = 20*screenHeight/800;\n if(nDisplay>nDisplay)nDisplay = nDisplayLimit;\n for(int i=0; i<nDisplay; i++){\n message += \"\\n \" + Fmath.truncate(this.orderedEigenValues[i], 4) + \" (\" + Fmath.truncate(this.randomEigenValuesMeans[i], 4) + \" \" + Fmath.truncate(this.randomEigenValuesPercentiles[i], 4) + \")\";\n }\n if(nDisplay<this.nItems)message += \"\\n . . . \";\n message += \"\\nEnter number of eigenvalues to be extracted\";\n int nExtracted = this.greaterThanOneLimit;\n nExtracted = Db.readInt(message, nExtracted);\n this.varimaxRotation(nExtracted);\n\n fout.println(\"Varimax rotation for \" + nExtracted + \" extracted factors\");\n fout.println(\"Rotated loading factors and eigenvalues scaled to ensure total 'rotated variance' matches unrotated variance for the extracted factors\");\n fout.println(\"Original indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.rotatedIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue\", field2);\n fout.print(\"Proportion\", field2);\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n\n for(int i=0; i<nExtracted; i++){\n fout.print((i+1) + \" (\" + (rotatedIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.rotatedLoadingFactorsAsRows[i][j], this.trunc), field2);\n fout.print(\" \", field1);\n fout.print(Fmath.truncate(rotatedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(rotatedProportionPercentage[i], this.trunc), field2);\n fout.println(Fmath.truncate(rotatedCumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n fout.println(\"DATA USED\");\n fout.println(\"Number of items = \" + this.nItems);\n fout.println(\"Number of persons = \" + this.nPersons);\n\n\n if(this.originalDataType==0){\n fout.printtab(\"Item\");\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n }\n fout.println();\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n for(int j=0; j<this.nPersons; j++){\n fout.printtab(Fmath.truncate(this.scores0[i][j], this.trunc));\n }\n fout.println();\n }\n }\n else{\n fout.printtab(\"Person\");\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n }\n fout.println();\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n for(int j=0; j<this.nItems; j++){\n fout.printtab(Fmath.truncate(this.scores1[i][j], this.trunc));\n }\n fout.println();\n }\n }\n\n fout.close();\n }", "public static void main(String[] args) throws IOException {\n int activeThreshold = 300;\n //Activity.selectActive(\"st\", 6, activeThreshold);\n //Activity.selectActive(\"ri\", 6, activeThreshold);\n //Activity.selectActive(\"dw\", 9, activeThreshold);\n\n //Interaction.analysis(\"st\", 6);\n //Interaction.analysis(\"ri\", 6);\n\n //BehaviourIndicators.analysis(\"st\", 6);\n //BehaviourIndicators.analysis(\"ri\", 6);\n //BehaviourIndicators.analysis(\"dw\", 9);\n\n Engagement.analysis(\"st\",6);\n Engagement.analysis(\"ri\",6);\n //todo the data files for DW have to be adjusted to the ones of the other two to be able to run it\n //Engagement.analysis(\"dw\",9);\n\n //Motivation.analysis(\"ri\", 6);\n //Motivation.analysis(\"st\", 6);\n }", "public abstract Annotations mo30682c();", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.findNumBinsTipText();\n // Undeclared exception!\n try { \n discretize0.output();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "public void display() {\n \n //Print the features representation\n System.out.println(\"\\nDENSE REPRESENTATION\\n\");\n \n //Print the header\n System.out.print(\"ID\\t\");\n for (short i = 0 ; i < dimension; i++) {\n System.out.format(\"%s\\t\\t\", i);\n }\n System.out.println();\n \n //Print all the instances\n for (Entry<String, Integer> entry : mapOfInstances.entrySet()) {\n System.out.format(\"%s\\t\", entry.getKey());\n for (int i = 0; i < vectorDimension(); i++) {\n //System.out.println(allFeatures.get(entry.getValue())[i]);\n System.out.format(\"%f\\t\", allValues.get(entry.getValue())[i]); \n }\n System.out.println();\n }\n }", "public String globalInfo() {\n return \"Class for building and using a PRISM rule set for classification. \"\n + \"Can only deal with nominal attributes. Can't deal with missing values. \"\n + \"Doesn't do any pruning.\\n\\n\"\n + \"For more information, see \\n\\n\"\n + getTechnicalInformation().toString();\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test public void calcROItest() {\n DirectMC h = new DirectMC(\"AdMailing\", 10000.00, 3.00, 2000);\n Assert.assertEquals(.4286, h.calcROI(), 1);\n }", "protected abstract void analyzeSystem(PipelineData data) throws Exception;", "public String globalInfo() {\n\n return \"MITI (Multi Instance Tree Inducer): multi-instance classification \"\n + \" based a decision tree learned using Blockeel et al.'s algorithm. For more \"\n + \"information, see\\n\\n\" + getTechnicalInformation().toString();\n }", "@Test\r\n public void testGetRuntimeInfo() throws Exception {\r\n AllSetting allSetting = Mockito.mock(AllSetting.class);\r\n Mockito.when(allSetting.getDriverClass()).thenReturn(\"anyDriverClass\");\r\n TDataPrepDBInputProperties properties = Mockito.mock(TDataPrepDBInputProperties.class);\r\n Mockito.when(properties.getRuntimeSetting()).thenReturn(allSetting);\r\n \r\n TDataPrepDBInputDefinition fixture = new TDataPrepDBInputDefinition();\r\n ExecutionEngine engine = ExecutionEngine.DI;\r\n\r\n RuntimeInfo result = fixture.getRuntimeInfo(engine, properties, ConnectorTopology.OUTGOING);\r\n assertNotNull(result);\r\n\r\n result = fixture.getRuntimeInfo(engine, properties, ConnectorTopology.NONE);\r\n Assert.assertNull(result);\r\n\r\n result = fixture.getRuntimeInfo(engine, properties, ConnectorTopology.INCOMING);\r\n Assert.assertNull(result);\r\n\r\n result = fixture.getRuntimeInfo(engine, properties, ConnectorTopology.INCOMING_AND_OUTGOING);\r\n Assert.assertNull(result);\r\n }", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "ResultLog() {\r\n interactions = new boolean[1];\r\n indexRef = 0;\r\n }", "cn.infinivision.dataforce.busybee.pb.meta.Execution getExecution();", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize(\"GUIEditors.props\");\n discretize0.useBinNumbersTipText();\n // Undeclared exception!\n try { \n discretize0.output();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public String getCaseInstanceAnalysisParameters() {\n return caseInstanceAnalysisParameters;\n }", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\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\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public abstract boolean promulgationDataDefined();", "private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():java.util.Map\");\n }", "ExperimentExecutionDetailsPropertiesRunInformation runInformation();", "public Map<String,Double> call()\n\t\t\tthrows Exception {\n\t\tList<String> labels = new ArrayList<String>();\n\t\t\t\t\n\t\tfor (Trace<T> t : traces) {\n//\t\t\tSet<T> toAdd = new HashSet<T>();\n//\t\t\tfor (T s : t.getConstraints())\n//\t\t\t\ttoAdd.add(s);\n//\t\t\tt.setConstraints(toAdd);\n//\t\t\tfor (T c : toAdd)\n//\t\t\t\tallConstraints.add(c);\n\t\t\tif (!labels.contains(Integer.toString(t.getLabel())))\n\t\t\t\tlabels.add(Integer.toString(t.getLabel()));\n\t\t}\n\t\t\n\t\tArrayList<Attribute> attributes = new ArrayList<Attribute>();\n\t\tArrayList<String> levels = new ArrayList<String>();\n\t\tlevels.add(\"1\");\n\t\tlevels.add(\"0\");\n\t\tfor (T con : features) {\n\t\t\tAttribute a = new Attribute(con.toString());\n\t\t\tattributes.add(a);\n\t\t}\n\t\tattributes.add(new Attribute(\"label\", labels));\n\n\t\t// Crossvalidate with Weka\n\t\tInstances trainingSet = new Instances(\"TrainingSet\", attributes, traces.size());\n\t\ttrainingSet.setClassIndex(attributes.size() - 1);\n\t\tInstances testSet = new Instances(\"TrainingSet\", attributes, traces.size());\n\t\ttestSet.setClassIndex(attributes.size() - 1);\n\t\t\n\t\tfor (int t = 0; t < traces.size(); t++) {\n\t\t\tif (t % nFold != 0) {\n\t\t\t\tInstance instance = new DenseInstance(attributes.size());\n\t\t\t\tCollection<String> strings = traces.get(t).getConstraintsAsStrings();\n\t\t\t\tfor (int a = 0; a < attributes.size() - 1; a++) {\n\t\t\t\t\tif (strings.contains(attributes.get(a).name())) {\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 0);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinstance.setValue(attributes.get(attributes.size() - 1),\n\t\t\t\t\t\tInteger.toString(traces.get(t).getLabel()));\n\t\t\t\ttrainingSet.add(instance);\n\t\t\t} else {\n\t\t\t\tInstance instance = new DenseInstance(attributes.size());\n\t\t\t\tCollection<String> strings = traces.get(t).getConstraintsAsStrings();\n\t\t\t\tfor (int a = 0; a < attributes.size() - 1; a++) {\n\t\t\t\t\tif (strings.contains(attributes.get(a).name())){\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinstance.setValue(attributes.get(attributes.size() - 1),\n\t\t\t\t\t\tInteger.toString(traces.get(t).getLabel()));\n\t\t\t\ttestSet.add(instance);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//System.out.println(\"Reasoning\");\n\t\tWekaPackageManager.loadPackages(false, true, false);\n\t\tAbstractClassifier classifier = null;\n\t\tString options = \"\";\n\t\tswitch(c){\n\t\t\tcase NB:\n\t\t\t\tclassifier = new NaiveBayes();//new LibSVM();\n\t\t\t\toptions = \"\";\n\t\t\t\tbreak;\n\t\t\tcase RandomForest:\n\t\t\t\tclassifier = new RandomForest();\n\t\t\t\toptions = \"\";\n\t\t\t\tbreak;\n\t\t\tcase SVM:\n\t\t\t\tclassifier = new LibSVM();\n\t\t\t\t//K: 0=linear, 1=polynomial, 2=radial basis, 3=sigmoid\n\t\t\t\toptions = \"-K,1,-W,\";\n\t\t\t\tfor(int i =0;i<labels.size();i++)\n\t\t\t\t\toptions+= \"1 \";\n\t\t\t\tbreak;\n\t\t}\t\t\n\t\tString[] optionsArray = options.split(\",\");\n\t\tclassifier.setOptions(optionsArray);\n\t\tclassifier.buildClassifier(trainingSet);\n\t\t\n\t\tMap<String,Double> result = new HashMap<String,Double>();\n\t\t\n\t\t//attributeScoring(trainingSet);\n\t\t//System.out.println(classifier.toSummaryString());\n\t\t//System.out.println(classifier.toString());\n\t\t\n\t\tEvaluation eTest = new Evaluation(trainingSet);\n\t\teTest.evaluateModel(classifier, testSet);\n\t\t\n\t\t//double auc = eTest.areaUnderROC(classIndex);\n\t\t//System.out.println(\"AUC: \"+auc);\n\t\tdouble accuracy = (double) eTest.correct() / (double) trainingSet.size();\n\t\tresult.put(\"accuracy\", accuracy);\n\t\treturn result;\n\t}", "public GeobatchRunInfo saveRunInfo(Object[] parameters,\n GeoBatchOperation operation) {\n // TODO: Implement if needed for other operations\n return null;\n }", "io.dstore.values.StringValue getPersonOutputCharacteristics();", "public void buildClassifier(Instances data) throws Exception {\n\n // can classifier handle the data?\n getCapabilities().testWithFail(data);\n\n // remove instances with missing class\n data = new Instances(data);\n data.deleteWithMissingClass();\n \n /* initialize the classifier */\n\n m_Train = new Instances(data, 0);\n m_Exemplars = null;\n m_ExemplarsByClass = new Exemplar[m_Train.numClasses()];\n for(int i = 0; i < m_Train.numClasses(); i++){\n m_ExemplarsByClass[i] = null;\n }\n m_MaxArray = new double[m_Train.numAttributes()];\n m_MinArray = new double[m_Train.numAttributes()];\n for(int i = 0; i < m_Train.numAttributes(); i++){\n m_MinArray[i] = Double.POSITIVE_INFINITY;\n m_MaxArray[i] = Double.NEGATIVE_INFINITY;\n }\n\n m_MI_MinArray = new double [data.numAttributes()];\n m_MI_MaxArray = new double [data.numAttributes()];\n m_MI_NumAttrClassInter = new int[data.numAttributes()][][];\n m_MI_NumAttrInter = new int[data.numAttributes()][];\n m_MI_NumAttrClassValue = new int[data.numAttributes()][][];\n m_MI_NumAttrValue = new int[data.numAttributes()][];\n m_MI_NumClass = new int[data.numClasses()];\n m_MI = new double[data.numAttributes()];\n m_MI_NumInst = 0;\n for(int cclass = 0; cclass < data.numClasses(); cclass++)\n m_MI_NumClass[cclass] = 0;\n for (int attrIndex = 0; attrIndex < data.numAttributes(); attrIndex++) {\n\t \n if(attrIndex == data.classIndex())\n\tcontinue;\n\t \n m_MI_MaxArray[attrIndex] = m_MI_MinArray[attrIndex] = Double.NaN;\n m_MI[attrIndex] = Double.NaN;\n\t \n if(data.attribute(attrIndex).isNumeric()){\n\tm_MI_NumAttrInter[attrIndex] = new int[m_NumFoldersMI];\n\tfor(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrInter[attrIndex][inter] = 0;\n\t}\n } else {\n\tm_MI_NumAttrValue[attrIndex] = new int[data.attribute(attrIndex).numValues() + 1];\n\tfor(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrValue[attrIndex][attrValue] = 0;\n\t}\n }\n\t \n m_MI_NumAttrClassInter[attrIndex] = new int[data.numClasses()][];\n m_MI_NumAttrClassValue[attrIndex] = new int[data.numClasses()][];\n\n for(int cclass = 0; cclass < data.numClasses(); cclass++){\n\tif(data.attribute(attrIndex).isNumeric()){\n\t m_MI_NumAttrClassInter[attrIndex][cclass] = new int[m_NumFoldersMI];\n\t for(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrClassInter[attrIndex][cclass][inter] = 0;\n\t }\n\t} else if(data.attribute(attrIndex).isNominal()){\n\t m_MI_NumAttrClassValue[attrIndex][cclass] = new int[data.attribute(attrIndex).numValues() + 1];\t\t\n\t for(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrClassValue[attrIndex][cclass][attrValue] = 0;\n\t }\n\t}\n }\n }\n m_MissingVector = new double[data.numAttributes()];\n for(int i = 0; i < data.numAttributes(); i++){\n if(i == data.classIndex()){\n\tm_MissingVector[i] = Double.NaN;\n } else {\n\tm_MissingVector[i] = data.attribute(i).numValues();\n }\n }\n\n /* update the classifier with data */\n Enumeration enu = data.enumerateInstances();\n while(enu.hasMoreElements()){\n update((Instance) enu.nextElement());\n }\t\n }", "@Test(timeout = 4000)\n public void test156() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(50, 50);\n resultMatrixLatex0.m_ShowAverage = false;\n resultMatrixLatex0.m_ShowStdDev = true;\n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[0] = false;\n booleanArray0[1] = false;\n resultMatrixLatex0.m_StdDevWidth = (-3085);\n booleanArray0[2] = true;\n resultMatrixLatex0.setPrintColNames(true);\n booleanArray0[3] = true;\n resultMatrixLatex0.setStdDevWidth((-1));\n booleanArray0[4] = true;\n resultMatrixLatex0.m_RowHidden = booleanArray0;\n resultMatrixLatex0.getDefaultEnumerateColNames();\n resultMatrixLatex0.colNameWidthTipText();\n resultMatrixLatex0.setPrintRowNames(false);\n resultMatrixLatex0.removeFilterName(\"\");\n resultMatrixLatex0.padString(\"\", 0, false);\n ResultMatrixSignificance resultMatrixSignificance0 = null;\n try {\n resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 5\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "void analysisStarting();", "public static void partIndividual()\n\t{\n\t\tLabScriptReader labReader = new LabScriptReader();\n\t\tlabReader.readScript(\"C:/Users/David/Documents/Homework/(14-15) Sophomore/Physics I/Lab2/lab2_data.txt\");\n\t\tLabData lab = labReader.getLabData();\n\t\t\n\t\t// Print out the recorded data.\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"========================\");\n\t\tSystem.out.println(\" LAB DATA \");\n\t\tSystem.out.println(\"========================\");\n\t\tSystem.out.println();\n\t\t\n\t\tlab.printData();\n\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"========================\");\n\t\tSystem.out.println(\" CALCULATIONS \");\n\t\tSystem.out.println(\"========================\");\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t// Experiment: Glider\n\t\t{\n \t\tExperiment e = lab.getExperiments().get(0);\n \t\tMeasure trackLength = e.getMeasurement(\"track_length\");\n \t\tMeasure trackAngle = e.getMeasurement(\"track_angle\");\n \t\tDataset setTravelTime = e.getDataset(\"travel_time\");\n \t\t\n \t\ttrackAngle.setValue(Math.toRadians(trackAngle.getValue()));\n \t\ttrackAngle.setError(Math.toRadians(trackAngle.getError()));\n \t\t\n \t\tMeasure travelTime = new Measure(\"\", setTravelTime.getAverage(), setTravelTime.getStandardDeviation(), (Units) null);\n \t\t\n\t\t\tdouble acceleration = (2.0f * trackLength.getValue()) / LabMath.sqr(travelTime.getValue());\n\t\t\tdouble accelerationError = LabMath.getDistance(trackLength.getError(), 0.5f * travelTime.getError());\n\t\t\t\n\t\t\tdouble accX = acceleration * Math.cos(trackAngle.getValue());\n\t\t\tdouble accY = acceleration * -Math.sin(trackAngle.getValue());\n\n\t\t\tdouble cosAngleError = Math.cos(trackAngle.getValue() + trackAngle.getError()) - Math.cos(trackAngle.getValue());\n\t\t\tdouble sinAngleError = Math.sin(trackAngle.getValue() + trackAngle.getError()) - Math.sin(trackAngle.getValue());\n\n\t\t\tdouble accXError = LabMath.getDistance(accelerationError, cosAngleError);\n\t\t\t\n\t\t\tdouble gravity = acceleration / Math.sin(trackAngle.getValue());\n\t\t\tdouble gravityError = LabMath.getDistance(accelerationError, sinAngleError);\n \t\t\n \t\t//double gravity = setGravity.getAverage();\n \t\t//double error = setGravity.getStandardDeviation();\n \t\tSystem.out.printf(\"Acceleration = %f m/s^2 %n\", acceleration);\n \t\tSystem.out.printf(\"Error = %f m/s^2 %n\", accelerationError);\n\n \t\tSystem.out.println();\n \t\t\n \t\tSystem.out.printf(\"Acc X = %f m/s^2 %n\", accX);\n \t\tSystem.out.printf(\"Acc Y = %f m/s^2 %n\", accY);\n \t\tSystem.out.printf(\"Acc X Error = %f m/s^2 %n\", accXError);\n \t\tSystem.out.printf(\"Acc Y Error = %f m/s^2 %n\", gravityError);\n\n \t\tSystem.out.println();\n \t\t\n \t\tSystem.out.printf(\"Gravity = %f m/s^2 %n\", gravity);\n \t\tSystem.out.printf(\"Error = %f m/s^2 %n\", gravityError);\n \t\t\n \t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\t\n\t\t// Experiment: Freefall\n\t\t{\n \t\tExperiment e = lab.getExperiments().get(1);\n\n \t\tMeasure ballDiameter = e.getMeasurement(\"ball_diameter\");\n \t\tMeasure distance = e.getMeasurement(\"freefall_distance\");\n \t\tDataset setFallTime = e.getDataset(\"fall_time\");\n \t\tDataset setPhotogateTime = e.getDataset(\"photogate_pass_time\");\n\n \t\tMeasure fallTime = new Measure(\"\", setFallTime.getAverage(), setFallTime.getStandardDeviation(), (Units) null);\n \t\tMeasure photoTime = new Measure(\"\", setPhotogateTime.getAverage(), setPhotogateTime.getStandardDeviation(), (Units) null);\n \t\t\n\t\t\n\t\t\tdouble velocity = ballDiameter.getValue() / photoTime.getValue();\n\t\t\tdouble velocityError = LabMath.getDistance(ballDiameter.getError(), photoTime.getError());\n\t\t\t\n\t\t\tdouble gravity = velocity / fallTime.getValue();\n\t\t\tdouble gravityError = LabMath.getDistance(velocityError, fallTime.getError());\n\n \t\t\n \t\tSystem.out.printf(\"Velocity = %f m/s^2 %n\", velocity);\n \t\tSystem.out.printf(\"Error = %f m/s^2 %n\", velocityError);\n\n \t\tSystem.out.println();\n \t\t\n \t\tSystem.out.printf(\"Gravity = %f m/s^2 %n\", gravity);\n \t\tSystem.out.printf(\"Error = %f m/s^2 %n\", gravityError);\n\t\t}\n\t}", "public void execute(OutputManager om) {\n\n int numRegions = allROIs.length;\n \n \n // get the voxel classification\n // either from a voxel class map or from a brain / background segmentation\n int[][][] vc = new int[xDataDim][yDataDim][zDataDim];\n \n // number of PDs in each voxel (for Bayesian images)\n int[][][] voxelNumPDs = new int[xDataDim][yDataDim][zDataDim];\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n vc[i][j][k] = 2;\n voxelNumPDs[i][j][k] = 1;\n }\n }\n }\n \n if (CL_Initializer.bgMaskFile != null) {\n \n if (ImageHeader.imageExists(CL_Initializer.bgMaskFile)) {\n if ( !CL_Initializer.headerTemplate.sameSpace(CL_Initializer.bgMaskFile) ) {\n throw new LoggedException(\"Brain mask must be in the same voxel space as the input data\");\n }\n }\n\n CL_Initializer.initMaskSource();\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n \n double maskValue = CL_Initializer.bgMask.nextVoxel()[0];\n \n vc[i][j][k] = maskValue > 0.0 ? 2 : -1;\n voxelNumPDs[i][j][k] = maskValue > 0.0 ? 1 : 0;\n }\n }\n }\n \n }\n \n \n // use VC from file if we have it - note this overrides the bgmask\n\n // This needs generalizing to support NIfTI files / other formats. Ideally it should be decoupled from the\n // SH order (which is ambiguous over order 4 anyhow), it should be simply the number of PDs in the voxel\n //\n // Actually doing this will require work to the TractographyImage tree and other classes\n //\n if (CL_Initializer.voxelClassMap != null) {\n vc = new int[xDataDim][yDataDim][zDataDim];\n \n DataSource vcSource = ExternalDataSource.getDataSource(CL_Initializer.voxelClassMap, 1, \"int\");\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n vc[i][j][k] = (int)vcSource.nextVoxel()[0];\n }\n }\n }\n }\n \n // get the anisotropy map, if any\n //\n // Could be FA or any scalar image where we cease tracking below a threshold\n double[][][] anisMap = null;\n \n if (anisMapFile != null) {\n if (ImageHeader.imageExists(anisMapFile)) {\n try {\n \n ImageHeader ih = ImageHeader.readHeader(anisMapFile);\n\n \n if (!CL_Initializer.headerTemplate.sameSpace(ih)) {\n throw new LoggedException(\"Anisotropy image must be in the same voxel space as the input data\");\n }\n\n\n anisMap = ih.readSingleVolumeData();\n }\n catch (IOException e) {\n throw new LoggedException(e);\n }\n }\n else {\n anisMap = new double[xDataDim][yDataDim][zDataDim];\n \n DataSource anisSource =\n ExternalDataSource.getDataSource(anisMapFile, 1, CL_Initializer.inputDataType);\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n anisMap[i][j][k] = anisSource.nextVoxel()[0];\n }\n }\n }\n \n }\n }\n\n\n // set up the image\n \n TractographyImage image = null;\n \n switch (imageType) {\n\n\tcase BEDPOSTX : case BEDPOSTX_DYAD :\n\n\t boolean probabilistic = ( imageType == ImageType.BEDPOSTX ); \n\t \n\t image = BedpostxTractographyImage.getTractographyImage(bedpostxDir, probabilistic, bedpostxMinF, anisMap, anisThresh,\n\t\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n\t \n\t break;\n\n \n case REPBS_DT: case REPBS_MULTITENSOR: \n \n CL_Initializer.initImagingScheme();\n \n \n image =\n RepBS_DWI_TractographyImage.getTractographyImage(CL_Initializer.bsDataFiles,\n CL_Initializer.inputDataType,\n CL_Initializer.imPars,\n CL_Initializer.inversionIndices,\n vc, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n break;\n \n \n case WILDBS_DT:\n\t CL_Initializer.initImagingScheme();\n \n\t image =\n\t\tDT_WildBS_DWI_TractographyImage.getTractographyImage(CL_Initializer.inputFile,\n\t\t\t\t\t\t\t\t CL_Initializer.inputDataType,\n\t\t\t\t\t\t\t\t CL_Initializer.imPars,\n\t\t\t\t\t\t\t\t vc, anisMap, anisThresh, \n\t\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n\t break;\n \n \n \n case PICO :\n \n image = PICoTractographyImage.getTractographyImage\n (CL_Initializer.inputFile, CL_Initializer.inputDataType, CL_Initializer.numPDsIO,\n picoPDF, anisMap, anisThresh, new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n break;\n \n case BAYESDIRAC: case BAYESDIRAC_DT :\n \n CL_Initializer.initImagingScheme();\n \n // Friman Bayesian method\n // add anisotropy map option\n\n BayesDataModel dataModel = imageType == ImageType.BAYESDIRAC ? BayesDataModel.BALL_STICK : BayesDataModel.CYL_SYMM_DT;\n\n BayesDiracTractographyImage bi = BayesDiracTractographyImage.getTractographyImage\n (CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.imPars, dataModel, voxelNumPDs, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, CL_Initializer.pointSetInd, ran);\n \n if (curvePriorK > 0.0) {\n bi.setCurvePriorKappa(curvePriorK);\n }\n if (curvePriorG > 0.0) {\n bi.setCurvePriorGamma(curvePriorG);\n }\n \n if (externalPriorImageFile != null) {\n PICoTractographyImage ePrior = PICoTractographyImage.getTractographyImage\n (externalPriorImageFile, externalPriorDataType, CL_Initializer.numPDsIO,\n picoPDF, anisMap, anisThresh, new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n bi.setExternalPriors(ePrior);\n }\n \n image = bi;\n \n break;\n \n case SF_PEAK :\n image =\n SF_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.numPDsIO, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n \n case DT: case MULTITENSOR :\n image =\n DT_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.maxTensorComponents, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n\n case DWI_DT : case DWI_MULTITENSOR:\n\n CL_Initializer.initImagingScheme();\n\n image =\n DWI_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.imPars, CL_Initializer.inversionIndices,\n vc, anisMap, anisThresh, \n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n\n\tcase VECTOR : \n\n\t image = PD_TractographyImage.getTractographyImage(vectorFiles, CL_Initializer.inputDataType,\n\t\t\t\t\t\t\t anisMap, anisThresh, \n\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n\t break;\n \n default : throw new LoggedException(\"Unsupported image type : \" + imageType);\n \n }\n \n \n // Set up the interpolation\n\n ImageInterpolator interp = null;\n\n \n switch (dataInterpolation) {\n\n\n case NEAREST_NEIGHBOUR: \n \n interp = new NearestNeighbourInterpolator(image);\n\n break;\n\n case NEIGHBOUR_CHOICE: \n\n interp = new NeighbourChoiceInterpolator(image, ran);\n\n break;\n\n case DWI_TRILINEAR: \n\n interp = new DWI_LinearInterpolator((DWI_TractographyImage)image);\n\n break;\n\n case VECTOR_TRILINEAR: \n\n interp = new VectorLinearInterpolator(image);\n\n break;\n\n case TEND_NN: case TEND_NC:\n\n // how to interpolate the tensor data itself, in order to provide\n // the tensor for the TEND term\n TensorInterpolator dataInterp = null;\n\n if (dataInterpolation == DataInterpolation.TEND_NC) {\n dataInterp = new DT_NC_Interpolator((TensorTractographyImage)image, ran);\n }\n else {\n dataInterp = new DT_NN_Interpolator((TensorTractographyImage)image);\n }\n\n if (tendF_File != null) {\n try { \n ImageHeader ih = ImageHeader.readHeader(tendF_File);\n \n interp = new TendInterpolator((TensorTractographyImage)image, dataInterp, ih.readSingleVolumeData(), tendG);\n }\n catch (IOException e) {\n throw new LoggedException(e);\n\n }\n \n }\n else {\n interp = new TendInterpolator((TensorTractographyImage)image, dataInterp, tendF, tendG); \n }\n \n break;\n\n default: throw new LoggedException(\"Unsupported interpolation : \" + dataInterpolation);\n\n\n }\n\n \n // set up the tracker\n\n FibreTracker tracker = null;\n\n\n switch (trackingAlgorithm) {\n\n case FACT:\n \n tracker = new FACT_FibreTracker(image);\n \n break;\n \n case EULER: \n \n tracker = new EulerFibreTracker(interp, stepSize); \n\n break;\n\n case RK4: \n\n tracker = new RK4FibreTracker(interp, stepSize);\n\n break;\n }\n\n tracker.setCurveCheckInterval(checkCurveLength);\n tracker.setIP_Threshold(ipThresh);\n \n \n // And finally, do the tracking\n \n regions : for (int region = 0; region < allROIs.length; region++) {\n\n RegionOfInterest roi = allROIs[region];\n \n if (regionIndex > -1) {\n if (roi.getRegionLabel() != regionIndex) {\n continue;\n }\n }\n \n \n int outputRegionID = roi.getRegionLabel();\n \n \n // points defined in Camino space\n Point3D[] seeds = roi.getSeedPoints();\n \n if (!silent) {\n System.err.println(\"Processing ROI \" + (region + 1) + \" of \" + numRegions);\n }\n \n FileOutputStream fout = null;\n DataOutputStream dout = null;\n \n try {\n \n if (outputRoot == null) {\n dout = om.getOutputStream();\n }\n else {\n \n if (gzip) {\n fout = new FileOutputStream(outputRoot + outputRegionID + \".Bfloat.gz\");\n dout = new DataOutputStream(new GZIPOutputStream(fout, 1024*1024*16));\n \n }\n else {\n fout = new FileOutputStream(outputRoot + outputRegionID + \".Bfloat\");\n dout = new DataOutputStream\n (new BufferedOutputStream(fout, 1024*1024*16));\n }\n }\n \n \n \n \n seed: for (int sp = 0; sp < seeds.length; sp++) {\n \n if (!silent) {\n System.err.print(\"\\rProcessing seed \" + (sp + 1) + \" of \" + seeds.length);\n }\n \n Point3D seedPoint = seeds[sp];\n \n if (!tracker.inBounds(seedPoint)) {\n logger.warning(\"Seed point \\n\\t\" + seedPoint + \"\\n is outside the diffusion image space, ignoring\");\n continue seed;\n }\n\n int xVox = (int)(seedPoint.x / xVoxelDim);\n int yVox = (int)(seedPoint.y / yVoxelDim);\n int zVox = (int)(seedPoint.z / zVoxelDim);\n \n int numPDs = image.numberOfPDs(xVox, yVox, zVox);\n \n // if number of PDs is zero, track once\n // tracker will return the seed point\n numPDs = numPDs == 0 ? 1 : numPDs;\n \n for (int p = 0; p < numPDs; p++) {\n \n for (int i = 0; i < iterations; i++) {\n \n Tract t = tracker.trackFromSeed(seedPoint, p);\n \n // warp tracts to physical space\n t.transformToPhysicalSpace(voxelToPhysicalTrans, xVoxelDim, yVoxelDim, zVoxelDim);\n \n t.writeRaw(dout);\n \n }\n \n }\n \n } // end for seedpoints\n \n if (!silent) {\n System.err.println(\"\\n\");\n }\n \n if (outputRoot != null) {\n // want to close file\n dout.close();\n }\n \n }\n catch(IOException e) {\n throw new LoggedException(e);\n }\n \n } // end for all ROIs\n \n // close om stream\n if(om != null)\n om.close();\n \n }", "@Test\n public void testPrediction1() throws Exception {\n\n final CalUtils.InstantGenerator instantGenerator =\n new LocalTimeMinutes(5);\n \n final double coreDailyVols[][] = new double[][] {\n new double[] {55219 , 262256 , 202661 , 218359 , 178244 , 99610 , 92348 , 124795 , 214370 , 153854 , 204116 , 173501 , 85390 , 156835 , 108070 , 23755 , 118573 , 70117 , 55768 , 52643 , 71485 , 407645 , 442909 , 129109 , 188896 , 79590 , 422121 , 290067 , 227955 , 69257 , 41634 , 446002 , 579188 , 86237 , 1606794 , 83676 , 166393 , 84987 , 875905 , 117013 , 399084 , 116190 , 149507 , 207221 , 60857 , 155612 , 448006 , 198637 , 67695 , 65423 , 180038 , 88774 , 80273 , 86065 , 85231 , 38867 , 29330 , 116353 , 26887 , 34170 , 102518 , 72246 , 21274 , 70752 , 37912 , 49367 , 100472 , 49461 , 41735 , 45795 , 36578 , 311945 , 249039 , 70487 , 121906 , 136424 , 195136 , 166308 , 331734 , 343180 , 419616 , 104613 , 1354058 , 162678 , 141067 , 147039 , 149115 , 271162 , 543989 , 184421 , 340679 , 201939 , 293860 , 171035 , 263964 , 260198 , 428087 , 565126 , 385874 , 547890 , 384416 , 256696 , 0 , 4738359},\n new double[] {1298630 , 678084 , 488607 , 224766 , 434263 , 356933 , 576571 , 219236 , 252805 , 414776 , 166828 , 174665 , 146281 , 110944 , 145234 , 179739 , 253111 , 175685 , 64925 , 216682 , 494507 , 100205 , 67371 , 101019 , 158026 , 316281 , 334067 , 954850 , 115547 , 163051 , 130303 , 107600 , 1407996 , 90357 , 110452 , 451866 , 238004 , 3096215 , 2672803 , 190170 , 111282 , 107135 , 453389 , 60821 , 98292 , 1310864 , 1132267 , 241907 , 89915 , 175676 , 61621 , 521553 , 212388 , 288651 , 193578 , 272161 , 256777 , 236382 , 802159 , 230248 , 387068 , 160647 , 106999 , 391933 , 465080 , 374577 , 340378 , 330708 , 416320 , 200347 , 251986 , 336664 , 311970 , 600559 , 508011 , 922379 , 311581 , 352459 , 508727 , 159316 , 1355635 , 246541 , 389672 , 805957 , 370754 , 382556 , 316971 , 564228 , 437166 , 277733 , 1284505 , 1763095 , 169661 , 280682 , 969102 , 540315 , 451895 , 308036 , 715130 , 642966 , 981563 , 900778 , 0 , 7155528},\n new double[] {679280 , 229518 , 346536 , 347215 , 316025 , 313890 , 235844 , 199995 , 1920617 , 129356 , 172084 , 207860 , 317578 , 10369008 , 480990 , 1403537 , 1021730 , 156125 , 94833 , 366987 , 145687 , 322957 , 328120 , 66657 , 176001 , 271003 , 133121 , 558624 , 264638 , 638663 , 165080 , 129439 , 5126344 , 5438632 , 248806 , 250616 , 112716 , 54523 , 198097 , 67772 , 1414565 , 244509 , 246205 , 151540 , 98584 , 51217 , 94193 , 111763 , 104726 , 45880 , 64242 , 78893 , 60706 , 48117 , 133085 , 101941 , 5103803 , 5084823 , 168230 , 75537 , 815036 , 73409 , 422412 , 437127 , 115802 , 326536 , 54707 , 81759 , 94420 , 208637 , 50361 , 1458556 , 84257 , 129114 , 54632 , 105873 , 57165 , 77578 , 233302 , 195560 , 134194 , 180928 , 140433 , 123154 , 221422 , 339866 , 1343886 , 114699 , 170052 , 150679 , 181731 , 160943 , 192590 , 125556 , 132656 , 154740 , 320932 , 140929 , 117889 , 381656 , 393635 , 306177 , 0 , 21629250},\n new double[] {526909 , 167180 , 199570 , 149154 , 142141 , 320881 , 223750 , 102275 , 258400 , 202197 , 120202 , 93404 , 178631 , 106401 , 346186 , 231729 , 163656 , 1622531 , 125689 , 2656587 , 5336032 , 2385985 , 335692 , 86118 , 130551 , 99047 , 81695 , 98846 , 238413 , 4831684 , 293262 , 124652 , 106642 , 112048 , 14284646 , 111209 , 2204635 , 128940 , 83395 , 134816 , 116320 , 65412 , 165020 , 126511 , 92217 , 111751 , 47320 , 82219 , 19044177 , 70827 , 21676 , 211214 , 103108 , 22771 , 61629 , 4816563 , 63806 , 33989 , 130104 , 146897 , 15046441 , 44977 , 40889 , 54584 , 54591 , 76634 , 238536 , 68583 , 110591 , 75012 , 503760 , 209479 , 217929 , 86397 , 102284 , 81878 , 252785 , 135884 , 129149 , 112760 , 266851 , 110863 , 67866 , 55205 , 150165 , 699438 , 184450 , 270270 , 4270036 , 345303 , 895116 , 217142 , 145398 , 301231 , 10260595 , 136317 , 442910 , 371357 , 189023 , 538928 , 438973 , 926728 , 9137 , 8879481},\n new double[] {1318228 , 1391326 , 574558 , 441739 , 719144 , 522626 , 404351 , 383602 , 490710 , 284952 , 2984474 , 216339 , 10220195 , 247067 , 166223 , 224310 , 10181837 , 126161 , 9764418 , 692337 , 25907353 , 1518741 , 1179929 , 120730 , 10173292 , 290045 , 19824327 , 402527 , 277859 , 3116841 , 7164061 , 332021 , 10560006 , 2334129 , 121753 , 200177 , 246402 , 10106648 , 1137272 , 2084673 , 461849 , 125108 , 465907 , 156972 , 139083 , 127389 , 237263 , 311691 , 156536 , 155322 , 133368 , 329715 , 256088 , 116835 , 5192615 , 823762 , 183836 , 1110239 , 2414836 , 385072 , 599637 , 387285 , 291580 , 2796924 , 12977051 , 338582 , 884415 , 525622 , 322587 , 223348 , 668858 , 143039 , 627590 , 239797 , 232788 , 256503 , 209425 , 375474 , 558106 , 290991 , 1176648 , 286550 , 149539 , 297435 , 602136 , 152733 , 212363 , 178992 , 179644 , 295428 , 933636 , 349405 , 660749 , 226061 , 868852 , 318539 , 469303 , 538061 , 273643 , 444084 , 347730 , 825808 , 12011 , 7792372}};\n\n final SimpleDateFormat dateBuilder = new SimpleDateFormat(\"yyyy-MM-dd\");\n final Calendar moments[] = new Calendar[] { Calendar.getInstance(), \n Calendar.getInstance(), Calendar.getInstance(), \n Calendar.getInstance(), Calendar.getInstance(),\n Calendar.getInstance() };\n\n moments[0].setTime(dateBuilder.parse(\"2011-10-26\"));\n moments[1].setTime(dateBuilder.parse(\"2011-10-27\"));\n moments[2].setTime(dateBuilder.parse(\"2011-10-28\"));\n moments[3].setTime(dateBuilder.parse(\"2011-10-30\"));\n moments[4].setTime(dateBuilder.parse(\"2011-11-01\"));\n moments[5].setTime(dateBuilder.parse(\"2011-11-02\"));\n\n // Nomralize data to sum 100 (i.e., have an expectance of 100/104)\n for(int i=0; i<5; i++) {\n double sum = 0;\n for(int j=0; j<104; j++) sum += coreDailyVols[i][j];\n for(int j=0; j<104; j++) {\n coreDailyVols[i][j] = coreDailyVols[i][j]*100 / sum;\n }\n }\n\n final double[][] synthesizedDailyVols = new double[\n coreDailyVols.length][instantGenerator.maxInstantValue()];\n final Calendar openTime = Calendar.getInstance();\n final int n = 9*60 / 5;\n final int m = n + coreDailyVols[0].length;\n for(int i=0; i<5; i++) {\n for(int j=0; j<n; j++) {\n synthesizedDailyVols[i][j] = Double.NaN;\n }\n for(int j=0; j<coreDailyVols[i].length; j++) {\n synthesizedDailyVols[i][j+n] = coreDailyVols[i][j];\n }\n for(int j=m; j<instantGenerator.maxInstantValue(); j++) {\n synthesizedDailyVols[i][j] = Double.NaN;\n }\n }\n\n\n final Predictor predictor = new PCAPredictorTransposed(\n instantGenerator, 5);\n for(int i=0; i<5; i++) {\n predictor.learnVector(moments[i], synthesizedDailyVols[i]);\n }\n final double prediction[] = predictor.predictVector(moments[5]);\n final double coreExpectedPrediction[] = new double[] {\n0.21383323, -0.08665493, -0.28527934, -0.45293966, -0.35525111, -0.49117788,\n-0.38114565, -0.60141152, -0.09029406, -0.44815719, -0.45152723, -0.58079146,\n-0.29110153, 1.54262599, -0.59900211, -0.48107804, -0.03280398, -0.59369964,\n-0.44886852, -0.43868587, 0.88745208, -0.10900099, -0.26251035, -0.71557572,\n-0.20051598, -0.57674404, 0.53793693, 0.15857465, -0.53212067, -0.13529962,\n-0.49171709, -0.32334222, 2.16101856, 0.46824882, 2.13337330, -0.48802957,\n-0.40084079, 1.62077396, 1.93080019, -0.59114756, -0.09429057, -0.68952951,\n-0.39819841, -0.63019599, -0.78762027, 0.12458423, 0.34847712, -0.52481068,\n0.69730449, -0.74290105, -0.68866588, -0.45964670, -0.69174165, -0.64825389,\n-0.49908622, -0.30049621, 0.35726449, 0.47210113, -0.25058065, -0.72112704,\n0.79345044, -0.73245678, -0.75581875, -0.40885896, -0.08033429, -0.56030291,\n-0.54967743, -0.63571829, -0.58889882, -0.71099478, -0.67055922, -0.03850658,\n-0.40339282, -0.43003588, -0.44813762, -0.14347007, -0.48441216, -0.48851502,\n-0.15427010, -0.39484463, 0.52701151, -0.61335693, 0.89776479, -0.18821502,\n-0.46457371, -0.39850394, -0.26234640, -0.21535441, 0.33669589, -0.48879971,\n0.43892192, 0.52101182, -0.42851659, -0.51364225, 0.85831207, -0.24052028,\n-0.04192086, -0.02287821, 0.01522206, 0.24307671, 0.27369478, 0.11058009,\n-0.95575786, 14.90733910 };\n final double synthesizedExpectedPrediction[] = new double[\n instantGenerator.maxInstantValue()];\n for(int j=0; j<n; j++) {\n synthesizedExpectedPrediction[j] = Double.NaN;\n }\n for(int j=0; j<coreExpectedPrediction.length; j++) {\n synthesizedExpectedPrediction[j+n] = coreExpectedPrediction[j];\n }\n for(int j=m; j<instantGenerator.maxInstantValue(); j++) {\n synthesizedExpectedPrediction[j] = Double.NaN;\n }\n\n assertEquals(prediction.length, synthesizedExpectedPrediction.length);\n\n for(int i=0; i<prediction.length; i++) {\n assertEquals(prediction[i], synthesizedExpectedPrediction[i], \n 0.0001d);\n }\n System.out.println(\"Ok\");\n }", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n try { \n evaluation0.updateStatsForConditionalDensityEstimator((ConditionalDensityEstimator) null, (Instance) null, (-3794.5097530669586));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "Information getInfo();", "@java.lang.Override\n public boolean hasInstance() {\n return stepInfoCase_ == 5;\n }", "public String globalInfo() {\n\n return \"Nearest-neighbor-like algorithm using non-nested generalized exemplars \"\n + \"(which are hyperrectangles that can be viewed as if-then rules). For more \"\n + \"information, see \\n\\n\"\n + getTechnicalInformation().toString();\n }", "private void process () {\r\n\r\n ArrayList<String> anomaly;\r\n ArrayList<DataInfo> tmp = new ArrayList<>();\r\n int appState, screenState, screenOrientation, closeToObject, opID;\r\n long permissionCount;\r\n double scanDuration;\r\n String packageName, permission, accessTime;\r\n\r\n // get the data in the given scope (from offset, limit rows)\r\n Cursor cursor = sqliteDBHelper.get_data(\"SELECT \" + SqliteDBStructure.PACKAGE_NAME + \", \"\r\n + SqliteDBStructure.PERMISSION + \", \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \", \"\r\n + SqliteDBStructure.APP_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_ORIENTATION + \", \"\r\n + SqliteDBStructure.CLOSE_TO_OBJECT\r\n + \" FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME\r\n + \" LIMIT \" + limit + \" OFFSET \" + offset);\r\n\r\n try {\r\n if (cursor != null) {\r\n cursor.moveToFirst();\r\n\r\n while (!cursor.isAfterLast()) {\r\n packageName = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.PACKAGE_NAME));\r\n opID = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.PERMISSION));\r\n permission = Permission.opIDToName(opID);\r\n accessTime = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.ACCESS_TIME));\r\n appState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.APP_STATE));\r\n screenState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_STATE));\r\n screenOrientation = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_ORIENTATION));\r\n closeToObject = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.CLOSE_TO_OBJECT));\r\n\r\n permissionCount = DatabaseUtils.longForQuery(sqliteDBHelper.getReadableDatabase(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE + \" WHERE \" + SqliteDBStructure.PACKAGE_NAME + \" = '\" + packageName + \"' \" + \" AND \" + SqliteDBStructure.PERMISSION + \" = '\" + opID + \"';\", null);\r\n\r\n //Scan duration in Minutes\r\n scanDuration = (((double) stop_scan_time.getTime() + (double) start_scan_time.getTime()) / 1000 )/ 60;\r\n //check for anomaly by ruleset class\r\n anomaly = RuleSet.checkForAnomaly(packageName, permission, permissionCount, appState, screenState, screenOrientation, closeToObject, scanDuration, context);\r\n\r\n //Send data to server or save it locally, if no valid internet connection is available\r\n if (networking) {\r\n sendRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n MyClient.POST_Anomaly(packageName, permission, anomaly.get(1), \"0\");\r\n } else {\r\n saveRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n saveAnomaliesImage(packageName, permission, anomaly.get(1), 0);\r\n }\r\n\r\n // create a info object which holds all the necessary information about that data block and store it temporarily in a list\r\n DataInfo info = new DataInfo(packageName, Permission.opIDToDescription(opID), accessTime, permissionCount, anomaly.get(0), anomaly.get(1), scanTime, 0);\r\n tmp.add(info);\r\n\r\n // should the size of the temporary list exceeds MaxBatchSize, write list to the local DB and clear the temp list afterwards \r\n // technically this cannot happen but we are working with threads here so better be safe than sorry\r\n // temp list should not be to big, because we have have to hold task amount of temp list, with each containing around MaxBatchSize entries, in memory at the same time\r\n if (tmp.size() > MaxBatchSize) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n\r\n cursor.moveToNext();\r\n }\r\n\r\n }\r\n } finally {\r\n if (cursor != null) {\r\n cursor.close();\r\n }\r\n }\r\n\r\n // write the data stored in the temp list to the local DB \r\n if (tmp.size() > 0) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n // inform the progress dialog that a task has been finished\r\n updateProgressDialog();\r\n // decrease the amount of ongoing tasks by 1\r\n decreaseTasks();\r\n }", "@Override\r\n public void onResult(DJIError result)\r\n {\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Start Calibration ,result =\"+result.errorDescription));\r\n }", "private void getMetadata() {\n masterRoot = AbstractMetadata.getAbstractedMetadata(sourceProduct);\n masterMetadata = new MetadataDoris(masterRoot);\n masterOrbit = new OrbitsDoris();\n masterOrbit.setOrbit(masterRoot);\n \n // SLAVE METADATA\n // hash table or just map for slaves - now it supports only a single sourceSlave image\n slaveRoot = sourceProduct.getMetadataRoot().getElement(AbstractMetadata.SLAVE_METADATA_ROOT).getElementAt(0);\n slaveMetadata = new MetadataDoris(slaveRoot);\n slaveOrbit = new OrbitsDoris();\n slaveOrbit.setOrbit(slaveRoot);\n }", "public String globalInfo() {\n\t return \n\t \"The CISearchAlgorithm class supports Bayes net structure \"\n\t + \"search algorithms that are based on conditional independence \"\n\t + \"test (as opposed to for example score based of cross validation \"\n\t + \"based search algorithms).\";\n\t}", "public interface InstanceFieldInitializationInfo {\n\n default boolean isArgumentInitializationInfo() {\n return false;\n }\n\n default InstanceFieldArgumentInitializationInfo asArgumentInitializationInfo() {\n return null;\n }\n\n default boolean isTypeInitializationInfo() {\n return false;\n }\n\n default InstanceFieldTypeInitializationInfo asTypeInitializationInfo() {\n return null;\n }\n\n default boolean isSingleValue() {\n return false;\n }\n\n default SingleValue asSingleValue() {\n return null;\n }\n\n default boolean isUnknown() {\n return false;\n }\n\n InstanceFieldInitializationInfo rewrittenWithLens(\n AppView<AppInfoWithLiveness> appView, GraphLens lens);\n}", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1752);\n double[] doubleArray0 = new double[9];\n try { \n evaluation0.evaluateModelOnce(doubleArray0, (Instance) binarySparseInstance0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // DenseInstance doesn't have access to a dataset!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}", "public IndexFeatureInfo(int iternalID) {\n\t\tthis.maxQueries = new ArrayList<QueryInfo>();\n\t\tthis.queries = new ArrayList<QueryInfo>();\n\t\tthis.stPointScore = -1;\n\t\tthis.avgGain = -1;\n\t\tthis.medianGain = -1;\n\t\tthis.quartiles = -1;\n\t}", "public static void main(String[] args) {\n\n String fileEdgeList = \"../DataSource/PANCANsigEdgeList.csv\";\n String fileGtTrainingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.training.10.csv\";\n// String fileGtTestingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.testing.10.csv\";\n String fileGeTrainingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.GeM.4468tumors.training.10.csv\";\n String fileGeTestingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.GeM.4468tumors.testing.10.csv\";\n String fileInferDriver = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.InferDriver.10.withTumorID.csv\";\n// String fileDriverSGATable = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.DriverSGATable.10.csv\";\n \n \n DataReader dataObj = new DataReader(fileEdgeList, fileGtTrainingMatrix, fileGeTrainingMatrix);\n\n int reRun = 0;\n double T = 0.5;\n do {\n reRun += 1;\n\n EstimateParams paramObj = new EstimateParams(dataObj.edgeList, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.driverSGATable, dataObj.targetDEGTable);\n InferDriverActivation actObj = new InferDriverActivation(paramObj.mapEdgeParam, paramObj.mapSGAParam,\n dataObj.targetDEGTable, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.mapSgaDegs);\n\n\n actObj.thresholding(T);\n \n actObj.updateInferDriverTable( dataObj.driverSGATable);\n \n double change = actObj.compareMatrix(dataObj.driverSGATable);\n\n System.out.println(\"Current T is \" + T);\n System.out.println(\"Change is \" + change);\n System.out.println(\"This is the \" + reRun + \"th run\");\n if (change < 0.001 || T > 1) {\n System.out.println(\"Total times of run is \" + reRun + \". Final cut shreshold is \" + T);\n \n// dataObj.readInGtMatrix(fileGtTestingMatrix);\n dataObj.readInGeMatrix(fileGeTestingMatrix);\n InferDriverActivation actObjTesting = new InferDriverActivation(paramObj.mapEdgeParam, paramObj.mapSGAParam,\n dataObj.targetDEGTable, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.mapSgaDegs);\n \n actObjTesting.outputInferActivation(fileInferDriver, dataObj.tumorNames);\n// dataObj.outputDriverSGATable(fileDriverSGATable); //output contains tumorName, since tumor name is defined in dataObj, so no need to pass in\n\n break; \n \n } else {\n dataObj.updateDriverSGATable(actObj.inferDriverTable);\n T += 0.05;\n \n }\n\n } while (true);\n }", "public void nodata();", "private void loadTestInstanceData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> TemplateCore.loadTestInstanceData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n// try {\r\n// String strINum = String.valueOf(pk_test_instance);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT fk_described_template, fk_run, due_date, phase, test_instance.synchronized, fk_version_set, fk_template, description_hash, described_template.synchronized, hash, enabled, steps \" +\r\n// \"FROM test_instance \" +\r\n// \"JOIN described_template ON fk_described_template = pk_described_template \" +\r\n// \"JOIN template ON fk_template = pk_test_instance \" +\r\n// \"WHERE pk_test_instance = \" + strINum );\r\n // everything in this query is 1:1 relationship, so resultSet has exactly 1 or 0 entry\r\n\r\n// if ( resultSet.next() ) {\r\n// dbTestInstance.pk_described_template = resultSet.getLong(\"fk_described_template\"); // null entry returns 0\r\n// dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n// dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n// dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n// dbTestInstance.iSynchronized = resultSet.getBoolean(\"test_instance.synchronized\");\r\n//\r\n// dbTestInstance.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n// dbTestInstance.fk_template = resultSet.getLong(\"fk_template\"); // null entry returns 0\r\n// dbTestInstance.description_hash = resultSet.getBytes(\"description_hash\");\r\n// dbTestInstance.dtSynchronized = resultSet.getBoolean(\"described_template.synchronized\");\r\n//\r\n// dbTestInstance.template_hash = resultSet.getBytes(\"hash\");\r\n// dbTestInstance.enabled = resultSet.getBoolean(\"enabled\");\r\n// dbTestInstance.steps = resultSet.getString(\"steps\");\r\n//\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads 1:1 data from test_instance \" + dbTestInstance.pk_test_instance + \", pk_described_template \" + dbTestInstance.pk_described_template +\r\n// \", pk_test_instance \" + dbTestInstance.fk_template + (dbTestInstance.fk_run!=0 ? \", TEST RESULT ALREADY STORED\" : \"\"));\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// } else {\r\n// throw new Exception(\"instance data not present\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding multiple lines of data\r\n// try {\r\n// String strPKDT = String.valueOf(dbTestInstance.pk_described_template);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n// \"FROM dt_line \" +\r\n// \"WHERE fk_described_template = \" + strPKDT );\r\n// while ( resultSet.next() ) {\r\n// DBDTLine dtLine = new DBDTLine();\r\n// dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n// dtLine.line = resultSet.getInt(\"line\");\r\n// dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// dbTestInstance.pkToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n// \"FROM artifact_to_dt_line \" +\r\n// \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n// \"WHERE fk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n// dtLine.reason = resultSet.getString(\"reason\");\r\n// dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n// dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding version information; not every dtLine has corresponding version information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n// \"FROM version \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.version = resultSet.getString(\"version\");\r\n// dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n// dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n// dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding content information; not every dtLine has corresponding content information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n// \"FROM content \" +\r\n// \"JOIN artifact ON fk_content = pk_content \" +\r\n// \"WHERE pk_artifact = \" + strPKArtifact );\r\n// if ( resultSet.next() ) {\r\n// dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n// dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding component information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT name \" +\r\n// \"FROM component \" +\r\n// \"JOIN version ON fk_component = pk_component \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.componentName = resultSet.getString(\"name\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// }\r\n//\r\n// // get corresponding resource information; not every dtLine has corresponding resource information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n// \"FROM dt_line \" +\r\n// \"JOIN resource ON fk_resource = pk_resource \" +\r\n// \"WHERE pk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n// dtLine.resourceName = resultSet.getString(\"name\");\r\n// dtLine.resourceDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n }", "@java.lang.Override\n public boolean hasDataset() {\n return inputSourceCase_ == 11;\n }", "@Override\r\n public void onResult(DJIError result)\r\n {\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Start Calibration ,result =\"+result.errorDescription));\r\n }", "@java.lang.Override\n public boolean hasInstance() {\n return stepInfoCase_ == 5;\n }", "public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}", "public void reviewExtractorPeriodicity() {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"YYYY-MM-dd hh:mm:ss\");\r\n Iterator<String> it = ExtractorManager.hmExtractor.keySet().iterator();\r\n while (it.hasNext()) { //\r\n String next = it.next();\r\n DataObject dobj = null;\r\n\r\n try {\r\n \tdobj = ExtractorManager.datasource.fetchObjById(next);\r\n } catch (IOException ioex) {\r\n \tlog.severe(\"Error getting extractor definition\");\r\n }\r\n\r\n if (null == dobj) {\r\n \tExtractorManager.hmExtractor.remove(next);\r\n } else {\r\n \tPMExtractor extractor = ExtractorManager.hmExtractor.get(next);\r\n\r\n \tif (null != extractor && extractor.canStart()) {\r\n\t String lastExec = dobj.getString(\"lastExecution\");\r\n\t Date nextExecution = null;\r\n\t boolean extractorStarted = false;\r\n\r\n\t // Revisando si tiene periodicidad\r\n\t if (dobj.getBoolean(\"periodic\")) {\r\n\t \t\ttry {\r\n\t \t\t\tif (null != lastExec && !lastExec.isEmpty()) nextExecution = sdf.parse(lastExec);\r\n\t\t } catch (ParseException psex) {\r\n\t\t \t\tlog.severe(\"Error parsing execution date\");\r\n\t\t }\r\n\t\t \t\r\n\t\t \tif (null == nextExecution) {\r\n\t\t \t\textractor.start();\r\n\t\t \t\textractorStarted = true;\r\n\t\t \t} else {\r\n\t\t \t\ttry {\r\n\t\t\t \t\tlong tiempo = dobj.getLong(\"timer\");\r\n\t\t\t \tString unidad = dobj.getString(\"unit\");\r\n\t\t\t \tlong unitmilis = 0l;\r\n\t\r\n\t\t\t \tswitch(unidad) {\r\n\t\t\t \t\tcase \"min\":\r\n\t\t\t \t\t\tunitmilis = tiempo * 60 * 1000;\r\n\t\t\t \t\t\tbreak;\r\n\t\t\t \t\tcase \"h\":\r\n\t\t\t \t\t\tunitmilis = tiempo * 60 * 60 * 1000;\r\n\t\t\t \t\t\tbreak;\r\n\t\t\t \t\tcase \"d\":\r\n\t\t\t \t\t\tunitmilis = tiempo * 24 * 60 * 60 * 1000;\r\n\t\t\t \t\t\tbreak;\r\n\t\t\t \t\tcase \"m\":\r\n\t\t\t \t\t\tunitmilis = tiempo * 30 * 24 * 60 * 60 * 1000;\r\n\t\t\t \t\t\tbreak;\r\n\t\t\t \t}\r\n\t\r\n\t\t\t \tif (unitmilis > 0) {\r\n\t\t\t \t\tunitmilis = unitmilis + nextExecution.getTime();\r\n\t\t\t \t\tif(new Date().getTime() > unitmilis) {\r\n\t\t\t extractor.start();\r\n\t\t\t extractorStarted = true;\r\n\t\t\t }\r\n\t\t\t \t}\r\n\t\t \t\t} catch (Exception ex) { //NFE\r\n\t\t \t\t\tlog.severe(\"Error getting extractor config data\");\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\r\n\t\t \tif (extractorStarted) {\r\n\t\t \t\tdobj.put(\"lastExecution\", sdf.format(new Date()));\r\n\t\t \t\ttry {\r\n\t\t \t\t\tExtractorManager.datasource.updateObj(dobj);\r\n\t\t \t\t} catch(IOException ioex) {\r\n\t\t \t\t\tlog.severe(\"Error trying to update last execution date\");\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t }\r\n\t }\r\n\t }\r\n }\r\n }", "public String getFeatVect();", "Feature[] extractFeatures(LensResult facet, NaiscListener log);", "public void processRun(int nr, boolean logAtomics) throws IOException {\r\n\t\tString out =\"\";\r\n\t\t\r\n\t\tif(logAtomics) {\r\n\t\t\tout = \"\"+data.getName()+\" run \"+nr;\r\n\t\t\twriter.write(out);\r\n\t\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\t\tout = \"gen\"+SEP+\"fitness\"+SEP+\"pfm\"+SEP+\"f_full\"+SEP+\"f_1to1\"+SEP+\"dur\"+SEP+\"AUC_full\"+SEP+\"AUC_1to1\"+SEP+\"AUC_pfm\"+SEP+\"metric\"+SEP+\"prec\"+SEP+\"recall\";\r\n\t\t\twriter.write(out);\r\n\t\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\t\t// write to file\r\n\t\t\twriter.flush();\r\n\t\t}\r\n\t\tdouble xBefore = 0;\r\n\t\t\r\n\t\tdouble aucFull = 0; double yFullBefore = 0;\r\n\t\t\r\n\t\tdouble auc1to1 = 0; double y1to1Before = 0;\r\n\t\t\r\n\t\tdouble aucpfm = 0; double ypfmBefore = 0;\r\n\t\t\r\n\t\tMapping reference = data.getReferenceMapping();\r\n\t\tfor(int i = 0; i<perRunAndDataSet.size(); i++) {\r\n\t\t\tEvaluationPseudoMemory mem = perRunAndDataSet.get(i);\r\n\t\t\tMapping map = fitness.getMapping(mem.metric.getExpression(), mem.metric.getThreshold(), true);\r\n\t\t\t// For real F-measures use best 1-to-1 mapping\r\n\t\t\tMapping map_1to1 = Mapping.getBestOneToOneMappings(map);\r\n\t\t\tdouble prec, recall, fMeasure, prec_1to1, recall_1to1, fMeasure_1to1;\r\n\t\t\tPRFCalculator prf = new PRFCalculator();\r\n\t\t\tprec = prf.precision(map, reference);\r\n\t\t\trecall = prf.recall(map, reference);\r\n\t\t\tfMeasure = prf.fScore(map, reference);\r\n\t\t\t\r\n\t\t\tif(Double.isNaN(fMeasure) || Double.isInfinite(fMeasure)) {\r\n\t\t\t\tSystem.err.println(\"NaN computation on Fmeasure, setting it to 0\");\r\n\t\t\t\tfMeasure = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmem.precision=prec;\r\n\t\t\tmem.recall=recall;\r\n\t\t\tmem.fmeasue=fMeasure;\r\n\t\t\t\r\n\t\t\tprec_1to1 = prf.precision(map_1to1, reference);\r\n\t\t\trecall_1to1 = prf.recall(map_1to1, reference);\r\n\t\t\tfMeasure_1to1 = prf.fScore(map_1to1, reference);\r\n\t\t\t\r\n\t\t\tif(Double.isNaN(fMeasure_1to1) || Double.isInfinite(fMeasure_1to1)) {\r\n\t\t\t\tSystem.err.println(\"NaN computation on Fmeasure 1-to-1, setting it to 0\");\r\n\t\t\t\tfMeasure_1to1 = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmem.precision_1to1=prec_1to1;\r\n\t\t\tmem.recall_1to1=recall_1to1;\r\n\t\t\tmem.fmeasue_1to1=fMeasure_1to1;\r\n\t\t\t// compute auc values\r\n\t\t\tdouble xNow=mem.generation;\r\n\t\t\taucFull += computeAUCSummand(xBefore, xNow, yFullBefore, fMeasure);\r\n\t\t\tauc1to1 += computeAUCSummand(xBefore, xNow, y1to1Before, fMeasure_1to1);\r\n\t\t\taucpfm += computeAUCSummand(xBefore, xNow, ypfmBefore, mem.pseudoFMeasure);\r\n\t\t\t//log\r\n\t\t\tif(logAtomics) {\r\n\t\t\t\tlogAtomic(mem, aucFull, auc1to1, aucpfm);\r\n\t\t\t}\r\n\t\t\txBefore = xNow;\r\n\t\t\tyFullBefore = fMeasure;\r\n\t\t\ty1to1Before = fMeasure_1to1;\t\r\n\t\t\typfmBefore = mem.pseudoFMeasure;\r\n\t\t}\r\n\t\t// log to statistics final fs,auc\r\n\t\tF_full.add(yFullBefore);\r\n\t\tF_1to1.add(y1to1Before);\r\n\t\tPFM.add(ypfmBefore);\r\n\t\tAUC_full.add(aucFull);\r\n\t\tAUC_1to1.add(auc1to1);\r\n\t\tAUC_pfm.add(aucpfm);\r\n\t\t\r\n\t\tout = data.getName()+\" run:\"+nr+\"\\n\"+\"gens\"+SEP+\"fit\"+SEP+\"pfm\"+SEP+\"f\"+SEP+\"f_1to1\"+SEP+\"dur\"+SEP+\"AUC\"+SEP+\"AUC_1to1\"+SEP+\"AUC_pfm\";\r\n\t\twriter.write(out);\r\n\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\tlogAtomic(perRunAndDataSet.getLast(),aucFull,auc1to1,aucpfm);\r\n\t}", "public static void main(String[] args) throws IOException, InterruptedException {\n\n File src = new ClassPathResource(\"winequality-red.csv\").getFile();\n\n FileSplit fileSplit = new FileSplit(src);\n\n RecordReader rr = new CSVRecordReader(1,',');// since there is header in the file remove row 1 with delimter coma\n rr.initialize(fileSplit);\n\n Schema sc = new Schema.Builder()\n .addColumnsDouble(\"fixed acidity\",\"volatile acidity\",\"citric acid\",\"residual sugar\",\"chlorides\",\"free sulfur dioxide\",\"total sulfur dioxide\",\"density\",\"pH\",\"sulphates\",\"alcohol\")\n .addColumnCategorical(\"quality\", Arrays.asList(\"3\",\"4\",\"5\",\"6\",\"7\",\"8\"))\n .build();\n\n TransformProcess tp = new TransformProcess.Builder(sc)\n .categoricalToInteger(\"quality\")\n .build();\n\n System.out.println(\"Initial Schema : \"+tp.getInitialSchema());\n System.out.println(\"New Schema : \"+tp.getFinalSchema());\n\n List<List<Writable>> original_data = new ArrayList<>();\n\n while(rr.hasNext()){\n original_data.add(rr.next());\n }\n\n List<List<Writable>> transformed_data = LocalTransformExecutor.execute(original_data,tp);\n\n CollectionRecordReader crr = new CollectionRecordReader(transformed_data);\n\n DataSetIterator iter = new RecordReaderDataSetIterator(crr,transformed_data.size(),-1,6);\n\n DataSet fullDataSet = iter.next();\n fullDataSet.shuffle(seed);\n\n SplitTestAndTrain traintestsplit = fullDataSet.splitTestAndTrain(0.8);\n DataSet trainDataSet = traintestsplit.getTrain();\n DataSet testDataSet = traintestsplit.getTest();\n\n\n DataNormalization normalization = new NormalizerMinMaxScaler();\n normalization.fit(trainDataSet);\n normalization.transform(trainDataSet);\n normalization.transform(testDataSet);\n\n MultiLayerConfiguration config = getConfig (numberInput,numberClasses,learning_rate);\n\n MultiLayerNetwork model = new MultiLayerNetwork(config);\n model.init();\n\n //UI-Evaluator\n StatsStorage storage = new InMemoryStatsStorage();\n UIServer server = UIServer.getInstance();\n server.attach(storage);\n\n //Set model listeners\n model.setListeners(new StatsListener(storage, 10));\n\n Evaluation eval;\n\n for(int i=0;i<epochs;i++) {\n model.fit(trainDataSet);\n eval = model.evaluate(new ViewIterator(testDataSet, transformed_data.size()));\n System.out.println(\"Epoch \" + i + \", Accuracy : \"+eval.accuracy());\n }\n\n Evaluation evalTrain = model.evaluate(new ViewIterator(trainDataSet,transformed_data.size()));\n Evaluation evalTest = model.evaluate(new ViewIterator(testDataSet,transformed_data.size()));\n\n System.out.println(\"Train Eval : \"+evalTrain.stats());\n System.out.println(\"Test Eval : \"+evalTest.stats());\n\n\n\n\n\n\n\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "String getProcessingInstructionData(Object pi);", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Discretize discretize0 = new Discretize();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"relational\", arrayList0, 30);\n discretize0.setInputFormat(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(2);\n // Undeclared exception!\n try { \n discretize0.input(binarySparseInstance0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Instance has no dataset assigned!!\n //\n verifyException(\"weka.core.RelationalLocator\", e);\n }\n }", "public void term()\n \t{\n //\t\tfor(Iterator<Technology> tIt = Technology.getTechnologies(); tIt.hasNext(); )\n //\t\t{\n //\t\t\tTechnology tech = tIt.next();\n //\n // for (Iterator<Foundry> itF = tech.getFoundries(); itF.hasNext();)\n // {\n // Foundry foundry = itF.next();\n // HashMap<Layer,String> gdsLayers = new HashMap<Layer,String>();\n // for(Iterator<Layer> lIt = tech.getLayers(); lIt.hasNext(); )\n // {\n // Layer layer = lIt.next();\n // String str = get(foundry, layer);\n // GDSLayers numbers = GDSLayers.parseLayerString(str);\n // if (numbers == null) continue;\n //\n // Setting setting = foundry.getGDSLayerSetting(layer);\n // String oldStr = getString(setting);\n // GDSLayers oldNumbers = oldStr != null ? GDSLayers.parseLayerString(oldStr) : GDSLayers.EMPTY;\n // if (!oldNumbers.equals(numbers))\n // setString(setting, numbers.toString());\n // }\n // }\n //\t\t}\n setBoolean(gdsOutMergesBoxesSetting, gdsOutputMergesBoxes.isSelected());\n setBoolean(gdsOutWritesExportPinsSetting, gdsOutputWritesExportPins.isSelected());\n setBoolean(gdsOutUpperCaseSetting, gdsOutputUpperCase.isSelected());\n setInt(gdsOutDefaultTextLayerSetting, TextUtils.atoi(gdsDefaultTextLayer.getText()));\n setBoolean(gdsOutputConvertsBracketsInExportsSetting, gdsOutputConvertsBracketsInExports.isSelected());\n setInt(gdsCellNameLenMaxSetting, TextUtils.atoi(gdsCellNameLenMax.getText()));\n \t}", "List<Defect> analyze(StructuredScenario mainScenario, HashMap<String, List<StructuredScenario>> sequentiallyRelatedScenariosHashMap, HashMap<String, List<StructuredScenario>> nonSeqRelatedScenarioHashMap);", "public static String globalInfo() {\n return \"This is a GA individual suited to optimize binary values.\";\n }", "private void analysisExcel(){\n\n FileOutput fout = null;\n if(this.fileNumberingSet){\n fout = new FileOutput(this.outputFilename, 'n');\n }\n else{\n fout = new FileOutput(this.outputFilename);\n }\n\n // perform PCA if not already performed\n if(!pcaDone)this.pca();\n if(!this.monteCarloDone)this.monteCarlo();\n\n // output title\n fout.println(\"PRINCIPAL COMPONENT ANALYSIS\");\n fout.println(\"Program: PCA - Analysis Output\");\n for(int i=0; i<this.titleLines; i++)fout.println(title[i]);\n Date d = new Date();\n String day = DateFormat.getDateInstance().format(d);\n String tim = DateFormat.getTimeInstance().format(d);\n fout.println(\"Program executed at \" + tim + \" on \" + day);\n fout.println();\n if(this.covRhoOption){\n fout.println(\"Covariance matrix used\");\n }\n else{\n fout.println(\"Correlation matrix used\");\n }\n fout.println();\n\n // output eigenvalue table\n fout.println(\"ALL EIGENVALUES\");\n\n fout.printtab(\"Component \");\n fout.printtab(\"Unordered \");\n fout.printtab(\"Eigenvalue \");\n fout.printtab(\"Proportion \");\n fout.printtab(\"Cumulative \");\n fout.println(\"Difference \");\n\n fout.printtab(\" \");\n fout.printtab(\"index\");\n fout.printtab(\" \");\n fout.printtab(\"as % \");\n fout.printtab(\"percentage \");\n fout.println(\" \");\n\n\n\n for(int i=0; i<this.nItems; i++){\n fout.printtab(i+1);\n fout.printtab((this.eigenValueIndices[i]+1));\n fout.printtab(Fmath.truncate(this.orderedEigenValues[i], this.trunc));\n fout.printtab(Fmath.truncate(this.proportionPercentage[i], this.trunc));\n fout.printtab(Fmath.truncate(this.cumulativePercentage[i], this.trunc));\n if(i<this.nItems-1){\n fout.printtab(Fmath.truncate((this.orderedEigenValues[i] - this.orderedEigenValues[i+1]), this.trunc));\n }\n else{\n fout.printtab(\" \");\n }\n fout.printtab(\" \");\n\n fout.println();\n }\n fout.println();\n\n\n // Extracted components\n int nMax = this.greaterThanOneLimit;\n if(nMax<this.meanCrossover)nMax=this.meanCrossover;\n if(nMax<this.percentileCrossover)nMax=this.percentileCrossover;\n fout.println(\"EXTRACTED EIGENVALUES\");\n fout.printtab(\" \");\n fout.printtab(\"Greater than unity\");\n fout.printtab(\" \");fout.printtab(\" \");fout.printtab(\" \");\n fout.printtab(\"Greater than Monte Carlo Mean \");\n fout.printtab(\" \");fout.printtab(\" \");fout.printtab(\" \");\n fout.println(\"Greater than Monte Carlo Percentile\");\n\n fout.printtab(\"Component \");\n fout.printtab(\"Eigenvalue \");\n fout.printtab(\"Proportion \");\n fout.printtab(\"Cumulative \");\n fout.printtab(\" \");\n\n fout.printtab(\"Eigenvalue \");\n fout.printtab(\"Proportion \");\n fout.printtab(\"Cumulative \");\n fout.printtab(\" \");\n\n fout.printtab(\"Eigenvalue \");\n fout.printtab(\"Proportion \");\n fout.printtab(\"Cumulative \");\n fout.println(\" \");\n\n fout.printtab(\" \");\n fout.printtab(\" \");\n fout.printtab(\"as % \");\n fout.printtab(\"percentage \");\n fout.printtab(\" \");\n\n fout.printtab(\" \");\n fout.printtab(\"as % \");\n fout.printtab(\"percentage \");\n fout.printtab(\" \");\n\n fout.printtab(\" \");\n fout.printtab(\"as % \");\n fout.printtab(\"percentage \");\n fout.println(\" \");\n\n int ii=0;\n while(ii<nMax){\n fout.printtab(ii+1);\n\n if(ii<this.greaterThanOneLimit){\n fout.printtab(Fmath.truncate(this.orderedEigenValues[ii], this.trunc));\n fout.printtab(Fmath.truncate(this.proportionPercentage[ii], this.trunc));\n fout.printtab(Fmath.truncate(this.cumulativePercentage[ii], this.trunc));\n fout.printtab(\" \");\n }\n\n if(ii<this.meanCrossover){\n fout.printtab(Fmath.truncate(this.orderedEigenValues[ii], this.trunc));\n fout.printtab(Fmath.truncate(this.proportionPercentage[ii], this.trunc));\n fout.printtab(Fmath.truncate(this.cumulativePercentage[ii], this.trunc));\n fout.printtab(\" \");\n }\n\n if(ii<this.percentileCrossover){\n fout.printtab(Fmath.truncate(this.orderedEigenValues[ii], this.trunc));\n fout.printtab(Fmath.truncate(this.proportionPercentage[ii], this.trunc));\n fout.printtab(Fmath.truncate(this.cumulativePercentage[ii], this.trunc));\n }\n fout.println();\n ii++;\n }\n fout.println();\n\n\n fout.println(\"PARALLEL ANALYSIS\");\n fout.println(\"Number of simulations = \" + this.nMonteCarlo);\n if(this.gaussianDeviates){\n fout.println(\"Gaussian random deviates used\");\n }\n else{\n fout.println(\"Uniform random deviates used\");\n }\n fout.println(\"Percentile value used = \" + this.percentile + \" %\");\n\n fout.println();\n fout.printtab(\"Component \");\n fout.printtab(\"Data \");\n fout.printtab(\"Proportion \");\n fout.printtab(\"Cumulative \");\n fout.printtab(\" \");\n fout.printtab(\"Data \");\n fout.printtab(\"Monte Carlo \");\n fout.printtab(\"Monte Carlo \");\n fout.println(\"Monte Carlo \");\n\n fout.printtab(\" \");\n fout.printtab(\"Eigenvalue \");\n fout.printtab(\"as % \");\n fout.printtab(\"percentage \");\n fout.printtab(\" \");\n fout.printtab(\"Eigenvalue \");\n fout.printtab(\"Eigenvalue \");\n fout.printtab(\"Eigenvalue \");\n fout.println(\"Eigenvalue \");\n\n fout.printtab(\" \");\n fout.printtab(\" \");\n fout.printtab(\" \");\n fout.printtab(\" \");\n fout.printtab(\" \");\n fout.printtab(\" \");\n fout.printtab(\"Percentile \");\n fout.printtab(\"Mean \");\n fout.println(\"Standard Deviation \");\n\n for(int i=0; i<this.nItems; i++){\n fout.printtab(i+1);\n fout.printtab(Fmath.truncate(this.orderedEigenValues[i], this.trunc));\n fout.printtab(Fmath.truncate(this.proportionPercentage[i], this.trunc));\n fout.printtab(Fmath.truncate(this.cumulativePercentage[i], this.trunc));\n fout.printtab(\" \");\n fout.printtab(Fmath.truncate(this.orderedEigenValues[i], this.trunc));\n fout.printtab(Fmath.truncate(this.randomEigenValuesPercentiles[i], this.trunc));\n fout.printtab(Fmath.truncate(this.randomEigenValuesMeans[i], this.trunc));\n fout.println(Fmath.truncate(this.randomEigenValuesSDs[i], this.trunc));\n }\n fout.println();\n\n // Correlation Matrix\n fout.println(\"CORRELATION MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.printtab(\" \");\n fout.printtab(\"component\");\n for(int i=0; i<this.nItems; i++)fout.printtab((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\");\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.printtab((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\");\n fout.printtab(\" \");\n for(int j=0; j<this.nItems; j++)fout.printtab(Fmath.truncate(this.correlationMatrix.getElement(j,i), this.trunc));\n fout.println();\n }\n fout.println();\n\n // Covariance Matrix\n fout.println(\"COVARIANCE MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.printtab(\" \");\n fout.printtab(\"component\");\n for(int i=0; i<this.nItems; i++)fout.printtab((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\");\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.printtab((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\");\n fout.printtab(\" \");\n for(int j=0; j<this.nItems; j++)fout.printtab(Fmath.truncate(this.covarianceMatrix.getElement(j,i), this.trunc));\n fout.println();\n }\n fout.println();\n\n // Eigenvectors\n fout.println(\"EIGENVECTORS\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println(\"Vector corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.printtab(\" \");\n fout.printtab(\"component\");\n for(int i=0; i<this.nItems; i++)fout.printtab((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\");\n fout.println();\n fout.println(\"component\");\n\n for(int i=0; i<this.nItems; i++){\n fout.printtab((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\");\n fout.printtab(\" \");\n for(int j=0; j<this.nItems; j++)fout.printtab(Fmath.truncate(this.orderedEigenVectorsAsRows[i][j], this.trunc));\n fout.println();\n }\n fout.println();\n\n // Loading factors\n fout.println(\"LOADING FACTORS\");\n fout.println(\"Original indices in parenthesis\");\n fout.println(\"Loading factors corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.printtab(\" \");\n fout.printtab(\"component\");\n for(int i=0; i<this.nItems; i++)fout.printtab((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\");\n fout.printtab(\" \");\n fout.printtab(\"Eigenvalue\");\n fout.printtab(\"% Proportion\");\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n for(int i=0; i<this.nItems; i++){\n fout.printtab((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\");\n fout.printtab(\" \");\n for(int j=0; j<this.nItems; j++)fout.printtab(Fmath.truncate(this.loadingFactorsAsRows[i][j], this.trunc));\n fout.printtab(\" \");\n fout.printtab(Fmath.truncate(this.orderedEigenValues[i], this.trunc));\n fout.printtab(Fmath.truncate(proportionPercentage[i], this.trunc));\n fout.println(Fmath.truncate(cumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n // Rotated loading factors\n fout.println(\"ROTATED LOADING FACTORS\");\n if(this.varimaxOption){\n fout.println(\"NORMAL VARIMAX\");\n }\n else{\n fout.println(\"RAW VARIMAX\");\n }\n\n String message = \"The ordered eigenvalues with Monte Carlo means and percentiles in parenthesis\";\n message += \"\\n (Total number of eigenvalues = \" + this.nItems + \")\";\n int nDisplay = this.nItems;\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int screenHeight = screenSize.height;\n int nDisplayLimit = 20*screenHeight/800;\n if(nDisplay>nDisplay)nDisplay = nDisplayLimit;\n for(int i=0; i<nDisplay; i++){\n message += \"\\n \" + Fmath.truncate(this.orderedEigenValues[i], 4) + \" (\" + Fmath.truncate(this.randomEigenValuesMeans[i], 4) + \" \" + Fmath.truncate(this.randomEigenValuesPercentiles[i], 4) + \")\";\n }\n if(nDisplay<this.nItems)message += \"\\n . . . \";\n message += \"\\nEnter number of eigenvalues to be extracted\";\n int nExtracted = this.greaterThanOneLimit;\n nExtracted = Db.readInt(message, nExtracted);\n this.varimaxRotation(nExtracted);\n\n fout.println(\"Varimax rotation for \" + nExtracted + \" extracted factors\");\n fout.println(\"Rotated loading factors and eigenvalues scaled to ensure total 'rotated variance' matches unrotated variance for the extracted factors\");\n fout.println(\"Original indices in parenthesis\");\n fout.println();\n fout.printtab(\" \");\n fout.printtab(\"component\");\n for(int i=0; i<this.nItems; i++)fout.printtab((this.rotatedIndices[i]+1) + \" (\" + (i+1) + \")\");\n fout.printtab(\" \");\n fout.printtab(\"Eigenvalue\");\n fout.printtab(\"% Proportion\");\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n for(int i=0; i<nExtracted; i++){\n fout.printtab((i+1) + \" (\" + (this.rotatedIndices[i]+1) + \")\");\n fout.printtab(\" \");\n for(int j=0; j<this.nItems; j++)fout.printtab(Fmath.truncate(this.rotatedLoadingFactorsAsRows[i][j], this.trunc));\n fout.printtab(\" \");\n fout.printtab(Fmath.truncate(rotatedEigenValues[i], this.trunc));\n fout.printtab(Fmath.truncate(rotatedProportionPercentage[i], this.trunc));\n fout.println(Fmath.truncate(rotatedCumulativePercentage[i], this.trunc));\n }\n\n\n fout.println();\n\n\n fout.println(\"DATA USED\");\n fout.println(\"Number of items = \" + this.nItems);\n fout.println(\"Number of persons = \" + this.nPersons);\n\n if(this.originalDataType==0){\n fout.printtab(\"Item\");\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n }\n fout.println();\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n for(int j=0; j<this.nPersons; j++){\n fout.printtab(Fmath.truncate(this.scores0[i][j], this.trunc));\n }\n fout.println();\n }\n }\n else{\n fout.printtab(\"Person\");\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n }\n fout.println();\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n for(int j=0; j<this.nItems; j++){\n fout.printtab(Fmath.truncate(this.scores1[i][j], this.trunc));\n }\n fout.println();\n }\n }\n\n fout.close();\n }", "public void printInstances(String queryTerm, boolean invalidOnly) {\n\t\tServiceReference[] refs;\n\t\ttry {\n\t\t\trefs = bundleContext.getServiceReferences(Architecture.class.getName(), null);\n\t\t\tout.println(\"iPOJO Instances\");\n\t\t\tout.println(\"-------------------\");\n\t\t\tfor (int i = 0; i < refs.length; i++) {\n\t\t\t\tArchitecture arch = (Architecture) bundleContext.getService(refs[i]);\n\t\t\t\tInstanceDescription instance = arch.getInstanceDescription();\n\n\t\t\t\tif (queryTerm != null && !instance.getName().contains(queryTerm))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tif (invalidOnly && instance.getState() != ComponentInstance.INVALID)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (instance.getState() == ComponentInstance.VALID)\n\t\t\t\t\tout.printf(\"Instance [%s] -> valid\\n\", instance.getName());\n\t\t\t\tif (instance.getState() == ComponentInstance.INVALID)\n\t\t\t\t\tout.printf(\"Instance [%s] -> invalid\\n\", instance.getName());\n\t\t\t\tif (instance.getState() == ComponentInstance.STOPPED)\n\t\t\t\t\tout.printf(\"Instance [%s] -> stopped\\n\", instance.getName());\n\t\t\t}\n\t\t} catch (InvalidSyntaxException e) {\n\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "private void verificaData() {\n\t\t\n\t}", "public InfoDataIF() {\n initComponents();\n }", "public Object getCaseInstanceAnalysisRecord() {\n return caseInstanceAnalysisRecord;\n }" ]
[ "0.59246147", "0.5535393", "0.53194726", "0.5287371", "0.5055436", "0.50419533", "0.49994367", "0.49873385", "0.49380648", "0.49028683", "0.49017808", "0.48866317", "0.48764598", "0.48644418", "0.4859762", "0.48555535", "0.48458788", "0.4842736", "0.48313892", "0.483003", "0.48136437", "0.48121247", "0.48079368", "0.47958523", "0.4787643", "0.47787726", "0.47709513", "0.47677287", "0.4763776", "0.4756804", "0.4755286", "0.47501987", "0.47468373", "0.4745309", "0.4744142", "0.4740944", "0.474065", "0.47352812", "0.47330803", "0.47206938", "0.47169998", "0.47094464", "0.47059304", "0.47002736", "0.46969852", "0.4696445", "0.46916866", "0.4689758", "0.46896762", "0.46866485", "0.4681804", "0.46788287", "0.46788284", "0.46738774", "0.46727884", "0.46724916", "0.46707085", "0.4669872", "0.46602628", "0.46580324", "0.4657993", "0.46535698", "0.46491283", "0.46458992", "0.46431956", "0.46426153", "0.46417484", "0.46367183", "0.4636079", "0.4634046", "0.46277055", "0.46251553", "0.4619389", "0.46170625", "0.46158844", "0.46149385", "0.46136045", "0.4609846", "0.46088362", "0.46065027", "0.46057403", "0.460545", "0.4604417", "0.4597753", "0.4592672", "0.45923048", "0.4588177", "0.45875886", "0.45861876", "0.4581001", "0.45758447", "0.4575508", "0.45753133", "0.4575134", "0.4574805", "0.45726252", "0.4569961", "0.4569418", "0.4568499", "0.45670614", "0.45660177" ]
0.0
-1
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Code generalinfo: The type of external performance analysis report available
public String getPerformanceAssessmentInstanceAnalysisReportType() { return performanceAssessmentInstanceAnalysisReportType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():java.util.Map\");\n }", "abstract public void setPerformanceInfo() throws Exception;", "public void testPerformance() {\n \t}", "@Test\n public void testProcessResponseMetadataDispatcherSupportabilityTracking1() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessResponseMetadataDispatcherTestClass1.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessResponseMetadata\", \"()V;\");\n\n final String processResponseMetadataMetric = \"Supportability/API/ProcessResponseMetadata/API\";\n new ProcessResponseMetadataDispatcherTestClass1().getProcessResponseMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processResponseMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processResponseMetadataMetric));\n } finally {\n holder.close();\n }\n }", "@Ignore(\"Google's LRU map max size is not predictable\")\n\t@Override\n\tpublic void statsTest()\n\t{\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "public interface DataAnalyzeService {\n\n void saveFirstLevelLeakage(FirstLevelLeakage firstLevelLeakage);\n\n /**\n * //根据换热站id拿到换热站名称\n * //然后根据换热站名称去Heatstation表中拿到换热站对应的hid\n * //然后用hid去匹配plot表,拿到plot的名称\n * //根据plot名称去cardnumberAddress表匹配,拿到房卡号\n * @return\n * @param tagid\n */\n List<Cardnumberaddress> findCardNum4RlzTagId(Integer tagid);\n\n void saveSecondLeaveLeakage(SecondLevelLeakage secondLevelLeakage);\n\n /**\n * 查询电厂在定时任务表中指定时间内用量\n * @param beginTime\n * @param endTime\n * @return\n */\n double findDCHeatNumByFirstLevelLeakage(Long beginTime, Long endTime);\n\n /**\n * 查询热力站以及上级为电厂的贸易结算系统在任务表中指定时间内用量\n * @param beginTime\n * @param endTime\n * @return\n */\n double findRLZHeatNumBySecondLevelLeakage(Long beginTime, Long endTime);\n\n /**\n * 查询时间段内一级(电厂)漏损值和对应的时间\n * @param begin\n * @param end\n * @return leakageNumList 漏损值 timeList 漏损值对应的时间\n */\n HashMap<String, ArrayList> findFirstLeakageNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内二级(热力站,贸易)漏损值和对应的时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findSecondLeakageNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内一级(电厂)用量和对应时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findFirstHeatNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内二级(热力站,贸易)用量,功率,温差和对应时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findSecondHeatNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n void saveSecondLeaveLeakageSum(SecondLevelLeakageSum secondLevelLeakageSum);\n}", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "public void getSafetyReportSummaryData() throws RemoteException {\n throw new RemoteException(\"Not yet implemented\");\n }", "@Test\n public void testProcessRequestMetadataDispatcherSupportabilityTracking() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessRequestMetadataDispatcherTestClass.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessRequestMetadata\", \"()V;\");\n\n final String processRequestMetadataMetric = \"Supportability/API/ProcessRequestMetadata/API\";\n new ProcessRequestMetadataDispatcherTestClass().getProcessRequestMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processRequestMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processRequestMetadataMetric));\n } finally {\n holder.close();\n }\n }", "@Override\n public void reportSmartDashboard() {\n }", "public void outputTelemetry() {\n }", "@Test\n public void testProcessResponseMetadataDispatcherSupportabilityTracking2() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessResponseMetadataDispatcherTestClass2.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessResponseMetadata\", \"()V;\");\n\n final String processResponseMetadataMetric = \"Supportability/API/ProcessResponseMetadata/API\";\n new ProcessResponseMetadataDispatcherTestClass2().getProcessResponseMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processResponseMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processResponseMetadataMetric));\n } finally {\n holder.close();\n }\n }", "boolean hasTelemetry();", "public Object getPerformanceAssessmentInstanceAnalysisReport() {\n return performanceAssessmentInstanceAnalysisReport;\n }", "protected abstract void analyzeSystem(PipelineData data) throws Exception;", "public void mo4058a() {\n imageCacheStatsTracker.mo4071e();\n }", "TraceUndefinedDataView undefinedData();", "public abstract String getRuntimeDescription();", "org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry getTelemetry();", "@Test\n public void testBridgeProcessResponseMetadataDispatcherSupportabilityTracking1() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessResponseMetadataDispatcherBridgeTestClass1.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessResponseMetadata\", \"()V;\");\n\n final String processResponseMetadataMetric = \"Supportability/API/ProcessResponseMetadata/API\";\n new ProcessResponseMetadataDispatcherBridgeTestClass1().getProcessResponseMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processResponseMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processResponseMetadataMetric));\n } finally {\n holder.close();\n }\n }", "public static void reportStats() {\n if (!VmSettings.COLLECT_TYPE_STATS) {\n return;\n }\n Output.println(\"RESULT-NumberOfTypeCheckExecutions: \" + numTypeCheckExecutions);\n Output.println(\"RESULT-NumberOfSubclassChecks: \" + numSubclassChecks);\n Output.println(\"RESULT-NumberOfTypes: \" + nTypes);\n }", "io.netifi.proteus.admin.om.Metrics getMetrics();", "@Override \n\t public String getDescription() {\n\t \t return \"(*.MXD)\"; \n\t }", "protected Object[] get_ComponentInfo()\n {\n return new Object[]\n {\n \"ReporterMBean contains settings and statistics for the Coherence JMX Reporter.\",\n \"com.bea.owner=Context,com.bea.VisibleToPartitions=ALWAYS\",\n };\n }", "public String getPerformanceAnalysisReference() {\n return performanceAnalysisReference;\n }", "@Test\n\tvoid lackOfDataTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tdate = new Date(120, 8, 1);\n\t\texpected = \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "protected abstract String getStatistics();", "private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}", "public interface PerformanceAnalysis {\n\n\t/**\n\t * The important function that compares the implemented HashTable with TreeMap\n\t * of Java and generates the table with all the comparision details This can\n\t * internally call - compareInsertion, compareDeletion, CompareSearch for all\n\t * the test data provided.\n\t */\n\tvoid compareDataStructures();\n\n\t/**\n\t * Function used to print out the final report\n\t *\n\t */\n\tvoid printReport();\n\n\t/**\n\t * Standalone method for comparing insertion operation across HashTable and\n\t * TreeMap\n\t */\n\tvoid compareInsertion();\n\n\t/**\n\t * Standalone method for comparing deletion operation across HashTable and\n\t * TreeMap\n\t */\n\tvoid compareDeletion();\n\n\t/**\n\t * Standalone method for comparing search operation across HashTable and TreeMap\n\t */\n\tvoid compareSearch();\n\n\t/**\n\t *\n\t * @param filename:\n\t * Loads the data from the test file to local data structure This is\n\t * already implemented for you.\n\t * @throws IOException\n\t */\n\tvoid loadData(String filename) throws IOException;\n\n}", "public void testSummaryStatsParallel() {\n File testFile = new File(\"src/test/data/dataset1.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 248192, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 786432, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 3, jvmRun.getNewRatio());\n Assert.assertEquals(\"Max heap space not calculated correctly.\", 1034624, jvmRun.getMaxHeapSpace());\n Assert.assertEquals(\"Max heap occupancy not calculated correctly.\", 1013058, jvmRun.getMaxHeapOccupancy());\n Assert.assertEquals(\"Max pause not calculated correctly.\", 2782, jvmRun.getMaxGcPause());\n Assert.assertEquals(\"Max perm gen space not calculated correctly.\", 159936, jvmRun.getMaxPermSpace());\n Assert.assertEquals(\"Max perm gen occupancy not calculated correctly.\", 76972, jvmRun.getMaxPermOccupancy());\n Assert.assertEquals(\"Total GC duration not calculated correctly.\", 5614, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SCAVENGE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SCAVENGE));\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SERIAL_OLD));\n Assert.assertTrue(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_PARALLEL));\n }", "private void report() {\n\t\t\n\t}", "@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\r\n @VTID(13)\r\n short stat();", "@Schema(description = \"`status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary general-info: The external report in any suitable form including selection filters where appropriate \")\n public Object getAssessmentInstanceReport() {\n return assessmentInstanceReport;\n }", "public CalculatedPerformanceIndicators()\n {\n super();\n // TODO Auto-generated constructor stub\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "TraceDefinedDataView definedData();", "org.landxml.schema.landXML11.CrashDataDocument.CrashData[] getCrashDataArray();", "@Override\n\tpublic Map<String, Object> fingViolationCarInfo(String query) throws Exception {\n\t\treturn responsitory.fingViolationCarInfo(query);\n\t}", "TrackInfo() {\n // no-op\n }", "@Test\n public void testLocalizedDetailedReportIssue41() throws Exception {\n CucumberDetailedResults results = new CucumberDetailedResults();\n results.setOutputDirectory(\"target/\");\n results.setOutputName(\"localized-results\");\n results.setSourceFile(\"./src/test/resources/detailed-source/localized-1.json\");\n results.execute(true, new String[] {});\n results.execute(false, new String[] {});\n }", "public static int performanceCountGet() { return 0; }", "public interface PerformanceTest {}", "public String getOdlOpenflowMeterstats2() throws SnmpStatusException;", "private void process () {\r\n\r\n ArrayList<String> anomaly;\r\n ArrayList<DataInfo> tmp = new ArrayList<>();\r\n int appState, screenState, screenOrientation, closeToObject, opID;\r\n long permissionCount;\r\n double scanDuration;\r\n String packageName, permission, accessTime;\r\n\r\n // get the data in the given scope (from offset, limit rows)\r\n Cursor cursor = sqliteDBHelper.get_data(\"SELECT \" + SqliteDBStructure.PACKAGE_NAME + \", \"\r\n + SqliteDBStructure.PERMISSION + \", \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \", \"\r\n + SqliteDBStructure.APP_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_ORIENTATION + \", \"\r\n + SqliteDBStructure.CLOSE_TO_OBJECT\r\n + \" FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME\r\n + \" LIMIT \" + limit + \" OFFSET \" + offset);\r\n\r\n try {\r\n if (cursor != null) {\r\n cursor.moveToFirst();\r\n\r\n while (!cursor.isAfterLast()) {\r\n packageName = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.PACKAGE_NAME));\r\n opID = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.PERMISSION));\r\n permission = Permission.opIDToName(opID);\r\n accessTime = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.ACCESS_TIME));\r\n appState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.APP_STATE));\r\n screenState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_STATE));\r\n screenOrientation = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_ORIENTATION));\r\n closeToObject = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.CLOSE_TO_OBJECT));\r\n\r\n permissionCount = DatabaseUtils.longForQuery(sqliteDBHelper.getReadableDatabase(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE + \" WHERE \" + SqliteDBStructure.PACKAGE_NAME + \" = '\" + packageName + \"' \" + \" AND \" + SqliteDBStructure.PERMISSION + \" = '\" + opID + \"';\", null);\r\n\r\n //Scan duration in Minutes\r\n scanDuration = (((double) stop_scan_time.getTime() + (double) start_scan_time.getTime()) / 1000 )/ 60;\r\n //check for anomaly by ruleset class\r\n anomaly = RuleSet.checkForAnomaly(packageName, permission, permissionCount, appState, screenState, screenOrientation, closeToObject, scanDuration, context);\r\n\r\n //Send data to server or save it locally, if no valid internet connection is available\r\n if (networking) {\r\n sendRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n MyClient.POST_Anomaly(packageName, permission, anomaly.get(1), \"0\");\r\n } else {\r\n saveRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n saveAnomaliesImage(packageName, permission, anomaly.get(1), 0);\r\n }\r\n\r\n // create a info object which holds all the necessary information about that data block and store it temporarily in a list\r\n DataInfo info = new DataInfo(packageName, Permission.opIDToDescription(opID), accessTime, permissionCount, anomaly.get(0), anomaly.get(1), scanTime, 0);\r\n tmp.add(info);\r\n\r\n // should the size of the temporary list exceeds MaxBatchSize, write list to the local DB and clear the temp list afterwards \r\n // technically this cannot happen but we are working with threads here so better be safe than sorry\r\n // temp list should not be to big, because we have have to hold task amount of temp list, with each containing around MaxBatchSize entries, in memory at the same time\r\n if (tmp.size() > MaxBatchSize) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n\r\n cursor.moveToNext();\r\n }\r\n\r\n }\r\n } finally {\r\n if (cursor != null) {\r\n cursor.close();\r\n }\r\n }\r\n\r\n // write the data stored in the temp list to the local DB \r\n if (tmp.size() > 0) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n // inform the progress dialog that a task has been finished\r\n updateProgressDialog();\r\n // decrease the amount of ongoing tasks by 1\r\n decreaseTasks();\r\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize(\"$tE|HFM4Wv\");\n discretize0.globalInfo();\n // Undeclared exception!\n try { \n discretize0.outputPeek();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test\n public void testDoReport() {\n long startTime = 111;\n String traceId = \"traceId\";\n String spanId = \"spanId\";\n SofaTracerSpanContext sofaTracerSpanContext = new SofaTracerSpanContext(traceId, spanId,\n null);\n Map<String, String> tags = new HashMap<String, String>();\n tags.put(\"key\", \"value\");\n\n // other case:sofaTracerSpanContext.setSampled(Boolean.False)\n sofaTracerSpanContext.setSampled(Boolean.TRUE);\n SofaTracerSpan sofaTracerSpan = new SofaTracerSpan(this.sofaTracer, startTime,\n \"testConstructSpan\", sofaTracerSpanContext, tags);\n\n clientAbstractDiskReporter.doReport(sofaTracerSpan);\n if(!sofaTracerSpanContext.isSampled()){\n // 没有初始化\n assertEquals(false, this.clientAbstractDiskReporter.getIsDigestFileInited().get());\n Assert.assertEquals(0, statReporter.getStatData().size());\n }else {\n // 初始化\n assertEquals(true, this.clientAbstractDiskReporter.getIsDigestFileInited().get());\n Assert.assertNotEquals(0, statReporter.getStatData().size());\n }\n }", "public void testSummaryStatsStoppedTime() {\n File testFile = new File(\"src/test/data/dataset41.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertTrue(JdkUtil.LogEventType.G1_YOUNG_PAUSE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.G1_YOUNG_PAUSE));\n Assert.assertTrue(JdkUtil.LogEventType.APPLICATION_STOPPED_TIME.toString() + \" not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.APPLICATION_STOPPED_TIME));\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 2192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 2847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 964, jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 3884, jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 3884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 4884, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 99, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 78, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void testBridgeProcessRequestMetadataDispatcherSupportabilityTracking() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessRequestMetadataDispatcherBridgeTestClass.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessRequestMetadata\", \"()V;\");\n\n final String processRequestMetadataMetric = \"Supportability/API/ProcessRequestMetadata/API\";\n new ProcessRequestMetadataDispatcherBridgeTestClass().getProcessRequestMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processRequestMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processRequestMetadataMetric));\n } finally {\n holder.close();\n }\n }", "public String getCaseInstanceAnalysisReportType() {\n return caseInstanceAnalysisReportType;\n }", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "public static void performanceCountDisable() { }", "public void summary (java.io.PrintStream out) { throw new RuntimeException(); }", "@Test\n public void testBridgeProcessResponseMetadataDispatcherSupportabilityTracking2() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessResponseMetadataDispatcherBridgeTestClass2.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessResponseMetadata\", \"()V;\");\n\n final String processResponseMetadataMetric = \"Supportability/API/ProcessResponseMetadata/API\";\n new ProcessResponseMetadataDispatcherBridgeTestClass2().getProcessResponseMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processResponseMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processResponseMetadataMetric));\n } finally {\n holder.close();\n }\n }", "OpenmlperfPerformanceMonitoringPackage getOpenmlperfPerformanceMonitoringPackage();", "public abstract AnnotationCollector mo30681b(Annotation annotation);", "@VTID(11)\n boolean getOLAP();", "@Schema(description = \"`status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Code general-info: The type of external report available \")\n public String getAssessmentInstanceReportType() {\n return assessmentInstanceReportType;\n }", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\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\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "public void testPrintGcApplicationConcurrentTimeAnalysis() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset104.txt\");\n Jvm jvm = new Jvm(null, null);\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertTrue(Analysis.WARN_PRINT_GC_APPLICATION_CONCURRENT_TIME + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_GC_APPLICATION_CONCURRENT_TIME));\n }", "public abstract Annotations mo30682c();", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "java.util.Map<java.lang.Long, org.tensorflow.proto.profiler.XStatMetadata>\n getStatMetadataMap();", "io.dstore.values.StringValue getPersonOutputCharacteristics();", "public Map<Employee,String> getPerformancemap(){\r\n\t\treturn performance;\r\n\t}", "public Object getCaseInstanceAnalysisReport() {\n return caseInstanceAnalysisReport;\n }", "private double getOEEPerformance(Batch batch) {\n return 1;\n }", "@Override\n\tpublic boolean isInfoEnabled() {\n\t\treturn false;\n\t}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "public void testExplicitGcAnalsysisParallelSerialOld() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset56.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SCAVENGE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SCAVENGE));\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SERIAL_OLD));\n Assert.assertTrue(Analysis.WARN_EXPLICIT_GC_SERIAL_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_EXPLICIT_GC_SERIAL_PARALLEL));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_PARALLEL));\n }", "public SlowQueryReport() {\n super();\n }", "protected void thoroughInspection() {}", "@Test\n public void testRun() {\n System.out.println(\"run\");\n FluorescenceImporter importer = null;\n try {\n FluorescenceFixture tf = new FluorescenceFixture();\n importer = new FluorescenceImporter(tf.testData());\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Importing dataset\");\n importer.setProgressHandle(ph);\n \n importer.run();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n //FluorescenceDataset dataset = importer.getDataset();\n Dataset<? extends Instance> plate = importer.getDataset();\n System.out.println(\"inst A1 \"+ plate.instance(0).toString());\n System.out.println(\"plate \"+plate.toString());\n Dataset<Instance> output = new SampleDataset<Instance>();\n output.setParent((Dataset<Instance>) plate);\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Analyzing dataset\");\n // AnalyzeRunner instance = new AnalyzeRunner((Timeseries<ContinuousInstance>) plate, output, ph);\n // instance.run();\n \n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "void statistics();", "public static void showStatistics(){\n\n }", "public abstract String getSummaryForDatabase();", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test\n public void testPerformance1() throws Exception {\n SchemaModel sm;\n //\n // sm = Util.loadSchemaModel2(\"resources/performance2/A.xsd\"); // NOI18N\n sm = Util.loadSchemaModel2(\"resources/performance2.zip\", \"A.xsd\"); // NOI18N\n //\n // Wait 1 second till all models are loaded and validated\n Thread.sleep(1000);\n //\n assertTrue(sm.getState() == State.VALID);\n //\n assertTrue(sm instanceof SchemaModelImpl);\n SchemaModelImpl smImpl = SchemaModelImpl.class.cast(sm);\n GlobalComponentsIndexSupport indexSupport = smImpl.getGlobalComponentsIndexSupport();\n assertNotNull(indexSupport != null);\n GlobalComponentsIndexSupport.JUnitTestSupport testSupport =\n indexSupport.getJUnitTestSupport();\n assertNotNull(testSupport != null);\n //\n // Initiate index building\n GlobalElement found = sm.findByNameAndType(\"A000\", GlobalElement.class);\n assertNotNull(found);\n Thread.sleep(500); // Wait the index is build\n //\n DecimalFormat format = new DecimalFormat(\"000\");\n //\n long before = System.nanoTime();\n for (int index = 0; index < 1000; index++) {\n String localName = \"A\" + format.format(index);\n found = sm.findByNameAndType(localName, GlobalElement.class);\n assertNotNull(found);\n }\n long after = System.nanoTime();\n long delay = (after - before) / 1000000;\n assertTrue(\"Delay=\" + delay, delay < 50L);\n System.out.println(\"Execution with index = \" + delay + \" ms\"); // NOI18N\n //\n testSupport.setIndexAllowed(false);\n before = System.nanoTime();\n for (int index = 0; index < 1000; index++) {\n String localName = \"A\" + format.format(index);\n found = sm.findByNameAndType(localName, GlobalElement.class);\n assertNotNull(found);\n }\n //\n after = System.nanoTime();\n delay = (after - before) / 1000000;\n assertTrue(\"Delay=\" + delay, delay < 1000L);\n System.out.println(\"Execution without index = \" + delay + \" ms\"); // NOI18N\n //\n System.out.println(\"=============LOG=============\"); // NOI18N\n String log = testSupport.printLog();\n System.out.print(log);\n System.out.println(\"=============================\"); // NOI18N\n //\n }", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "@Schema(description = \"`status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary general-info: The input information used to assemble the report that can be on-going, periodic and actual and projected \")\n public Object getAssessmentInstanceReportRecord() {\n return assessmentInstanceReportRecord;\n }", "public static void main(String[] args) {\n\t\tAnalyse ana = new Analyse(20, 5);\r\n//\t\tArrayList<Map.Entry<Integer, Double>> current = ana.getNeighbor(\"\")\r\n//\t\tfor(int i = 0; i < ana.average.length; i++){\r\n//\t\t\tSystem.out.println(ana.average[i]);\r\n//\t\t}\r\n//\t\tfor (int i = 0; i < 5; i++) {\r\n//\t\t\tSystem.out.println(ana.heap.get(i).getValue());\r\n//\t\t}\r\n\t\tSystem.out.println(ana.similarity.size());\r\n//\t\tArrayList<Map.Entry<Integer, Double>> record = ana.getNeighbor(\"0155061224\");\r\n//\t\tSystem.out.println(ana.heap.size());\r\n//\t\tSystem.out.println(record.size());\r\n//\t\tfor(int i = 0; i < record.size(); i++){\r\n//\t\t\tSystem.out.println(record.get(i).getKey());\r\n//\t\t\tSystem.out.println(record.get(i).getValue());\r\n////\t\t\tSystem.out.println(ana.matrix[record.get(i).getKey()][ana.read.getItems().indexOf(3149)]);\r\n//\t\t}\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"score\" + ana.predictionBaseline(\"100\"));\r\n\t\tlong end = System.currentTimeMillis();\r\n\t\tSystem.out.println(end - start);\r\n//\t\tSystem.out.println(ana.predictionBaseline(\"0155061224\"));\r\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n DecisionTable decisionTable0 = new DecisionTable();\n String string0 = Evaluation.getGlobalInfo(decisionTable0);\n assertEquals(\"\\nSynopsis for weka.classifiers.rules.DecisionTable:\\n\\nClass for building and using a simple decision table majority classifier.\\n\\nFor more information see: \\n\\nRon Kohavi: The Power of Decision Tables. In: 8th European Conference on Machine Learning, 174-189, 1995.\", string0);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "Information getInfo();", "public Object getPerformanceAssessmentInstanceAnalysisRecord() {\n return performanceAssessmentInstanceAnalysisRecord;\n }", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "org.landxml.schema.landXML11.CrashDataDocument.CrashData addNewCrashData();", "@ApiStatus.Internal\npublic interface ICollector {\n\n void setup();\n\n void collect(final @NotNull PerformanceCollectionData performanceCollectionData);\n}", "public Boolean mo62647c() {\n C5155g.m3805a(3, \"Loading MetaData\");\n try {\n C5053l.m3365b(context2);\n MetaDataRequest metaDataRequest = new MetaDataRequest(context2, C5109a.PERIODIC);\n metaDataRequest.fillApplicationDetails(context2, adPreferences, false);\n metaDataRequest.fillLocationDetails(adPreferences, context2);\n this.f3479d = (MetaData) C4946i.m2905a(C5052a.m3348a(context2, AdsConstants.m2856a(ServiceApiType.METADATA), metaDataRequest, null).mo62865a(), MetaData.class);\n return Boolean.TRUE;\n } catch (Exception e) {\n C5155g.m3806a(6, \"Unable to handle GetMetaData command!!!!\", (Throwable) e);\n return Boolean.FALSE;\n }\n }", "@Override\n public void report() {\n\n try {\n File mFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/metrics.txt\");\n File eFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/latency_throughput.txt\");\n if (!mFile.exists()) {\n mFile.createNewFile();\n }\n if (!eFile.exists()) {\n eFile.createNewFile();\n }\n\n FileOutputStream mFileOut = new FileOutputStream(mFile, true);\n FileOutputStream eFileOut = new FileOutputStream(eFile, true);\n\n StringBuilder builder = new StringBuilder((int) (this.previousSize * 1.1D));\n StringBuilder eBuilder = new StringBuilder((int) (this.previousSize * 1.1D));\n\n// Instant now = Instant.now();\n LocalDateTime now = LocalDateTime.now();\n\n builder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n eBuilder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n\n builder.append(lineSeparator).append(\"---------- Counters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- records counter ----------\").append(lineSeparator);\n for (Map.Entry metric : counters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n if (( (String)metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Gauges ----------\").append(lineSeparator);\n for (Map.Entry metric : gauges.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Gauge) metric.getKey()).getValue()).append(lineSeparator);\n }\n\n builder.append(lineSeparator).append(\"---------- Meters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- throughput ----------\").append(lineSeparator);\n for (Map.Entry metric : meters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n if (((String) metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Histograms ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- lantency ----------\").append(lineSeparator);\n for (Map.Entry metric : histograms.entrySet()) {\n HistogramStatistics stats = ((Histogram) metric.getKey()).getStatistics();\n builder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n eBuilder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n }\n\n mFileOut.write(builder.toString().getBytes());\n eFileOut.write(eBuilder.toString().getBytes());\n mFileOut.flush();\n eFileOut.flush();\n mFileOut.close();\n eFileOut.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "Map<Modification, Integer> getUsedModifications(SpectrumAnnotatorResult spectrumAnnotatorResult);", "public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}", "java.lang.String getInsight();", "public void startRetriveDataInfo() {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_2);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_3);\n \n\t\t\t}\n\t\t}", "org.landxml.schema.landXML11.CrashDataDocument.CrashData getCrashDataArray(int i);", "public String globalInfo() {\n return \"Class for building and using a PRISM rule set for classification. \"\n + \"Can only deal with nominal attributes. Can't deal with missing values. \"\n + \"Doesn't do any pruning.\\n\\n\"\n + \"For more information, see \\n\\n\"\n + getTechnicalInformation().toString();\n }", "public void dump(String name) {\n String date = new SimpleDateFormat(\"c\",Locale.getDefault()).format(startDate);\n Log.v(\"Maply\", String.format(\"---MaplyTileFetcher %s Stats since %s---\",name,date));\n Log.v(\"Maply\", String.format(\" Active Requests = %d\",activeRequests) );\n Log.v(\"Maply\", String.format(\" Max Active Requests = %d\",maxActiveRequests) );\n Log.v(\"Maply\", String.format(\" Total Requests = %d\",totalRequests) );\n Log.v(\"Maply\", String.format(\" Canceled Requests = %d\",totalCancels) );\n Log.v(\"Maply\", String.format(\" Failed Requests = %d\",totalFails) );\n Log.v(\"Maply\", String.format(\" Data Transferred = %.2fMB\",(float)remoteData) );\n if (remoteRequests > 0) {\n Log.v(\"Maply\", String.format(\" Latency per request = %.2fms\",totalLatency / remoteRequests * 1000.0) );\n Log.v(\"Maply\", String.format(\" Average request size = %.2fKB\",remoteData / remoteRequests / 1024.0) );\n }\n Log.v(\"Maply\", String.format(\" Cached Data = %.2fMB\",localData / (1024.0*1024.0)) );\n }", "@Override\r\n\tpublic void doWorkFlowAnalysis() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void report() {\r\n\t}" ]
[ "0.57797366", "0.5678873", "0.5553709", "0.5349663", "0.53246987", "0.5300673", "0.5295737", "0.5271838", "0.5271726", "0.520586", "0.51903236", "0.5189542", "0.5174706", "0.514739", "0.51401687", "0.51302266", "0.5099555", "0.507947", "0.50716823", "0.5067516", "0.5058499", "0.5058055", "0.5054987", "0.50531363", "0.5053088", "0.505169", "0.5022799", "0.5010718", "0.50047785", "0.50046444", "0.49960423", "0.4994089", "0.49679855", "0.49675837", "0.49546307", "0.4949781", "0.49486926", "0.49484113", "0.4938259", "0.49366307", "0.49269634", "0.49226522", "0.49185756", "0.49166003", "0.49075386", "0.48906702", "0.489045", "0.4889536", "0.48885024", "0.48799405", "0.48713812", "0.4862491", "0.48582098", "0.48484483", "0.48458296", "0.48428452", "0.48336166", "0.48300245", "0.4825196", "0.48204952", "0.4819673", "0.4819015", "0.48144928", "0.48143443", "0.48142615", "0.48130578", "0.48123735", "0.4810228", "0.47979867", "0.47912663", "0.47902668", "0.47877213", "0.47865796", "0.47847772", "0.47842827", "0.47784758", "0.47781858", "0.47777915", "0.47761196", "0.47712958", "0.47701648", "0.476649", "0.47658846", "0.4765682", "0.47632068", "0.4760888", "0.4760155", "0.47590667", "0.47572884", "0.4755236", "0.47543588", "0.4753366", "0.47520024", "0.47481307", "0.47476438", "0.4747155", "0.4744482", "0.47395948", "0.4734328", "0.4733845" ]
0.51265174
16
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text generalinfo: The selection parameters for the analysis (e.g. period, algorithm type)
public String getPerformanceAssessmentInstanceAnalysisParameters() { return performanceAssessmentInstanceAnalysisParameters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n int activeThreshold = 300;\n //Activity.selectActive(\"st\", 6, activeThreshold);\n //Activity.selectActive(\"ri\", 6, activeThreshold);\n //Activity.selectActive(\"dw\", 9, activeThreshold);\n\n //Interaction.analysis(\"st\", 6);\n //Interaction.analysis(\"ri\", 6);\n\n //BehaviourIndicators.analysis(\"st\", 6);\n //BehaviourIndicators.analysis(\"ri\", 6);\n //BehaviourIndicators.analysis(\"dw\", 9);\n\n Engagement.analysis(\"st\",6);\n Engagement.analysis(\"ri\",6);\n //todo the data files for DW have to be adjusted to the ones of the other two to be able to run it\n //Engagement.analysis(\"dw\",9);\n\n //Motivation.analysis(\"ri\", 6);\n //Motivation.analysis(\"st\", 6);\n }", "public void term()\n \t{\n //\t\tfor(Iterator<Technology> tIt = Technology.getTechnologies(); tIt.hasNext(); )\n //\t\t{\n //\t\t\tTechnology tech = tIt.next();\n //\n // for (Iterator<Foundry> itF = tech.getFoundries(); itF.hasNext();)\n // {\n // Foundry foundry = itF.next();\n // HashMap<Layer,String> gdsLayers = new HashMap<Layer,String>();\n // for(Iterator<Layer> lIt = tech.getLayers(); lIt.hasNext(); )\n // {\n // Layer layer = lIt.next();\n // String str = get(foundry, layer);\n // GDSLayers numbers = GDSLayers.parseLayerString(str);\n // if (numbers == null) continue;\n //\n // Setting setting = foundry.getGDSLayerSetting(layer);\n // String oldStr = getString(setting);\n // GDSLayers oldNumbers = oldStr != null ? GDSLayers.parseLayerString(oldStr) : GDSLayers.EMPTY;\n // if (!oldNumbers.equals(numbers))\n // setString(setting, numbers.toString());\n // }\n // }\n //\t\t}\n setBoolean(gdsOutMergesBoxesSetting, gdsOutputMergesBoxes.isSelected());\n setBoolean(gdsOutWritesExportPinsSetting, gdsOutputWritesExportPins.isSelected());\n setBoolean(gdsOutUpperCaseSetting, gdsOutputUpperCase.isSelected());\n setInt(gdsOutDefaultTextLayerSetting, TextUtils.atoi(gdsDefaultTextLayer.getText()));\n setBoolean(gdsOutputConvertsBracketsInExportsSetting, gdsOutputConvertsBracketsInExports.isSelected());\n setInt(gdsCellNameLenMaxSetting, TextUtils.atoi(gdsCellNameLenMax.getText()));\n \t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "public String getFeatVect();", "@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"=== 선생 정보 ===\");\r\n\t\tsuper.getInfo();\r\n\t\tSystem.out.println(\"과목 : \" + text);\r\n\t}", "public DefaultMutableTreeNode execute(IFramework framework) throws AlgorithmException {\r\n\t\t//Before anything check for Mac OS and throw appropriate msg\r\n\t\tif(sysMsg(\"R 2.11.x\", \"GlobalAncova\") != JOptionPane.OK_OPTION)\r\n\t\t\treturn null;\r\n\t\t\r\n this.experiment = framework.getData().getExperiment(); \r\n this.data = framework.getData();\r\n exptNamesVector = new Vector<String>();\r\n int number_of_samples = experiment.getNumberOfSamples();\r\n \r\n int [] columnIndices = experiment.getColumnIndicesCopy(); \r\n \r\n sampleLabels = new ArrayList<String>();\r\n geneLabels = new ArrayList<String>();\r\n for (int i = 0; i < number_of_samples; i++) {\r\n exptNamesVector.add(framework.getData().getFullSampleName(columnIndices[i]));\r\n sampleLabels.add(framework.getData().getFullSampleName(columnIndices[i])); //Raktim\r\n } \r\n \t\r\n \r\n GLOBANCInitBox GLOBALANCDialog = new GLOBANCInitBox((JFrame)framework.getFrame(), true, exptNamesVector,framework.getData().getAllFilledAnnotationFields(), framework.getClusterRepository(1));\r\n GLOBALANCDialog.setVisible(true);\r\n \r\n annotChosen = GLOBALANCDialog.getSelectedAnnotation();\r\n for (int i = 0; i < experiment.getNumberOfGenes(); i++) {\r\n \tgeneLabels.add(framework.getData().getElementAnnotation(i, annotChosen)[0]);\r\n }\r\n \r\n if (!GLOBALANCDialog.isOkPressed()) return null;\r\n \r\n alpha = GLOBALANCDialog.getAlpha();\r\n dataDesign = 4;\r\n numGroups = GLOBALANCDialog.getNumGroups();\r\n numPerms = GLOBALANCDialog.getNumPerms();\r\n numFullGroups = GLOBALANCDialog.getNumFullGroups();\r\n numRedGroups = GLOBALANCDialog.getNumRedGroups();\r\n factorAName = GLOBALANCDialog.getFactorAName();\r\n factorBName = GLOBALANCDialog.getFactorBName();\r\n groupAssignments=GLOBALANCDialog.getGroupAssignments();\r\n geneSetFilePath = GLOBALANCDialog.getGeneSetFilePath();\r\n geneSetOrigin = GLOBALANCDialog.getGeneSetOrigin();\r\n if (groupAssignments == null)\r\n \treturn null;\r\n \r\n IDistanceMenu menu = framework.getDistanceMenu();\r\n int function = menu.getDistanceFunction();\r\n if (function == Algorithm.DEFAULT) {\r\n function = Algorithm.EUCLIDEAN;\r\n }\r\n \r\n \r\n Listener listener = new Listener();\r\n \r\n try {\r\n algorithm = framework.getAlgorithmFactory().getAlgorithm(\"GLOBANC\");\r\n algorithm.addAlgorithmListener(listener);\r\n \r\n this.progress = new Progress(framework.getFrame(), \"Running Global ANCOVA Analysis\", listener);\r\n this.progress.setIndeterminate(true);\r\n this.progress.setIndeterminantString(\"Running Analysis...\");\r\n this.progress.show();\r\n \r\n AlgorithmData data = new AlgorithmData();\r\n \r\n data.addMatrix(\"experiment\", experiment.getMatrix());\r\n data.addIntArray(\"group_assignments\", groupAssignments);\r\n data.addParam(\"dataDesign\", String.valueOf(dataDesign));\r\n data.addParam(\"numGroups\", String.valueOf(numGroups));\r\n data.addParam(\"alpha\", String.valueOf(alpha));\r\n data.addParam(\"numAGroups\",String.valueOf(numFullGroups));\r\n data.addParam(\"numPerms\",String.valueOf(numPerms));\r\n data.addParam(\"numBGroups\",String.valueOf(numRedGroups));\r\n data.addParam(\"nameA\",String.valueOf(factorAName));\r\n data.addParam(\"nameB\",String.valueOf(factorBName));\r\n data.addParam(\"geneSetOrigin\",String.valueOf(geneSetOrigin));\r\n data.addStringArray(\"geneSetFilePaths\", geneSetFilePath);\r\n if (dataDesign==5){\r\n data.addParam(\"numAGroups\",String.valueOf(2));\r\n data.addParam(\"numBGroups\",String.valueOf(numGroups));\r\n\t data.addParam(\"nameA\",String.valueOf(\"Condition\"));\r\n\t data.addParam(\"nameB\",String.valueOf(\"Time\"));\r\n }\r\n\r\n //Raktim\r\n data.addStringArray(\"geneLabels\", geneLabels.toArray(new String[geneLabels.size()]));\r\n data.addStringArray(\"sampleLabels\", sampleLabels.toArray(new String[sampleLabels.size()]));\r\n \r\n long start = System.currentTimeMillis();\r\n AlgorithmData result = algorithm.execute(data);\r\n long time = System.currentTimeMillis() - start;\r\n \r\n // getting the results\r\n Cluster result_cluster = result.getCluster(\"cluster\");\r\n this.means = result.getMatrix(\"clusters_means\");\r\n this.variances = result.getMatrix(\"clusters_variances\");\r\n \r\n this.geneLists = result.getIntMatrix(\"geneListsMatrix\");\r\n this.geneListNames = result.getStringArray(\"gene-list-names\");\r\n this.resultMatrix = result.getMatrix(\"result-matrix\"); \r\n FloatMatrix geneGroupMeansMatrix = result.getMatrix(\"geneGroupMeansMatrix\"); \r\n FloatMatrix geneGroupSDsMatrix = result.getMatrix(\"geneGroupSDsMatrix\");\r\n \r\n iterations = result.getParams().getInt(\"iterations\");\r\n \r\n geneGroupMeans = new float[geneGroupMeansMatrix.getRowDimension()][geneGroupMeansMatrix.getColumnDimension()];\r\n geneGroupSDs = new float[geneGroupSDsMatrix.getRowDimension()][geneGroupSDsMatrix.getColumnDimension()];\r\n for (int i = 0; i < geneGroupMeans.length; i++) {\r\n for (int j = 0; j < geneGroupMeans[i].length; j++) {\r\n geneGroupMeans[i][j] = geneGroupMeansMatrix.A[i][j];\r\n geneGroupSDs[i][j] = geneGroupSDsMatrix.A[i][j];\r\n }\r\n }\r\n GeneralInfo info = new GeneralInfo();\r\n info.time = time;\r\n //ADD MORE INFO PARAMETERS HERE\r\n info.alpha = alpha;\r\n info.function = menu.getFunctionName(function);\r\n Vector<String> titlesVector = new Vector<String>();\r\n for (int i = 0; i < geneGroupMeans[0].length; i++) {\r\n titlesVector.add(\"Group \" + (i+1) + \" mean\");\r\n titlesVector.add(\"Group \" + (i+1) + \" std.dev\");\r\n }\r\n\r\n titlesVector.add(\"F-values\");\r\n int x=1; int y=2;\r\n for (int i=0; i<getTotalInteractions(numGroups); i++) {\r\n\r\n titlesVector.add(\"significance-values, \"+x+\"vs.\"+y);\r\n titlesVector.add(\"adj-p-values, \"+x+\"vs.\"+y);\r\n titlesVector.add(\"log fold change, \"+x+\"vs.\"+y);\r\n titlesVector.add(\"t-statistic, \"+x+\"vs.\"+y);\r\n titlesVector.add(\"log-odds, \"+x+\"vs.\"+y);\r\n \t\r\n y++;\r\n if (y>numGroups){\r\n \tx++;\r\n \ty=x+1;\r\n }\r\n }\r\n \r\n auxTitles = new String[titlesVector.size()];\r\n for (int i = 0; i < auxTitles.length; i++) {\r\n auxTitles[i] = (String)(titlesVector.get(i));\r\n }\r\n \r\n auxData = new Object[experiment.getNumberOfGenes()][auxTitles.length];\r\n for (int i = 0; i < auxData.length; i++) {\r\n int counter = 0;\r\n for (int j = 0; j < geneGroupMeans[i].length; j++) {\r\n auxData[i][counter++] = new Float(geneGroupMeans[i][j]);\r\n auxData[i][counter++] = new Float(geneGroupSDs[i][j]);\r\n }\r\n }\r\n return createResultTree(result_cluster, info);\r\n \r\n } finally {\r\n if (algorithm != null) {\r\n algorithm.removeAlgorithmListener(listener);\r\n }\r\n if (progress != null) {\r\n progress.dispose();\r\n }\r\n }\r\n }", "private void analysisText(){\n\n FileOutput fout = null;\n if(this.fileNumberingSet){\n fout = new FileOutput(this.outputFilename, 'n');\n }\n else{\n fout = new FileOutput(this.outputFilename);\n }\n\n // perform PCA if not already performed\n if(!pcaDone)this.pca();\n if(!this.monteCarloDone)this.monteCarlo();\n\n // output title\n fout.println(\"PRINCIPAL COMPONENT ANALYSIS\");\n fout.println(\"Program: PCA - Analysis Output\");\n for(int i=0; i<this.titleLines; i++)fout.println(title[i]);\n Date d = new Date();\n String day = DateFormat.getDateInstance().format(d);\n String tim = DateFormat.getTimeInstance().format(d);\n fout.println(\"Program executed at \" + tim + \" on \" + day);\n fout.println();\n if(this.covRhoOption){\n fout.println(\"Covariance matrix used\");\n }\n else{\n fout.println(\"Correlation matrix used\");\n }\n fout.println();\n\n // output eigenvalue table\n // field width\n int field1 = 10;\n int field2 = 12;\n int field3 = 2;\n\n fout.println(\"ALL EIGENVALUES\");\n\n fout.print(\"Component \", field1);\n fout.print(\"Unordered \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.println(\"Difference \");\n\n fout.print(\" \", field1);\n fout.print(\"index\", field1);\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.println(\" \");\n\n\n\n for(int i=0; i<this.nItems; i++){\n fout.print(i+1, field1);\n fout.print((this.eigenValueIndices[i]+1), field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[i], this.trunc), field2);\n if(i<this.nItems-1){\n fout.print(Fmath.truncate((this.orderedEigenValues[i] - this.orderedEigenValues[i+1]), this.trunc), field2);\n }\n else{\n fout.print(\" \", field2);\n }\n fout.print(\" \", field3);\n\n fout.println();\n }\n fout.println();\n\n\n // Extracted components\n int nMax = this.greaterThanOneLimit;\n if(nMax<this.meanCrossover)nMax=this.meanCrossover;\n if(nMax<this.percentileCrossover)nMax=this.percentileCrossover;\n fout.println(\"EXTRACTED EIGENVALUES\");\n fout.print(\" \", field1);\n fout.print(\"Greater than unity\", 3*field2 + field3);\n fout.print(\"Greater than Monte Carlo Mean \", 3*field2 + field3);\n fout.println(\"Greater than Monte Carlo Percentile\");\n\n fout.print(\"Component \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.println(\" \");\n\n fout.print(\" \", field1);\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.println(\" \");\n\n int ii=0;\n while(ii<nMax){\n fout.print(ii+1, field1);\n\n if(ii<this.greaterThanOneLimit){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc), (field2+field3));\n }\n\n if(ii<this.meanCrossover){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc), (field2+field3));\n }\n\n if(ii<this.percentileCrossover){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc));\n }\n fout.println();\n ii++;\n }\n fout.println();\n\n\n fout.println(\"PARALLEL ANALYSIS\");\n fout.println(\"Number of simulations = \" + this.nMonteCarlo);\n if(this.gaussianDeviates){\n fout.println(\"Gaussian random deviates used\");\n }\n else{\n fout.println(\"Uniform random deviates used\");\n }\n fout.println(\"Percentile value used = \" + this.percentile + \" %\");\n\n fout.println();\n fout.print(\"Component \", field1);\n fout.print(\"Data \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n fout.print(\"Data \", field2);\n fout.print(\"Monte Carlo \", field2);\n fout.print(\"Monte Carlo \", field2);\n fout.println(\"Monte Carlo \");\n\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Eigenvalue \", field2);\n fout.println(\"Eigenvalue \");\n\n fout.print(\" \", field1);\n fout.print(\" \", field2);\n fout.print(\" \", field2);\n fout.print(\" \", field2);\n fout.print(\" \", field3);\n fout.print(\" \", field2);\n fout.print(\"Percentile \", field2);\n fout.print(\"Mean \", field2);\n fout.println(\"Standard Deviation \");\n\n for(int i=0; i<this.nItems; i++){\n fout.print(i+1, field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[i], this.trunc), field2);\n fout.print(\" \", field3);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.randomEigenValuesPercentiles[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.randomEigenValuesMeans[i], this.trunc), field2);\n fout.println(Fmath.truncate(this.randomEigenValuesSDs[i], this.trunc));\n }\n fout.println();\n\n // Correlation Matrix\n fout.println(\"CORRELATION MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.correlationMatrix.getElement(j,i), this.trunc), field2);\n fout.println();\n }\n fout.println();\n\n // Covariance Matrix\n fout.println(\"COVARIANCE MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.covarianceMatrix.getElement(j,i), this.trunc), field2);\n fout.println();\n }\n\n fout.println();\n\n // Eigenvectors\n fout.println(\"EIGENVECTORS\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println(\"Vector corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.orderedEigenVectorsAsRows[i][j], this.trunc), field2);\n fout.println();\n }\n fout.println();\n\n // Loading factors\n fout.println(\"LOADING FACTORS\");\n fout.println(\"Original indices in parenthesis\");\n fout.println(\"Loading factors corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue\", field2);\n fout.print(\"Proportion\", field2);\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n for(int i=0; i<this.nItems; i++){\n fout.print((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.loadingFactorsAsRows[i][j], this.trunc), field2);\n fout.print(\" \", field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(proportionPercentage[i], this.trunc), field2);\n fout.println(Fmath.truncate(cumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n // Rotated loading factors\n fout.println(\"ROTATED LOADING FACTORS\");\n if(this.varimaxOption){\n fout.println(\"NORMAL VARIMAX\");\n }\n else{\n fout.println(\"RAW VARIMAX\");\n }\n\n String message = \"The ordered eigenvalues with Monte Carlo means and percentiles in parenthesis\";\n message += \"\\n (Total number of eigenvalues = \" + this.nItems + \")\";\n int nDisplay = this.nItems;\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int screenHeight = screenSize.height;\n int nDisplayLimit = 20*screenHeight/800;\n if(nDisplay>nDisplay)nDisplay = nDisplayLimit;\n for(int i=0; i<nDisplay; i++){\n message += \"\\n \" + Fmath.truncate(this.orderedEigenValues[i], 4) + \" (\" + Fmath.truncate(this.randomEigenValuesMeans[i], 4) + \" \" + Fmath.truncate(this.randomEigenValuesPercentiles[i], 4) + \")\";\n }\n if(nDisplay<this.nItems)message += \"\\n . . . \";\n message += \"\\nEnter number of eigenvalues to be extracted\";\n int nExtracted = this.greaterThanOneLimit;\n nExtracted = Db.readInt(message, nExtracted);\n this.varimaxRotation(nExtracted);\n\n fout.println(\"Varimax rotation for \" + nExtracted + \" extracted factors\");\n fout.println(\"Rotated loading factors and eigenvalues scaled to ensure total 'rotated variance' matches unrotated variance for the extracted factors\");\n fout.println(\"Original indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.rotatedIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue\", field2);\n fout.print(\"Proportion\", field2);\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n\n for(int i=0; i<nExtracted; i++){\n fout.print((i+1) + \" (\" + (rotatedIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.rotatedLoadingFactorsAsRows[i][j], this.trunc), field2);\n fout.print(\" \", field1);\n fout.print(Fmath.truncate(rotatedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(rotatedProportionPercentage[i], this.trunc), field2);\n fout.println(Fmath.truncate(rotatedCumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n fout.println(\"DATA USED\");\n fout.println(\"Number of items = \" + this.nItems);\n fout.println(\"Number of persons = \" + this.nPersons);\n\n\n if(this.originalDataType==0){\n fout.printtab(\"Item\");\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n }\n fout.println();\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n for(int j=0; j<this.nPersons; j++){\n fout.printtab(Fmath.truncate(this.scores0[i][j], this.trunc));\n }\n fout.println();\n }\n }\n else{\n fout.printtab(\"Person\");\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n }\n fout.println();\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n for(int j=0; j<this.nItems; j++){\n fout.printtab(Fmath.truncate(this.scores1[i][j], this.trunc));\n }\n fout.println();\n }\n }\n\n fout.close();\n }", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public void analysis(){\n\n\n this.outputFilename = \"PCAOutput\";\n if(this.fileOption==1){\n this.outputFilename += \".txt\";\n }\n else{\n this.outputFilename += \".xls\";\n }\n String message1 = \"Output file name for the analysis details:\";\n String message2 = \"\\nEnter the required name (as a single word) and click OK \";\n String message3 = \"\\nor simply click OK for default value\";\n String message = message1 + message2 + message3;\n String defaultName = this.outputFilename;\n this.outputFilename = Db.readLine(message, defaultName);\n this.analysis(this.outputFilename);\n }", "public String globalInfo() {\n\t return \n\t \"The CISearchAlgorithm class supports Bayes net structure \"\n\t + \"search algorithms that are based on conditional independence \"\n\t + \"test (as opposed to for example score based of cross validation \"\n\t + \"based search algorithms).\";\n\t}", "private void filterFeatureswithtext() throws Exception {\n\t\ttry {\r\n\t\t\t//source = dataStore.getFeatureSource(typeName);\r\n\t\t\tString sql = text.getText();\r\n\t\t\tString filtertype = \"include\";\r\n\t\t\tString[] cql = sql.split(\":\");\r\n\t\t\tHints h = new Hints();\r\n \t\t\th.put(Hints.FILTER_FACTORY, ISOFilterFactoryImpl.class);\r\n \t\t\tFilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(h);\r\n \t\t\tWKTReader wktr = new WKTReader(DefaultGeographicCRS.WGS84_3D);\r\n \t\t\tFilter filter = CQL.toFilter(\"include\");\r\n \t\t\tlong start = System.currentTimeMillis();\r\n \t\t\tList<SimpleFeature> sfs = new ArrayList<SimpleFeature>();\r\n \t\t\tSimpleFeatureIterator iterator = currentfeatures.features();\r\n \t\t\t\r\n \t\t\tif(cql.length > 1 && cql[2].startsWith(\"BBOX3D\")) {\r\n \t\t\t cql[2] = cql[2].replaceAll(\"BBOX3D\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\(\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\)\", \"\");\r\n \t\t\t \r\n \t\t\t String[] coords = cql[2].split(\",\");\r\n \t\t\t \r\n \t\t\t String[] lowerStr = coords[0].trim().split(\" \");\r\n \t\t\t String[] upperStr = coords[1].trim().split(\" \");\r\n \t\t\t \r\n \t\t\t double[] lower = new double[3];\r\n \t\t\t double[] upper = new double[3];\r\n \t\t\t \r\n \t\t\t lower[0] = Double.parseDouble(lowerStr[0]);\r\n lower[1] = Double.parseDouble(lowerStr[1]);\r\n lower[2] = Double.parseDouble(lowerStr[2]);\r\n \r\n upper[0] = Double.parseDouble(upperStr[0]);\r\n upper[1] = Double.parseDouble(upperStr[1]);\r\n upper[2] = Double.parseDouble(upperStr[2]);\r\n \r\n DirectPosition lowerCorner = builder.createDirectPosition(lower);\r\n DirectPosition upperCorner = builder.createDirectPosition(upper);\r\n \r\n Solid s = makeFromEnvelope(builder, lowerCorner, upperCorner);\r\n cql[2] = s.toString();\r\n\r\n Document d = encode(s);\r\n //System.out.println(d);\r\n\r\n //System.out.println(cql[2]);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(cql[0].equalsIgnoreCase(\"contains\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.contains(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"contains \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"within\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.within(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"within \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"equals\")) {\r\n \t\t\t\tfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"equals \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"intersects\")) {\r\n \t\t\t\tFilter getidfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\t\r\n \t\t\t\twhile (iterator.hasNext()) {\r\n \t\t\t\t\tSimpleFeature feature = iterator.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tif(getidfilter.evaluate(feature)) {\r\n \t\t\t\t\t\tfeatureid = feature.getID();\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\tfilter = ff.intersects(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"intersects \";\r\n \t\t\t}\r\n \t\t\t\r\n\t\t\t//SimpleFeatureCollection features = source.getFeatures(filter);\r\n \t\t\titerator = currentfeatures.features();\r\n\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\tSimpleFeature feature = iterator.next();\r\n\t\t\t\tSystem.out.print(featureid + \" : \" + feature.getID() + \" \");\r\n\t\t\t\tif(filter.evaluate(feature)) {\r\n\t\t\t\t\tsfs.add(feature);\r\n\t\t\t\t\tSystem.out.println(\"true\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tSystem.out.println(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(sfs.size() == 0) {\r\n\t\t\t\ttable.setModel(new DefaultTableModel(5, 5));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tSimpleFeatureCollection result = ISODataUtilities.collection(sfs);\r\n \t\t\t\r\n\t\t\tlong end = System.currentTimeMillis();\r\n\t\t\t//System.out.println( \"실행 시간 : \" + ( end - start )/1000.0 );\r\n\t\t\tlabel.setText(filtertype + \"complete : \" + ( end - start )/1000.0 + \" sec\");\r\n\t\t\tFeatureCollectionTableModel model = new FeatureCollectionTableModel(result);\r\n\t\t\ttable.setModel(model);\r\n\t\t\t\r\n\t\t} catch (CQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "@Override\n public String getToolDescription() {\n \treturn \"Preforms a stochastic analysis of depressions within a DEM\";\n }", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n DecisionTable decisionTable0 = new DecisionTable();\n String string0 = Evaluation.getGlobalInfo(decisionTable0);\n assertEquals(\"\\nSynopsis for weka.classifiers.rules.DecisionTable:\\n\\nClass for building and using a simple decision table majority classifier.\\n\\nFor more information see: \\n\\nRon Kohavi: The Power of Decision Tables. In: 8th European Conference on Machine Learning, 174-189, 1995.\", string0);\n }", "public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "@Override\n\tpublic void process(JCas aJCas) throws AnalysisEngineProcessException {\n\t\tString text = aJCas.getDocumentText();\n\n\t\t// create an empty Annotation just with the given text\n\t\tAnnotation document = new Annotation(text);\n//\t\tAnnotation document = new Annotation(\"Barack Obama was born in Hawaii. He is the president. Obama was elected in 2008.\");\n\n\t\t// run all Annotators on this text\n\t\tpipeline.annotate(document); \n\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class);\n\t\t HelperDataStructures hds = new HelperDataStructures();\n\n\t\t\n\t\t//SPnew language-specific settings:\n\t\t//SPnew subject tags of the parser\n\t\t HashSet<String> subjTag = new HashSet<String>(); \n\t\t HashSet<String> dirObjTag = new HashSet<String>(); \n\t\t //subordinate conjunction tags\n\t\t HashSet<String> compTag = new HashSet<String>(); \n\t\t //pronoun tags\n\t\t HashSet<String> pronTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> passSubjTag = new HashSet<String>();\n\t\t HashSet<String> apposTag = new HashSet<String>(); \n\t\t HashSet<String> verbComplementTag = new HashSet<String>(); \n\t\t HashSet<String> infVerbTag = new HashSet<String>(); \n\t\t HashSet<String> relclauseTag = new HashSet<String>(); \n\t\t HashSet<String> aclauseTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> compLemma = new HashSet<String>(); \n\t\t HashSet<String> coordLemma = new HashSet<String>(); \n\t\t HashSet<String> directQuoteIntro = new HashSet<String>(); \n\t\t HashSet<String> indirectQuoteIntroChunkValue = new HashSet<String>();\n\t\t \n//\t\t HashSet<String> finiteVerbTag = new HashSet<String>();\n\t\t \n\n\t\t //OPEN ISSUES PROBLEMS:\n\t\t //the subject - verb relation finding does not account for several specific cases: \n\t\t //opinion verbs with passive subjects as opinion holder are not accounted for,\n\t\t //what is needed is a marker in the lex files like PASSSUBJ\n\t\t //ex: Obama is worried/Merkel is concerned\n\t\t //Many of the poorer countries are concerned that the reduction in structural funds and farm subsidies may be detrimental in their attempts to fulfill the Copenhagen Criteria.\n\t\t //Some of the more well off EU states are also worried about the possible effects a sudden influx of cheap labor may have on their economies. Others are afraid that regional aid may be diverted away from those who currently benefit to the new, poorer countries that join in 2004 and beyond. \n\t\t// Does not account for infinitival constructions, here again a marker is needed to specify\n\t\t //subject versus object equi\n\t\t\t//Christian Noyer was reported to have said that it is ok.\n\t\t\t//Reuters has reported Christian Noyer to have said that it is ok.\n\t\t //Obama is likely to have said.. \n\t\t //Several opinion holder- opinion verb pairs in one sentence are not accounted for, right now the first pair is taken.\n\t\t //what is needed is to run through all dependencies. For inderect quotes the xcomp value of the embedded verb points to the \n\t\t //opinion verb. For direct quotes the offsets closest to thwe quote are relevant.\n\t\t //a specific treatment of inverted subjects is necessary then. Right now the\n\t\t //strategy relies on the fact that after the first subj/dirobj - verb pair the\n\t\t //search is interrupted. Thus, if the direct object precedes the subject, it is taken as subject.\n\t\t // this is the case in incorrectly analysed inverted subjeects as: said Zwickel on Monday\n\t\t //coordination of subject not accounted for:employers and many economists\n\t\t //several subject-opinion verbs:\n\t\t //Zwickel has called the hours discrepancy between east and west a \"fairness gap,\" but employers and many economists point out that many eastern operations have a much lower productivity than their western counterparts.\n\t\t if (language.equals(\"en\")){\n \t subjTag.add(\"nsubj\");\n \t subjTag.add(\"xsubj\");\n \t subjTag.add(\"nmod:agent\");\n \t \n \t dirObjTag.add(\"dobj\"); //for inverted subject: \" \" said IG metall boss Klaus Zwickel on Monday morning.\n \t \t\t\t\t\t\t//works only with break DEPENDENCYSEARCH, otherwise \"Monday\" is nsubj \n \t \t\t\t\t\t\t//for infinitival subject of object equi: Reuters reports Obama to have said\n \tpassSubjTag.add(\"nsubjpass\");\n \tapposTag.add(\"appos\");\n \trelclauseTag.add(\"acl:relcl\");\n \taclauseTag.add(\"acl\");\n \t compTag.add(\"mark\");\n \t pronTag.add(\"prp\");\n \thds.pronTag.add(\"prp\");\n \tcompLemma.add(\"that\");\n \tcoordLemma.add(\"and\");\n \tverbComplementTag.add(\"ccomp\");\n \tverbComplementTag.add(\"parataxis\");\n\n \tinfVerbTag.add(\"xcomp\"); //Reuters reported Merkel to have said\n \tinfVerbTag.add(\"advcl\");\n \tdirectQuoteIntro.add(\":\");\n \tindirectQuoteIntroChunkValue.add(\"SBAR\");\n \thds.objectEqui.add(\"report\");\n \thds.objectEqui.add(\"quote\");\n \thds.potentialIndirectQuoteTrigger.add(\"say\");\n// \thds.objectEqui.add(\"confirm\");\n// \thds.subjectEqui.add(\"promise\");\n// \thds.subjectEqui.add(\"quote\");\n// \thds.subjectEqui.add(\"confirm\");\n }\n\t\t \n\t\t boolean containsSubordinateConjunction = false;\n\t\t\n\t\t \n\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tSystem.out.println(\"PREPROCESSING..\");\n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\t//SP Map offsets to NER\n\t\t\t\tList<NamedEntity> ners = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tNamedEntity.class, sentenceAnn);\n\t\t\t\tfor (NamedEntity ne : ners){\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.getCoveredText().toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.casTypeCode);\n\t\t\t\t\t//Person is 71, Location is 213, Organization is 68 geht anders besser siehe unten\n\t\t\t\t\tint nerStart = ne\n\t\t\t\t\t\t\t.getBegin();\n\t\t\t\t\tint nerEnd = ne.getEnd();\n//\t\t\t\t\tSystem.out.println(\"NER: \" + ne.getCoveredText() + \" \" + nerStart + \"-\" + nerEnd ); \n\t\t\t\t\tString offsetNer = \"\" + nerStart + \"-\" + nerEnd;\n\t\t\t\t\thds.offsetToNer.put(offsetNer, ne.getCoveredText());\n//\t\t\t\t\tNer.add(offsetNer);\n\t\t\t\t\thds.Ner.add(offsetNer);\n//\t\t\t\t\tSystem.out.println(\"NER: TYPE \" +ne.getValue().toString());\n\t\t\t\t\tif (ne.getValue().equals(\"PERSON\")){\n\t\t\t\t\t\thds.NerPerson.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t\telse if (ne.getValue().equals(\"ORGANIZATION\")){\n\t\t\t\t\t\thds.NerOrganization.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//DBpediaLink info: map offsets to links\n\t\t\t\tList<DBpediaResource> dbpeds = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tDBpediaResource.class, sentenceAnn);\n\t\t\t\tfor (DBpediaResource dbped : dbpeds){\n//\t\t\t\t\t\n//\t\t\t\t\tint dbStart = dbped\n//\t\t\t\t\t\t\t.getBegin();\n//\t\t\t\t\tint dbEnd = dbped.getEnd();\n\t\t\t\t\t// not found if dbpedia offsets are wrongly outside than sentences\n//\t\t\t\t\tSystem.out.println(\"DBPED SENT: \" + sentenceAnn.getBegin()+ \"-\" + sentenceAnn.getEnd() ); \n//\t\t\t\t\tString offsetDB = \"\" + dbStart + \"-\" + dbEnd;\n//\t\t\t\t\thds.labelToDBpediaLink.put(dbped.getLabel(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getLabel() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t\thds.dbpediaSurfaceFormToDBpediaLink.put(dbped.getCoveredText(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getCoveredText() + \"URI: \" + dbped.getUri() ); \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\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//SP Map offsets to lemma of opinion verb/noun; parser does not provide lemma\n\t\t\t\t for (CoreLabel token: sentence.get(TokensAnnotation.class)) {\n//\t\t\t\t\t System.out.println(\"LEMMA \" + token.lemma().toString());\n\t\t\t\t\t int beginTok = token.beginPosition();\n\t\t\t\t\t int endTok = token.endPosition();\n\t\t\t\t\t String offsets = \"\" + beginTok + \"-\" + endTok;\n\t\t\t\t\t hds.offsetToLemma.put(offsets, token.lemma().toString());\n\t\t\t\t\t \n\t\t\t\t\t \t if (opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t \n//\t\t\t \t System.out.println(\"offsetToLemmaOfOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\t\t\t\t\t \t if (passive_opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfPassiveOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n//\t\t\t \t System.out.println(\"offsetToLemmaOfPassiveOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\n\t\t\t\t } \n\n\t\t\t//SPnew parser\n\t\t\tTree tree = sentence.get(TreeAnnotation.class);\n\t\t\tTreebankLanguagePack tlp = new PennTreebankLanguagePack();\n\t\t\tGrammaticalStructureFactory gsf = tlp.grammaticalStructureFactory();\n\t\t\tGrammaticalStructure gs = gsf.newGrammaticalStructure(tree);\n\t\t\tCollection<TypedDependency> td = gs.typedDependenciesCollapsed();\n\n\t\t\t \n//\t\t\tSystem.out.println(\"TYPEDdep\" + td);\n\t\t\t\n\t\t\tObject[] list = td.toArray();\n//\t\t\tSystem.out.println(list.length);\n\t\t\tTypedDependency typedDependency;\nDEPENDENCYSEARCH: for (Object object : list) {\n\t\t\ttypedDependency = (TypedDependency) object;\n//\t\t\tSystem.out.println(\"DEP \" + typedDependency.dep().toString()+ \n//\t\t\t\t\t\" GOV \" + typedDependency.gov().toString()+ \n//\t\t\t\" :: \"+ \" RELN \"+typedDependency.reln().toString());\n\t\t\tString pos = null;\n String[] elements;\n String verbCand = null;\n int beginVerbCand = -5;\n\t\t\tint endVerbCand = -5;\n\t\t\tString offsetVerbCand = null;\n\n if (compTag.contains(typedDependency.reln().toString())) {\n \tcontainsSubordinateConjunction = true;\n// \tSystem.out.println(\"subordConj \" + typedDependency.dep().toString().toLowerCase());\n }\n \n else if (subjTag.contains(typedDependency.reln().toString())){\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \t\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tfor (HashMap.Entry<String, String> entry : hds.offsetToLemma.entrySet()) {\n//\t\t\t\t String key = entry.getKey();\n//\t\t\t\t Object value = entry.getValue();\n//\t\t\t\t System.out.println(\"OFFSET \" + key + \" LEMMA \" + value);\n//\t\t\t\t // FOR LOOP\n//\t\t\t\t}\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println(\"SUBJCHAINHEAD1\");\n\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\tSystem.out.println(\"verbCand \" + verbCand);\n\t\t\t\t//hack for subj after obj said Zwickel (obj) on Monday morning (subj)\n\t\t\t\tif (language.equals(\"en\") \n\t\t\t\t\t\t&& hds.predicateToObject.containsKey(offsetVerbCand)\n\t\t\t\t\t\t){\n// \t\tSystem.out.println(\"CONTINUE DEP\");\n \t\tcontinue DEPENDENCYSEARCH;\n \t}\n\t\t\t\telse {\n\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n\t\t\t\t}\n }\n //Merkel is concerned\n else if (passSubjTag.contains(typedDependency.reln().toString())){\n \t//Merkel was reported\n \t//Merkel was concerned\n \t//Merkel was quoted\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n////\t\t\t\t\tSystem.out.println(\"LEMMA verbCand \" + verbCandLemma);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n \t\n \tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n// \tSystem.out.println(\"SUBJCHAINHEAD2\");\n \t//Merkel is concerned\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfPassiveOpinionVerb,\n \t\t\thds);\n }\n //Meanwhile, the ECB's vice-president, Christian Noyer, was reported at the start of the week to have said that the bank's future interest-rate moves\n// would depend on the behavior of wage negotiators as well as the pace of the economic recovery.\n\n else if (apposTag.contains(typedDependency.reln().toString())){\n \t\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tString appo = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tint beginAppo = typedDependency.dep().beginPosition();\n\t\t\t\tint endAppo = typedDependency.dep().endPosition();\n\t\t\t\tString offsetAppo = \"\" + beginAppo + \"-\" + endAppo;\n\t\t\t\t\n// \tSystem.out.println(\"APPOSITION1 \" + subjCand + \"::\"+ appo + \":\" + offsetSubjCand + \" \" + offsetAppo);\n \thds.subjectToApposition.put(offsetSubjCand, offsetAppo);\n }\n else if (relclauseTag.contains(typedDependency.reln().toString())){\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tverbCand = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.dep().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.dep().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\tString subjCandPos = null;\n\t\t\t\tif (hds.predicateToSubject.containsKey(offsetVerbCand)){\n\t\t\t\t\t\n\t\t\t\t\tif (subjCand.matches(\".+?/.+?\")) { \n\t\t\t\t\t\telements = subjCand.split(\"/\");\n\t\t\t\t\t\tsubjCand = elements[0];\n\t\t\t\t\t\tsubjCandPos = elements[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tString del = hds.predicateToSubject.get(offsetVerbCand);\n\t\t\t\t\thds.predicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToPredicate.remove(del);\n\t\t\t\t\thds.normalPredicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToNormalPredicate.remove(del);\n//\t\t\t\t\tSystem.out.println(\"REMOVE RELPRO \" + verbCand + \"/\" + hds.offsetToLemma.get(del));\n\t\t\t\t\thds.predicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToPredicate.put( offsetSubjCand, offsetVerbCand);\n\t\t\t\t\thds.normalPredicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToNormalPredicate.put( offsetSubjCand, offsetVerbCand);\n//\t\t\t\t\tSystem.out.println(\"RELCLAUSE \" + subjCand + \"::\" + \":\" + verbCand);\n\t\t\t\t\thds.offsetToSubjectHead.put(offsetSubjCand,subjCand);\n\t\t\t\t\thds.SubjectHead.add(offsetSubjCand);\n\t\t\t\t\t\n\t\t\t\t\tif (subjCandPos != null && hds.pronTag.contains(subjCandPos)){\n\t\t\t\t\t\thds.PronominalSubject.add(offsetSubjCand);\n\t\t\t\t\t}\n\t\t\t\t}\n \t\n \t\n }\n \n else if (dirObjTag.contains(typedDependency.reln().toString())\n \t\t){\n \tstoreRelations(typedDependency, hds.predicateToObject, hds.ObjectToPredicate, hds);\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\t\n\t\t\t\tString objCand = typedDependency.dep().toString().toLowerCase();\n \tint beginObjCand = typedDependency.dep().beginPosition();\n \tint endObjCand = typedDependency.dep().endPosition();\n \tString offsetObjCand = \"\" + beginObjCand + \"-\" + endObjCand;\n \tString objCandPos;\n \tif (objCand.matches(\".+?/.+?\")) { \n\t\t\t\t\telements = objCand.split(\"/\");\n\t\t\t\t\tobjCand = elements[0];\n\t\t\t\t\tobjCandPos = elements[1];\n//\t\t\t\t\tSystem.out.println(\"PRON OBJ \" + objCandPos);\n\t\t\t\t\tif (pronTag.contains(objCandPos)){\n\t\t\t\t\thds.PronominalSubject.add(offsetObjCand);\n\t\t\t\t\t}\n\t\t\t\t\t}\n// \tSystem.out.println(\"DIROBJ STORE ONLY\");\n \t//told Obama\n \t//said IG metall boss Klaus Zwickel\n \t// problem: pointing DO\n \t//explains David Gems, pointing out the genetically manipulated species.\n \t if (language.equals(\"en\") \n \t\t\t\t\t\t&& !hds.normalPredicateToSubject.containsKey(offsetVerbCand)\n \t\t\t\t\t\t){\n// \t\t System.out.println(\"INVERSE SUBJ HACK ENGLISH PREDTOOBJ\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t }\n }\n //was reported to have said\n else if (infVerbTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.mainToInfinitiveVerb, hds.infinitiveToMainVerb, hds);\n// \tSystem.out.println(\"MAIN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n else if (aclauseTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.nounToInfinitiveVerb, hds.infinitiveVerbToNoun, hds);\n// \tSystem.out.println(\"NOUN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n \n \n\n\t\t\t}\n\t\t\t\n//\t\t\tSemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class);\n//\t\t\tSystem.out.println(\"SEM-DEP \" + dependencies);\t\n\t\t}\n\t\t\n\n\t\tMap<Integer, edu.stanford.nlp.dcoref.CorefChain> corefChains = document.get(CorefChainAnnotation.class);\n\t\t \n\t\t if (corefChains == null) { return; }\n\t\t //SPCOPY\n\t\t for (Entry<Integer, edu.stanford.nlp.dcoref.CorefChain> entry: corefChains.entrySet()) {\n//\t\t System.out.println(\"Chain \" + entry.getKey() + \" \");\n\t\t \tint chain = entry.getKey();\n\t\t String repMenNer = null;\n\t\t String repMen = null;\n\t\t String offsetRepMenNer = null;\n\n\t\t List<IaiCorefAnnotation> listCorefAnnotation = new ArrayList<IaiCorefAnnotation>();\n\t\t \n\t\t for (CorefMention m : entry.getValue().getMentionsInTextualOrder()) {\n\t\t \tboolean corefMentionContainsNer = false;\n\t\t \tboolean repMenContainsNer = false;\n\n//\t\t \n\n\t\t\t\t// We need to subtract one since the indices count from 1 but the Lists start from 0\n\t\t \tList<CoreLabel> tokens = sentences.get(m.sentNum - 1).get(TokensAnnotation.class);\n\t\t // We subtract two for end: one for 0-based indexing, and one because we want last token of mention not one following.\n//\t\t System.out.println(\" \" + m + \", i.e., 0-based character offsets [\" + tokens.get(m.startIndex - 1).beginPosition() +\n//\t\t \", \" + tokens.get(m.endIndex - 2).endPosition() + \")\");\n\t\t \n\t\t int beginCoref = tokens.get(m.startIndex - 1).beginPosition();\n\t\t\t\t int endCoref = tokens.get(m.endIndex - 2).endPosition();\n\t\t\t\t String offsetCorefMention = \"\" + beginCoref + \"-\" + endCoref;\n\t\t\t\t String corefMention = m.mentionSpan;\n\n\t\t\t\t CorefMention RepresentativeMention = entry.getValue().getRepresentativeMention();\n\t\t\t\t repMen = RepresentativeMention.mentionSpan;\n\t\t\t\t List<CoreLabel> repMenTokens = sentences.get(RepresentativeMention.sentNum - 1).get(TokensAnnotation.class);\n//\t\t\t\t System.out.println(\"REPMEN ANNO \" + \"\\\"\" + repMen + \"\\\"\" + \" is representative mention\" +\n// \", i.e., 0-based character offsets [\" + repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition() +\n//\t\t \", \" + repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition() + \")\");\n\t\t\t\t int beginRepMen = repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition();\n\t\t\t\t int endRepMen = repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition();\n\t\t\t\t String offsetRepMen = \"\" + beginRepMen + \"-\" + endRepMen;\n\t\t \t \n\t\t\t\t//Determine repMenNer that consists of largest NER (Merkel) to (Angela Merkel)\n\t\t\t\t //and \"Chancellor \"Angela Merkel\" to \"Angela Merkel\"\n\t\t \t //Further reduction to NER as in \"Chancellor Angela Merkel\" to \"Angela Merkel\" is\n\t\t\t\t //done in determineBestSubject. There, Chunk information and subjectHead info is available.\n\t\t\t\t //Chunk info and subjectHead info is used to distinguish \"Chancellor Angela Merkel\" to \"Angela Merkel\"\n\t\t\t\t //from \"The enemies of Angela Merkel\" which is not reduced to \"Angela Merkel\"\n\t\t\t\t //Problem solved: The corefMentions of a particular chain do not necessarily have the same RepMenNer (RepMen) \n\t\t\t\t // any more: Chancellor Angela Merkel repMenNer Chancellor Angela Merkel , then Angela Merkel has RepMenNer Angela Merkel\n\t\t\t\t if (offsetRepMenNer != null && hds.Ner.contains(offsetRepMenNer)){\n//\t\t\t\t\t System.out.println(\"NEWNer.contains(offsetRepMenNer)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetRepMen != null && hds.Ner.contains(offsetRepMen)){\n\t\t\t\t\t repMenNer = repMen;\n\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\tSystem.out.println(\"NEWNer.contains(offsetRepMen)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetCorefMention != null && hds.Ner.contains(offsetCorefMention)){\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"Ner.contains(offsetCorefMention)\");\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t corefMentionContainsNer = offsetsContainAnnotation(offsetCorefMention,hds.Ner);\n\t\t\t\t\t repMenContainsNer = offsetsContainAnnotation(offsetRepMen,hds.Ner);\n//\t\t\t\t\t System.out.println(\"ELSE Ner.contains(offsetCorefMention)\");\n\t\t\t\t }\n\t\t\t\t //Determine repMenNer that contains NER\n\t\t\t\t\tif (repMenNer == null){\n\t\t\t\t\t\tif (corefMentionContainsNer){\n\t\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (repMenContainsNer){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT2\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no NER:\n\t\t\t\t\t\t//Pronoun -> repMen is repMenNer\n\t\t\t\t\t\telse if (hds.PronominalSubject.contains(offsetCorefMention) && repMen != null){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT3\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t//other no NER: corefMention is repMenNer because it is closer to original\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"DEFAULT4\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t \n \t IaiCorefAnnotation corefAnnotation = new IaiCorefAnnotation(aJCas);\n\t\t\t\n\t\t\t\t\t\n\n\n\t\t\t\t\tcorefAnnotation.setBegin(beginCoref);\n\t\t\t\t\tcorefAnnotation.setEnd(endCoref);\n\t\t\t\t\tcorefAnnotation.setCorefMention(corefMention);\n\t\t\t\t\tcorefAnnotation.setCorefChain(chain);\n\t\t\t\t\t//done below\n//\t\t\t\t\tcorefAnnotation.setRepresentativeMention(repMenNer);\n//\t\t\t\t\tcorefAnnotation.addToIndexes(); \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlistCorefAnnotation.add(corefAnnotation);\n\t\t\t\t\t\n//\t\t\t\t\tdone below:\n//\t\t\t\t\t offsetToRepMen.put(offsetCorefMention, repMenNer);\n//\t\t\t\t\t RepMen.add(offsetCorefMention);\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t }//end coref mention\n//\t\t System.out.println(\"END Chain \" + chain );\n//\t\t System.out.println(listCorefAnnotation.size());\n\t\t String offsetCorefMention = null;\n\t\t for (int i = 0; i < listCorefAnnotation.size(); i++) {\n\t\t \tIaiCorefAnnotation corefAnnotation = listCorefAnnotation.get(i);\n\t\t \tcorefAnnotation.setRepresentativeMention(repMenNer);\n\t\t \tcorefAnnotation.addToIndexes();\n\t\t \toffsetCorefMention = \"\" + corefAnnotation.getBegin() + \"-\" + corefAnnotation.getEnd();\n\t\t\t\t\thds.offsetToRepMen.put(offsetCorefMention, repMenNer);\n\t\t\t\t\thds.RepMen.add(offsetCorefMention);\n\t\t\t\t\t//COREF\n//\t\t\t\t\tSystem.out.println(\"Chain \" + corefAnnotation.getCorefChain());\n//\t\t\t\t\tSystem.out.println(\"corefMention \" + corefAnnotation.getCorefMention() + offsetCorefMention);\n//\t\t\t\t\tSystem.out.println(\"repMenNer \" + repMenNer);\n\t\t }\n\t\t } //end chains\n\n\n//\t\t System.out.println(\"NOW quote finder\");\n\n\n\t\t\n\t\t///* quote finder: begin find quote relation and quotee\n\t\t// direct quotes\n\t\t\n\t\t\n\t\tString quotee_left = null;\n\t\tString quotee_right = null; \n\t\t\n\t\tString representative_quotee_left = null;\n\t\tString representative_quotee_right = null; \n\t\t\n\t\tString quote_relation_left = null;\n\t\tString quote_relation_right = null;\n\t\t\n\t\tString quoteType = null;\n\t\tint quoteeReliability = 5;\n\t\tint quoteeReliability_left = 5;\n\t\tint quoteeReliability_right = 5;\n\t\tint quotee_end = -5;\n\t\tint quotee_begin = -5;\n\t\t\n\t\tboolean quoteeBeforeQuote = false;\n\n\n\t\n\t\t\n\t\t// these are all the quotes in this document\n\t\tList<CoreMap> quotes = document.get(QuotationsAnnotation.class);\n\t\tfor (CoreMap quote : quotes) {\n\t\t\tif (quote.get(TokensAnnotation.class).size() > 5) {\n\t\t\t\tQuoteAnnotation annotation = new QuoteAnnotation(aJCas);\n\n\t\t\t\tint beginQuote = quote.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endQuote = quote.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(quote.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tannotation.setBegin(beginQuote);\n\t\t\t\tannotation.setEnd(endQuote);\n\t\t\t\tannotation.addToIndexes();\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\tList<Q> newQuotes = document.get(QuotationsAnnotation.class);\t\t\n//\t\tfor (CoreMap annotation : newQuotes) {\n//\t\t\t\tif (1==1){\n//\t\t\t\tRe-initialize markup variables since they are also used for indirect quotes\n\t\t\t\tquotee_left = null;\n\t\t\t\tquotee_right = null; \n\t\t\t\t\n\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\n\t\t\t\tquote_relation_left = null;\n\t\t\t\tquote_relation_right = null;\n\t\t\t\tquoteeReliability = 5;\n\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\tquotee_end = -5;\n\t\t\t\tquotee_begin = -5;\n\t\t\t\tquoteType = \"direct\";\n\t\t\t\tquoteeBeforeQuote = false;\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> directQuoteTokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tToken.class, annotation);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n\t\t\t\t\n \n//\t\t\t\tfor (Token aFollowToken: followTokens){\n//\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\tChunk.class, aFollowToken);\n \n//direct quote quotee right:\n\t\t\t\t\n\t for (Token aFollow2Token: followTokens){\n\t\t\t\t\t List<SentenceAnnotation> sentencesFollowQuote = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t SentenceAnnotation.class, aFollow2Token);\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t for (SentenceAnnotation sentenceFollowsQuote: sentencesFollowQuote){\n\t\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tChunk.class, sentenceFollowsQuote);\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT\");\n\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"RIGHT\", \n\t\t\t\t\tchunks, hds, annotation);\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_right = quote_annotation_result[0];\n\t\t\t representative_quotee_right = quote_annotation_result[1];\n\t\t\t quote_relation_right = quote_annotation_result[2];\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_right = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t //Will Throw exception!\n\t\t\t //do something! anything to handle the exception.\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_right = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT RESULT quotee \" + quotee_right + \" representative_quotee \" + representative_quotee_right\n//\t\t\t\t\t+ \" quote_relation \" + quote_relation_right);\n\t\t \n\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t \n }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> precedingTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n for (Token aPrecedingToken: precedingTokens){ \n \t\n \tif (directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString()) \n \t\t\t|| compLemma.contains(aPrecedingToken.getLemma().getValue().toString())) {\n// \t\tSystem.out.println(\"Hello, World lemma found\" + aPrecedingToken.getLemma().getValue());\n \t\tquoteeBeforeQuote = true;\n \t}\n \t\tList <NamedEntity> namedEntities = null;\n \t\tList <Token> tokens = null;\n \t\tList<Chunk> chunks = null;\n \t\t\n\t\t\t\t List<Sentence> precedingSentences = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken, 1);\n\t\t\t\t \n\t\t\t\t\t\tif (precedingSentences.isEmpty()){\n\t\t\t\t\t\t\tList<Sentence> firstSentence;\n\t\t\t\t \tfirstSentence = JCasUtil.selectCovering(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken);\n\n\t\t\t\t \tfor (Sentence aSentence: firstSentence){\n\t\t\t\t \t\t\n\n\t\t\t\t\t\t\t\tchunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\tChunk.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t \t\tnamedEntities = JCasUtil.selectCovered(aJCas,\n\t \t \t\tNamedEntity.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\ttokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\n\t\t\t\t \t}\n\t\t\t\t\t\t}\n\t\t\t\t else {\t\n\t\t\t\t \tfor (Sentence aSentence: precedingSentences){\n//\t\t\t\t \t\tSystem.out.println(\"Hello, World sentence\" + aSentence);\n\t\t\t\t \t\tchunks = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tChunk.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\tnamedEntities = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tNamedEntity.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\ttokens = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence, aPrecedingToken);\n\t\t\t\t \t}\n\t\t\t\t }\n \t\n//\t\t\t\t \n//\t\t\t\t\t\tSystem.out.println(\"DIRECT QUOTE LEFT\");\n\t\t\t\t\t\tString[] quote_annotation_direct_left = determine_quotee_and_quote_relation(\"LEFT\", chunks,\n\t\t\t\t\t\t\t\t hds, annotation\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t );\n//\t\t\t\t\t\tSystem.out.println(\"QUOTE ANNOTATION \" + quote_annotation_direct_left.length);\t\t\n\t\tif (quote_annotation_direct_left.length>=4){\n//\t\t\tSystem.out.println(\"QUOTE ANNOTATION UPDATE \" + quote_annotation_direct_left[0] +\n//\t\t\t\t\t\" \" + quote_annotation_direct_left[1] + \" \" +\n//\t\t\t\t\tquote_annotation_direct_left[2]);\n\t\t quotee_left = quote_annotation_direct_left[0];\n\t\t representative_quotee_left = quote_annotation_direct_left[1];\n\t\t quote_relation_left = quote_annotation_direct_left[2];\n\t\t try {\n\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t} catch (NumberFormatException e) {\n\t\t //Will Throw exception!\n\t\t //do something! anything to handle the exception.\n\t\t\tquoteeReliability = -5;\n\t\t\tquoteeReliability_left = -5;\n\t\t\t}\t\t\t\t\t \n\t\t }\n//\t\tSystem.out.println(\"DIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t+ \" quote_relation \" + quote_relation_left);\n\t\t//no subject - predicate quotee quote_relation, quote introduced with colon: \n\t\tif (quotee_left == null && quote_relation_left == null && representative_quotee_left == null \n\t\t&& directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString())){\n//\t\t\tSystem.out.println(\"NER DIRECT QUOTE LEFT COLON\");\n\t\t\tString quoteeCandOffset = null; \n\t\t\tString quoteeCandText = null;\n\t\t if (namedEntities.size() == 1){\n \t \tfor (NamedEntity ne : namedEntities){\n// \t \t\tSystem.out.println(\"ONE NER \" + ne.getCoveredText());\n \t \t\tquoteeCandText = ne.getCoveredText();\n\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\tquotee_end = ne.getEnd();\n\t\t\t\t\tquotee_begin = ne.getBegin();\n\t\t\t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n\t\t\t\t\tquoteeReliability = 1;\n\t\t\t\t\tquoteeReliability_left = 1;\n \t }\n \t }\n \t else if (namedEntities.size() > 1) {\n \t \tint count = 0;\n \t \tString quotee_cand = null;\n// \t \tSystem.out.println(\"Hello, World ELSE SEVERAL NER\");\n \t \tfor (NamedEntity ner : namedEntities){\n// \t \t\tSystem.out.println(\"Hello, World NER TYPE\" + ner.getValue());\n \t \t\tif (ner.getValue().equals(\"PERSON\")){\n \t \t\t\tcount = count + 1;\n \t \t\t\tquotee_cand = ner.getCoveredText();\n \t \t\t\tquotee_end = ner.getEnd();\n \t \t\t\tquotee_begin = ner.getBegin();\n \t \t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n \t \t\t\t\n// \t \t\t\tSystem.out.println(\"Hello, World FOUND PERSON\" + quotee_cand);\n \t \t\t}\n \t \t}\n \t \tif (count == 1){ // there is exactly one NER.PERSON\n// \t \t\tSystem.out.println(\"ONE PERSON, SEVERAL NER \" + quotee_cand);\n \t \t\t\tquoteeCandText = quotee_cand;\n\t\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\t\tquoteeReliability = 3;\n\t\t\t\t\t\tquoteeReliability_left = 3;\n \t \t}\n \t }\n\t\t if(quoteeCandOffset != null && quoteeCandText != null ){\n//\t\t \t quotee_left = quoteeCandText;\n\t\t \t String result [] = determineBestRepMenSubject(\n\t\t \t\t\t quoteeCandOffset,quoteeCandOffset, quoteeCandText, hds);\n\t\t \t if (result.length>=2){\n\t\t \t\t quotee_left = result [0];\n\t\t \t\t representative_quotee_left = result [1];\n//\t\t \t System.out.println(\"RESULT2 NER quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left);\n\t\t \t }\n\t\t }\n\t\t}\n }\n\t\t\n \n\n\t\t\t\t\n\t\t\t\tif (quotee_left != null && quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"TWO QUOTEES\");\n\t\t\t\t\t\n\t\t\t\t\tif (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\") \n\t\t\t\t\t\t|| \tdirectQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t|| directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\n\t\t\t\t\t\t\t){\n//\t\t\t\t\t\tSystem.out.println(\"PUNCT \" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\",\")){\n//\t\t\t\t\t\tSystem.out.println(\"COMMA \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse if (!directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\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\tSystem.out.println(\"NO PUNCT \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n//\t\t\t\t\t\tSystem.out.println(\"UNCLEAR LEFT RIGHT \" + quotee_left + quote_relation_left + quote + quotee_right + quote_relation_right);\n\t\t\t\t\tannotation.setQuotee(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteRelation(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (quoteeBeforeQuote == true){\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_left != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE LEFT\" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE RIGHT FOUND\" + quotee_right + \" QUOTE RELATION \" + quote_relation_right + \":\" + quoteeReliability_right);\n\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_left != null ){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"NO QUOTEE FOUND\" + quote + quote_relation_left + quote_relation_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_right != null){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t}\n\t\t\t\telse if (quoteType != null){\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"Hello, World NO QUOTEE and NO QUOTE RELATION FOUND\" + quote);\n\t\t\t\t}\n\t\t\t\tif (annotation.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\tSystem.out.println(\"NOW!!\" + annotation.getRepresentativeQuoteeMention());\n\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(annotation.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\tannotation.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(annotation.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\tSystem.out.println(\"DBPRED FOUND\" + annotation.getRepresentativeQuoteeMention() + \" URI: \" + annotation.getQuoteeDBpediaUri());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} //for direct quote\n\t\t\n\t\t// annotate indirect quotes: opinion verb + 'that' ... until end of sentence: said that ...\n\n//\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class); //already instantiated above\nINDIRECTQUOTE:\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tif (sentence.get(TokensAnnotation.class).size() > 5) { \n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n//\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\n\t \tint indirectQuoteBegin = -5;\n\t\t\t\tint indirectQuoteEnd = -5;\n\t\t\t\tboolean subsequentDirectQuoteInstance = false;\n\t\t\t\t\n\t\t\t\tList<Chunk> chunksIQ = JCasUtil.selectCovered(aJCas,\n\t\t\t\tChunk.class, sentenceAnn);\n\t\t\t\tList<Chunk> chunksBeforeIndirectQuote = null;\n\t\t\t\t\n\t\t\t\tint index = 0;\nINDIRECTCHUNK:\tfor (Chunk aChunk : chunksIQ) {\n\t\t\t\t\tindex++;\n\t\t\t\t\t\n//\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE CHUNK VALUE \" + aChunk.getChunkValue().toString());\n//\t\t\t\t\tif (aChunk.getChunkValue().equals(\"SBAR\")) {\n\t\t\t\t\tif(indirectQuoteIntroChunkValue.contains(aChunk.getChunkValue())){\n//\t\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE INDEX \" + \"\" + index);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Token> tokensSbar = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tToken.class, aChunk);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Token aTokenSbar : tokensSbar){\n//\t\t\t\t\t\t\tString that = \"that\";\n\t\t\t\t\t\t\tif (compLemma.contains(aTokenSbar.getLemma().getCoveredText())){\n\t\t\t\t\t\t// VP test: does that clause contain VP?\n//\t\t\t\t\t\t\t\tSystem.out.println(\"TOK1\" + aTokenSbar.getLemma().getCoveredText());\n//\t\t\t \tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\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 indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\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//NEW\n//\t\t\t\t\t\t\t\tif (LANGUAGE == \"en\")\n\t\t\t\t\t\t\t\tList<Token> precedingSbarTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\t\t\t\t\tToken.class, aChunk, 1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Token aPrecedingSbarToken: precedingSbarTokens){ \n//\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOK2\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \tif (coordLemma.contains(aPrecedingSbarToken.getLemma().getValue().toString())){\n//\t\t\t\t \t\tSystem.out.println(\"TOKK\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t \t\tint k = 0;\n\t\t\t\t \tSAY:\tfor (Chunk chunkBeforeAndThat : chunksBeforeIndirectQuote){\n//\t\t\t\t \t\t\txxxx\n\t\t\t\t \t\tk++;\n\t\t\t\t \t\t\tif (chunkBeforeAndThat.getChunkValue().equals(\"VP\")){\n\t\t\t\t \t\t\t\t\n\t\t\t\t \t\t\t\tList<Token> tokensInVp = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tToken.class, chunkBeforeAndThat);\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Token aTokenInVp : tokensInVp){\n//\t\t\t\t\t\t\t\t\t\t\t\t\tString and;\n//\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOKK\" + aTokenInVp.getLemma().getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (aTokenInVp.getLemma().getValue().equals(\"say\")){\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SAY OLD\" + indirectQuoteBegin + \":\" + sentenceAnn.getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, k);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tindirectQuoteBegin = chunksBeforeIndirectQuote.get(chunksBeforeIndirectQuote.size()-1).getEnd()+1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SAY NEW\" + indirectQuoteBegin + \":\" );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak SAY;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\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}\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuoteChunk = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class, aChunk);\n\t\t\t\t\t\t\t\tif (coveringDirectQuoteChunk.isEmpty()){\n//\t\t\t\t\t\t\t\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t indirectQuote.setBegin(indirectQuoteBegin);\n//\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t\t\t\t\t indirectQuoteEnd = sentenceAnn.getEnd();\n\t\t\t\t\t\t\t\t indirectQuote.setEnd(indirectQuoteEnd);\n\t\t\t\t\t\t\t\t indirectQuote.addToIndexes();\n\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = false;\n//\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FALSE\");\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t List<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tToken.class, indirectQuote, 1);\n\t\t\t\t\t\t\t\t for (Token aFollow3Token: followTokens){\n\t\t\t\t\t\t\t\t\t List<QuoteAnnotation> subsequentDirectQuotes = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class,aFollow3Token);\n\t\t\t\t\t\t\t\t\t if (!subsequentDirectQuotes.isEmpty()){\n\t\t\t\t\t\t\t\t\t\t for (QuoteAnnotation subsequentDirectQuote: subsequentDirectQuotes){\n\t\t\t\t\t\t\t\t\t\t\t if (subsequentDirectQuote.getRepresentativeQuoteeMention() != null\n\t\t\t\t\t\t\t\t\t\t\t\t && subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")){\n//\t\t\t\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FOUND\"); \n\t\t\t\t\t\t\t\t\t\t\t hds.subsequentDirectQuote = subsequentDirectQuote;\n\t\t\t\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = true;\n\t\t\t\t\t\t\t\t\t\t\t }\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\t break INDIRECTCHUNK;\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\t\n\t\t\t\t}\n\t\t\t\t\tif (indirectQuoteBegin >= 0 && indirectQuoteEnd >= 0){\n//\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuote = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n//\t\t\t\t\t\tif (coveringDirectQuote.isEmpty()){\n////\t\t\t\t\t\t\t\n//\t\t\t\t\t\tindirectQuote.addToIndexes();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t//indirect quote is covered by direct quote and therefore discarded\n//\t\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n//\t\t\t\t\t\t}\n\t\t\t\t\tList<QuoteAnnotation> coveredDirectQuotes = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n\t\t\t\t\tfor (QuoteAnnotation coveredDirectQuote : coveredDirectQuotes){\n//\t\t\t\t\t\tSystem.out.println(\"Hello, World covered direct quote\" + coveredDirectQuote.getCoveredText());\n\t\t\t\t\t\t//delete coveredDirectQuoteIndex\n\t\t\t\t\t\tcoveredDirectQuote.removeFromIndexes();\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\t//no indirect quote in sentence\n\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n\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\tRe-initialize markup variables since they are also used for direct quotes\n\t\t\t\t\t\tquotee_left = null;\n\t\t\t\t\t\tquotee_right = null; \n\t\t\t\t\t\t\n\t\t\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquote_relation_left = null;\n\t\t\t\t\t\tquote_relation_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquoteType = \"indirect\";\n\t\t\t\t\t\tquoteeReliability = 5;\n\t\t\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\t\t\tquotee_end = -5;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tif (chunksBeforeIndirectQuote != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"chunksBeforeIndirectQuote FOUND!! \");\n\t\t\t\t\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"LEFT\", chunksBeforeIndirectQuote,\n\t\t\t\t\t\t\t\t\t hds, indirectQuote\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t );\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_left = quote_annotation_result[0];\n\t\t\t representative_quotee_left = quote_annotation_result[1];\n\t\t\t quote_relation_left = quote_annotation_result[2];\n//\t\t\t System.out.println(\"INDIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t\t + \" QUOTE RELATION \" + quote_relation_left);\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_left = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n\t\t\t\n\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (quotee_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t\tindirectQuote.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\t\tindirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//indirect quote followed by direct quote:\n\t\t\t\t\t\t\t//the quotee and quote relation of the indirect quote are copied to the direct quote \n\t\t\t\t\t\t\t//Genetic researcher Otmar Wiestler hopes that the government's strict controls on genetic research \n\t\t\t\t\t\t\t//will be relaxed with the advent of the new ethics commission. \n\t\t\t\t\t\t\t//\"For one thing the government urgently needs advice, because of course it's such an extremely \n\t\t\t\t\t\t\t//complex field. And one of the reasons Chancellor Schröder formed this new commission was without \n\t\t\t\t\t\t\t//a doubt to create his own group of advisors.\"\n\n\t\t\t\t\t\t\tif (subsequentDirectQuoteInstance == true\n\t\t\t\t\t\t\t\t&&\thds.subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuotee().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuoteRelation().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t\t){\n//\t\t\t\t\t\t\t\tSystem.out.println(\"SUBSEQUENT UNCLEAR DIR QUOTE FOUND!!\"); \n\t\t\t\t\t\t\t\tint begin = hds.subsequentDirectQuote.getBegin();\n\t\t\t\t\t\t\t\tint end = hds.subsequentDirectQuote.getEnd();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteType(\"direct\");\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteeReliability(quoteeReliability_left + 2);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.addToIndexes();\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\t\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE \" + quotee_left + quote_relation_left + quoteeReliability);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (quote_relation_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (quoteType != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE NOT FOUND\" + quote_relation_left);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (indirectQuote.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"NOW!!\" + indirectQuote.getRepresentativeQuoteeMention());\n\t\t\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(indirectQuote.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\t\t\tindirectQuote.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\t\t\tSystem.out.println(\"DBPEDIA \" + indirectQuote.getRepresentativeQuoteeMention() + \" URI: \" + hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\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}\n//\t\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t }\n//\t\t\t} //for chunk\n//\t\t\t\tsay without that\n//\t\t\t}\t\t\n\t\t} //Core map sentences indirect quotes\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public IDataSet extractFeatures(String featureType);", "public String getAnalysis()\n\t{\n\t\treturn m_analysis;\n\t}", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "public void extractKnowledge()\n {\n }", "@Override\n FieldOptions getRoleActivityFieldOptions(VitroRequest vreq) throws Exception {\n\t\treturn new ConstantFieldOptions(\n\t\t \"\", \"Select type\", \n\t\t \"http://purl.org/ontology/bibo/AcademicArticle\", \"Academic Article\",\n \"http://purl.org/ontology/bibo/Article\", \"Article\",\n \"http://purl.org/ontology/bibo/AudioDocument\", \"Audio Document\",\n \"http://purl.org/ontology/bibo/AudioVisualDocument\", \"Audio-Visual Document\",\n \"http://purl.org/ontology/bibo/Bill\", \"Bill\",\n \"http://vivoweb.org/ontology/core#Blog\", \"Blog\",\n \"http://vivoweb.org/ontology/core#BlogPosting\", \"Blog Posting\",\n \"http://purl.org/ontology/bibo/Book\", \"Book\",\n \"http://purl.org/ontology/bibo/BookSection\", \"Book Section\",\n \"http://purl.org/ontology/bibo/Brief\", \"Brief\",\n \"http://vivoweb.org/ontology/core#CaseStudy\", \"Case Study\",\n \"http://vivoweb.org/ontology/core#Catalog\", \"Catalog\",\n \"http://purl.org/ontology/bibo/Chapter\", \"Chapter\",\n \"http://purl.org/spar/fabio/ClinicalGuideline\", \"Clinical Guideline\",\n \"http://purl.org/ontology/bibo/Code\", \"Code\",\n \"http://purl.org/ontology/bibo/CollectedDocument\", \"Collected Document\",\n \"http://purl.org/spar/fabio/Comment\", \"Comment\",\n \"http://vivoweb.org/ontology/core#ConferencePaper\", \"Conference Paper\",\n \"http://vivoweb.org/ontology/core#ConferencePoster\", \"Conference Poster\",\n \"http://purl.org/ontology/bibo/CourtReporter\", \"Court Reporter\",\n \"http://vivoweb.org/ontology/core#Database\", \"Database\",\n \"http://purl.org/ontology/bibo/LegalDecision\", \"Decision\",\n \"http://purl.org/ontology/bibo/DocumentPart\", \"Document Part\",\n \"http://purl.org/ontology/bibo/EditedBook\", \"Edited Book\",\n \"http://vivoweb.org/ontology/core#EditorialArticle\", \"Editorial Article\",\n \"http://purl.org/spar/fabio/Erratum\", \"Erratum\",\n \"http://purl.org/ontology/bibo/Excerpt\", \"Excerpt\",\n \"http://purl.org/ontology/bibo/Film\", \"Film\",\n \"http://purl.org/ontology/bibo/Image\", \"Image\",\n \"http://purl.org/ontology/bibo/Issue\", \"Issue\",\n \"http://purl.org/ontology/bibo/Journal\", \"Journal\",\n \"http://purl.obolibrary.org/obo/IAO_0000013\", \"Journal Article\",\n \"http://purl.org/ontology/bibo/LegalCaseDocument\", \"Legal Case Document\",\n \"http://purl.org/ontology/bibo/LegalDocument\", \"Legal Document\",\n \"http://purl.org/ontology/bibo/Legislation\", \"Legislation\",\n \"http://purl.org/ontology/bibo/Letter\", \"Letter\",\n \"http://purl.org/ontology/bibo/Magazine\", \"Magazine\",\n \"http://purl.org/ontology/bibo/Manual\", \"Manual\",\n \"http://purl.org/ontology/bibo/Manuscript\", \"Manuscript\",\n \"http://purl.org/ontology/bibo/Map\", \"Map\",\n \"http://vivoweb.org/ontology/core#Newsletter\", \"Newsletter\",\n \"http://purl.org/ontology/bibo/Newspaper\", \"Newspaper\",\n \"http://vivoweb.org/ontology/core#NewsRelease\", \"News Release\",\n \"http://purl.org/ontology/bibo/Note\", \"Note\",\n \"http://purl.org/ontology/bibo/Patent\", \"Patent\",\n \"http://purl.org/ontology/bibo/Periodical\", \"Periodical\",\n \"http://purl.org/ontology/bibo/PersonalCommunicationDocument\", \"Personal Communication Document\",\n \"http://purl.org/ontology/bibo/Proceedings\", \"Proceedings\",\n \"http://purl.obolibrary.org/obo/OBI_0000272\", \"protocol\",\n \"http://purl.org/ontology/bibo/Quote\", \"Quote\",\n \"http://purl.org/ontology/bibo/ReferenceSource\", \"Reference Source\",\n \"http://purl.org/ontology/bibo/Report\", \"Report\",\n \"http://vivoweb.org/ontology/core#ResearchProposal\", \"Research Proposal\",\n \"http://vivoweb.org/ontology/core#Review\", \"Review\",\n \"http://vivoweb.org/ontology/core#Score\", \"Score\",\n \"http://vivoweb.org/ontology/core#Screenplay\", \"Screenplay\",\n \"http://purl.org/ontology/bibo/Series\", \"Series\",\n \"http://purl.org/ontology/bibo/Slide\", \"Slide\",\n \"http://purl.org/ontology/bibo/Slideshow\", \"Slideshow\",\n \"http://vivoweb.org/ontology/core#Speech\", \"Speech\",\n \"http://purl.org/ontology/bibo/Standard\", \"Standard\",\n \"http://purl.org/ontology/bibo/Statute\", \"Statute\",\n \"http://purl.org/ontology/bibo/Thesis\", \"Thesis\",\n \"http://vivoweb.org/ontology/core#Translation\", \"Translation\",\n \"http://vivoweb.org/ontology/core#Video\", \"Video\",\n \"http://purl.org/ontology/bibo/Webpage\", \"Webpage\",\n \"http://purl.org/ontology/bibo/Website\", \"Website\",\n \"http://vivoweb.org/ontology/core#WorkingPaper\", \"Working Paper\"\n );\n }", "public String globalInfo() {\n return \"Class for building and using a PRISM rule set for classification. \"\n + \"Can only deal with nominal attributes. Can't deal with missing values. \"\n + \"Doesn't do any pruning.\\n\\n\"\n + \"For more information, see \\n\\n\"\n + getTechnicalInformation().toString();\n }", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public static void caso21(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso2.owl\",\"file:resources/caso2.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "public String getInfoText();", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public static void main(String[] args) {\n\t\tUtility.dirPath = \"C:\\\\Users\\\\imSlappy\\\\workspace\\\\FeelingAnalysis\\\\Documents\\\\2_group_eng\";\n\t\tString sub[] = {\"dup\",\"bug\"};\n\t\tUtility.classLabel = sub;\n\t\tUtility.numdoc = 350;\n\t\tSetClassPath.read_path(Utility.dirPath);\n\t\tUtility.language = \"en\";\n\t\t\n\t\tUtility.stopWordHSEN = Fileprocess.FileHashSet(\"data/stopwordAndSpc_eng.txt\");\n\t\tUtility.dicen = new _dictionary();\n\t\tUtility.dicen.getDictionary(\"data/dicEngScore.txt\");\n\t\t\n\t\tUtility.vocabHM = new HashMap();\n\t\t// ================= completed initial main Program ==========================\n\n\t\tMainExampleNaive ob = new MainExampleNaive();\n\t\t\n\t\t// --------------------- Pre-process -----------------------\n\t\tob.word_arr = new HashSet [Utility.listFile.length][];\n\t\tob.wordSet = new ArrayList<String>();\n\t\tfor (int i = 0; i < Utility.listFile.length; i++) {\n\t\t\tob.word_arr[i]=new HashSet[Utility.listFile[i].length];\n\t\t\tfor (int j = 0; j < Utility.listFile[i].length; j++) {\n\t\t\t\tStringBuffer strDoc = Fileprocess.readFile(Utility.listFile[i][j]);\n\t\t\t\tob.word_arr[i][j]=ob.docTokenization(new String(strDoc));\n\t\t\t}\n\t\t\tob.checkBound(3, 10000);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"++ Total : \"+Utility.vocabHM.size()+\" words\");\n\t\tSystem.out.println(\"++ \"+Utility.vocabHM);\n\t\t\n\t\t// ---------------------- Selection ------------------------\n//\t\tInformationGain ig = new InformationGain(ob.word_arr.length*ob.word_arr[0].length , ob.wordSet,ob.word_arr);\n//\t\tArrayList<String> ban_word = ig.featureSelection(0.0); // selected out with IG = 0\n//\t\t//ob.banFeature(ban_word);\n//\t\tSystem.out.println(\"ban list[\"+ban_word.size()+\"] : \"+ban_word);\n//\t\t\n//\t\tSystem.out.println(\"-- After \"+Utility.vocabHM.size());\n//\t\tSystem.out.println(\"-- \"+Utility.vocabHM);\n\t\t\n\t\tob.setWordPosition();\n\t\t// ---------------------- Processing -----------------------\n\t\tNaiveBayes naive = new NaiveBayes();\n\t\tnaive.naiveTrain(true);\n\t\t\n\t\tint result = naive.naiveUsage(\"after cold reset of my pc (crash of xp) the favorites of firefox are destroyed and all settings are standard again! Where are firefox-favorites stored and the settings ? how to backup them rgularely? All other software on my pc still works properly ! even INternetExplorer\");\n\t\tSystem.out.println(\"\\nResult : \"+Utility.classLabel[result]);\n\t}", "HashMap<Value, HashSet<Value>> getLayerDatasetDescriptions();", "DataCollectionInfo getInfo();", "public void newAnalyseDatasetOfLanguage() throws ClassNotFoundException, SQLException {\n\t\topenConnection();\n\t}", "public static void identifyFeaturesSelectedForCID()\n {\n MSRun run = (MSRun) ApplicationContext.getProperty(SharedProperties.MS_RUN);\n FeatureSet runMs2Features = run.getTandemFeatureSet(2);\n runMs2Features.setSourceFile(new File(run.getFile().getPath() + \".ms2.tsv\"));\n// runMs2Features.setSourceFile(new File(\"generated_features_for_cid\"));\n ClusteringFeatureSetMatcher cFSM =\n new ClusteringFeatureSetMatcher(.1f, FeatureSetMatcher.DELTA_MASS_TYPE_ABSOLUTE, 5);\n cFSM.setElutionMode(ClusteringFeatureSetMatcher.ELUTION_MODE_SCAN);\n cFSM.setUseMassInsteadOfMz(false);\n cFSM.setElutionBucketIncrement(1);\n cFSM.setMassBucketIncrement(.025);\n\n List<FeatureSet> featureSets =\n (List<FeatureSet>) ApplicationContext.getProperty(SharedProperties.FEATURE_SETS);\n FeatureSet ms1Features = null;\n\n boolean noFeatureSetToMine = false;\n if (featureSets == null)\n noFeatureSetToMine = true;\n if (!noFeatureSetToMine)\n for (FeatureSet fs : featureSets)\n {\n if (fs.isDisplayed())\n ms1Features = fs;\n }\n if (ms1Features == null)\n noFeatureSetToMine = true;\n\n if (noFeatureSetToMine)\n {\n //make this translatable\n //not really necessary since we make this inaccessible if no features are displayed\n ApplicationContext.infoMessage(\"You must select and display a set of features in order to find the ones selected for CID\");\n return;\n }\n\n\n FeatureSetMatcher.FeatureMatchingResult featureMatchingResult =\n cFSM.matchFeatures(ms1Features, runMs2Features);\n\n Feature[] ms1FeaturesSelectedForCID = new Feature[featureMatchingResult.size()];\n\n\n //first set CID scan of all ms1 features to not-found\n for (Feature feature : ms1Features.getFeatures())\n {\n feature.setProperty(\"cidscan\",-1);\n }\n //set CID scan of all matched ms1 features to the MS2 feature's scan number\n int i=0;\n for (Feature ms1Feature : featureMatchingResult.getMasterSetFeatures())\n {\n ms1Feature.setProperty(\"cidscan\",featureMatchingResult.getBestMatch(ms1Feature));\n ms1FeaturesSelectedForCID[i++] = ms1Feature;\n }\n\n FeatureSet ms1FeatureSetForCID = new FeatureSet(ms1FeaturesSelectedForCID,\n FeatureSelectionFrame.FeatureSelectionDialog.nextColor());\n// ms1FeatureSetForCID.setSourceFile(new File(\"generated_features_for_cid\"));\n\n //copy the feature set list because otherwise the main panel doesn't update\n ArrayList<FeatureSet> featureSetListCopy = new ArrayList<FeatureSet>(featureSets.size());\n featureSetListCopy.addAll(featureSets);\n featureSetListCopy.add(ms1FeatureSetForCID);\n featureSetListCopy.add(runMs2Features);\n\n ApplicationContext.setProperty(SharedProperties.FEATURE_SETS, featureSetListCopy);\n ApplicationContext.setProperty(SharedProperties.FEATURE_RANGES, featureSetListCopy);\n\n ResultsDialog resultsDialog =\n new ResultsDialog(ms1Features, ms1FeatureSetForCID, runMs2Features, featureMatchingResult);\n resultsDialog.setVisible(true);\n }", "@Override\n\tpublic void calculate(systemSelection selection) {\n\t\t\n\t\t// Get selection parameters\n\t\tVector<String> viewers = selection.getSelectedViewers();\n\t\t\t\t\n\t\t// Create Result Object\n\t\tResultObject result = new ResultObject();\n\t\t\n\t\t// Create viewers (stored in this.viewers)\n\t\tthis.setViewers(viewers);\n\t\t\t\t\n\t\t// Set Analysis Name\n\t\tresult.setName(selection.getSelectedAnalysis());\n\t\t\t\t\n\t\tfor (ConcreteViewer viewer : this.viewers) {\n\t\t\tresult.attach(viewer);\n\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t// Package data from World Bank API\n\t\t\n\t\t// Our reader\n\t\tDataReader dr = new DataReader(selection);\n\t\t\t\t\n\t\t// Retrieve cost of education\n\t\tDataObject educationCost = dr.getData(\"SE.XPD.TOTL.GD.ZS\");\n\t\tArrayList<Double> educationCostData = educationCost.getData();\n\t\t\t\t\n\t\t// Retrieve cost of healthcare\n\t\tDataObject healthCost = dr.getData(\"SH.XPD.CHEX.GD.ZS\");\n\t\tArrayList<Double> healthCostData = healthCost.getData();\n\t\t\t\t\t\n\t\t//new ArrayList holds values of the calculation\n\t\tArrayList<Double> ratioEducationHealth = new ArrayList<Double>();\n\t\t\t\t\n\t\t//perform calculation\n\t\tint maxIndex = selection.getSelectedYears()[1] - selection.getSelectedYears()[0];\n\t\tboolean allZero = true;\n\t\tfor(int i=0;i<=maxIndex;i++) {\n\t\t\tdouble ratio = educationCostData.get(i)/healthCostData.get(i);\n\t\t\tratioEducationHealth.add(ratio);\n\t\t\t\n\t\t\tif(ratio!=0 && Double.isNaN(ratio)==false) {\n\t\t\t\tallZero = false;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tif(!allZero) {\n\t\t\t\t\n\t\t\tArrayList<ArrayList<Double>> dataList = new ArrayList<ArrayList<Double>>();\n\t\t\tdataList.add(ratioEducationHealth);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\n\t\t\t// Set Analysis Name\n\t\t\tresult.setName(selection.getSelectedAnalysis());\n\t\t\t\t\t\n\t\t\t// Set years\n\t\t\tresult.setYears(selection.getSelectedYears());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\tArrayList<String> dataNames = new ArrayList<String>();\n\t\t\tdataNames.add(\"Ratio of Government expenditure on education \"\n\t\t\t\t\t\t\t+ \"vs Current health expenditure\");\n\t\t\t\t\t\n\t\t\tresult.setDataNames(dataNames);\n\t\t\t\n\t\t\t// Set Panel that viewers will belong to\n\t\t\tSystem.out.println(\"Setting Viewer Panel\");\n\t\t\tresult.setPanel(this.viewerPanel);\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Sending Data to Result Object.\");\n\t\t\tSystem.out.println(dataList);\n\t\t\tresult.setResult(dataList);\n\t\t\ttry {\n\t\t\t\tMainUI.getInstance().errorLabel.setText(\"\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tMainUI.getInstance().errorLabel.setText(\"All data is 0!\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@DataProvider(name = \"typesAndSegments\")\n public Object[][] getSVTypesAndSegmentsTestData() {\n return new Object[][] {\n { createVariantContext(\"chr2\", 86263976, 86263977, \"chr19\", 424309, \"N\",\n \"<CTX>\", null, null, \"CTX_PP/QQ\", null),\n SVAnnotateEngine.StructuralVariantAnnotationType.CTX,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.CTX,\n new SimpleInterval[]{ new SimpleInterval(\"chr2\", 86263976, 86263977),\n new SimpleInterval(\"chr19\", 424309, 424310) }),\n null },\n { createVariantContext(\"chr2\", 86263976, 86263976, null, 424309, \"G\",\n \"G]chr19:424309]\", null, null,\"CTX_PP/QQ\", null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n Arrays.asList(new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.CTX,\n new SimpleInterval(\"chr2\", 86263976, 86263976))),\n null},\n { createVariantContext(\"chr2\", 86263977, 86263977, null, 424309, \"A\",\n \"[chr19:424310[A\", null, null, \"CTX_PP/QQ\", null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n Arrays.asList(new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.CTX,\n new SimpleInterval(\"chr2\", 86263977, 86263977))),\n null },\n { createVariantContext(\"chr2\", 205522308, 205522384, \"chr2\", null, \"N\",\n \"<INV>\", 76, null, null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.INV,\n Arrays.asList(new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.INV,\n new SimpleInterval(\"chr2\", 205522308, 205522384))),\n null },\n { createVariantContext(\"chr19\", 424309, 424309, null, 424309, \"T\",\n \"T]chr2:86263976]\", null, null, \"CTX_PP/QQ\", null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n Arrays.asList(new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.CTX,\n new SimpleInterval(\"chr19\", 424309, 424309))),\n null },\n { createVariantContext(\"chr19\", 424310, 424310, null, 424309, \"C\",\n \"[chr2:86263977[C\", null, null, \"CTX_PP/QQ\", null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n Arrays.asList(new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.CTX,\n new SimpleInterval(\"chr19\", 424310, 424310))),\n null },\n { createVariantContext(\"chr22\", 10510000, 10694100, \"chr22\", null, \"N\",\n \"<DEL>\", 184100, null, null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.DEL,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.DEL,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 10510000, 10694100)}),\n null},\n { createVariantContext(\"chr22\", 10524000, 10710000, \"chr22\", null, \"N\",\n \"<DUP>\", 186000, null, null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.DUP,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.DUP,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 10524000, 10710000)}),\n null },\n { createVariantContext(\"chr22\", 10532563, 10532611, \"chr22\", null, \"N\",\n \"<INS:ME:ALU>\", 245, null, null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.INS,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.INS,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 10532563, 10532564)}),\n null },\n { createVariantContext(\"chr22\", 10572758, 10572788, \"chr22\", null, \"N\",\n \"<INS>\", 57, null, null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.INS,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.INS,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 10572758, 10572759)}),\n null },\n { createVariantContext(\"chr22\", 10717890, 10717890, \"chr22\", null, \"N\",\n \"<BND>\", 5170, \"-+\", null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 10717890, 10717890),\n new SimpleInterval(\"chr22\", 10723060, 10723060) }),\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.DUP,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 10717890, 10723060)}) },\n { createVariantContext(\"chr22\", 10774600, 10784500, \"chr22\", null, \"N\",\n \"<CNV>\", 9900, null, null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.CNV,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.CNV,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 10774600, 10784500)}),\n null },\n { createVariantContext(\"chr22\", 10930458, 10930458, \"chr22\", 11564561, \"N\",\n \"<BND>\", 634103, \"--\", null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 10930458, 10930458),\n new SimpleInterval(\"chr22\", 11564561, 11564561) }),\n null },\n { createVariantContext(\"chr22\", 17636024, 17636024, \"chr22\", null, \"N\",\n \"<BND>\", 10709, \"+-\", null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 17636024, 17636024),\n new SimpleInterval(\"chr22\", 17646733, 17646733) }),\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.DEL,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 17636024, 17646733)}) },\n { createVariantContext(\"chr22\", 18971159, 18971435, \"chr22\", null, \"N\",\n \"<CPX>\", 386, null, \"dDUP\",\n Arrays.asList(\"INV_chr22:20267228-20267614\",\"DUP_chr22:20267228-20267614\")),\n SVAnnotateEngine.StructuralVariantAnnotationType.CPX,\n Arrays.asList(\n new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.INV,\n new SimpleInterval(\"chr22\", 20267228, 20267614)),\n new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.DUP,\n new SimpleInterval(\"chr22\", 20267228, 20267614)),\n new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.INS,\n new SimpleInterval(\"chr22\", 18971159, 18971160))),\n null },\n { createVariantContext(\"chr22\", 22120897, 22120897, \"chrX\", 126356858, \"N\",\n \"<BND>\", -1, \"++\", null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 22120897, 22120897),\n new SimpleInterval(\"chrX\", 126356858, 126356858) }),\n null },\n { createVariantContext(\"chr22\", 22196261, 22196261, \"chr22\", null, \"N\",\n \"<BND>\", 708725, \"+-\", null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 22196261, 22196261),\n new SimpleInterval(\"chr22\", 22904986, 22904986) }),\n null },\n { createVariantContext(\"chr22\", 22196261, 22196261, null, null, \"A\",\n \"A[chr22:22904986[\", null, \"+-\", null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 22196261, 22196261) }),\n null },\n { createVariantContext(\"chr22\", 22904986, 22904986, null, null, \"T\",\n \"]chr22:22196261]T\", null, \"+-\", null, null),\n SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n createListOfSVSegments(SVAnnotateEngine.StructuralVariantAnnotationType.BND,\n new SimpleInterval[]{ new SimpleInterval(\"chr22\", 22904986, 22904986) }),\n null },\n { createVariantContext(\"chr22\", 36533058, 36538234, \"chr22\", null, \"N\",\n \"<CPX>\", 5176, null, \"dupINV\",\n Arrays.asList(\"DUP_chr22:36533058-36533299\",\"INV_chr22:36533058-36538234\")),\n SVAnnotateEngine.StructuralVariantAnnotationType.CPX,\n Arrays.asList(\n new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.DUP,\n new SimpleInterval(\"chr22\", 36533058, 36533299)),\n new SVAnnotateEngine.SVSegment(SVAnnotateEngine.StructuralVariantAnnotationType.INV,\n new SimpleInterval(\"chr22\", 36533058, 36538234))),\n null }\n };\n }", "void gaInfo(String text);", "public Map<String, Object> getFirstDisplayedProgramDetails() throws ParseException;", "@Override\n\tpublic String toString() {\n\t\t\n\t\treturn \"Standard Text Analyse\";\n\t}", "protected GeneralInfo(){\r\n \t\tsuper();\r\n \t}", "@Override\n public String getDescription() {\n return \"Tagged data extend\";\n }", "public void GenSetAnnotation(ReadOrganism infoOrganism, String author) throws Exception {\t\t\n\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\tint countMod = 1;\n\t\tfor(String module :infoOrganism.module2symbols.keySet()) {\n\t\t\n\t\t\tSystem.out.println(\"### Module : \"+module+ \" - \" + countMod +\"/\"+infoOrganism.module2symbols.keySet().size());\n\t\t\tcountMod++;\n\t\t\tList<String> symb = new ArrayList<String>( infoOrganism.module2symbols.get(module)); // Get the gene to a precise module\n\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/\"+author+\"_\"+ic+\"/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t}\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "com.google.protobuf.StringValue getExternalAttributionModel();", "public void setSummary() {\n\t\tString dataset = datasetInfo.getSelectedFile().getAbsolutePath();\n\t\tdatasetLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + dataset + \"</font></center></html>\");\n\t\t\n\t\tfloat putNumber = privacyInfo.getPUTNumber();\n\t\tString privacyExceptions = privacyInfo.getPrivacyExceptions().toString();\n\t\tif(privacyExceptions == null || privacyExceptions.trim().length() == 0 || privacyExceptions.equals(\"[]\"))\n\t\t\tprivacyExceptions = \"<b><i>None</i></b>\";\n\t\telse\n\t\t\tprivacyExceptions = \"{\" + privacyExceptions.substring(1, privacyExceptions.length()-1) + \"}\";\n\t\tString utilityExceptions = privacyInfo.getUtilityExceptions().toString();\n\t\tif(utilityExceptions == null || utilityExceptions.trim().length() == 0 || utilityExceptions.equals(\"[]\"))\n\t\t\tutilityExceptions = \"<b><i>None</i></b>\";\n\t\telse\n\t\t\tutilityExceptions = \"{\" + utilityExceptions.substring(1, utilityExceptions.length()-1) + \"}\";\n\t\t\n\t\tputLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + putNumber + \"</font></center></html>\");\n\t\tprivacyExceptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + privacyExceptions + \"</font></center></html>\");\n\t\tutilityExceptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + utilityExceptions + \"</font></center></html>\");\n\t\t\n\t\tfloat vExpense = expenseInfo.getVerticalExpense();\n\t\tfloat hExpense = expenseInfo.getHorizontalExpense();\n\t\t\n\t\tverticalExpenseLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + vExpense + \"</font></center></html>\");\n\t\thorizontalExpenseLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + hExpense + \"</font></center></html>\");\n\t\t\n\t\tString classifier = classifierInfo.getClassifier();\n\t\tString classifierOptions = classifierInfo.getCustomOptions();\n\t\tif(classifierOptions == null || classifierOptions.trim().length() == 0 || classifierOptions.equals(\"{}\"))\n\t\t\tclassifierOptions = \"<b><i>None</i></b>\";\n\t\t\n\t\tclassifierLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + classifier + \"</font></center></html>\");\n\t\tclassifierOptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + classifierOptions + \"</font></center></html>\");\n\t}", "public void nodata();", "public String getCaseInstanceAnalysisParameters() {\n return caseInstanceAnalysisParameters;\n }", "@Subscribe\r\n\tpublic void onSelectBMDAnalysisResults(BMDAnalysisDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}", "public String getResearchDescription() {\r\n return this.researchDescription;\r\n }", "public String getDataInternal() {\n\t\treturn this.appTda_.getPassedInParameters();\n\t}", "void analysisStarting();", "object_detection.protos.Calibration.TrainingDataType getTrainingDataType();", "List<Defect> analyze(StructuredScenario mainScenario, HashMap<String, List<StructuredScenario>> sequentiallyRelatedScenariosHashMap, HashMap<String, List<StructuredScenario>> nonSeqRelatedScenarioHashMap);", "private String getDatosCurriculum() {\n\t\tStringBuffer sqlString = new StringBuffer();\n\t\tsqlString.append(\"SELECT TITULO_CV, RESUMEN_PROFESIONAL,\");\n\t\tsqlString.append(\"FACEBOOK, TWITTER, LINKEDIN, OBJETIVOS \");\n\t\tsqlString.append(\"FROM FORMATO_LPA \");\n\t\tsqlString.append(\"WHERE ID_CANDIDATO = ?\");\n\t\tlogger.debug(sqlString.toString());\n\t\treturn sqlString.toString();\n\t}", "@Override\n protected void processSelect() {\n \n }", "List<BasicInfoPrecursorProcessType> selectByExample(BasicInfoPrecursorProcessTypeExample example);", "public Map<String, Object> getProgramDetails() throws ParseException;", "Information getInfo();", "QDataSetTerm createDataSetTerm();", "public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public TbPdfInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private List<String> extractFeatures() {\n List<String> result = new ArrayList<String>();\n\n int startPoint = -1;\n\n List<TextPosition> featureItem;\n for (int i = 0; i < infoBlock.size(); i++) {\n // To get index of the text in the information block, if the text does not exist, the index will be -1.\n int index = CommonUtils.collectTextBuffer(infoBlock.get(i)).indexOf(FEATURE_KEY);\n if (index != -1) {\n startPoint = i + 1;\n\n // To locate the PDF object from the text feature to the end of the information block.\n featureItem = infoBlock.get(i).subList(index, index + FEATURE_KEY.length());\n\n // To extract information vertically. startPoint now is where the information block next to the\n // one that contains text feature.\n if (startPoint != -1) {\n result = filterTextBuffersVerical(featureItem, infoBlock, startPoint, 10);\n/*\t\t\t\t\t\tfor(String item: result)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(item);\n\t\t\t\t\t\t}*/\n }\n\n break;\n }\n }\n\n return result;\n }", "public interface TextFeature extends Closeable {\n\n /**\n * Get an ID for the feature extractor\n * @return The ID\n */\n String id();\n \n /**\n * Extract features from a feature extractor\n * @param facet The facet to extract features for\n * @return The set of features\n */\n default Feature[] extractFeatures(LensResult facet) {\n return extractFeatures(facet, NaiscListener.DEFAULT);\n }\n \n /**\n * Extract features from a feature extractor\n * @param facet The facet to extract features for\n * @param log The listener\n * @return The set of features\n */\n Feature[] extractFeatures(LensResult facet, NaiscListener log);\n\n /**\n * Get the tags that this feature extractor accepts or null for all\n * @return The set of features accepted or null for all\n */\n Set<String> tags();\n}", "public void setSpecialReviewCode() {\r\n try {\r\n //CoeusVector cvParameter = queryEngine.executeQuery(queryKey,CoeusParameterBean.class,CoeusVector.FILTER_ACTIVE_BEANS);\r\n boolean isHumanSubFetched = false;\r\n boolean isAnimalUsagefetched = false;\r\n for (int index=0;index<cvParameters.size();index++) {\r\n CoeusParameterBean coeusParameterBean=(CoeusParameterBean)cvParameters.elementAt(index);\r\n //get the value for the SPL_REV_TYPE_CODE_HUMAN parameter\r\n if(HUMAN_SUBJECTS.equals(coeusParameterBean.getParameterName())){\r\n if(CoeusConstants.SPL_REV_TYPE_CODE_HUMAN.equals(coeusParameterBean.getParameterName())){\r\n specialReviewTypeCode = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n specialReviewForm.setSpecialRevTypeCode(coeusParameterBean.getParameterValue());\r\n isHumanSubFetched = true;\r\n }\r\n }\r\n //Added for the COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - start\r\n //getting the data for parameter IACUC_SPL_REV_TYPE_CODE\r\n else if(ANIMAL_USAGE.equals(coeusParameterBean.getParameterName())) {\r\n if(CoeusConstants.IACUC_SPL_REV_TYPE_CODE.equals(coeusParameterBean.getParameterName())){\r\n specialRevTypeCodeParamForIacuc = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n specialReviewForm.setSpecialRevTypeCodeForIacuc(coeusParameterBean.getParameterValue());\r\n isAnimalUsagefetched = true;\r\n }\r\n }\r\n //if value for both SPL_REV_TYPE_CODE_HUMAN and IACUC_SPL_REV_TYPE_CODE are fetched then break the loop\r\n if(isHumanSubFetched && isAnimalUsagefetched ){\r\n break;\r\n }\r\n //Added for the COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - end\r\n }\r\n }catch(Exception exception) {\r\n \r\n }\r\n }", "protected static void useLowLevel(Instances data) throws Exception {\n\t\tSystem.out.println(\"\\n3. Low-level\");\n\t\tAttributeSelection attsel = new AttributeSelection();\n\t\tCfsSubsetEval eval = new CfsSubsetEval();\n\t\tGreedyStepwise search = new GreedyStepwise();\n\t\tsearch.setSearchBackwards(false);\n\t\t// BestFirst search = new BestFirst();\n\t\t// search.setDirection(new SelectedTag(2, BestFirst.TAGS_SELECTION));\n\t\t// GeneticSearch search = new GeneticSearch();\n\t\t// search.setMaxGenerations(8000);\n\t\t// search.setReportFrequency(20);\n\t\t// LinearForwardSelection search = new LinearForwardSelection();\n\t\t// GeneticSearchHao search = new GeneticSearchHao();\n\t\tattsel.setEvaluator(eval);\n\t\tattsel.setSearch(search);\n\t\tattsel.SelectAttributes(data);\n\t\tint[] indices = attsel.selectedAttributes();\n\t\tSystem.out.println(\"selected attribute indices (starting with 0):\\n\"\n\t\t\t\t+ Utils.arrayToString(indices));\n\t\t// begin modification Hao\n\t\tint nbAttributes = 0;\n\t\tfor (int i = 0; i < indices.length; i++) {\n\t\t\tindices[i] += 1;\n\t\t\tnbAttributes++;\n\t\t}\n\t\tSystem.out.println(\"selected attribute indices (starting with 1):\\n\"\n\t\t\t\t+ Utils.arrayToString(indices));\n\t\tSystem.out.println(\"Number of selected attributes: \" + nbAttributes);\n\t\t// end modification\n\t}", "@Parameters\r\n public static Collection<Object[]> data() {\r\n Object[][] data = new Object[][] { { \"Transportation\" ,\"auto\" } };\r\n return Arrays.asList(data);\r\n }", "@VTID(11)\n boolean getOLAP();", "public int getOldValues_descriptionType(){\n return localOldValues_descriptionType;\n }", "public String getDesc() {\r\n return \"能量变化范围详情\";\r\n }", "speech.multilang.Params.DecisionPointParams.Type getType();", "@Override\r\n\tpublic String getDocumentInfo() {\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public static void main(String[] args)\r\n {\r\n //final String INPUT_FILE=\"contact-lenses.arff\";\r\n final String INPUT_FILE=\"adult.merged.arff\";\r\n Instances data;\r\n try {\r\n Reader reader = new FileReader(INPUT_FILE);\r\n data = new Instances(reader);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to read input file \" + INPUT_FILE + \", exiting\");\r\n return;\r\n }\r\n data.setClassIndex(data.numAttributes()-1);\r\n\r\n System.out.println(\"Acquired data from file \" + INPUT_FILE);\r\n System.out.println(\"Got \" + data.numInstances() + \" instances with \" + data.numAttributes() + \" attributes, class attribute is \" + data.classAttribute().name());\r\n AttributeScoreAlgorithm scorer = new MaxScorer ();\r\n Enumeration<Attribute> atts=(Enumeration<Attribute>)data.enumerateAttributes();\r\n while (atts.hasMoreElements())\r\n {\r\n C45Attribute att=new C45Attribute(atts.nextElement());\r\n System.out.println(\"Score for attribute \" + att.WekaAttribute().name() + \" is \" + scorer.Score(data,att));\r\n }\r\n\r\n List<C45Attribute> candidateAttributes = new LinkedList<C45Attribute>();\r\n Enumeration attEnum = data.enumerateAttributes();\r\n while (attEnum.hasMoreElements())\r\n candidateAttributes.add(new C45Attribute((Attribute)attEnum.nextElement()));\r\n BigDecimal epsilon=new BigDecimal(0.1, DiffPrivacyClassifier.MATH_CONTEXT);\r\n PrivacyAgent agent = new PrivacyAgentBudget(epsilon);\r\n\r\n PrivateInstances privData = new PrivateInstances(agent,data);\r\n privData.setDebugMode(true);\r\n\r\n try {\r\n C45Attribute res=privData.privateChooseAttribute(new MaxScorer(), candidateAttributes,epsilon);\r\n System.out.println(\"Picked attribute \" + res.WekaAttribute().name());\r\n } catch(Exception e) { System.out.println(e.getMessage());}\r\n }", "public static void main(String[] args) {\n\t\tHashtable<String, String> map = new Hashtable<String, String>();\n\t\tmap.put(\"edu.mayo.bmi.uima.common.type.DocumentID\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.DocumentIDAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.textspan.LookupWindowAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.lookup.types.LookupWindowAnnotation\");\n//\t\tSpecify your mappings here\n/*\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.MCAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.TCAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.WHPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.OBJAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.PSUBAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.SUBAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.AdjAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.CNPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.NPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.NPListAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.NPPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.PPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.PVGAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.VGAnnotation\");\n*/\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.RomanNumeralAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.RomanNumeralAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.FractionAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.FractionAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.DateAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.DateAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.ProblemListAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.ProblemListAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.MeasurementAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.MeasurementAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.PersonTitleAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.PersonTitleAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.textspan.Segment\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.SegmentAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.textspan.Sentence\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.SentenceAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.syntax.WordToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.WordTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.NumToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.NumTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.PunctuationToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.PunctTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.SymbolToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.SymbolTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.NewlineToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.NewlineTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.NamedEntityAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.UmlsConcept\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.UmlsConcept\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.OntologyConcept\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.OntologyConcept\");\n\n//\t\tPrepare the list of attributes to ignore when comparing elements\n\t\tConst.init();\n//\t\tInitialize a processor\n\t\tXcasProcessor p = new XcasProcessor();\n//\t\tProcess/parse the two files specified in args[0] and args[1]\n\t\tFile f1 = new File(args[0]);\n\t\tif (!f1.exists()) { System.err.println(args[0]+\" not exist!\"); System.exit(1); }\n\t\tFile f2 = new File(args[1]);\n\t\tif (!f2.exists()) { System.err.println(args[1]+\" not exist!\"); System.exit(1); }\n\t\tXcasFile xf1 = p.process(f1);\n\t\tXcasFile xf2 = p.process(f2);\n//\t\tChange xf1 to xf2 if the second command line argument is the open source output\n\t\tfor (XcasAnnotation a : xf1.getAllAnnotations())\n\t\t\tif (map.containsKey(a.getType()))\n\t\t\t\t\ta.setType(map.get(a.getType()));\n//\t\tConstruct an XcasDiff object from the two XcasFiles\n\t\tXcasDiff d = new XcasDiff(xf1, xf2);\n//\t\tPrint differences to stdout\n\t\td.printDiff();\n//\t\tPrint an HTML summary to file specified in args[2]\n\t\ttry {\n\t\t\td.printHTML(new FileWriter(args[2]));\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"HTML summary written to \"+args[2]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t}", "static int type_of_lda(String passed){\n\t\treturn 1;\n\t}", "public CurationSet parseAnalysisResults(SeqAnalysisI seqAnalysis);", "private void refreshData() {\r\n\tif (fieldSpeciesContextSpec == null){\r\n\t\tsetData(null);\r\n\t} else {\r\n\t\tsetData(fieldSpeciesContextSpec.computeApplicableParameterList());\r\n\t}\r\n}", "ResultSet getGeneralInfo() {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \t\tString query = \"SELECT ID, Name, Type1Name, Type2Name, Height, Weight, Hab, evolvesFrom \"\n \t\t\t\t+ \"FROM pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T1, Name AS Type1Name FROM types) on type1 = t1 \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T2, Name AS Type2Name FROM Types) ON type2 = t2 \"\n \t\t\t\t+ \"NATURAL JOIN (SELECT Name AS Hab, HabitatID FROM Habitats) \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT id as tempid, evolvesfrom from pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT evolvedid, name as evolvesfrom from pokemon, evolutions WHERE pokemon.id = babyid) on id = evolvedid) on id = tempid\";\n \t\t\n \t\treturn search.executeQuery(query);\n \t\t\n \t} catch (SQLException e) {\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n }", "public void setLabResults(Set<Cdss4NsarLabor> patLabor);", "ApiSubCtgrVO selectApiSubCtgr(ApiSubCtgrRequest.ApiSubCtgrDetilRequest apiSubCtgrDetilRequest);", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "public void display() {\n \n //Print the features representation\n System.out.println(\"\\nDENSE REPRESENTATION\\n\");\n \n //Print the header\n System.out.print(\"ID\\t\");\n for (short i = 0 ; i < dimension; i++) {\n System.out.format(\"%s\\t\\t\", i);\n }\n System.out.println();\n \n //Print all the instances\n for (Entry<String, Integer> entry : mapOfInstances.entrySet()) {\n System.out.format(\"%s\\t\", entry.getKey());\n for (int i = 0; i < vectorDimension(); i++) {\n //System.out.println(allFeatures.get(entry.getValue())[i]);\n System.out.format(\"%f\\t\", allValues.get(entry.getValue())[i]); \n }\n System.out.println();\n }\n }", "@Override\n\tpublic Map<String, Object> fingViolationCarInfo(String query) throws Exception {\n\t\treturn responsitory.fingViolationCarInfo(query);\n\t}", "public interface C2007e {\n C3224j getData();\n\n float getMaxHighlightDistance();\n\n int getMaxVisibleCount();\n\n float getYChartMax();\n\n float getYChartMin();\n}", "@Test(timeout = 4000)\n public void test156() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(50, 50);\n resultMatrixLatex0.m_ShowAverage = false;\n resultMatrixLatex0.m_ShowStdDev = true;\n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[0] = false;\n booleanArray0[1] = false;\n resultMatrixLatex0.m_StdDevWidth = (-3085);\n booleanArray0[2] = true;\n resultMatrixLatex0.setPrintColNames(true);\n booleanArray0[3] = true;\n resultMatrixLatex0.setStdDevWidth((-1));\n booleanArray0[4] = true;\n resultMatrixLatex0.m_RowHidden = booleanArray0;\n resultMatrixLatex0.getDefaultEnumerateColNames();\n resultMatrixLatex0.colNameWidthTipText();\n resultMatrixLatex0.setPrintRowNames(false);\n resultMatrixLatex0.removeFilterName(\"\");\n resultMatrixLatex0.padString(\"\", 0, false);\n ResultMatrixSignificance resultMatrixSignificance0 = null;\n try {\n resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 5\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "Feature[] extractFeatures(LensResult facet, NaiscListener log);", "public ExtractionParameters(){\n\t\tif (!subset){\n\t\t\tstartFrame = 1;\n\t\t}\n\t}", "public static void main(String pOptions[]) {\n \n String parameterDirectory = \"[ENTER DEBUGGING DIRECORY]\";\n NamedEntityExtractorParameter neParameter =\n new NamedEntityExtractorParameter(\n parameterDirectory + \"ForenamesDE.txt\",\n parameterDirectory + \"SurnamesDE.txt\",\n parameterDirectory + \"SurnameSuffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"MiddleInitialsDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"TitlesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"PlacesDE.txt\",\n parameterDirectory + \"OrganizationsStartDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsEndDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"CompositeNE_HeinsUndPartner21.txt\",\n parameterDirectory + \"RegexNE_HeinsUndPartner21.txt\",\n parameterDirectory + \"NameAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"PlaceAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsDE_HeinsUndPartner21.tokenized.txt\",\n \"TestMetaDataAttribute\", false,\n parameterDirectory + \"PlaceIndicatorsDE_HeinsUndPartner21.txt\",\n false, null,\n parameterDirectory + \"PersonNameIndicatorsDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"ProfessionsDE_HeinsUndPartner21.txt\", true,\n parameterDirectory + \"StreetExceptionsDE.txt\",\n parameterDirectory + \"StreetSuffixesDE_HeinsUndPartner21.txt\",\n \"([A-Z][A-Za-z\\\\-\\\\.]*)\",\n \"([0-9\\\\-]{1,4}[a-zA-Z]?|[a-zA-Z\\\\-\\\\/]?|[Nn][Rr][\\\\.]?)\",\n \"(.*-$|^Die.*|^Der.*|^Das.*|[\\\\p{Alpha}]*ring$|.*\\\\/$)\", 2, \n \"([0-9\\\\.]{2,}|^<<.*)\");\n \n NamedEntityExtractor21 neExtractor = new NamedEntityExtractor21(\n neParameter);\n neExtractor.addTempOrganizationName(\"DiE Test ABC GmbH\");\n TestNamedEntityOwner neOwner = new TestNamedEntityOwner();\n \n for (int i = 0; i < neOwner.getNumberOfProcessedTextUnits(); i++) {\n neOwner.replaceProcessedTextUnitFromString(i,\n neExtractor.extractNamedEntities(neOwner\n .getInputTextUnitAsString(i), neOwner));\n }\n System.out.println(neOwner.toString());\n \n }", "public static void main(String[] args) {\n\r\n\t\ttry{\r\n\t\t\tString tac2008Path = \"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008_Update_Summarization_Documents/UpdateSumm08_test_docs_files\";\r\n\t\t\tExtractPrag ep = new ExtractPrag();\r\n\t\t\t\r\n\t\t\t//String wordPath = \"\";\r\n\t\t\t//ep.extractWords(wordPath)\r\n\t\t\tep.allDataset(tac2008Path);\r\n\t\t\t\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "speech.multilang.Params.DecisionPointParams getDecisionPointParams();", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n DynamicSelectModel dynamicSelectModel1 = dynamicSelectModel0.enumeration(\"J[jnSW)BoPhq1+\");\n // Undeclared exception!\n dynamicSelectModel1.getLabel(180);\n }", "public IacucProtocolOnlineReviewDeterminationTypeRecommendation() {\n \n }", "public ArrayList<Integer> getAnalysisGeneral(){\n resultListGeneral = null ;\n positiveResultGeneral = 0;\n negativeResultGeneral = 0;\n neutralResultGeneral = 0;\n try {\n IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(\"indice/\")));\n this.resultListGeneral = new ArrayList<>();\n\n for (int i = 0; i < reader.numDocs(); i++) {\n Document doc = reader.document(i);\n\n if((doc.get(\"analysis\")).equals(\"Positive\"))\n positiveResultGeneral++;\n else if((doc.get(\"analysis\")).equals(\"Negative\"))\n negativeResultGeneral++;\n else if((doc.get(\"analysis\")).equals(\"Neutral\"))\n neutralResultGeneral++;\n }\n reader.close();\n }\n catch(IOException ioe){\n System.out.println(\"Error\");\n }\n resultListGeneral.add(positiveResultGeneral);\n resultListGeneral.add(negativeResultGeneral);\n resultListGeneral.add(neutralResultGeneral);\n\n return resultListGeneral;\n }", "void antsInfo(String text);", "@Override\r\n\tpublic String getDescription() {\n\t\tString descr=\"Results\";\r\n\t\treturn descr;\r\n\t}", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "public void setSummary(String summary){\n\t String text = this.text;\n\t String s = \"\";\n // The ontology file format is described here:\n // https://trac.nbic.nl/data-mining/wiki/ErasmusMC%20ontology%20file%20format\n //final String ontologyPath = \"C:/Users/Nasko/Desktop/School/Project/semweb-peregrine.txt\"; // EDIT HERE\n\t final String ontologyPath = System.getProperty(\"user.home\") + \"/peregrine/\" + vocab + \"-peregrine.txt\";\n final Ontology ontology = new SingleFileOntologyImpl(ontologyPath);\n\n //final String propertiesDirectory = \"C:/Users/Nasko/Desktop/School/Project/lvg2006lite/data/config/\"; // EDIT HERE\n final String propertiesDirectory = System.getProperty(\"user.home\") + \"/peregrine/lvg2006lite/data/config/\";\n final Peregrine peregrine = createPeregrine(ontology, propertiesDirectory + \"lvg.properties\");\n //final String text = \"This is a simple sentence with labels like earley, bielefeld, task model ontology, etc. \" +\n // \"and immunoglobulin production, elsevier, Christian Morbidoni, Austria, Swingly, many terms like r2rml.\";\n final List<IndexingResult> indexingResults = peregrine.indexAndDisambiguate(text, Language.EN);\n\n //System.out.println(\"Number of indexing results found: \" + indexingResults.size() + \".\");\n this.summary = \"\";\n for (final IndexingResult indexingResult : indexingResults) {\n final Serializable conceptId = indexingResult.getTermId().getConceptId();\n //System.out.println();\n //System.out.println(\"- Found concept with id: \" + conceptId + \", matched text: \\\"\"\n // + text.substring(indexingResult.getStartPos(), indexingResult.getEndPos() + 1) + \"\\\".\");\n String matchedText = text.substring(indexingResult.getStartPos(), indexingResult.getEndPos() + 1);\n \n /* \n * Get the Term context - but lock it within a sentance.\n */\n String termContext = \"\";\n int cStart;\n int cEnd;\n //Get Start position of \"context\" text\n if(indexingResult.getStartPos()-15 <= indexingResult.getSentenceStartPos()) cStart = indexingResult.getSentenceStartPos();\n else {\n \t int cS = indexingResult.getStartPos()-15;\n \t cStart = indexingResult.getStartPos() - (15-text.substring(cS, indexingResult.getStartPos() + 1).indexOf(\" \")) + 1;\n }\n \n //Get End position of \"context\" text\n if(indexingResult.getEndPos()+15 >= indexingResult.getSentenceEndPos()) cEnd = indexingResult.getSentenceEndPos();\n else {\n \t int cE = indexingResult.getEndPos()+15;\n \t cEnd = indexingResult.getEndPos() + text.substring(indexingResult.getEndPos(), cE).lastIndexOf(\" \") + 1; \n }\n \n termContext = text.substring(cStart, cEnd).trim();\n /*String[] toTrim = text.substring(cStart, cEnd + 1).split(\" \");\n String[] trimmed = Arrays.copyOfRange(toTrim, 1, toTrim.length-1);\n termContext = StringUtils.join(trimmed, \" \");*/\n \n s = \"- Found concept with id: \" + conceptId + \", matched text: \\\"\"\n + matchedText + \"\\\".\";\n final Concept concept = ontology.getConcept(conceptId);\n final String preferredLabelText = LabelTypeComparator.getPreferredLabel(concept.getLabels()).getText();\n //System.out.println(\" Preferred concept label is: \\\"\" + preferredLabelText + \"\\\".\");\n s += \" Preferred concept label is: \\\"\" + preferredLabelText + \"\\\".\";\n this.summary += s + Math.random()*10;\n TaggedTerm t = new TaggedTerm();\n t.setMatchedText(matchedText);\n t.setPrefLabel(preferredLabelText);\n \n \n //Set the label\n String definition = \"\";\n String hierarchy = \"\";\n \n for(Label d : concept.getLabels()){\n \t if(d.getText().contains(\"|DEFINITION|\")){\n \t\t definition = d.getText().replace(\"|DEFINITION|\", \"\");\n \t\t break;\n \t }\n }\n \n for(Label d : concept.getLabels()){\n \t if(d.getText().contains(\"|HIERARCHY|\")){\n \t\t if(!hierarchy.equals(\"\")) hierarchy += \";;\" + d.getText().replace(\"TM |HIERARCHY|\", \"\");\n \t\t else hierarchy += d.getText().replace(\"TM |HIERARCHY|\", \"\");\n \t\t break;\n \t }\n }\n \n \n \n \n \n t.setDefinition(definition);\n t.setHierarchy(hierarchy);\n t.setTermContext(termContext);\n this.taggedTerms.add(t);\n definition = \"\";\n hierarchy = \"\";\n }\n }", "@Test\n public void testProcessSelect() throws Exception {\n\n try {\n String sql = \"select * from ts_task limit 1\";\n ResponseDataDtoV1 resp = textService.processSelect(sql, \"J\");\n System.out.println(\"res: succ \" + JSONFmtUtil.formatJsonConsole(JSONFastJsonUtil.objectToJson(resp)));\n } catch (Exception e) {\n System.out.println(\"res: error \" + e);\n e.printStackTrace();\n }\n\n }", "private void computeSets(DLProgram datalogGlobal){\n\t\t\n\t\tDLVInvocation invocation = DLVWrapper.getInstance().createInvocation(dlvPath);\n\t\tDLVInputProgram inputProgram = new DLVInputProgramImpl();\n\n\t\ttry {\t\t\t\n\t\t\tDLProgramStorer storer = new DLProgramStorerImpl();\n\t\t\tStringBuilder target = new StringBuilder();\n\t\t\tstorer.store(datalogGlobal, target);\n \n\t\t\t//Add to DLV input program the contents of global program. \n\t\t\tString datalogGlobalText = target.toString();\n\t\t\tinputProgram.addText(datalogGlobalText);\n\t\t\t\n\t\t\t//inputProgram.addText(\"triple(c1,\\\"hasModule\\\",m1,\\\"g\\\").\" + \n\t\t\t// \" inst(c1,\\\"Context\\\",\\\"g\\\").\"+ \n\t\t\t// \"triple(c1,\\\"hasModule\\\",m2,\\\"g\\\").\" + \n\t\t\t// \"triple(X, \\\"hasModule\\\", m3, \\\"g\\\") :- inst(X,\\\"Context\\\",\\\"g\\\").\");\n\t\t\t\n\t\t\t//Set input program for current invocation.\n\t\t\tinvocation.setInputProgram(inputProgram);\n\t\t\t\n\t\t\t//Filter for \\triple and \\inst predicates. \n\t\t\t//System.out.println(inputProgram.getCompleteText());\n\t\t\tList<String> filters = new LinkedList<String>();\n\t\t\tfilters.add(\"tripled\");\n\t\t\tfilters.add(\"instd\");\n\t\t\tinvocation.setFilter(filters, true);\n\t\t\t\n\t\t\t//List of computed models, used to check at least a model is computed.\n\t\t\tfinal List<Model> models = new ArrayList<Model>();\n\t\t\t\n\t\t\t//Model handler: retrieves contexts and associations in the computed model(s).\n\t\t\tinvocation.subscribe(new ModelHandler() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void handleResult(DLVInvocation paramDLVInvocation,\n\t\t\t\t\t\tModelResult modelResult) {\n\t\t\t\t\t\n\t\t\t\t\t//System.out.print(\"{ \");\n\t\t\t\t\tModel model = (Model) modelResult;\n\t\t\t\t\tmodels.add(model);\n\n\t\t\t\t\t//model.beforeFirst();\n\t\t\t\t\t//while (model.hasMorePredicates()) {}\n\n\t\t\t\t\t//Predicate predicate = model.nextPredicate();\n\t\t\t\t\tPredicate predicate = model.getPredicate(\"instd\");\n\t\t\t\t\tif (predicate != null){\n\t\t\t\t\t\t//System.out.println(predicate.name() + \": \");\n\t\t\t\t\t\twhile (predicate.hasMoreLiterals()) {\n\n\t\t\t\t\t\t\tLiteral literal = predicate.nextLiteral();\n\t\t\t\t\t\t\tif (literal.getAttributeAt(1).toString().equals(\"\\\"Context\\\"\")) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//Add context to list of inferred contexts.\n\t\t\t\t\t\t\t\tcontextsSet.add(literal.getAttributeAt(0).toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//System.out.print(literal);\n\t\t\t\t\t\t\t\t//System.out.println(\", \");\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\t\n\t\t\t\t\tpredicate = model.getPredicate(\"tripled\");\n\t\t\t\t\tif (predicate != null){\n\t\t\t\t\t\t//System.out.println(predicate.name() + \": \");\n\t\t\t\t\t\twhile (predicate.hasMoreLiterals()) {\n\n\t\t\t\t\t\t\t//Add module association for each context.\n\t\t\t\t\t\t\tLiteral literal = predicate.nextLiteral();\n\t\t\t\t\t\t\tif (literal.getAttributeAt(1).toString().equals(\"\\\"hasModule\\\"\")) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString[] association = new String[2];\n\t\t\t\t\t\t\t\tassociation[0] = literal.getAttributeAt(0).toString();\n\t\t\t\t\t\t\t\tassociation[1] = literal.getAttributeAt(2).toString();\n\t\t\t\t\t\t\t\thasModuleAssociations.add(association);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//System.out.print(literal);\n\t\t\t\t\t\t\t\t//System.out.println(\", \");\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\t\n\t\t\t\t\t//System.out.println(\"}\");\n\t\t\t\t\t//System.out.println();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\n\t\t\tinvocation.run();\n\t\t\tinvocation.waitUntilExecutionFinishes();\n\t\t\t\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\tglobalModelComputationTime = endTime - startTime;\n\t\t\t\n\t\t\t//System.out.println(\"Global computation time: \" + globalModelComputationTime + \" ms.\");\n\t\t\t\n\t\t\tList<DLVError> k = invocation.getErrors();\n\t\t\tif (k.size() > 0)\n\t\t\t\tSystem.err.println(k);\n\t\t\t\n\t\t\t//System.out.println(\"Number of computed models: \" + models.size());\n\t\t\tif(models.size() == 0) \n\t\t\t\tSystem.err.println(\"[!] No models for global context program.\");\n\t\t\t\n\t\t\t//for (String[] a : hasModuleAssociations) {\n\t\t\t//\tSystem.out.println(a[0] + \" -> \" + a[1]);\n\t\t\t//}\n\t\t\t\n\t\t\t//System.out.println(\"Contexts: \");\n\t\t\t//for (String s : contextsSet) {\n\t\t\t//\tSystem.out.println(s);\n\t\t\t//\tfor(String[] a : hasModuleAssociations){\n\t\t\t//\t\tif(a[0].equals(s))\n\t\t\t//\t\tSystem.out.println(\" -> \" + a[1]);\t\n\t\t\t//\t}\n\t\t\t//}\n\t\t} catch (DLVInvocationException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String setInfo() {\n\t\treturn \"There is no parameter\";\r\n\t}", "public Set<Cdss4NsarLabor> getLabResults();", "public VibrationalStructureInfo() {\n }", "private void readSelection() {\n\t\tnumberOfNodes = Integer.parseInt(number.getText());\n\t\tdistributionSel = distributionModelComboBox.getSelectedItem().toString();\n\t\tnodeTypeSel = nodeTypeComboBox.getSelectedItem().toString();\n\t\tinterferenceSel = interferenceModelComboBox.getSelectedItem().toString();\n\t\tmobilitySel = mobilityModelComboBox.getSelectedItem().toString();\n\t\treliabilitySel = reliabilityModelComboBox.getSelectedItem().toString();\n\t\tconnectivitySel = connectivityModelComboBox.getSelectedItem().toString();\n\t\t\n\t\tdistributionParamDefString = distributionParam.getText();\n\t\tinterferenceDefString = interferenceParam.getText();\n\t\tmobilityDefString = mobilityParam.getText();\n\t\treliabilityDefString = reliabilityParam.getText();\n\t\tconnectivityDefString = connectivityParam.getText();\n\t}", "@Override\n public void selectionChanged(JavaTextSelection selection) {\n try {\n setEnabled(RefactoringAvailabilityTester.isGeneralizeTypeAvailable(selection));\n } catch (JavaModelException e) {\n setEnabled(false);\n }\n }", "public static void main(String[] args) {\n String dataDir = Utils.getDataDir(ParticularDWGToImage.class) + \"DWGDrawings/\";\n String sourceFilePath = dataDir + \"visualization_-_conference_room.dwg\";\n\n CadImage cadImage = ((CadImage)(Image.load(sourceFilePath)));\n\n CadBaseEntity[] entities = cadImage.getEntities();\n \n List<CadBaseEntity> filteredEntities = new ArrayList<CadBaseEntity>();\n for (CadBaseEntity baseEntity : entities) {\n // selection or filtration of entities\n if ((baseEntity.getTypeName() == CadEntityTypeName.TEXT)) {\n filteredEntities.add(baseEntity);\n }\n\n }\n \n CadBaseEntity[] arr = new CadBaseEntity[filteredEntities.size()];\n cadImage.setEntities(filteredEntities.toArray(arr));\n // Create an instance of CadRasterizationOptions and set its various properties\n CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();\n rasterizationOptions.setPageWidth(1600);\n rasterizationOptions.setPageHeight(1600);\n // Set Auto Layout Scaling\n rasterizationOptions.setAutomaticLayoutsScaling(true);\n // Create an instance of PdfOptions\n PdfOptions pdfOptions = new PdfOptions();\n // Set the VectorRasterizationOptions property\n pdfOptions.setVectorRasterizationOptions(rasterizationOptions);\n String outFile = dataDir + \"result_out_generated.pdf\";\n // Export the CAD to PDF\n cadImage.save(outFile, pdfOptions);\n //ExEnd:ParticularDWGToImage\n }" ]
[ "0.5238439", "0.52196574", "0.51953226", "0.51117027", "0.5111526", "0.5105282", "0.510523", "0.5096261", "0.50944126", "0.50850177", "0.5070897", "0.50322723", "0.5019853", "0.5018379", "0.50028735", "0.49912393", "0.4945482", "0.49300572", "0.4926408", "0.4896921", "0.4892464", "0.48899576", "0.48852855", "0.48838937", "0.48781464", "0.48445055", "0.4831667", "0.48032212", "0.47890973", "0.47885028", "0.4777085", "0.4771659", "0.47477385", "0.474048", "0.47357634", "0.47336915", "0.47256336", "0.4723754", "0.47181472", "0.47158787", "0.47142786", "0.47069144", "0.4694767", "0.46936408", "0.46915048", "0.46848613", "0.46788087", "0.4677865", "0.46765617", "0.4675286", "0.46732146", "0.46727273", "0.4668585", "0.46677664", "0.46618372", "0.46613324", "0.46612296", "0.46606252", "0.46597046", "0.46555498", "0.4653794", "0.46533376", "0.4645606", "0.46442536", "0.46434537", "0.46385565", "0.46322125", "0.463149", "0.46276075", "0.46240658", "0.4617649", "0.46104434", "0.4610382", "0.46089628", "0.46074706", "0.46041307", "0.4603548", "0.45971242", "0.45942026", "0.4590499", "0.4587948", "0.45856395", "0.4582266", "0.45799774", "0.45789817", "0.45731723", "0.45723283", "0.45712203", "0.4570124", "0.45665416", "0.45622396", "0.45621842", "0.45608455", "0.45586723", "0.455641", "0.4555848", "0.45518038", "0.45505333", "0.45327082", "0.45235866", "0.45173973" ]
0.0
-1
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary generalinfo: The external analysis report in any suitable form including selection filters where appropriate
public Object getPerformanceAssessmentInstanceAnalysisReport() { return performanceAssessmentInstanceAnalysisReport; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize(\"$tE|HFM4Wv\");\n discretize0.globalInfo();\n // Undeclared exception!\n try { \n discretize0.outputPeek();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize(\"GUIEditors.props\");\n discretize0.useBinNumbersTipText();\n // Undeclared exception!\n try { \n discretize0.output();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public static void setNoAnalysis() {\n noAnalysis = true;\n }", "private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():java.util.Map\");\n }", "@Schema(description = \"`status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary general-info: The external report in any suitable form including selection filters where appropriate \")\n public Object getAssessmentInstanceReport() {\n return assessmentInstanceReport;\n }", "void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.findNumBinsTipText();\n // Undeclared exception!\n try { \n discretize0.output();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public static void main(String[] args) throws IOException {\n int activeThreshold = 300;\n //Activity.selectActive(\"st\", 6, activeThreshold);\n //Activity.selectActive(\"ri\", 6, activeThreshold);\n //Activity.selectActive(\"dw\", 9, activeThreshold);\n\n //Interaction.analysis(\"st\", 6);\n //Interaction.analysis(\"ri\", 6);\n\n //BehaviourIndicators.analysis(\"st\", 6);\n //BehaviourIndicators.analysis(\"ri\", 6);\n //BehaviourIndicators.analysis(\"dw\", 9);\n\n Engagement.analysis(\"st\",6);\n Engagement.analysis(\"ri\",6);\n //todo the data files for DW have to be adjusted to the ones of the other two to be able to run it\n //Engagement.analysis(\"dw\",9);\n\n //Motivation.analysis(\"ri\", 6);\n //Motivation.analysis(\"st\", 6);\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.binsTipText();\n discretize0.getCapabilities();\n discretize0.setMakeBinary(true);\n discretize0.getOptions();\n discretize0.binsTipText();\n // Undeclared exception!\n try { \n discretize0.getOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output format defined.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public void getSafetyReportSummaryData() throws RemoteException {\n throw new RemoteException(\"Not yet implemented\");\n }", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.getOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output format defined.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "private void initAllVariables(boolean showAll)\n/* */ {\n/* 281 */ ResultSet thresholdVsEntityResultSet = null;\n/* */ \n/* 283 */ if (showAll)\n/* */ {\n/* 285 */ this.thresholdVsEntityQuery = \"select mo.DESCRIPTION,RESOURCEID,ATTRIBUTEID,THRESHOLDCONFIGURATIONID from AM_ManagedObject mo join AM_ATTRIBUTES aa on mo.TYPE=aa.RESOURCETYPE left join AM_ATTRIBUTETHRESHOLDMAPPER aam on mo.RESOURCEID=aam.ID and aam.ATTRIBUTE=aa.ATTRIBUTEID left join AM_THRESHOLDCONFIG tc on tc.ID=aam.THRESHOLDCONFIGURATIONID where ((mo.type='HAI' AND (aa.ATTRIBUTE='Health' OR aa.ATTRIBUTE='Availability')) OR mo.TYPE!='HAI' OR mo.TYPE!='Network') AND mo.DCSTARTED!=0\";\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 290 */ this.thresholdVsEntityQuery = \"select mo.DESCRIPTION,RESOURCEID,ATTRIBUTEID,THRESHOLDCONFIGURATIONID from AM_ManagedObject mo join AM_ATTRIBUTES aa on mo.TYPE=aa.RESOURCETYPE join AM_ATTRIBUTETHRESHOLDMAPPER aam on mo.RESOURCEID=aam.ID and aam.ATTRIBUTE=aa.ATTRIBUTEID join AM_THRESHOLDCONFIG tc on tc.ID=aam.THRESHOLDCONFIGURATIONID where ((mo.type='HAI' AND (aa.ATTRIBUTE='Health' OR aa.ATTRIBUTE='Availability')) OR mo.TYPE!='HAI' OR mo.TYPE!='Network') AND mo.DCSTARTED!=0 \";\n/* */ }\n/* */ try\n/* */ {\n/* 294 */ thresholdVsEntityResultSet = AMConnectionPool.executeQueryStmt(this.thresholdVsEntityQuery);\n/* 295 */ while (thresholdVsEntityResultSet.next())\n/* */ {\n/* 297 */ String validResId = thresholdVsEntityResultSet.getString(\"RESOURCEID\");\n/* 298 */ String entity = validResId + \"_\" + thresholdVsEntityResultSet.getString(\"ATTRIBUTEID\");\n/* 299 */ String description = thresholdVsEntityResultSet.getString(\"DESCRIPTION\");\n/* 300 */ this.validEntities.add(entity);\n/* */ \n/* 302 */ this.validResIdsVsEntitySet.put(validResId, entity);\n/* 303 */ this.thresholdVsEntityMap.put(entity, thresholdVsEntityResultSet.getString(\"THRESHOLDCONFIGURATIONID\"));\n/* 304 */ this.thresholdVsDescriptionMap.put(validResId, description);\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 309 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 313 */ AMConnectionPool.closeStatement(thresholdVsEntityResultSet);\n/* */ }\n/* */ \n/* 316 */ ResultSet actionVsEntityResultSet = null;\n/* */ try\n/* */ {\n/* 319 */ actionVsEntityResultSet = AMConnectionPool.executeQueryStmt(\"select aam.ID,aam.ATTRIBUTE,aam.SEVERITY,aam.ACTIONID,ap.NAME from AM_ATTRIBUTEACTIONMAPPER aam join AM_ACTIONPROFILE ap on ap.ID=aam.ACTIONID join AM_ManagedObject mo on mo.RESOURCEID=aam.ID \");\n/* 320 */ while (actionVsEntityResultSet.next())\n/* */ {\n/* 322 */ String validResId = actionVsEntityResultSet.getString(\"ID\");\n/* 323 */ String entity = validResId + \"_\" + actionVsEntityResultSet.getString(\"ATTRIBUTE\");\n/* 324 */ this.validEntities.add(entity);\n/* */ \n/* */ \n/* 327 */ this.validResIdsForAction.put(validResId, entity);\n/* */ \n/* 329 */ String entityWithSeverity = entity + \"_\" + actionVsEntityResultSet.getString(\"SEVERITY\");\n/* 330 */ List<String> actions = (List)this.actionVsEntityMap.get(entityWithSeverity);\n/* 331 */ if (actions == null)\n/* */ {\n/* 333 */ actions = new ArrayList();\n/* 334 */ this.actionVsEntityMap.put(entityWithSeverity, actions);\n/* */ }\n/* 336 */ actions.add(actionVsEntityResultSet.getString(\"NAME\"));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 341 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 345 */ AMConnectionPool.closeStatement(actionVsEntityResultSet);\n/* */ }\n/* */ \n/* 348 */ ResultSet numericThresholdProfileResultSet = null;\n/* */ try\n/* */ {\n/* 351 */ numericThresholdProfileResultSet = AMConnectionPool.executeQueryStmt(\"select ID,NAME,TYPE,DESCRIPTION,CRITICALTHRESHOLDCONDITION,CASE WHEN TYPE=4 THEN (select AM_FLOAT_THRESHOLDCONFIG.CRITICALTHRESHOLDVALUE FROM AM_FLOAT_THRESHOLDCONFIG WHERE AM_FLOAT_THRESHOLDCONFIG.ID=AM_THRESHOLDCONFIG.ID) ELSE AM_THRESHOLDCONFIG.CRITICALTHRESHOLDVALUE END as CRITICALTHRESHOLDVALUE,CRITICALTHRESHOLDMESSAGE,WARNINGTHRESHOLDCONDITION,CASE WHEN TYPE=4 THEN (select AM_FLOAT_THRESHOLDCONFIG.WARNINGTHRESHOLDVALUE FROM AM_FLOAT_THRESHOLDCONFIG WHERE AM_FLOAT_THRESHOLDCONFIG.ID=AM_THRESHOLDCONFIG.ID) ELSE AM_THRESHOLDCONFIG.WARNINGTHRESHOLDVALUE END as WARNINGTHRESHOLDVALUE,WARNINGTHRESHOLDMESSAGE,INFOTHRESHOLDCONDITION,CASE WHEN TYPE=4 THEN (select AM_FLOAT_THRESHOLDCONFIG.INFOTHRESHOLDVALUE FROM AM_FLOAT_THRESHOLDCONFIG WHERE AM_FLOAT_THRESHOLDCONFIG.ID=AM_THRESHOLDCONFIG.ID) ELSE AM_THRESHOLDCONFIG.INFOTHRESHOLDVALUE END as INFOTHRESHOLDVALUE,INFOTHRESHOLDMESSAGE,CRITICAL_POLLSTOTRY,WARNING_POLLSTOTRY,CLEAR_POLLSTOTRY from AM_THRESHOLDCONFIG\");\n/* 352 */ while (numericThresholdProfileResultSet.next())\n/* */ {\n/* 354 */ this.numericThresholdProfileVsThresholdIdMap.put(numericThresholdProfileResultSet.getString(\"ID\"), getHashMapfromResultSetRow(numericThresholdProfileResultSet));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 359 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 363 */ AMConnectionPool.closeStatement(numericThresholdProfileResultSet);\n/* */ }\n/* */ \n/* 366 */ ResultSet stringThresholdProfileResultSet = null;\n/* */ try\n/* */ {\n/* 369 */ stringThresholdProfileResultSet = AMConnectionPool.executeQueryStmt(\"select * from AM_PATTERNMATCHERCONFIG\");\n/* 370 */ while (stringThresholdProfileResultSet.next())\n/* */ {\n/* 372 */ this.stringThresholdProfileVsThresholdIdMap.put(stringThresholdProfileResultSet.getString(\"ID\"), getHashMapfromResultSetRow(stringThresholdProfileResultSet));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 377 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 381 */ AMConnectionPool.closeStatement(stringThresholdProfileResultSet);\n/* */ }\n/* */ \n/* 384 */ ResultSet managedObjectResultSet = null;\n/* */ try\n/* */ {\n/* 387 */ managedObjectResultSet = AMConnectionPool.executeQueryStmt(\"select RESOURCEID,DISPLAYNAME,TYPE,CREATIONTIME from AM_ManagedObject\");\n/* 388 */ while (managedObjectResultSet.next())\n/* */ {\n/* 390 */ String resId = managedObjectResultSet.getString(\"RESOURCEID\");\n/* 391 */ this.managedObjectVsResourceIdMap.put(resId, getHashMapfromResultSetRow(managedObjectResultSet));\n/* 392 */ String creationTime = managedObjectResultSet.getString(\"CREATIONTIME\");\n/* 393 */ if (creationTime != null)\n/* */ {\n/* 395 */ this.resIdVsCreationTimeMap.put(resId, FormatUtil.formatDT(creationTime).replaceAll(\",\", \" \"));\n/* */ }\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 401 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 405 */ AMConnectionPool.closeStatement(managedObjectResultSet);\n/* */ }\n/* */ \n/* */ \n/* 409 */ ResultSet attributeResultSet = null;\n/* */ try\n/* */ {\n/* 412 */ attributeResultSet = AMConnectionPool.executeQueryStmt(\"select ATTRIBUTEID,DISPLAYNAME from AM_ATTRIBUTES\");\n/* 413 */ while (attributeResultSet.next())\n/* */ {\n/* 415 */ this.attributeMap.put(attributeResultSet.getString(\"ATTRIBUTEID\"), FormatUtil.getString(attributeResultSet.getString(\"DISPLAYNAME\")));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 420 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 424 */ AMConnectionPool.closeStatement(attributeResultSet);\n/* */ }\n/* */ \n/* 427 */ ResultSet actionProfileVsActionIdResultSet = null;\n/* */ \n/* */ try\n/* */ {\n/* 431 */ actionProfileVsActionIdResultSet = AMConnectionPool.executeQueryStmt(\"select ID,NAME from AM_ACTIONPROFILE\");\n/* 432 */ while (actionProfileVsActionIdResultSet.next())\n/* */ {\n/* 434 */ this.actionProfileVsActionIdMap.put(actionProfileVsActionIdResultSet.getString(\"ID\"), actionProfileVsActionIdResultSet.getString(\"NAME\"));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 439 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 443 */ AMConnectionPool.closeStatement(actionProfileVsActionIdResultSet);\n/* */ }\n/* */ \n/* 446 */ ResultSet monitorsResultSet = null;\n/* */ try\n/* */ {\n/* 449 */ monitorsResultSet = AMConnectionPool.executeQueryStmt(\"select RESOURCEID from AM_ManagedObject,AM_ManagedResourceType where AM_ManagedResourceType.RESOURCETYPE=AM_ManagedObject.TYPE and TYPE!='HAI'\");\n/* 450 */ while (monitorsResultSet.next())\n/* */ {\n/* 452 */ this.monitors.add(monitorsResultSet.getString(\"RESOURCEID\"));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 457 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 461 */ AMConnectionPool.closeStatement(monitorsResultSet);\n/* */ }\n/* */ \n/* 464 */ ResultSet parentChildMapperResultSet = null;\n/* */ try\n/* */ {\n/* 467 */ parentChildMapperResultSet = AMConnectionPool.executeQueryStmt(\"select PARENTID,CHILDID from AM_PARENTCHILDMAPPER\");\n/* 468 */ while (parentChildMapperResultSet.next())\n/* */ {\n/* 470 */ String parentId = parentChildMapperResultSet.getString(\"PARENTID\");\n/* 471 */ String childId = parentChildMapperResultSet.getString(\"CHILDID\");\n/* */ \n/* 473 */ this.childVsParentMap.put(childId, parentId);\n/* 474 */ this.parentVsChildMap.put(parentId, childId);\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 479 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 483 */ AMConnectionPool.closeStatement(parentChildMapperResultSet);\n/* */ }\n/* */ \n/* */ \n/* 487 */ Object mgIdList = new ArrayList();\n/* 488 */ ResultSet haIdQueryRs = null;\n/* */ try\n/* */ {\n/* 491 */ haIdQueryRs = AMConnectionPool.executeQueryStmt(this.haIdQuery.toString());\n/* 492 */ while (haIdQueryRs.next())\n/* */ {\n/* 494 */ ((ArrayList)mgIdList).add(haIdQueryRs.getString(\"HAID\"));\n/* */ }\n/* */ }\n/* */ catch (Exception e1)\n/* */ {\n/* 499 */ e1.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 503 */ AMConnectionPool.closeStatement(haIdQueryRs);\n/* */ }\n/* */ try\n/* */ {\n/* 507 */ for (String mgId : (ArrayList)mgIdList)\n/* */ {\n/* */ \n/* 510 */ Object subGroups = (ArrayList)ReportUtil.getLastLevelSubGroup(new ArrayList(), mgId);\n/* 511 */ this.parentGroupVsSubGrpIds.put(mgId, subGroups);\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 516 */ e.printStackTrace();\n/* */ }\n/* */ }", "protected abstract void analyzeSystem(PipelineData data) throws Exception;", "@Override\n\tpublic Map<String, Object> fingViolationCarInfo(String query) throws Exception {\n\t\treturn responsitory.fingViolationCarInfo(query);\n\t}", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "TraceUndefinedDataView undefinedData();", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "private void GetDetailAnalysisText() {\n\t\tMap<Integer, ArrayList<ReportPluDayComboModifier>> combMap = getCombItemMap(this.comb);\n\n\t\tComparatorPluDayItem comparatorPluDayItem = new ComparatorPluDayItem();\n\t\tCollections.sort(reportPluDayItems, comparatorPluDayItem);\n//\t\tList<ReportPluDayItem> cop = new ArrayList<ReportPluDayItem>();\n\t\tint allQty = 0;\n\t\tBigDecimal allAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\tboolean showMainCategory = true;\n//\t\t\tint mainCategoryId = 0;\n\t\tboolean lastLinePrinted = false;\n//\t\tBigDecimal categoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\tString name = \"\";\n//\t\tint id = 0;\n\t\tMap<Integer, ReportPluDayItem> map = new HashMap<Integer, ReportPluDayItem>();\n\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t//ObjectFactory.getInstance().getReportPluDayItem(reportPluDayItem);\n\t\t\tif(map.containsKey(reportPluDayItem.getItemMainCategoryId().intValue())){\n\t\t\t\tReportPluDayItem amountReportPluDayItem = map.get(reportPluDayItem.getItemMainCategoryId().intValue());\n\t\t\t\tBigDecimal amount = BH.add(BH.getBD(amountReportPluDayItem.getItemAmount()), BH.getBD(reportPluDayItem.getItemAmount()), false);\n\t\t\t\tamountReportPluDayItem.setItemAmount(amount.toString());\n\t\t\t}else{\n\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n\t\t\t\trr.setItemMainCategoryId(reportPluDayItem.getItemMainCategoryId());\n\t\t\t\trr.setItemMainCategoryName(reportPluDayItem.getItemMainCategoryName());\n\t\t\t\trr.setItemAmount(BH.formatMoney(reportPluDayItem.getItemAmount()));\n\t\t\t\tmap.put(reportPluDayItem.getItemMainCategoryId().intValue(), rr);\n\t\t\t}\n//\t\t\t\tif(mainCategoryId == 0 || mainCategoryId == reportPluDayItem.getItemMainCategoryId().intValue()){\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\n//\t\t\t\t\tif(mainCategoryId == 0)\n//\t\t\t\t\t\tmainCategoryId = id;\n//\n//\t\t\t\t\tif( j == reportPluDayItems.size() - 1){\n//\t\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\t}\n//\t\t\t\t}else{\n//\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\t\t\t\t\tmainCategoryId = id;\n//\t\t\t\t\tcategoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\n//\t\t\t\t}\n\t\t}\n\n\t\tIterator<Map.Entry<Integer, ReportPluDayItem>> entries = map.entrySet().iterator();\n\t\tboolean isFirst = true;\n\t\twhile (entries.hasNext()){\n\t\t\tMap.Entry<Integer, ReportPluDayItem> entry = entries.next();\n\t\t\tif(!isFirst){\n\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t}\n\t\t\tisFirst = false;\n\t\t\tReportPluDayItem amontReportPluDayItem = entry.getValue();\n\t\t\tthis.AddItem(amontReportPluDayItem.getItemMainCategoryName(), \"\", \"\", BH.formatMoney(amontReportPluDayItem.getItemAmount()).toString(), 1);\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t\tif (amontReportPluDayItem.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n\t\t\t\t\t// Print comb modifier\n\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n\n\t\t\t\t\t\tint mm = 0;\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n\t\t\t\t\t\t\t\tBH.formatThree(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n\t\t\t\t\t\t\tif (count > 0) {\n\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n\t\t\t\t\t\t\t\t\t\t\"(\" + BH.formatThree(modifierPrice.toString()) + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + BH.formatThree(modifierAmount.toString())+ \")\", 1);\n\t\t\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n\t\t\t\t\t\t\tif (!lastLinePrinted)\n\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\t\tlastLinePrinted = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + BH.formatMoney(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t}\n\t\t\t\t\t//END Comb modifier print\n\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n\t\t\t\t\tallAmount = BH.add(allAmount,\n\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tfor(ReportPluDayItem category : cop) {\n//\t\t\t\tif(cop.indexOf(category) != 0){\n//\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t}\n//\t\t\t\tthis.AddItem(category.getItemMainCategoryName(), \"\", \"\", category.getItemAmount(), 1);\n//\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n//\n//\t\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n////\t\t\t\t\tif (mainCategoryId != reportPluDayItem.getItemMainCategoryId().intValue()) {\n////\t\t\t\t\t\tif (mainCategoryId != 0) {\n////\t\t\t\t\t\t\tif (!lastLinePrinted)\n////\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t\t}\n////\t\t\t\t\t\tmainCategoryId = reportPluDayItem.getItemMainCategoryId().intValue();\n////\t\t\t\t\t\tshowMainCategory = true;\n////\t\t\t\t\t}\n////\t\t\t\t\tif (showMainCategory) {\n////\t\t\t\t\t\tthis.AddItem(reportPluDayItem.getItemMainCategoryName(), \"\", \"\", \"\", 1);\n////\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\tshowMainCategory = false;\n////\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t}\n//\t\t\t\t\tif (category.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n//\t\t\t\t\t\t//Bob: Print comb modifier\n//\t\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n//\t\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n//\t\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n//\n//\t\t\t\t\t\t\tint mm = 0;\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n//\t\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n//\t\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n//\t\t\t\t\t\t\t\tif (count > 0) {\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n//\t\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n//\t\t\t\t\t\t\t\t\t\t\t\"(\" + modifierPrice.toString() + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + modifierAmount.toString() + \")\", 1);\n//\t\t\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n//\t\t\t\t\t\t\t\tif (!lastLinePrinted)\n//\t\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\t\tlastLinePrinted = true;\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t} else {\n//\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + reportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t//END Comb modifier print\n//\t\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n//\t\t\t\t\t\tallAmount = BH.add(allAmount,\n//\t\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n\t\tif (allQty != 0) {\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tthis.AddItem(PrintService.instance.getResources().getString(R.string.total), \"\", allQty + \"\", BH.formatMoney(allAmount.toString()), 1);\n\t\t}\n\n\n\t}", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n discretize0.setInvertSelection(true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.getOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output format defined.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public void analysis(){\n\n\n this.outputFilename = \"PCAOutput\";\n if(this.fileOption==1){\n this.outputFilename += \".txt\";\n }\n else{\n this.outputFilename += \".xls\";\n }\n String message1 = \"Output file name for the analysis details:\";\n String message2 = \"\\nEnter the required name (as a single word) and click OK \";\n String message3 = \"\\nor simply click OK for default value\";\n String message = message1 + message2 + message3;\n String defaultName = this.outputFilename;\n this.outputFilename = Db.readLine(message, defaultName);\n this.analysis(this.outputFilename);\n }", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "private static void dataFiltering() {\n\t\tDataGenerationMngr dtgen = new DataGenerationMngr();\n\t\tdtgen.genenrateData();\n\n\t\t// Perform Java and Gradle code diff in between commit and save the diff\n\t\t// information in database\n\n\t}", "private void analysisText(){\n\n FileOutput fout = null;\n if(this.fileNumberingSet){\n fout = new FileOutput(this.outputFilename, 'n');\n }\n else{\n fout = new FileOutput(this.outputFilename);\n }\n\n // perform PCA if not already performed\n if(!pcaDone)this.pca();\n if(!this.monteCarloDone)this.monteCarlo();\n\n // output title\n fout.println(\"PRINCIPAL COMPONENT ANALYSIS\");\n fout.println(\"Program: PCA - Analysis Output\");\n for(int i=0; i<this.titleLines; i++)fout.println(title[i]);\n Date d = new Date();\n String day = DateFormat.getDateInstance().format(d);\n String tim = DateFormat.getTimeInstance().format(d);\n fout.println(\"Program executed at \" + tim + \" on \" + day);\n fout.println();\n if(this.covRhoOption){\n fout.println(\"Covariance matrix used\");\n }\n else{\n fout.println(\"Correlation matrix used\");\n }\n fout.println();\n\n // output eigenvalue table\n // field width\n int field1 = 10;\n int field2 = 12;\n int field3 = 2;\n\n fout.println(\"ALL EIGENVALUES\");\n\n fout.print(\"Component \", field1);\n fout.print(\"Unordered \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.println(\"Difference \");\n\n fout.print(\" \", field1);\n fout.print(\"index\", field1);\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.println(\" \");\n\n\n\n for(int i=0; i<this.nItems; i++){\n fout.print(i+1, field1);\n fout.print((this.eigenValueIndices[i]+1), field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[i], this.trunc), field2);\n if(i<this.nItems-1){\n fout.print(Fmath.truncate((this.orderedEigenValues[i] - this.orderedEigenValues[i+1]), this.trunc), field2);\n }\n else{\n fout.print(\" \", field2);\n }\n fout.print(\" \", field3);\n\n fout.println();\n }\n fout.println();\n\n\n // Extracted components\n int nMax = this.greaterThanOneLimit;\n if(nMax<this.meanCrossover)nMax=this.meanCrossover;\n if(nMax<this.percentileCrossover)nMax=this.percentileCrossover;\n fout.println(\"EXTRACTED EIGENVALUES\");\n fout.print(\" \", field1);\n fout.print(\"Greater than unity\", 3*field2 + field3);\n fout.print(\"Greater than Monte Carlo Mean \", 3*field2 + field3);\n fout.println(\"Greater than Monte Carlo Percentile\");\n\n fout.print(\"Component \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.println(\" \");\n\n fout.print(\" \", field1);\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.println(\" \");\n\n int ii=0;\n while(ii<nMax){\n fout.print(ii+1, field1);\n\n if(ii<this.greaterThanOneLimit){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc), (field2+field3));\n }\n\n if(ii<this.meanCrossover){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc), (field2+field3));\n }\n\n if(ii<this.percentileCrossover){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc));\n }\n fout.println();\n ii++;\n }\n fout.println();\n\n\n fout.println(\"PARALLEL ANALYSIS\");\n fout.println(\"Number of simulations = \" + this.nMonteCarlo);\n if(this.gaussianDeviates){\n fout.println(\"Gaussian random deviates used\");\n }\n else{\n fout.println(\"Uniform random deviates used\");\n }\n fout.println(\"Percentile value used = \" + this.percentile + \" %\");\n\n fout.println();\n fout.print(\"Component \", field1);\n fout.print(\"Data \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n fout.print(\"Data \", field2);\n fout.print(\"Monte Carlo \", field2);\n fout.print(\"Monte Carlo \", field2);\n fout.println(\"Monte Carlo \");\n\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Eigenvalue \", field2);\n fout.println(\"Eigenvalue \");\n\n fout.print(\" \", field1);\n fout.print(\" \", field2);\n fout.print(\" \", field2);\n fout.print(\" \", field2);\n fout.print(\" \", field3);\n fout.print(\" \", field2);\n fout.print(\"Percentile \", field2);\n fout.print(\"Mean \", field2);\n fout.println(\"Standard Deviation \");\n\n for(int i=0; i<this.nItems; i++){\n fout.print(i+1, field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[i], this.trunc), field2);\n fout.print(\" \", field3);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.randomEigenValuesPercentiles[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.randomEigenValuesMeans[i], this.trunc), field2);\n fout.println(Fmath.truncate(this.randomEigenValuesSDs[i], this.trunc));\n }\n fout.println();\n\n // Correlation Matrix\n fout.println(\"CORRELATION MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.correlationMatrix.getElement(j,i), this.trunc), field2);\n fout.println();\n }\n fout.println();\n\n // Covariance Matrix\n fout.println(\"COVARIANCE MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.covarianceMatrix.getElement(j,i), this.trunc), field2);\n fout.println();\n }\n\n fout.println();\n\n // Eigenvectors\n fout.println(\"EIGENVECTORS\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println(\"Vector corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.orderedEigenVectorsAsRows[i][j], this.trunc), field2);\n fout.println();\n }\n fout.println();\n\n // Loading factors\n fout.println(\"LOADING FACTORS\");\n fout.println(\"Original indices in parenthesis\");\n fout.println(\"Loading factors corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue\", field2);\n fout.print(\"Proportion\", field2);\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n for(int i=0; i<this.nItems; i++){\n fout.print((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.loadingFactorsAsRows[i][j], this.trunc), field2);\n fout.print(\" \", field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(proportionPercentage[i], this.trunc), field2);\n fout.println(Fmath.truncate(cumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n // Rotated loading factors\n fout.println(\"ROTATED LOADING FACTORS\");\n if(this.varimaxOption){\n fout.println(\"NORMAL VARIMAX\");\n }\n else{\n fout.println(\"RAW VARIMAX\");\n }\n\n String message = \"The ordered eigenvalues with Monte Carlo means and percentiles in parenthesis\";\n message += \"\\n (Total number of eigenvalues = \" + this.nItems + \")\";\n int nDisplay = this.nItems;\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int screenHeight = screenSize.height;\n int nDisplayLimit = 20*screenHeight/800;\n if(nDisplay>nDisplay)nDisplay = nDisplayLimit;\n for(int i=0; i<nDisplay; i++){\n message += \"\\n \" + Fmath.truncate(this.orderedEigenValues[i], 4) + \" (\" + Fmath.truncate(this.randomEigenValuesMeans[i], 4) + \" \" + Fmath.truncate(this.randomEigenValuesPercentiles[i], 4) + \")\";\n }\n if(nDisplay<this.nItems)message += \"\\n . . . \";\n message += \"\\nEnter number of eigenvalues to be extracted\";\n int nExtracted = this.greaterThanOneLimit;\n nExtracted = Db.readInt(message, nExtracted);\n this.varimaxRotation(nExtracted);\n\n fout.println(\"Varimax rotation for \" + nExtracted + \" extracted factors\");\n fout.println(\"Rotated loading factors and eigenvalues scaled to ensure total 'rotated variance' matches unrotated variance for the extracted factors\");\n fout.println(\"Original indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.rotatedIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue\", field2);\n fout.print(\"Proportion\", field2);\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n\n for(int i=0; i<nExtracted; i++){\n fout.print((i+1) + \" (\" + (rotatedIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.rotatedLoadingFactorsAsRows[i][j], this.trunc), field2);\n fout.print(\" \", field1);\n fout.print(Fmath.truncate(rotatedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(rotatedProportionPercentage[i], this.trunc), field2);\n fout.println(Fmath.truncate(rotatedCumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n fout.println(\"DATA USED\");\n fout.println(\"Number of items = \" + this.nItems);\n fout.println(\"Number of persons = \" + this.nPersons);\n\n\n if(this.originalDataType==0){\n fout.printtab(\"Item\");\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n }\n fout.println();\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n for(int j=0; j<this.nPersons; j++){\n fout.printtab(Fmath.truncate(this.scores0[i][j], this.trunc));\n }\n fout.println();\n }\n }\n else{\n fout.printtab(\"Person\");\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n }\n fout.println();\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n for(int j=0; j<this.nItems; j++){\n fout.printtab(Fmath.truncate(this.scores1[i][j], this.trunc));\n }\n fout.println();\n }\n }\n\n fout.close();\n }", "@Test(enabled = true)\n\tpublic void TC_002_contextSearch_Petrophysical_CLDB_OFDB_Links_WithoutCheckAll_All_Excel() throws Throwable {\n\n\t\tReporter.log(\"CLDB/OFDB Links\", true);\n\t\thomepage = new homePage(driver);\n\t\tReporter.log(\"Browser Opened\", true);\n\t\thomepage.adminViaDropDown(homepage.getCountryDropdown(), \"NETHERLANDS\");\n\t\thomepage.adminViaDropDown(homepage.getAssetDropdown(), \"Wellbore\");\n\t\thomepage.adminViaDropDown(homepage.getColumnDropdown(), \"--All Columns--\");\n\n\t\tcontextsearch contextpage = homepage.selectText(\"Anjum*\");\n\n\t\tReporter.log(\"All Fields Selected\", true);\n\t\tcontextsearch selectCLDB_OFDB_Links = contextpage.selectAllcheck().selectPetrophysical();\n\n\t\tfetchingReports fetchingReports = selectCLDB_OFDB_Links.selectreporting(\"CLDB/OFDB Links\");\n\n\t\tfetchingReports.switchWindows();\n\t\tdriver.manage().window().maximize();\n\n\t\tThread.sleep(300);\n\t\tReporter.log(\"CLDB/OFDB Links selected\", true);\n\n\t\tfetchingReports.fetchDailyWellReport(false, \"All\", \"excel\");\n\t\tReporter.log(\"export options Withoutcheck\", true);\n\n\t}", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(44);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance(6);\n binarySparseInstance1.dataset();\n Discretize discretize0 = new Discretize();\n discretize0.setMakeBinary(true);\n try { \n discretize0.setInputFormat((Instances) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "protected void thoroughInspection() {}", "@Test\n public void testRun() {\n System.out.println(\"run\");\n FluorescenceImporter importer = null;\n try {\n FluorescenceFixture tf = new FluorescenceFixture();\n importer = new FluorescenceImporter(tf.testData());\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Importing dataset\");\n importer.setProgressHandle(ph);\n \n importer.run();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n //FluorescenceDataset dataset = importer.getDataset();\n Dataset<? extends Instance> plate = importer.getDataset();\n System.out.println(\"inst A1 \"+ plate.instance(0).toString());\n System.out.println(\"plate \"+plate.toString());\n Dataset<Instance> output = new SampleDataset<Instance>();\n output.setParent((Dataset<Instance>) plate);\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Analyzing dataset\");\n // AnalyzeRunner instance = new AnalyzeRunner((Timeseries<ContinuousInstance>) plate, output, ph);\n // instance.run();\n \n }", "@java.lang.Override\n public boolean hasDataset() {\n return inputSourceCase_ == 11;\n }", "public String globalInfo() {\n return \"Class for building and using a PRISM rule set for classification. \"\n + \"Can only deal with nominal attributes. Can't deal with missing values. \"\n + \"Doesn't do any pruning.\\n\\n\"\n + \"For more information, see \\n\\n\"\n + getTechnicalInformation().toString();\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.useBinNumbersTipText();\n // Undeclared exception!\n try { \n discretize0.getOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output format defined.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "TraceDefinedDataView definedData();", "public void m36045a() {\n this.f29981a.showReportDialog();\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_NumBins = (-3104);\n discretize0.m_MakeBinary = true;\n try { \n discretize0.setInputFormat((Instances) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "protected Object[] get_ComponentInfo()\n {\n return new Object[]\n {\n \"ReporterMBean contains settings and statistics for the Coherence JMX Reporter.\",\n \"com.bea.owner=Context,com.bea.VisibleToPartitions=ALWAYS\",\n };\n }", "@java.lang.Override\n public boolean hasDataset() {\n return inputSourceCase_ == 11;\n }", "public String globalInfo() {\n\t return \n\t \"The CISearchAlgorithm class supports Bayes net structure \"\n\t + \"search algorithms that are based on conditional independence \"\n\t + \"test (as opposed to for example score based of cross validation \"\n\t + \"based search algorithms).\";\n\t}", "@Override \n\t public String getDescription() {\n\t \t return \"(*.MXD)\"; \n\t }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "private void verificaData() {\n\t\t\n\t}", "@VTID(11)\n boolean getOLAP();", "private void report() {\n\t\t\n\t}", "public static void caso21(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso2.owl\",\"file:resources/caso2.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "public JSONObject getGSTRMisMatchSummary(JSONObject params) throws ServiceException, JSONException {\n JSONObject object = new JSONObject();\n JSONObject jMeta = new JSONObject();\n JSONArray jarrColumns = new JSONArray();\n JSONArray jarrRecords = new JSONArray();\n JSONArray dataJArr = new JSONArray();\n if (params.optBoolean(\"isforstore\", false)) {\n /**\n * If request for Section combo box\n */\n return object = getGSTMisMatchReportSectionCombo();\n }\n JSONArray array = new JSONArray();\n JSONArray array1 = new JSONArray();\n String start = params.optString(\"start\");\n String limit = params.optString(\"limit\");\n String companyId = params.optString(\"companyid\");\n JSONObject reqParams = params;\n /**\n * Get column number for Entity, State,HSN,UQC etc.\n */\n JSONObject entityParams = new JSONObject();\n String entityModuleIds = Constants.Acc_Invoice_ModuleId + \",\" + Constants.Acc_Vendor_Invoice_ModuleId + \",\"\n + Constants.Acc_Sales_Order_ModuleId + \",\" + Constants.Acc_Purchase_Order_ModuleId+ \",\" + Constants.Acc_Delivery_Order_ModuleId +\",\"+ Constants.Acc_Goods_Receipt_ModuleId \n + \",\" + Constants.Acc_Credit_Note_ModuleId + \",\" + Constants.Acc_Debit_Note_ModuleId; // GET CN/ DN module entity detail\n params.put(\"moduleids\", entityModuleIds);\n params.put(\"fieldlabel\", Constants.ENTITY);\n params.put(\"fcdvalue\", reqParams.optString(\"entity\"));\n params.put(\"companyid\", reqParams.optString(\"companyid\"));\n List entityList = fieldManagerDAOobj.getEntityDataForRequestedModule(params);\n geModulewiseEntityData(entityList, reqParams);\n Map<String, Integer> fieldData = new HashMap<>();\n fieldData.put(Constants.HSN_SACCODE + Constants.Acc_Product_Master_ModuleId, Constants.Acc_Product_Master_ModuleId);\n fieldData.put(Constants.GSTProdCategory + Constants.Acc_Product_Master_ModuleId, Constants.Acc_Product_Master_ModuleId);\n fieldData.put(Constants.GST_UNIT_QUANTITY_CODE + Constants.Acc_Product_Master_ModuleId, Constants.Acc_Product_Master_ModuleId);\n fieldData.put(Constants.STATE + Constants.Acc_Invoice_ModuleId, Constants.Acc_Invoice_ModuleId);\n fieldData.put(Constants.STATE + Constants.Acc_Vendor_Invoice_ModuleId, Constants.Acc_Vendor_Invoice_ModuleId);\n fieldData.put(Constants.STATE + Constants.Acc_Sales_Order_ModuleId, Constants.Acc_Sales_Order_ModuleId);\n fieldData.put(Constants.STATE + Constants.Acc_Purchase_Order_ModuleId, Constants.Acc_Purchase_Order_ModuleId);\n fieldData.put(Constants.STATE + Constants.Acc_Delivery_Order_ModuleId, Constants.Acc_Delivery_Order_ModuleId);\n fieldData.put(Constants.STATE + Constants.Acc_Goods_Receipt_ModuleId, Constants.Acc_Goods_Receipt_ModuleId);\n /**\n * Get State field col number for CN and DN\n */\n fieldData.put(Constants.STATE + Constants.Acc_Credit_Note_ModuleId, Constants.Acc_Credit_Note_ModuleId);\n fieldData.put(Constants.STATE + Constants.Acc_Debit_Note_ModuleId, Constants.Acc_Debit_Note_ModuleId);\n List colList = fieldManagerDAOobj.getColnumForDimensionCollectively(fieldData, reqParams);\n getModulewiseColNumData(colList, reqParams);\n\n try {\n\n getColumnModelForGSTMissingDocSummary(jarrRecords, jarrColumns, params);\n reqParams.put(\"isInvoice\",true);\n\n /**\n * HSN\n */\n JSONObject parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_HSNNotAvailable);\n parameter.put(\"ishsnblank\", true);\n parameter.put(\"ishsninvalid\",true);// HSN code's length should be less than 8 digit\n JSONObject b2bobj = getGSTMissingInvoice(parameter);\n JSONObject B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n\n /**\n * UQC\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_UQCNotAvailable);\n parameter.put(\"isuqcblank\", true);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n\n /**\n * GSTIN Blank\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_GSTINBlank);\n parameter.put(\"isGSTINnull\", true);\n parameter.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Regular_ECommerce + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Composition_ECommerce);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n\n /**\n * GSTIN non Blank\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_GSTINnonBlank);\n parameter.put(\"isGSTINnull\", false);\n parameter.put(\"registrationType\", Constants.GSTRegType_Unregistered + \",\" + Constants.GSTRegType_Consumer);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n\n /*\n * GSTIN Number Invalid\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_GSTINInvalid);\n parameter.put(\"isGSTINnull\", false);\n parameter.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Regular_ECommerce + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Composition_ECommerce);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n /**\n * GST Registration Type blank\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_GSTRegistrationTypeblank);\n parameter.put(\"isgstregtypeblank\", true);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n\n /**\n * Customer Type blank\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_CustomerVendorTypeblank);\n parameter.put(\"iscusttypeblank\", true);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n\n /**\n * RCM Sales to Unregistered Person\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_RCMSalestoUnregisteredPerson);\n parameter.put(\"registrationType\", Constants.GSTRegType_Unregistered + \",\" + Constants.GSTRegType_Consumer);\n parameter.put(\"isRCMApplicable\", true);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n\n /**\n * Product tax Mismatch\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_ProducttaxMismatch);\n parameter.put(\"istaxclassmismatch\", true);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n \n /**\n * State Mismatch\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_StateMismatch);\n parameter.put(\"statemismatch\", true);\n parameter.put(\"CustomerType\", Constants.CUSTVENTYPE_DEEMED_EXPORT + \",\" + Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_SEZ+ \",\" + Constants.CUSTVENTYPE_SEZWOPAY);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n\n /**\n * Manually entered Invoice Number\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_ManuallyenteredInvoiceNumber);\n parameter.put(\"withoutseqformat\", true);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n \n /**\n * GST-History not present\n */\n parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n parameter.put(\"typeofinvoice\", GSTRConstants.Sec_GST_History_Not_Present);\n parameter.put(\"ishistoryblank\",true);\n b2bobj = getGSTMissingInvoice(parameter);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n \n// /**\n// * Invalid CN\n// */\n// parameter = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n// parameter.put(\"typeofinvoice\", GSTRConstants.GSTMisMatch_SECTION_INVALIDCN);\n// parameter.put(\"isCNDN\", true);\n// parameter.put(\"isInvoice\", false);\n// parameter.put(\"iscndnwithoutinvoice\", true);\n// b2bobj = getGSTMissingInvoice(parameter);\n// B2B = new JSONObject();\n// B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n// dataJArr.put(B2B);\n \n JSONArray pagedJson = new JSONArray();\n pagedJson = dataJArr;\n if (!StringUtil.isNullOrEmpty(start) && !StringUtil.isNullOrEmpty(limit)) {\n pagedJson = StringUtil.getPagedJSON(pagedJson, Integer.parseInt(start), Integer.parseInt(limit));\n }\n object.put(\"totalCount\", dataJArr.length());\n object.put(\"columns\", jarrColumns);\n object.put(\"coldata\", pagedJson);\n jMeta.put(\"totalProperty\", \"totalCount\");\n jMeta.put(\"root\", \"coldata\");\n jMeta.put(\"fields\", jarrRecords);\n object.put(\"metaData\", jMeta);\n if (params.optBoolean(\"isExport\")) {\n object.put(\"data\", dataJArr);\n object.put(\"columns\", jarrColumns);\n }\n\n } catch (JSONException ex) {\n throw ServiceException.FAILURE(ex.getMessage(), ex);\n }\n return object;\n }", "@Override\r\n\tpublic InfoBit[] getAdditionalInfoBit() {\n\t\treturn null;\r\n\t}", "private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObjects + \" object\"\n + ((numObjects == 1) ? \"\" : \"s\") + \" total in current state.\");\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n DecisionTable decisionTable0 = new DecisionTable();\n String string0 = Evaluation.getGlobalInfo(decisionTable0);\n assertEquals(\"\\nSynopsis for weka.classifiers.rules.DecisionTable:\\n\\nClass for building and using a simple decision table majority classifier.\\n\\nFor more information see: \\n\\nRon Kohavi: The Power of Decision Tables. In: 8th European Conference on Machine Learning, 174-189, 1995.\", string0);\n }", "@Schema(description = \"`status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary general-info: The input information used to assemble the report that can be on-going, periodic and actual and projected \")\n public Object getAssessmentInstanceReportRecord() {\n return assessmentInstanceReportRecord;\n }", "com.google.protobuf.StringValue getExternalAttributionModel();", "public static String globalInfo() {\n return \"This is a GA individual suited to optimize binary values.\";\n }", "public BasicReport() throws OculusException\n { super(); }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "public DeviceReportExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public final void report() {\n double err = classError();\n assert _valid : \"Trying to report status of invalid CM!\";\n\n SpeeDRFModel model = UKV.get(_SpeeDRFModelKey);\n String s =\n \" Type of random forest: classification\\n\"\n + \" Number of trees: \" + model.size() + \"\\n\"\n + \"No of variables tried at each split: \" + model.mtry + \"\\n\"\n + \" Estimate of err. rate: \" + Math.round(err * 10000) / 100 + \"% (\" + err + \")\\n\"\n + \" OOBEE: \" + (_computedOOB ? \"YES (sampling rate: \"+model.sample*100+\"%)\" : \"NO\")+ \"\\n\"\n + \" Confusion matrix:\\n\"\n + toString() + \"\\n\"\n + \" CM domain: \" + Arrays.toString(_domain) + \"\\n\"\n + \" Avg tree depth (min, max): \" + model.depth() + \"\\n\"\n + \" Avg tree leaves (min, max): \" + model.leaves() + \"\\n\"\n + \" Validated on (rows): \" + rows() + \"\\n\"\n + \" Rows skipped during validation: \" + skippedRows() + \"\\n\"\n + \" Mispredictions per tree (in rows): \" + Arrays.toString(_errorsPerTree)+\"\\n\";\n Log.info(Sys.RANDF,s);\n }", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "public ReportMetadataExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "HashMap<Value, HashSet<Value>> getLayerDatasetDescriptions();", "public String generalReport() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\t}", "public void know_doc_Report()\n {\n\t boolean knowedgepresent =knowdoc.size()>0;\n\t if(knowedgepresent)\n\t {\n\t\t // System.out.println(\"Knowledge document details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Knowledge document details report is not present\");\n\t }\n }", "void analysisStarting();", "Map<Modification, Integer> getUsedModifications(SpectrumAnnotatorResult spectrumAnnotatorResult);", "public Object getCaseInstanceAnalysisReport() {\n return caseInstanceAnalysisReport;\n }", "@Override\n\tpublic boolean isInfoEnabled() {\n\t\treturn false;\n\t}", "public TbPdfInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "void generateMgiCrisprAlleleReport();", "public void startRetriveDataInfo() {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_2);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_3);\n \n\t\t\t}\n\t\t}", "Information getInfo();", "io.dstore.values.StringValue getPersonOutputCharacteristics();", "public abstract boolean promulgationDataDefined();", "public String getAnalysisandReporting() {\n return analysisandReporting;\n }", "public String getAnalysis()\n\t{\n\t\treturn m_analysis;\n\t}", "@Test\n\tvoid lackOfDataTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tdate = new Date(120, 8, 1);\n\t\texpected = \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "public static void main(String[] args) {\n String dataDir = Utils.getDataDir(ParticularDWGToImage.class) + \"DWGDrawings/\";\n String sourceFilePath = dataDir + \"visualization_-_conference_room.dwg\";\n\n CadImage cadImage = ((CadImage)(Image.load(sourceFilePath)));\n\n CadBaseEntity[] entities = cadImage.getEntities();\n \n List<CadBaseEntity> filteredEntities = new ArrayList<CadBaseEntity>();\n for (CadBaseEntity baseEntity : entities) {\n // selection or filtration of entities\n if ((baseEntity.getTypeName() == CadEntityTypeName.TEXT)) {\n filteredEntities.add(baseEntity);\n }\n\n }\n \n CadBaseEntity[] arr = new CadBaseEntity[filteredEntities.size()];\n cadImage.setEntities(filteredEntities.toArray(arr));\n // Create an instance of CadRasterizationOptions and set its various properties\n CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();\n rasterizationOptions.setPageWidth(1600);\n rasterizationOptions.setPageHeight(1600);\n // Set Auto Layout Scaling\n rasterizationOptions.setAutomaticLayoutsScaling(true);\n // Create an instance of PdfOptions\n PdfOptions pdfOptions = new PdfOptions();\n // Set the VectorRasterizationOptions property\n pdfOptions.setVectorRasterizationOptions(rasterizationOptions);\n String outFile = dataDir + \"result_out_generated.pdf\";\n // Export the CAD to PDF\n cadImage.save(outFile, pdfOptions);\n //ExEnd:ParticularDWGToImage\n }", "public InfoDataIF() {\n initComponents();\n }", "@Test\n public void testLocalizedDetailedReportIssue41() throws Exception {\n CucumberDetailedResults results = new CucumberDetailedResults();\n results.setOutputDirectory(\"target/\");\n results.setOutputName(\"localized-results\");\n results.setSourceFile(\"./src/test/resources/detailed-source/localized-1.json\");\n results.execute(true, new String[] {});\n results.execute(false, new String[] {});\n }", "private static HashMap<String, Object> fetchReferralRecruitmentData(HashMap<String, Object> parameterMap) {\n\t\t//BEGIN-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\tPsPersonalApplicantReferral psReferralSource = PsPersonalApplicantReferral.findByEmployeeIdAndEffectiveDate((String)parameterMap.get(\"employeeId\"), (Date)parameterMap.get(\"effectiveDate\")); //PS_PERS_APPL_REF\n\t\tBigInteger referralSourceId = psReferralSource.getSourceId();\n\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findBySourceId(referralSourceId); //PS_HRS_SOURCE_I\n\t\tString referralSourceDescription = psRecruitmentSource.getSourceDescription();\n//\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findByRecruitmentSourceId(recruitmentSourceId); //PS_HRS_SOURCE_I\n\t\t//LET $PSRecruit_Source_Code = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n\t\tString referralSourceName = psRecruitmentSource.getSourceName();\n\t\tString psSpecificReferralSource = \"\";\n\t\t//DO HR05-FORMAT-REFERRAL-SOURCE \n\t\t\t//BEGIN-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t\t//Let $Found = 'N' !Initialize the found indicator\n\t\t\t//!Based on the value in the PeopleSoft Recruit Source Code assign the\n\t\t\t//!corresponding legacy system code that will be passed.\n\t\t\t//Let $PSReferral_Source = &CPT101.ZHRF_LEGRECRUITSRC\n\t\t\tString referralSource = CrossReferenceReferralSource.findActiveLegacyRecruiterSourceByReferralSource(referralSourceName); //PS_ZHRT_RFSRC_CREF\n\t\t\t//IF ($Found = 'N')\n\t\t\tif(referralSource == null) {\n\t\t\t\t//LET $PSReferral_Source = ' '\n\t\t\t\treferralSource = \"\";\n\t\t\t\t//IF $PSRecruit_Source_Code = ' ' !If the Referral Source code was not entered in PS\n\t\t\t\tif(referralSourceName == null || referralSourceName.isEmpty()) {\n\t\t\t\t\tparameterMap.put(\"errorProgram\", \"ZHRI105A\");\n\t\t\t\t\t//LET $ErrorMessageParm = 'Referral source not selected in PeopleSoft.'\n\t\t\t\t\tparameterMap.put(\"errorMessage\", \"Referral source not selected in PeopleSoft.\");\n\t\t\t\t\t//DO Prepare-Error-Parms ! JHV 09/11/02 fix Date Mask error ZHR_PRDSPT_INTF_ERROR\n\t\t\t\t\t//DO Call-Error-Routine !From ZHRI100A.SQR\n\t\t\t\t\tMain.doErrorCommand(parameterMap);\n\t\t\t\t}\n\t\t\t\t//ELSE\n\t\t\t\telse {\n\t\t\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35)\n\t\t\t\t\tpsSpecificReferralSource = referralSourceDescription;\n//\t\t\t\t\tPSSpecific_Refer_Src = PSRefSourceDescr;\n\t\t\t\t//END-IF !$PSRecruit_Source_Code = ' '\n\t\t\t\t}\n\t\t\t//END-IF !$Found = 'N'\n\t\t\t}\n\t\t\t//!Make sure not less than 35 long\n\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35) \n\t\t\t//TODO: //LET $PSSpecific_Refer_Src = RPAD($PSSpecific_Refer_Src,35,' ')\n\t\t\tpsSpecificReferralSource = psSpecificReferralSource.substring(0, 35);\n\t\t\tString recruitmentSourceId = psRecruitmentSource.getSourceDescription();\n\t\t\tif(recruitmentSourceId != null) {\n\t\t\t\trecruitmentSourceId = recruitmentSourceId.trim();\n\t\t\t\trecruitmentSourceId = String.format(\"%1$-35s\", recruitmentSourceId);\n\t\t\t}\n\t\t\tparameterMap.put(\"recruitmentSourceId\", recruitmentSourceId);\n\t\t\t//END-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t//Let $PSReferralSource = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n//\t\tString PSReferralSource = psRecruitmentSource.getSourceName();\n\t\t//END-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\treferralSource = referralSource != null ? referralSource.trim() : referralSource;\n\t\tparameterMap.put(\"referralSource\", referralSource);\n\t\treturn parameterMap;\n\t}", "public void extractKnowledge()\n {\n }", "Feature[] extractFeatures(LensResult facet, NaiscListener log);", "private void filterFeatureswithtext() throws Exception {\n\t\ttry {\r\n\t\t\t//source = dataStore.getFeatureSource(typeName);\r\n\t\t\tString sql = text.getText();\r\n\t\t\tString filtertype = \"include\";\r\n\t\t\tString[] cql = sql.split(\":\");\r\n\t\t\tHints h = new Hints();\r\n \t\t\th.put(Hints.FILTER_FACTORY, ISOFilterFactoryImpl.class);\r\n \t\t\tFilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(h);\r\n \t\t\tWKTReader wktr = new WKTReader(DefaultGeographicCRS.WGS84_3D);\r\n \t\t\tFilter filter = CQL.toFilter(\"include\");\r\n \t\t\tlong start = System.currentTimeMillis();\r\n \t\t\tList<SimpleFeature> sfs = new ArrayList<SimpleFeature>();\r\n \t\t\tSimpleFeatureIterator iterator = currentfeatures.features();\r\n \t\t\t\r\n \t\t\tif(cql.length > 1 && cql[2].startsWith(\"BBOX3D\")) {\r\n \t\t\t cql[2] = cql[2].replaceAll(\"BBOX3D\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\(\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\)\", \"\");\r\n \t\t\t \r\n \t\t\t String[] coords = cql[2].split(\",\");\r\n \t\t\t \r\n \t\t\t String[] lowerStr = coords[0].trim().split(\" \");\r\n \t\t\t String[] upperStr = coords[1].trim().split(\" \");\r\n \t\t\t \r\n \t\t\t double[] lower = new double[3];\r\n \t\t\t double[] upper = new double[3];\r\n \t\t\t \r\n \t\t\t lower[0] = Double.parseDouble(lowerStr[0]);\r\n lower[1] = Double.parseDouble(lowerStr[1]);\r\n lower[2] = Double.parseDouble(lowerStr[2]);\r\n \r\n upper[0] = Double.parseDouble(upperStr[0]);\r\n upper[1] = Double.parseDouble(upperStr[1]);\r\n upper[2] = Double.parseDouble(upperStr[2]);\r\n \r\n DirectPosition lowerCorner = builder.createDirectPosition(lower);\r\n DirectPosition upperCorner = builder.createDirectPosition(upper);\r\n \r\n Solid s = makeFromEnvelope(builder, lowerCorner, upperCorner);\r\n cql[2] = s.toString();\r\n\r\n Document d = encode(s);\r\n //System.out.println(d);\r\n\r\n //System.out.println(cql[2]);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(cql[0].equalsIgnoreCase(\"contains\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.contains(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"contains \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"within\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.within(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"within \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"equals\")) {\r\n \t\t\t\tfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"equals \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"intersects\")) {\r\n \t\t\t\tFilter getidfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\t\r\n \t\t\t\twhile (iterator.hasNext()) {\r\n \t\t\t\t\tSimpleFeature feature = iterator.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tif(getidfilter.evaluate(feature)) {\r\n \t\t\t\t\t\tfeatureid = feature.getID();\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\tfilter = ff.intersects(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"intersects \";\r\n \t\t\t}\r\n \t\t\t\r\n\t\t\t//SimpleFeatureCollection features = source.getFeatures(filter);\r\n \t\t\titerator = currentfeatures.features();\r\n\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\tSimpleFeature feature = iterator.next();\r\n\t\t\t\tSystem.out.print(featureid + \" : \" + feature.getID() + \" \");\r\n\t\t\t\tif(filter.evaluate(feature)) {\r\n\t\t\t\t\tsfs.add(feature);\r\n\t\t\t\t\tSystem.out.println(\"true\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tSystem.out.println(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(sfs.size() == 0) {\r\n\t\t\t\ttable.setModel(new DefaultTableModel(5, 5));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tSimpleFeatureCollection result = ISODataUtilities.collection(sfs);\r\n \t\t\t\r\n\t\t\tlong end = System.currentTimeMillis();\r\n\t\t\t//System.out.println( \"실행 시간 : \" + ( end - start )/1000.0 );\r\n\t\t\tlabel.setText(filtertype + \"complete : \" + ( end - start )/1000.0 + \" sec\");\r\n\t\t\tFeatureCollectionTableModel model = new FeatureCollectionTableModel(result);\r\n\t\t\ttable.setModel(model);\r\n\t\t\t\r\n\t\t} catch (CQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "@Override\n public void reportSmartDashboard() {\n }", "public void outputTelemetry() {\n }", "void lowResolutionInference(Spectrum spectrum){\n\t}", "public AnalysisDef() {}", "@Test(timeout = 4000)\n public void test156() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(50, 50);\n resultMatrixLatex0.m_ShowAverage = false;\n resultMatrixLatex0.m_ShowStdDev = true;\n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[0] = false;\n booleanArray0[1] = false;\n resultMatrixLatex0.m_StdDevWidth = (-3085);\n booleanArray0[2] = true;\n resultMatrixLatex0.setPrintColNames(true);\n booleanArray0[3] = true;\n resultMatrixLatex0.setStdDevWidth((-1));\n booleanArray0[4] = true;\n resultMatrixLatex0.m_RowHidden = booleanArray0;\n resultMatrixLatex0.getDefaultEnumerateColNames();\n resultMatrixLatex0.colNameWidthTipText();\n resultMatrixLatex0.setPrintRowNames(false);\n resultMatrixLatex0.removeFilterName(\"\");\n resultMatrixLatex0.padString(\"\", 0, false);\n ResultMatrixSignificance resultMatrixSignificance0 = null;\n try {\n resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 5\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public void Large_Req_detail()\n {\n\t boolean largereqpresent =lareqdetails.size()>0;\n\t if(largereqpresent)\n\t {\n\t\t// System.out.println(\"Large Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Large Request details report is not present\");\n\t }\n }", "private void actionStatisticalData() {\n String message = getStatisticalMsg(true);\n\n JOptionPane.showMessageDialog(null, message, \"Statistical data\",\n JOptionPane.PLAIN_MESSAGE);\n }", "@SuppressWarnings(\"unchecked\")\r\n public static void main(String[] args)\r\n {\r\n //final String INPUT_FILE=\"contact-lenses.arff\";\r\n final String INPUT_FILE=\"adult.merged.arff\";\r\n Instances data;\r\n try {\r\n Reader reader = new FileReader(INPUT_FILE);\r\n data = new Instances(reader);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to read input file \" + INPUT_FILE + \", exiting\");\r\n return;\r\n }\r\n data.setClassIndex(data.numAttributes()-1);\r\n\r\n System.out.println(\"Acquired data from file \" + INPUT_FILE);\r\n System.out.println(\"Got \" + data.numInstances() + \" instances with \" + data.numAttributes() + \" attributes, class attribute is \" + data.classAttribute().name());\r\n AttributeScoreAlgorithm scorer = new MaxScorer ();\r\n Enumeration<Attribute> atts=(Enumeration<Attribute>)data.enumerateAttributes();\r\n while (atts.hasMoreElements())\r\n {\r\n C45Attribute att=new C45Attribute(atts.nextElement());\r\n System.out.println(\"Score for attribute \" + att.WekaAttribute().name() + \" is \" + scorer.Score(data,att));\r\n }\r\n\r\n List<C45Attribute> candidateAttributes = new LinkedList<C45Attribute>();\r\n Enumeration attEnum = data.enumerateAttributes();\r\n while (attEnum.hasMoreElements())\r\n candidateAttributes.add(new C45Attribute((Attribute)attEnum.nextElement()));\r\n BigDecimal epsilon=new BigDecimal(0.1, DiffPrivacyClassifier.MATH_CONTEXT);\r\n PrivacyAgent agent = new PrivacyAgentBudget(epsilon);\r\n\r\n PrivateInstances privData = new PrivateInstances(agent,data);\r\n privData.setDebugMode(true);\r\n\r\n try {\r\n C45Attribute res=privData.privateChooseAttribute(new MaxScorer(), candidateAttributes,epsilon);\r\n System.out.println(\"Picked attribute \" + res.WekaAttribute().name());\r\n } catch(Exception e) { System.out.println(e.getMessage());}\r\n }", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "@Override\r\n\tpublic void doWorkFlowAnalysis() {\n\t\t\r\n\t}", "protected GeneralInfo(){\r\n \t\tsuper();\r\n \t}", "@Override\r\n public boolean performOk() {\r\n final List<String> filters = getTableContents();\r\n UninterestingPackageFilterUtility.setPreference(filters, true);\r\n\r\n if (XUtil.useExperimental) {\r\n /*\r\n * We dump the list to the console so the default value can be cut an\r\n * pasted into the jsure-core-eclipse project. The value is defined as\r\n * DEFAULT in ModelingProblemFilterUtility in the\r\n * com.surelogic.jsure.core.preferences package.\r\n */\r\n StringBuilder b = new StringBuilder();\r\n b.append(\"-- Cut/Paste below to DEFAULT at line 23 of UninterestingPackageFilterUtility\");\r\n b.append(\" in the com.surelogic.jsure.core.preferences package\");\r\n b.append('\\n');\r\n b.append(\" Arrays.asList(\");\r\n boolean first = true;\r\n for (String regex : filters) {\r\n if (first)\r\n first = false;\r\n else\r\n b.append(',');\r\n b.append('\\\"');\r\n b.append(SLUtility.escapeJavaStringForQuoting(regex));\r\n b.append('\\\"');\r\n }\r\n b.append(\")\\n\");\r\n System.out.println(b.toString());\r\n }\r\n return true;\r\n }", "com.google.protobuf.ByteString getDetailsBytes();", "public ArrayList<Integer> getAnalysisGeneral(){\n resultListGeneral = null ;\n positiveResultGeneral = 0;\n negativeResultGeneral = 0;\n neutralResultGeneral = 0;\n try {\n IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(\"indice/\")));\n this.resultListGeneral = new ArrayList<>();\n\n for (int i = 0; i < reader.numDocs(); i++) {\n Document doc = reader.document(i);\n\n if((doc.get(\"analysis\")).equals(\"Positive\"))\n positiveResultGeneral++;\n else if((doc.get(\"analysis\")).equals(\"Negative\"))\n negativeResultGeneral++;\n else if((doc.get(\"analysis\")).equals(\"Neutral\"))\n neutralResultGeneral++;\n }\n reader.close();\n }\n catch(IOException ioe){\n System.out.println(\"Error\");\n }\n resultListGeneral.add(positiveResultGeneral);\n resultListGeneral.add(negativeResultGeneral);\n resultListGeneral.add(neutralResultGeneral);\n\n return resultListGeneral;\n }", "public int getOldValues_descriptionType(){\n return localOldValues_descriptionType;\n }", "public MissingInformationOutput checkMissingInformation(MissingInformationInput in) throws RuleEngineDataException;", "public String getCaseInstanceAnalysisReportType() {\n return caseInstanceAnalysisReportType;\n }", "@Test public void testWithExternalDataSet() throws IOException\n {\n final String homeDir = System.getProperty(\"user.home\");\n assumeNotNull(null != homeDir);\n final File inDir = new File(new File(homeDir), fixedDataSetDir);\n assumeTrue(inDir.isDirectory());\n final File outDir = new File(new File(homeDir), fixedDataSetOutDir);\n assertTrue(outDir.isDirectory());\n assertTrue(outDir.canWrite());\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n // Do the computation.\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n System.out.println(\"Written to \" + outDir);\n }", "@Override\n\tpublic void analyzing(DependencyFrame rFrame) {\n\t\t\n\t}" ]
[ "0.53962123", "0.5363926", "0.5179264", "0.51596624", "0.51590437", "0.51384234", "0.5124757", "0.5101794", "0.50825036", "0.5071774", "0.5063104", "0.5040811", "0.5039699", "0.50341964", "0.50303", "0.5002858", "0.49992487", "0.4994418", "0.4988757", "0.4974541", "0.49663123", "0.49562794", "0.49467248", "0.49250957", "0.4917381", "0.49074215", "0.48985878", "0.48947212", "0.48908243", "0.48857597", "0.4878409", "0.48670116", "0.48658958", "0.48616835", "0.48499516", "0.48485252", "0.48482054", "0.48468775", "0.48363498", "0.48330146", "0.48289427", "0.48254058", "0.48215705", "0.48195904", "0.4805864", "0.47983697", "0.47917262", "0.4788545", "0.4786837", "0.4785533", "0.47852877", "0.47821322", "0.4770027", "0.4769716", "0.4769329", "0.47678947", "0.47568944", "0.47503382", "0.47481102", "0.47419775", "0.47418857", "0.47408995", "0.47406566", "0.47390902", "0.4731961", "0.47288802", "0.47244307", "0.47185782", "0.47175834", "0.47098204", "0.47082797", "0.470274", "0.47021443", "0.4693892", "0.46926865", "0.46905112", "0.46897218", "0.4670202", "0.4655593", "0.4644836", "0.46441457", "0.46439922", "0.46386877", "0.46341366", "0.4629748", "0.4619863", "0.46165112", "0.46116164", "0.46038106", "0.46009392", "0.45976716", "0.4597381", "0.45973638", "0.45965472", "0.45946944", "0.45917797", "0.45877922", "0.45866922", "0.45830092", "0.45813057", "0.45809105" ]
0.0
-1
Create a new NfcDetection
public NfcDetection(Context context) { this.context = context; fragment = new NfcDetectionFragment(); name = context.getString(R.string.nfc_detection_name); activeSpots = new HashMap<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "NFRFramework createNFRFramework();", "@Override\n\tpublic NdefMessage createNdefMessage(NfcEvent event) {\n\t\t// Get Networkdata\n\t\t//HostageDBOpenHelper dbh = new HostageDBOpenHelper(this);\n\t\tDaoSession dbSession = HostageApplication.getInstances().getDaoSession();\n\t\tDAOHelper daoHelper = new DAOHelper(dbSession,this);\n\t\tArrayList<NetworkRecord> localNetworkInformation = daoHelper.getNetworkRecordDAO().getNetworkInformation();\n\t\tHashMap<String, Long> devices_local = daoHelper.getSyncDeviceDAO().getSyncDeviceHashMap();\n\t\tArrayList<SyncInfoRecord> syncInfo = daoHelper.getSyncInfoRecordDAO().getSyncInfo();\n\t\t\n\t\tNdefMessage msg = null;\n\t\ttry {\n\t\t\tNdefRecord netData = NdefRecord.createMime(\"application/dk.aau.netsec.hostage.\", serialize(localNetworkInformation));\n\t\t\tNdefRecord deviceData = NdefRecord.createMime(\"application/dk.aau.netsec.hostage.\", serialize(devices_local));\n\t\t\tNdefRecord syncData = NdefRecord.createMime(\"application/dk.aau.netsec.hostage.\", serialize(syncInfo));\n\t\t\tmsg = new NdefMessage(netData, deviceData, syncData);\n\t\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg;\n\t}", "public EventHandle createStartDetect(){\n\n startDetectEventName = name+\"_startDetectEventName\";\n\n startDetectEvent = ECAAgent.getDefaultECAAgent().createPrimitiveEvent(\n startDetectEventName, // Event name\n \"MAKEFITS.Track\", // class Name\n EventModifier.END, // Event Modifier\n \"void startDetect()\", // Method signature\n this); // Instance (track1, track2,...,or trackN)\n return (PrimitiveEventHandle) startDetectEvent;\n }", "OurIFC createOurIFC();", "private void initTfod() {\n\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\",\n \"id\",\n hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfodParameters.minimumConfidence = TFOD_CONFIDENCE; //Added by J.Tu on 2019-04-24 00:23\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n //tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n\n }", "@Override\n public NdefMessage createNdefMessage(NfcEvent nfcEvent) {\n\n String packageName = getApplicationInfo().packageName;\n\n // get the edit text string\n str = mInput.getText().toString();\n //Log.d(TAG, getString(R.string.debug_key) + \" \" + str);\n\n String mimeType = \"application/\" + packageName;\n Log.d(TAG, getString(R.string.debug_key) + \"mimetype\" + mimeType);\n byte[] mimeByte = mimeType.getBytes(Charset.forName(\"US-ASCII\"));\n\n // encapsulate data in array of ndefrecord\n NdefRecord[] ndefRecord = new NdefRecord[]{\n NdefRecord.createMime(mimeType, str.getBytes(Charset.forName(\"US-ASCII\"))),\n NdefRecord.createApplicationRecord(packageName)\n };\n\n return new NdefMessage(ndefRecord);\n }", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "@SuppressLint(\"NewApi\")\n private void initnfc() {\n nfcAdapter = NfcAdapter.getDefaultAdapter(VoterCardActivity.this);\n if (nfcAdapter == null) {\n Toast.makeText(this, \"nfc_device_not_support\", Toast.LENGTH_SHORT)\n .show();\n finish();\n }\n if (!nfcAdapter.isEnabled()) {\n AlertDialog dialog = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.nfc_not_open_go_open))\n .setPositiveButton(getString(R.string.yes),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int which) {\n Intent intent = new Intent(\n \"android.settings.NFC_SETTINGS\");\n startActivityForResult(intent, 100);\n }\n }).create();\n dialog.show();\n }\n mPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this,\n getClass()), 0);\n }", "public NetscapeV3Factory() {\r\n }", "FuelingStation createFuelingStation();", "public interface Nc4prototypes extends Library {\n\n int NC_MAX_DIMS = 1024; /* max dimensions per file */\n int NC_MAX_ATTRS = 8192; /* max global or per variable attributes */\n int NC_MAX_VARS = 8192; /* max variables per file */\n int NC_MAX_NAME = 256; /* max length of a name */\n int NC_MAX_VAR_DIMS = NC_MAX_DIMS; /* max per variable dimensions */\n\n int NC_GLOBAL = -1;\n int NC_UNLIMITED = 0;\n\n int NC_FILL = 0; // Argument to nc_set_fill() to clear NC_NOFILL */\n int NC_NOFILL = 0x100; // Argument to nc_set_fill() to turn off filling of data. */\n\n /* Mode Flags */\n int NC_NOWRITE = 0x0000; // Set read-only access for nc_open().\n int NC_WRITE = 0x0001; // Set read-write access for nc_open().\n int NC_CLOBBER = 0x0000; // Destroy existing file. Mode flag for nc_create().\n int NC_NOCLOBBER = 0x0004; // Don't destroy existing file. Mode flag for nc_create().\n\n int NC_DISKLESS = 0x0008; // Use diskless file. Mode flag for nc_open() or nc_create(). */\n int NC_MMAP = 0x0010; // Use diskless file with mmap. Mode flag for nc_open() or nc_create(). */\n int NC_INMEMORY = 0x8000; // Read from memory. Mode flag for nc_open() or nc_create() => NC_DISKLESS */\n\n /* Format Flags */\n int NC_64BIT_OFFSET = 0x0200; // Use large (64-bit) file offsets. Mode flag for nc_create(). */\n int NC_64BIT_DATA = 0x0020; // CDF-5 format: classic model but 64 bit dimensions and sizes */\n int NC_CDF5 = NC_64BIT_DATA; // Alias NC_CDF5 to NC_64BIT_DATA */\n\n int NC_CLASSIC_MODEL = 0x0100; // Enforce classic model on netCDF-4. Mode flag for nc_create(). */\n int NC_NETCDF4 = 0x1000; // Use netCDF-4/HDF5 format. Mode flag for nc_create(). */\n\n /** Turn on MPI I/O. Use this in mode flags for both nc_create() and nc_open(). */\n int NC_MPIIO = 0x2000;\n /** Turn on MPI POSIX I/O. Use this in mode flags for both nc_create() and nc_open(). */\n int NC_MPIPOSIX = 0x4000; // \\deprecated As of libhdf5 1.8.13. */\n\n int NC_PNETCDF = (NC_MPIIO); // Use parallel-netcdf library; alias for NC_MPIIO. */\n\n int NC_NAT = 0; /* Not-A-Type */\n int NC_BYTE = 1; /* signed 1 byte integer */\n int NC_CHAR = 2; /* ISO/ASCII character */\n int NC_SHORT = 3; /* signed 2 byte integer */\n int NC_INT = 4; /* signed 4 byte integer */\n int NC_FLOAT = 5; /* single precision floating point number */\n int NC_DOUBLE = 6; /* double precision floating point number */\n int NC_UBYTE = 7; /* unsigned 1 byte int */\n int NC_USHORT = 8; /* unsigned 2-byte int */\n int NC_UINT = 9; /* unsigned 4-byte int */\n int NC_INT64 = 10; /* signed 8-byte int */\n int NC_UINT64 = 11;/* unsigned 8-byte int */\n int NC_STRING = 12; /* string */\n int NC_MAX_ATOMIC_TYPE = NC_STRING;\n\n /*\n * The following are use internally in support of user-defines\n * types. They are also the class returned by nc_inq_user_type.\n */\n int NC_VLEN = 13; /* used internally for vlen types */\n int NC_OPAQUE = 14; /* used internally for opaque types */\n int NC_ENUM = 15; /* used internally for enum types */\n int NC_COMPOUND = 16; /* used internally for compound types */\n\n /**\n * Format specifier for nc_set_default_format() and returned\n * by nc_inq_format.\n */\n int NC_FORMAT_CLASSIC = (1);\n int NC_FORMAT_64BIT = (2);\n int NC_FORMAT_NETCDF4 = (3);\n int NC_FORMAT_NETCDF4_CLASSIC = (4);\n\n /**\n * Extended format specifier returned by nc_inq_format_extended()\n * Added in version 4.3.1. This returns the true format of the\n * underlying data.\n */\n int NC_FORMAT_NC3 = (1);\n int NC_FORMAT_NC_HDF5 = (2) /* cdf 4 subset of HDF5 */;\n int NC_FORMAT_NC_HDF4 = (3) /* netcdf 4 subset of HDF4 */;\n int NC_FORMAT_PNETCDF = (4);\n int NC_FORMAT_DAP2 = (5);\n int NC_FORMAT_DAP4 = (6);\n int NC_FORMAT_UNDEFINED = (0);\n\n // nc_def_var_chunking()\n int NC_CHUNKED = 0;\n int NC_CONTIGUOUS = 1;\n\n // Selected errors\n int NC_NOERR = 0;\n\n class Vlen_t extends Structure {\n\n public static int VLENSIZE = new Vlen_t().size();\n\n public static byte[] contents(Vlen_t v) {\n if (v.p == Pointer.NULL)\n return null;\n return v.p.getByteArray(0, v.len);\n }\n\n public static class ByValue extends Vlen_t implements Structure.ByValue {\n }\n\n // Vlen_t Structure Fields\n public int len; /* Length of VL data (in base type units) */\n public Pointer p; /* Pointer to VL data */\n\n public Vlen_t() {}\n\n public Vlen_t(Pointer p) {\n super(p);\n }\n\n protected List<String> getFieldOrder() {\n List<String> fields = new ArrayList<>();\n fields.add(\"len\");\n fields.add(\"p\");\n return fields;\n }\n }\n\n // Begin API; Do not Remove this Line\n\n String nc_inq_libvers();\n\n String nc_strerror(int ncerr);\n\n int nc_open(String path, int mode, IntByReference ncidp);\n\n int nc_close(int ncid);\n\n int nc_inq_format(int ncid, IntByReference formatp);\n\n int nc_inq_format_extended(int ncid, IntByReference formatp, IntByReference modep);\n\n int nc_inq_grps(int ncid, IntByReference numgrps, int[] ncids);\n\n int nc_inq_grpname(int ncid, byte[] name);\n\n int nc_inq_grpname_full(int ncid, SizeTByReference lenp, byte[] full_name);\n\n int nc_inq_grpname_len(int ncid, SizeTByReference lenp);\n\n int nc_inq_ndims(int ncid, IntByReference ndimsp);\n\n int nc_inq_unlimdims(int ncid, IntByReference nunlimdimsp, int[] unlimdimidsp);\n\n int nc_inq_dimids(int ncid, IntByReference ndims, int[] dimids, int include_parents);\n\n int nc_inq_dim(int ncid, int dimid, byte[] name, SizeTByReference lenp);\n\n int nc_inq_dimname(int ncid, int dimid, byte[] name);\n\n int nc_inq_natts(int ncid, IntByReference nattsp);\n\n int nc_inq_attname(int ncid, int varid, int attnum, byte[] name);\n\n int nc_inq_atttype(int ncid, int varid, String name, IntByReference xtypep);\n\n int nc_inq_attlen(int ncid, int varid, String name, SizeTByReference lenp);\n\n int nc_get_att_double(int ncid, int varid, String name, double[] ip);\n\n int nc_get_att_float(int ncid, int varid, String name, float[] ip);\n\n int nc_get_att_int(int ncid, int varid, String name, int[] ip);\n\n int nc_get_att_uint(int ncid, int varid, String name, int[] ip);\n\n int nc_get_att_longlong(int ncid, int varid, String name, long[] ip);\n\n int nc_get_att_ulonglong(int ncid, int varid, String name, long[] ip);\n\n int nc_get_att_schar(int ncid, int varid, String name, byte[] ip);\n\n int nc_get_att_uchar(int ncid, int varid, String name, byte[] ip);\n\n int nc_get_att_ubyte(int ncid, int varid, String name, byte[] ip);\n\n int nc_get_att_short(int ncid, int varid, String name, short[] ip);\n\n int nc_get_att_ushort(int ncid, int varid, String name, short[] ip);\n\n int nc_get_att_text(int ncid, int varid, String name, byte[] ip);\n\n int nc_get_att_string(int ncid, int varid, String name, String[] ip);\n\n int nc_get_att(int ncid, int varid, String name, byte[] bbuff);\n\n int nc_inq_nvars(int ncid, IntByReference nvarsp);\n\n int nc_inq_varids(int ncid, IntByReference nvars, int[] varids);\n\n int nc_inq_var(int ncid, int varid, byte[] name, IntByReference xtypep, IntByReference ndimsp, int[] dimidsp,\n IntByReference nattsp);\n\n int nc_inq_varid(int ncid, byte[] name, IntByReference varidp);\n\n int nc_inq_vardimid(int ncid, int varid, int[] dimidsp);\n\n int nc_inq_varnatts(int ncid, int varid, IntByReference nattsp);\n\n int nc_inq_typeids(int ncid, IntByReference ntypes, int[] typeids);\n\n int nc_inq_type(int ncid, int xtype, byte[] name, SizeTByReference sizep);\n\n int nc_inq_user_type(int ncid, int xtype, byte[] name, SizeTByReference sizep, IntByReference baseType,\n SizeTByReference nfieldsp, IntByReference classp);\n\n int nc_inq_enum(int ncid, int xtype, byte[] name, IntByReference baseType, SizeTByReference base_sizep,\n SizeTByReference num_membersp);\n\n int nc_inq_enum_member(int ncid, int xtype, int idx, byte[] name, IntByReference value);\n\n int nc_inq_opaque(int ncid, int xtype, byte[] name, SizeTByReference sizep);\n\n int nc_get_var(int ncid, int varid, byte[] buf);\n\n int nc_get_var_text(int ncid, int varid, byte[] op);\n\n int nc_get_var_schar(int ncid, int varid, byte[] ip);\n\n int nc_get_var_ubyte(int ncid, int varid, byte[] ip);\n\n int nc_get_var_short(int ncid, int varid, short[] ip);\n\n int nc_get_var_ushort(int ncid, int varid, short[] ip);\n\n int nc_get_var_int(int ncid, int varid, int[] ip);\n\n int nc_get_var_uint(int ncid, int varid, int[] ip);\n\n int nc_get_var_longlong(int ncid, int varid, long[] ip);\n\n int nc_get_var_ulonglong(int ncid, int varid, long[] ip);\n\n int nc_get_var_float(int ncid, int varid, float[] ip);\n\n int nc_get_var_double(int ncid, int varid, double[] ip);\n\n int nc_get_var_string(int ncid, int varid, String[] sarray);\n\n int nc_get_var1(int ncid, int varid, SizeT[] indexp, byte[] buf);\n\n int nc_get_var1_text(int ncid, int varid, SizeT[] indexp, byte[] op);\n\n int nc_get_var1_schar(int ncid, int varid, SizeT[] indexp, byte[] ip);\n\n int nc_get_var1_ubyte(int ncid, int varid, SizeT[] indexp, byte[] ip);\n\n int nc_get_var1_short(int ncid, int varid, SizeT[] indexp, short[] ip);\n\n int nc_get_var1_ushort(int ncid, int varid, SizeT[] indexp, short[] ip);\n\n int nc_get_var1_int(int ncid, int varid, SizeT[] indexp, int[] ip);\n\n int nc_get_var1_uint(int ncid, int varid, SizeT[] indexp, int[] ip);\n\n int nc_get_var1_longlong(int ncid, int varid, SizeT[] indexp, long[] ip);\n\n int nc_get_var1_ulonglong(int ncid, int varid, SizeT[] indexp, long[] ip);\n\n int nc_get_var1_float(int ncid, int varid, SizeT[] indexp, float[] ip);\n\n int nc_get_var1_double(int ncid, int varid, SizeT[] indexp, double[] ip);\n\n int nc_get_var1_string(int ncid, int varid, SizeT[] indexp, String[] sarray);\n\n int nc_get_vara(int ncid, int varid, SizeT[] startp, SizeT[] countp, byte[] buf);\n\n int nc_get_vara_uchar(int ncid, int varid, SizeT[] startp, SizeT[] countp, byte[] ip);\n\n int nc_get_vara_schar(int ncid, int varid, SizeT[] startp, SizeT[] countp, byte[] ip);\n\n int nc_get_vara_text(int ncid, int varid, SizeT[] startp, SizeT[] countp, byte[] ip);\n\n int nc_get_vara_short(int ncid, int varid, SizeT[] startp, SizeT[] countp, short[] ip);\n\n int nc_get_vara_ushort(int ncid, int varid, SizeT[] startp, SizeT[] countp, short[] ip);\n\n int nc_get_vara_int(int ncid, int varid, SizeT[] startp, SizeT[] countp, int[] ip);\n\n int nc_get_vara_uint(int ncid, int varid, SizeT[] startp, SizeT[] countp, int[] ip);\n\n int nc_get_vara_longlong(int ncid, int varid, SizeT[] startp, SizeT[] countp, long[] ip);\n\n int nc_get_vara_ulonglong(int ncid, int varid, SizeT[] startp, SizeT[] countp, long[] ip);\n\n int nc_get_vara_float(int ncid, int varid, SizeT[] startp, SizeT[] countp, float[] ip);\n\n int nc_get_vara_double(int ncid, int varid, SizeT[] startp, SizeT[] countp, double[] ip);\n\n int nc_get_vara_string(int ncid, int varid, SizeT[] startp, SizeT[] countp, String[] ip);\n\n int nc_get_vars(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, byte[] buf);\n\n int nc_get_vars_uchar(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, byte[] ip);\n\n int nc_get_vars_schar(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, byte[] ip);\n\n int nc_get_vars_text(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, byte[] ip);\n\n int nc_get_vars_short(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, short[] ip);\n\n int nc_get_vars_ushort(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, short[] ip);\n\n int nc_get_vars_int(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, int[] ip);\n\n int nc_get_vars_uint(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, int[] ip);\n\n int nc_get_vars_longlong(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, long[] ip);\n\n int nc_get_vars_ulonglong(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, long[] ip);\n\n int nc_get_vars_float(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, float[] ip);\n\n int nc_get_vars_double(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, double[] ip);\n\n int nc_get_vars_string(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, String[] ip);\n\n int nc_set_default_format(int format, IntByReference old_formatp);\n\n int nc_create(String path, int cmode, IntByReference ncidp);\n\n int nc_enddef(int ncid);\n\n int nc_sync(int ncid);\n\n int nc_def_grp(int parent_ncid, String name, IntByReference new_ncid);\n\n int nc_def_dim(int ncid, String name, SizeT len, IntByReference dimid);\n\n int nc_inq_dimlen(int ncid, int dimid, SizeTByReference lenp);\n\n int nc_def_var(int ncid, String name, SizeT xtype, int ndims, int[] dimids, IntByReference varidp);\n\n int nc_def_compound(int ncid, SizeT size, String name, IntByReference typeidp);\n\n int nc_insert_compound(int ncid, int typeid, String name, SizeT offset, int field_typeid);\n\n int nc_insert_array_compound(int ncid, int typeid, String name, SizeT offset, int field_typeid, int ndims,\n int[] dim_sizes);\n\n int nc_def_enum(int ncid, int base_typeid, String name, IntByReference typeidp);\n\n int nc_insert_enum(int ncid, int enumid, String name, IntByReference value);\n\n int nc_rename_grp(int grpid, String name);\n\n int nc_put_var(int ncid, int varid, byte[] bbuff);\n\n int nc_put_vara(int ncid, int varid, SizeT[] startp, SizeT[] countp, byte[] bbuff);\n\n int nc_put_vara_uchar(int ncid, int varid, SizeT[] startp, SizeT[] countp, byte[] ip);\n\n int nc_put_vara_schar(int ncid, int varid, SizeT[] startp, SizeT[] countp, byte[] ip);\n\n int nc_put_vara_text(int ncid, int varid, SizeT[] startp, SizeT[] countp, byte[] ip);\n\n int nc_put_vara_short(int ncid, int varid, SizeT[] startp, SizeT[] countp, short[] ip);\n\n int nc_put_vara_ushort(int ncid, int varid, SizeT[] startp, SizeT[] countp, short[] ip);\n\n int nc_put_vara_int(int ncid, int varid, SizeT[] startp, SizeT[] countp, int[] ip);\n\n int nc_put_vara_uint(int ncid, int varid, SizeT[] startp, SizeT[] countp, int[] ip);\n\n int nc_put_vara_longlong(int ncid, int varid, SizeT[] startp, SizeT[] countp, long[] ip);\n\n int nc_put_vara_ulonglong(int ncid, int varid, SizeT[] startp, SizeT[] countp, long[] ip);\n\n int nc_put_vara_float(int ncid, int varid, SizeT[] startp, SizeT[] countp, float[] ip);\n\n int nc_put_vara_double(int ncid, int varid, SizeT[] startp, SizeT[] countp, double[] ip);\n\n int nc_put_vara_string(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, String[] ip);\n\n int nc_put_vars(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, byte[] bbuff);\n\n int nc_put_vars_uchar(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, byte[] ip);\n\n int nc_put_vars_schar(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, byte[] ip);\n\n int nc_put_vars_text(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, byte[] ip);\n\n int nc_put_vars_short(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, short[] ip);\n\n int nc_put_vars_ushort(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, short[] ip);\n\n int nc_put_vars_int(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, int[] ip);\n\n int nc_put_vars_uint(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, int[] ip);\n\n int nc_put_vars_longlong(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, long[] ip);\n\n int nc_put_vars_ulonglong(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, long[] ip);\n\n int nc_put_vars_float(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, float[] ip);\n\n int nc_put_vars_double(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, double[] ip);\n\n int nc_put_vars_string(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, String[] ip);\n\n int nc_put_var_uchar(int ncid, int varid, byte[] ip);\n\n int nc_put_var_schar(int ncid, int varid, byte[] ip);\n\n int nc_put_var_text(int ncid, int varid, byte[] ip);\n\n int nc_put_var_short(int ncid, int varid, short[] ip);\n\n int nc_put_var_ushort(int ncid, int varid, short[] ip);\n\n int nc_put_var_int(int ncid, int varid, int[] ip);\n\n int nc_put_var_uint(int ncid, int varid, int[] ip);\n\n int nc_put_var_longlong(int ncid, int varid, long[] ip);\n\n int nc_put_var_ulonglong(int ncid, int varid, long[] ip);\n\n int nc_put_var_float(int ncid, int varid, float[] ip);\n\n int nc_put_var_double(int ncid, int varid, double[] ip);\n\n int nc_put_var_string(int ncid, int varid, String[] op);\n\n int nc_put_att(int ncid, int varid, String name, int xtype, SizeT len, byte[] value);\n\n int nc_put_att_string(int ncid, int varid, String attName, SizeT len, String[] value);\n\n int nc_put_att_text(int ncid, int varid, String attName, SizeT len, byte[] value);\n\n int nc_put_att_uchar(int ncid, int varid, String attName, int xtype, SizeT len, byte[] value);\n\n int nc_put_att_schar(int ncid, int varid, String attName, int xtype, SizeT len, byte[] value);\n\n int nc_put_att_short(int ncid, int varid, String attName, int xtype, SizeT len, short[] value);\n\n int nc_put_att_ushort(int ncid, int varid, String attName, int xtype, SizeT len, short[] value);\n\n int nc_put_att_int(int ncid, int varid, String attName, int xtype, SizeT len, int[] value);\n\n int nc_put_att_uint(int ncid, int varid, String attName, int xtype, SizeT len, int[] value);\n\n int nc_put_att_longlong(int ncid, int varid, String attName, int xtype, SizeT len, long[] value);\n\n int nc_put_att_ulonglong(int ncid, int varid, String attName, int xtype, SizeT len, long[] value);\n\n int nc_put_att_float(int ncid, int varid, String attName, int xtype, SizeT len, float[] value);\n\n int nc_put_att_double(int ncid, int varid, String attName, int xtype, SizeT len, double[] value);\n\n int nc_def_var_deflate(int ncid, int varid, int shuffle, int deflate, int deflate_level);\n\n int nc_inq_var_deflate(int ncid, int varid, IntByReference shufflep, IntByReference deflatep,\n IntByReference deflate_levelp);\n\n int nc_inq_var_szip(int ncid, int varid, IntByReference options_maskp, IntByReference pixels_per_blockp);\n\n int nc_def_var_fletcher32(int ncid, int varid, int fletcher32);\n\n int nc_inq_var_fletcher32(int ncid, int varid, IntByReference fletcher32p);\n\n int nc_def_var_chunking(int ncid, int varid, int storage, SizeT[] chunksizesp);\n\n int nc_inq_var_chunking(int ncid, int varid, IntByReference storagep, SizeT[] chunksizesp);\n\n int nc_def_var_fill(int ncid, int varid, int no_fill, byte[] fill_value);\n\n int nc_inq_var_fill(int ncid, int varid, IntByReference no_fill, byte[] fill_valuep);\n\n int nc_def_var_endian(int ncid, int varid, int endian);\n\n int nc_inq_var_endian(int ncid, int varid, IntByReference endianp);\n\n int nc_set_fill(int ncid, int fillmode, IntByReference old_modep);\n\n int nc_set_chunk_cache(SizeT size, SizeT nelems, float preemption);\n\n int nc_get_chunk_cache(SizeTByReference sizep, SizeTByReference nelemsp, FloatByReference preemptionp);\n\n int nc_set_var_chunk_cache(int ncid, int varid, SizeT size, SizeT nelems, float preemption);\n\n int nc_get_var_chunk_cache(int ncid, int varid, SizeTByReference sizep, SizeTByReference nelemsp,\n FloatByReference preemptionp);\n\n int nc_set_log_level(int newlevel);\n\n // User type inquiry\n int nc_inq_compound(int ncid, int xtype, byte[] name, SizeTByReference sizep, SizeTByReference nfieldsp);\n\n int nc_inq_compound_field(int ncid, int xtype, int fieldid, byte[] name, SizeTByReference offsetp,\n IntByReference field_typeidp, IntByReference ndimsp, int[] dims);\n\n int nc_inq_vlen(int ncid, int xtype, byte[] name, SizeTByReference datum_sizep, IntByReference base_nc_typep);\n\n // Vlen specific read/write\n int nc_get_att(int ncid, int varid, String name, Vlen_t[] vlen);\n\n int nc_get_var(int ncid, int varid, Vlen_t[] vlen);\n\n int nc_get_var1(int ncid, int varid, SizeT[] indexp, Vlen_t[] vlen);\n\n int nc_get_vara(int ncid, int varid, SizeT[] startp, SizeT[] countp, Vlen_t[] v);\n\n int nc_get_vars(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, Vlen_t[] v);\n\n int nc_put_att(int ncid, int varid, String attName, int xtype, SizeT len, Vlen_t[] value);\n\n int nc_put_var(int ncid, int varid, Vlen_t[] vlen);\n\n int nc_put_var1(int ncid, int varid, SizeT[] indexp, Vlen_t[] vlen);\n\n int nc_put_vara(int ncid, int varid, SizeT[] startp, SizeT[] countp, Vlen_t[] v);\n\n int nc_put_vars(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, Vlen_t[] v);\n\n // Pointer based read/write for use by DAP4\n\n int nc_get_att(int ncid, int varid, String name, Pointer p);\n\n int nc_get_var(int ncid, int varid, Pointer p);\n\n int nc_get_var1(int ncid, int varid, SizeT[] indexp, Pointer p);\n\n int nc_get_vara(int ncid, int varid, SizeT[] startp, SizeT[] countp, Pointer p);\n\n int nc_get_vars(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, Pointer p);\n\n int nc_put_att(int ncid, int varid, String attName, int xtype, SizeT len, Pointer p);\n\n int nc_put_var(int ncid, int varid, Pointer p);\n\n int nc_put_var1(int ncid, int varid, SizeT[] indexp, Pointer p);\n\n int nc_put_vara(int ncid, int varid, SizeT[] startp, SizeT[] countp, Pointer p);\n\n int nc_put_vars(int ncid, int varid, SizeT[] startp, SizeT[] countp, SizeT[] stridep, Pointer p);\n\n}", "CbpmniFactory getCbpmniFactory();", "@Override\n public NdefMessage createNdefMessage(NfcEvent nfcEvent) {\n NdefRecord ndefRecord = NdefRecord.createMime(\"text/plain\", String.valueOf(Constants.user.getId()).getBytes());\n NdefMessage ndefMessage = new NdefMessage(ndefRecord);\n return ndefMessage;\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n String payload = null;\n if (intent != null && NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) {\n Parcelable[] rawMessages = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n if (rawMessages != null) {\n NdefMessage[] messages = new NdefMessage[rawMessages.length];\n messages[0] = (NdefMessage) rawMessages[0];\n NdefRecord rec = messages[0].getRecords()[0];\n payload = new String(rec.getPayload());\n //Toast.makeText(getApplicationContext(),payload,Toast.LENGTH_LONG).show();\n ServerComm serverComm = new ServerComm();\n String result=\"\";\n try {\n result = serverComm.execute(\"1\", MainActivity.user.getUserId(), MainActivity.user.getPassword(), payload).get();\n }catch (InterruptedException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }catch (ExecutionException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(result==null){\n Toast.makeText(getApplicationContext(),\"Check your Internet Connection\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(result.equalsIgnoreCase(\"successful\")){\n Toast.makeText(getApplicationContext(),\"Attendance Registered successfully!\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n }", "public NioDatagramChannel(InternetProtocolFamily ipFamily) {\n/* 132 */ this(newSocket(DEFAULT_SELECTOR_PROVIDER, ipFamily));\n/* */ }", "private void createTrackingPipeline() throws ConfigurationException\n {\n fgDetector = new HSVFGDetector();\n // fgDetector = new DifferenceFGDetector();\n\n blobDetector = opencv_legacy.cvCreateBlobDetectorSimple();\n // blobTracker = opencv_legacy.cvCreateBlobTrackerCCMSPF();\n blobTracker = opencv_legacy.cvCreateBlobTrackerCC();\n trackerPostProcessor = opencv_legacy.cvCreateModuleBlobTrackPostProcKalman();\n trackerFrameCount = 0;\n blobs.Clear();\n badFramesForBlob.clear();\n }", "public NioDatagramChannel() {\n/* 116 */ this(newSocket(DEFAULT_SELECTOR_PROVIDER));\n/* */ }", "public void initTfod() {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfodParameters.minResultConfidence = 0.8f;\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_QUAD_ELEMENT, LABEL_SINGLE_ELEMENT);\n }", "private void initTfod() {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfodParameters.minimumConfidence = 0.8;\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_FIRST_ELEMENT, LABEL_SECOND_ELEMENT);\n }", "private void initTfod() {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfodParameters.minimumConfidence = 0.67;\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_FIRST_ELEMENT, LABEL_SECOND_ELEMENT);\n }", "private void initTfod() {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfodParameters.minResultConfidence = 0.8f;\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_FIRST_ELEMENT, LABEL_SECOND_ELEMENT);\n }", "void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }", "private B_NotaFiscal geraNF(C_Fatura fatura) {\n\t\tdouble valor = fatura.getValorMensal();\n\t\tdouble imposto = 0;\n\t\tif(valor < 200) {\n\t\t\timposto = valor * 0.03;\n\t\t}\n\t\telse if(valor > 200 && valor <= 1000) {\n\t\t\timposto = valor * 0.06;\n\t\t}\n\t\telse {\n\t\t\timposto = valor * 0.07;\n\t\t}\n\t\t\n\t\tB_NotaFiscal nf = new B_NotaFiscal(valor, imposto);\n\t\treturn nf;\n\t}", "public NFA(){}", "public MdnFeatures()\n {\n }", "private SourceRconPacketFactory() {\n }", "public NAFReader() {\n super(\"Hamamatsu Aquacosmos\", \"naf\");\n domains = new String[] {FormatTools.LM_DOMAIN};\n }", "void initTfod() {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n }", "NFRSoftgoal createNFRSoftgoal();", "public CommandLineFSRecognizer() {\n init();\n }", "public DeviceFamilyImpl(DeviceFactory df){\n\t\tsuper((Class<T>) c);\n\t\tthis.df = df;\n\t}", "private void initTfod() {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n }", "private VerifierFactory() {\n }", "public NioDatagramChannel(SelectorProvider provider, InternetProtocolFamily ipFamily) {\n/* 141 */ this(newSocket(provider, ipFamily));\n/* */ }", "public void initTfod() {\n\t\tint tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n\t\t\t\t\"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\t\tTFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters((tfodMonitorViewId));\n\t\ttfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n\t\ttfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n\t}", "@Override\n\tpublic Alg newInstance() {\n\t\treturn new BnetDistributedCF();\n\t}", "IFMLPort createIFMLPort();", "public static NPIconFactory getInstance()\r\n {\r\n if(instance==null)\r\n instance = new NPIconFactory();\r\n return instance;\r\n }", "TesttrackFactory getTesttrackFactory();", "@Override\n public IComponent createRfCavityDrift(String name, double len, double freq, double mode) throws ModelException {\n try {\n Constructor<? extends IComponent> ctorElem = this.clsRfCavDriftElem.getConstructor(String.class, double.class, double.class, double.class);\n IComponent elemDrift = ctorElem.newInstance(name, len, freq, mode); \n \n return elemDrift;\n \n } catch (InstantiationException | IllegalAccessException\n | IllegalArgumentException | InvocationTargetException\n | NoSuchMethodException | SecurityException e) {\n throw new ModelException(\"Problem when instantiating RF cavity drift element\", e); \n } \n }", "public CvFile() {\n }", "public CreateRemoteClassic<Msg, Ref> infraCreate();", "public VisionSubsystem() {\n\n }", "public FrcFaceDetector(\n final String instanceName, final String classifierPath, CvSink videoIn, CvSource videoOut)\n {\n super(instanceName, videoIn, videoOut, NUM_IMAGE_BUFFERS, detectedFacesBuffers);\n\n //\n // Preallocate two MatOfRects for ping pong processing.\n //\n for (int i = 0; i < detectedFacesBuffers.length; i++)\n {\n detectedFacesBuffers[i] = new MatOfRect();\n }\n\n faceDetector = new CascadeClassifier(classifierPath);\n if (faceDetector.empty())\n {\n throw new RuntimeException(\"Failed to load Cascade Classifier <\" + classifierPath + \">\");\n }\n }", "@Override\n public CreateDocumentClassifierResult createDocumentClassifier(CreateDocumentClassifierRequest request) {\n request = beforeClientExecution(request);\n return executeCreateDocumentClassifier(request);\n }", "public interface NfrFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tNfrFactory eINSTANCE = nfr.impl.NfrFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>NFR Framework</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>NFR Framework</em>'.\n\t * @generated\n\t */\n\tNFRFramework createNFRFramework();\n\n\t/**\n\t * Returns a new object of class '<em>NFR Softgoal</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>NFR Softgoal</em>'.\n\t * @generated\n\t */\n\tNFRSoftgoal createNFRSoftgoal();\n\n\t/**\n\t * Returns a new object of class '<em>Operationalizing Softgoal</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Operationalizing Softgoal</em>'.\n\t * @generated\n\t */\n\tOperationalizingSoftgoal createOperationalizingSoftgoal();\n\n\t/**\n\t * Returns a new object of class '<em>Claim Softgoal</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Claim Softgoal</em>'.\n\t * @generated\n\t */\n\tClaimSoftgoal createClaimSoftgoal();\n\n\t/**\n\t * Returns a new object of class '<em>AND Decomposition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>AND Decomposition</em>'.\n\t * @generated\n\t */\n\tANDDecomposition createANDDecomposition();\n\n\t/**\n\t * Returns a new object of class '<em>OR Decomposition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>OR Decomposition</em>'.\n\t * @generated\n\t */\n\tORDecomposition createORDecomposition();\n\n\t/**\n\t * Returns a new object of class '<em>EQL Decomposition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>EQL Decomposition</em>'.\n\t * @generated\n\t */\n\tEQLDecomposition createEQLDecomposition();\n\n\t/**\n\t * Returns a new object of class '<em>Make</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Make</em>'.\n\t * @generated\n\t */\n\tMake createMake();\n\n\t/**\n\t * Returns a new object of class '<em>Help</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Help</em>'.\n\t * @generated\n\t */\n\tHelp createHelp();\n\n\t/**\n\t * Returns a new object of class '<em>Some Plus</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Some Plus</em>'.\n\t * @generated\n\t */\n\tSomePlus createSomePlus();\n\n\t/**\n\t * Returns a new object of class '<em>Break</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Break</em>'.\n\t * @generated\n\t */\n\tBreak createBreak();\n\n\t/**\n\t * Returns a new object of class '<em>Hurt</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Hurt</em>'.\n\t * @generated\n\t */\n\tHurt createHurt();\n\n\t/**\n\t * Returns a new object of class '<em>Some Minus</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Some Minus</em>'.\n\t * @generated\n\t */\n\tSomeMinus createSomeMinus();\n\n\t/**\n\t * Returns a new object of class '<em>Event</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Event</em>'.\n\t * @generated\n\t */\n\tEvent createEvent();\n\n\t/**\n\t * Returns a new object of class '<em>Task</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Task</em>'.\n\t * @generated\n\t */\n\tTask createTask();\n\n\t/**\n\t * Returns a new object of class '<em>Flow Sequence</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Flow Sequence</em>'.\n\t * @generated\n\t */\n\tFlowSequence createFlowSequence();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tNfrPackage getNfrPackage();\n\n}", "public GpflFactoryImpl()\n {\n super();\n }", "FData createFData();", "public interface NewDeviceDetectedEventListener extends EventListener {\r\n\tpublic void newDeviceDetectedEventOccurred(NewDeviceDetectedEvent evt);\r\n }", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "@Override\r\n\t\t\tpublic Object construct() {\n\t\t\t\ttextArea_1.setText(\"\\n Now Capturing on Interface \"+index+ \".... \"+\"\\n --------------------------------------------\"+\r\n\t\t\t\t\t\t\"---------------------------------------------\\n\\n \");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tCAP=JpcapCaptor.openDevice(NETWORK_INTERFACES[index], 65535, true, 20);\r\n\t\t\t\t\twhile(captureState)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCAP.processPacket(1, new PkPirate_packetContents());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tCAP.close();\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\tSystem.out.println(e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\treturn 0;\r\n\t\t\t}", "private static native long createDisparityWLSFilterGeneric_0(boolean use_confidence);", "public ExternalServiceLayerCIMFactoryImpl() {\n\t\tsuper();\n\t}", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public RFID_Detector() {\n initComponents();\n }", "public CreateRemoteClassic<Msg, Ref> factCreate();", "private void createNotificationChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n if(status.connection_status == enums.connection_status.connected)\n {\n CharSequence name = \"Sample VPN\";\n String description = \"VPN notification\";\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\n NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance);\n channel.setDescription(description);\n // Register the channel with the system; you can't change the importance\n // or other notification behaviors after this\n NotificationManager notificationManager = home_model.getInstance().getHomeInstance().getSystemService(NotificationManager.class);\n notificationManager.createNotificationChannel(channel);\n }\n }\n }", "IFMLModel createIFMLModel();", "private CardReaderMonitorFactory() {\t\t\n\t}", "public static FieldOfActivityAnnotationsFactory init() {\n\t\ttry {\n\t\t\tFieldOfActivityAnnotationsFactory theFieldOfActivityAnnotationsFactory = (FieldOfActivityAnnotationsFactory)EPackage.Registry.INSTANCE.getEFactory(FieldOfActivityAnnotationsPackage.eNS_URI);\n\t\t\tif (theFieldOfActivityAnnotationsFactory != null) {\n\t\t\t\treturn theFieldOfActivityAnnotationsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new FieldOfActivityAnnotationsFactoryImpl();\n\t}", "protected NeighborFinder initializeNF(String shape, int r, int c){\n\t\tswitch (shape){\n\t\tcase Resources.TRIANGLE:\n\t\t\tmyNF = new TriangleNeighborFinder(r, c);\n\t\t\tbreak;\n\t\tcase Resources.SQUARE:\n\t\t\tmyNF = new SquareNeighborFinder(r, c);\n\t\t\tbreak;\n\t\tcase Resources.HEXAGON:\n\t\t\tmyNF = new HexagonNeighborFinder(r, c);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn myNF;\n\t}", "Device createDevice();", "protected abstract CreateRemoteClassic<Msg, Ref> make_factCreate();", "public ZbnfSetTrack new_Track(){\n return new ZbnfSetTrack();\n }", "public NFA(File f){readMachineDescription(f);}", "public NioDatagramChannel(SelectorProvider provider) {\n/* 124 */ this(newSocket(provider));\n/* */ }", "public void inicializarCaptura() {\n try {\n fingerprintSDK = new MatchingContext(); \n //Inicializa la captura de huella digital.\n GrFingerJava.initializeCapture(this); \n objpantprincipal.writeLog(\"**SDK de huella dactilar inicializado con éxito**\");\n } catch (Exception e) {\n //Si ocurre un error se cierra la aplicación.\n //If any error ocurred while initializing GrFinger,\n //writes the error to log\n Toolkit.getDefaultToolkit().beep();\n objpantprincipal.writeLog(e.getMessage());\n //System.exit(1);\n }\n }", "abstract Feature createFeature(boolean enabled, int count);", "public static Flipkart createFlipkart()throws Exception {\r\n\t\t //create target class obj\r\n\t\t Flipkart fpkt=new Flipkart();\r\n\t\t \r\n\t\t // Load Dependent class \r\n\t\t Class c=Class.forName(props.getProperty(\"dependent.comp\"));\r\n\t\t //create object using refflection object\r\n\t\t Constructor cons[]=c.getDeclaredConstructors();\r\n\t\t //create object\r\n\t\t Courier courier=(Courier) cons[0].newInstance();\r\n\t\t //set Dependent class object to target class obj\r\n\t\t fpkt.setCourier(courier);\r\n\t return fpkt;\r\n }", "public Vision() {\n\n visionCam = CameraServer.getInstance().startAutomaticCapture(\"HatchCam\", 0);\n visionCam.setVideoMode(PixelFormat.kMJPEG, 320, 240, 115200);\n \n int retry = 0;\n while(cam == null && retry < 10) {\n try {\n System.out.println(\"Connecting to jevois serial port ...\");\n cam = new SerialPort(115200, SerialPort.Port.kUSB1);\n System.out.println(\"Success!!!\");\n } catch (Exception e) {\n System.out.println(\"We all shook out\");\n e.printStackTrace();\n sleep(500);\n System.out.println(\"Retry\" + Integer.toString(retry));\n retry++;\n }\n }\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "EventChannel create();", "public LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN() {}", "public Feature createFeature(Feature.Template ft)\n throws BioException, ChangeVetoException;", "public NdefMessage createNdefMessage(NfcEvent arg0) {\n\t\treturn null;\n\t}", "NetworkFactory getNetworkFactory();", "public TF_IDF() {\r\n\t\tsuper();\r\n\t}", "public Facility() {\n }", "@Override\n\tpublic Receive createReceive() {\n\t\treturn receiveBuilder()\n\t\t\t\t.match(RequestTrackDevice.class, this::onTrackDevice)\n\t\t\t\t.match(Terminated.class, this::onTerminate)\n\t\t\t\t.match(RequestDeviceList.class, this::onDeviceList)\n\t\t\t\t.match(RequestAllTemperatures.class, this::onAllTemperatures)\n\t\t\t\t.build();\n\t}", "public NFA(String fn){readMachineDescription(new File(fn));}", "private static DatagramChannel newSocket(SelectorProvider provider) {\n/* */ try {\n/* 86 */ return provider.openDatagramChannel();\n/* 87 */ } catch (IOException e) {\n/* 88 */ throw new ChannelException(\"Failed to open a socket.\", e);\n/* */ } \n/* */ }", "public static FvFactory init() {\n\t\ttry {\n\t\t\tFvFactory theFvFactory = (FvFactory)EPackage.Registry.INSTANCE.getEFactory(FvPackage.eNS_URI);\n\t\t\tif (theFvFactory != null) {\n\t\t\t\treturn theFvFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new FvFactoryImpl();\n\t}", "private void createNotificationChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\r\n CharSequence name = \"Picture upload\";\r\n String description =\"PRIKACENA SLIKA\";\r\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\r\n NotificationChannel channel = new NotificationChannel(\"slika1\", name, importance);\r\n channel.setDescription(description);\r\n // Register the channel with the system; you can't change the importance\r\n // or other notification behaviors after this\r\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\r\n notificationManager.createNotificationChannel(channel);\r\n }\r\n }", "public CMN() {\n\t}", "public void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CAMERA_CHOICE;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n initTfod();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n }\n }", "public PrtNotificationVORowImpl() {\r\n }", "public void CrearNotificacionChannel(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){\n CharSequence name = \"Notificacion name\";\n NotificationChannel notificationChannel = new NotificationChannel(CHANNEL_ID, name, NotificationManager.IMPORTANCE_DEFAULT);\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n notificationManager.createNotificationChannel(notificationChannel);\n }\n }", "Nexo createNexo();", "private void createFeatures() {\n\t\tfeatures = new Feature[NUM_FEATURES];\n\n\t\t// Create dummy feature\n\t\tfeatures[0] = new DummyFeature(width, height, 0, 0 - THRESHOLD);\n\n\t\t// Create the rest of the features\n\t\tfor (int i = 1; i < NUM_FEATURES; i++) {\n\t\t\tfeatures[i] = new Feature(width, height, i);\n\t\t}\n\t}", "public Factory() {\n\t\tnb_rounds = 0; \n\t\tnb_to_train = 0; \n\t\ttraining_queue = new LinkedList<Pair<Soldier, Integer>>(); \n\t\tcurrent = null;\n\t}", "private void createChannelAccess(Nx100Type config) throws FactoryException {\n \t\ttry {\n \t\t\tjobChannel = channelManager.createChannel(config.getJOB().getPv(), false);\n \t\t\tstartChannel = channelManager.createChannel(config.getSTART().getPv(), false);\n \t\t\tholdChannel = channelManager.createChannel(config.getHOLD().getPv(), false);\n \t\t\tsvonChannel = channelManager.createChannel(config.getSVON().getPv(), false);\n \t\t\terrChannel = channelManager.createChannel(config.getERR().getPv(), errls, false);\n \n \t\t\t// acknowledge that creation phase is completed\n \t\t\tchannelManager.creationPhaseCompleted();\n \t\t} catch (Throwable th) {\n \t\t\tthrow new FactoryException(\"failed to create all channels\", th);\n \t\t}\n \t}", "private static native long createStructuredEdgeDetection_0(String model, long howToGetFeatures_nativeObj);", "com.czht.face.recognition.Czhtdev.Request getRequest();", "interface CreateNewNetCallback {\n\n /**\n * Method is called after the net was created successfully.\n */\n void onCreateNewNetSuccess();\n\n /**\n * Method is called after something went wrong with creation of new net.\n */\n void onCreateNewNetFailure();\n\n void onApplicationMainPortUsed();\n }", "public static ExternalServiceLayerCIMFactory init() {\n\t\ttry {\n\t\t\tExternalServiceLayerCIMFactory theExternalServiceLayerCIMFactory = (ExternalServiceLayerCIMFactory)EPackage.Registry.INSTANCE.getEFactory(ExternalServiceLayerCIMPackage.eNS_URI);\n\t\t\tif (theExternalServiceLayerCIMFactory != null) {\n\t\t\t\treturn theExternalServiceLayerCIMFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ExternalServiceLayerCIMFactoryImpl();\n\t}", "public FeatureExtraction() {\n\t}", "public TelephonyNetworkFactory(Looper l, Context c, String TAG, Phone phone, NetworkCapabilities nc) {\r\n super(l, c, TAG, nc);\r\n DctController.this = r3;\r\n this.mPhone = phone;\r\n this.mNetworkCapabilities = nc;\r\n log(\"NetworkCapabilities: \" + nc);\r\n }", "public DefaultDeviceDiscovererListener()\r\n {\r\n }", "@Override\n protected void onNewIntent(Intent intent){\n\n //If the new intent matches the filtered NFC intent, read in the tag's raw data.\n if(NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {\n mytag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n //Display a visible notification showing the object has been found.\n Toast.makeText(this, \"Object Found.\", Toast.LENGTH_LONG).show();\n\n //If the new story is ready to be written\n if (newStoryReady) {\n\n //Initialize success boolean which returns true only if the nfc interaction has been successful\n boolean success = false;\n success = nfcInteraction.doWrite(mytag, tag_data);\n\n //If the nfc write process has succeeded, take the following action\n if (success) {\n\n //Return the value of newStoryReady to false as current ready story has been written\n newStoryReady = false;\n //Stop the clickability of the current range of image views\n disableViewClickability();\n //Stop any active commentary\n commentaryInstruction.stopPlaying();\n //Cancel idleSaveStoryToArchiveHandler which automatically saves the current story to the archive\n cancelIdleStoryCountdown();\n //Reset the camera to a new preview\n resetCamera();\n //Release current camera instance\n releaseCamera();\n// nfcInteraction.Complete(success);\n //Complete the process by navigating to back to HomeScreen activity which will play the new story\n Complete(success);\n } else {\n\n newStoryReady = true;\n }\n }\n }\n }", "Feature createFeature();", "public static Factory factory() {\n return ext_xspf::new;\n }" ]
[ "0.59846425", "0.53385454", "0.5303105", "0.52954453", "0.51982504", "0.51433223", "0.51427114", "0.5126806", "0.5110597", "0.5102539", "0.5079991", "0.5074123", "0.5070312", "0.50701684", "0.50568354", "0.50447595", "0.50429696", "0.50357765", "0.5029015", "0.5026054", "0.50106", "0.5001508", "0.49934125", "0.49836928", "0.49549955", "0.4952467", "0.49489045", "0.4948094", "0.49445167", "0.4939954", "0.49341586", "0.49326572", "0.49309114", "0.49126709", "0.48988125", "0.48926416", "0.48881283", "0.4879266", "0.48571804", "0.48565853", "0.4811283", "0.48019308", "0.48005882", "0.47760397", "0.4773537", "0.475969", "0.47590357", "0.4752944", "0.47502443", "0.47477397", "0.47422284", "0.47261947", "0.4723842", "0.4721394", "0.47122833", "0.4707939", "0.47076395", "0.4696148", "0.46935746", "0.46890932", "0.46890917", "0.46874022", "0.46837544", "0.46812811", "0.46664006", "0.4664399", "0.46635294", "0.4652844", "0.4633046", "0.46306616", "0.4619408", "0.46178705", "0.46163878", "0.46122345", "0.4608611", "0.4606889", "0.46029544", "0.45984694", "0.45949173", "0.45891118", "0.45862463", "0.45770302", "0.45758682", "0.4570953", "0.4570396", "0.4570036", "0.4554769", "0.45523152", "0.4549916", "0.4546493", "0.45444903", "0.45431522", "0.45427647", "0.4542612", "0.45424664", "0.45411226", "0.45309877", "0.45297116", "0.45295048", "0.45289025" ]
0.6685349
0
This function is called when the NfcDetectedActivity detected a NFC tag.
public void detectedNfcSensor(NfcSensor foundSensor) { if (detect) { for (Location location : locations) { if (location instanceof NfcSpot) { final NfcSpot nfcSpot = (NfcSpot) location; if (nfcSpot.getNfcSensor().getSerialNumber().equals(foundSensor.getSerialNumber())) { String log = "Set NfcSpot \"" + nfcSpot.getName() + "\": "; Log.d(getClass().getSimpleName(), log + "true"); nfcSpot.setActive(true); activeSpots.put(nfcSpot, timeToSetInactive); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResume() {\n super.onResume();\n // Check if there is any any NDEF is discovered to process the TAG\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {\n processIntent(getIntent()); // If NDEF is discovered, It calls prcoessIntent method to get the NFC TAG Code\n }\n }", "public interface OnNfcDataReceived {\n void processNfcData(Tag mytag);\n}", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n String s = new String(msg.getRecords()[0].getPayload());\n nfcTagCode = s.substring(3);\n\n textView.setText(nfcTagCode); // Sets the textview as the Text read from NFC TAG\n }", "@Override\n protected void onNewIntent(Intent intent){\n\n //If the new intent matches the filtered NFC intent, read in the tag's raw data.\n if(NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {\n mytag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n //Display a visible notification showing the object has been found.\n Toast.makeText(this, \"Object Found.\", Toast.LENGTH_LONG).show();\n\n //If the new story is ready to be written\n if (newStoryReady) {\n\n //Initialize success boolean which returns true only if the nfc interaction has been successful\n boolean success = false;\n success = nfcInteraction.doWrite(mytag, tag_data);\n\n //If the nfc write process has succeeded, take the following action\n if (success) {\n\n //Return the value of newStoryReady to false as current ready story has been written\n newStoryReady = false;\n //Stop the clickability of the current range of image views\n disableViewClickability();\n //Stop any active commentary\n commentaryInstruction.stopPlaying();\n //Cancel idleSaveStoryToArchiveHandler which automatically saves the current story to the archive\n cancelIdleStoryCountdown();\n //Reset the camera to a new preview\n resetCamera();\n //Release current camera instance\n releaseCamera();\n// nfcInteraction.Complete(success);\n //Complete the process by navigating to back to HomeScreen activity which will play the new story\n Complete(success);\n } else {\n\n newStoryReady = true;\n }\n }\n }\n }", "public void onNdefPushComplete(NfcEvent event) {\n\t\t\n\t}", "private void handleIntent(Intent intent) {\n if(intent == null){\n Toast.makeText(this, \"intent is null handleIntent \", Toast.LENGTH_SHORT).show();\n return;\n }\n String action = intent.getAction();\n\n if(nfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)){\n String type = intent.getType();\n if(MIME_TEXT_PLAIN.equals(type)){\n Tag tag = intent.getParcelableExtra(EXTRA_TAG);\n\n nfcReaderTask = new NfcReaderTask();\n nfcReaderTask.SetResponseListener(this);\n nfcReaderTask.execute(tag);\n }\n }\n }", "@Override\r\n public void onNdefPushComplete(NfcEvent event)\r\n {\r\n mServer.start();\r\n\r\n SendActivity.this.runOnUiThread(new Runnable()\r\n {\r\n public void run()\r\n {\r\n tapImage.setVisibility(View.INVISIBLE);\r\n tapText.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n mNfcAdapter.setNdefPushMessageCallback(null, this);\r\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {\n myTag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n }\n if(isWriting){\n attemptWriteToTag();\n writeFragment.dismiss();\n isWriting = false;\n } else {\n setIntent(intent);\n tagProfile = nfcReader.readFromIntent(intent);\n }\n }", "@Override\n public void onNdefPushComplete(NfcEvent nfcEvent) {\n Handler h = handler;\n if (h != null)\n h.obtainMessage(MESSAGE_SENT).sendToTarget();\n }", "@Override\n\tpublic void onNdefPushComplete(NfcEvent event) {\n\t\tmHandler.obtainMessage(MESSAGE_SENT).sendToTarget();\n\t\t\n\t}", "@Override\n\tpublic void onNdefPushComplete(NfcEvent arg0) {\n\t\t// A handler is needed to send messages to the activity when this\n\t\t// callback occurs, because it happens from a binder thread\n\t\tmHandler.obtainMessage(MESSAGE_SENT).sendToTarget();\n\t}", "public void startTrackingNfc() {\n\t\tif (adapter == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tfinal Intent intent = new Intent(activity.getApplicationContext(), activity.getClass());\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n\t\tfinal PendingIntent nfcPendingIntent =\n\t\t\t\tPendingIntent.getActivity(activity.getApplicationContext(), 0, intent, 0);\n\t\tadapter.enableForegroundDispatch(activity, nfcPendingIntent, null, null);\n\t}", "public void readNFC(View view) {\n\n // capture in logcat\n Log.d(TAG, getString(R.string.debug_key) + \" Read key pressed\");\n\n getNdef();\n if (ndef == null)\n return;\n\n String set_it;\n\n boolean canbereadonly = ndef.canMakeReadOnly();\n int maxsize = ndef.getMaxSize();\n String tag_type = ndef.getType();\n boolean connected = ndef.isConnected();\n boolean writable = ndef.isWritable();\n //NdefMessage cached_msg = ndef.getCachedNdefMessage();\n NdefMessage cached_msg = null;\n try {\n // establish connection with tag\n ndef.connect();\n\n cached_msg = ndef.getNdefMessage();\n\n // disconnect\n ndef.close();\n Toast.makeText(this, \"Tag read\", Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n Toast.makeText(this, \"Connection lost: Writing failed\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (FormatException e) {\n Toast.makeText(this, \"Format Error: Writing failed\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n\n if (cached_msg == null) {\n Toast.makeText(this, \"Tag is empty\", Toast.LENGTH_LONG).show();\n } else {\n // this can also be done by creating other activity for this layout.tag_output and calling that activity through explicit intent, better way\n setContentView(R.layout.tag_output);\n is_tag_output = true;\n }\n\n // get reference to text view inside tag_output\n TextView out1 = (TextView) findViewById(R.id.out1);\n TextView v_aar = (TextView) findViewById(R.id.aar);\n TextView prop1 = (TextView) findViewById(R.id.prop1);\n TextView prop2 = (TextView) findViewById(R.id.prop2);\n TextView prop3 = (TextView) findViewById(R.id.prop3);\n TextView prop4 = (TextView) findViewById(R.id.prop4);\n\n // get string from ndef message\n String user_msg = new String(cached_msg.getRecords()[0].getPayload());\n //String aar = new String(cached_msg.getRecords()[1].getPayload());\n\n // assign it to textview\n if (user_msg.equals(\"\"))\n out1.setText(\"User didn't provide data\");\n else\n out1.setText(user_msg);\n //v_aar.setText(\"AAR is: \" + aar);\n v_aar.setText(\"AAR is: \");\n\n if (canbereadonly) {\n Log.d(TAG, getString(R.string.debug_key) + \"Can be Read only\");\n set_it = \"Can be Read only\";\n } else {\n Log.d(TAG, getString(R.string.debug_key) + \"Can't be Read only\");\n set_it = \"Can't be Read only\";\n }\n prop1.setText(set_it);\n\n if (writable) {\n Log.d(TAG, getString(R.string.debug_key) + \"writable\");\n set_it = \"Writable\";\n } else {\n Log.d(TAG, getString(R.string.debug_key) + \"Not writable\");\n set_it = \"Not Writable\";\n }\n prop2.setText(set_it);\n\n if (connected) {\n Log.d(TAG, getString(R.string.debug_key) + \"Connected\");\n } else {\n Log.d(TAG, getString(R.string.debug_key) + \"Not Connected\");\n }\n\n Log.d(TAG, getString(R.string.debug_key) + \"maxsize: \" + maxsize + \"tag_type: \" + tag_type);\n prop3.setText(\"MaxSize: \" + maxsize);\n prop4.setText(\"TagType: \" + tag_type);\n\n }", "@Override\r\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\r\n Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\r\n DataDevice ma = (DataDevice) getApplication();\r\n ma.setCurrentTag(tagFromIntent);\r\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, mFilters, null);\n checkPlayServices();\n // Check to see that the Activity started due to an Android Beam\n Log.i(TAG, \"resume\" + getIntent().getAction());\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {\n\n processIntent(getIntent());\n }\n }", "public void resolveIntent(Intent intent) {\n String action = intent.getAction();\n if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(action)\n || NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) {\n\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage[] msgs;\n if (this.status == Status.bereit_zum_schreiben) {\n\n Tag wTAG = (Tag) intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n if (wTAG != null) {\n this.setStatus(Status.schreibt);\n writeTag(wTAG, this.createNdefMessage());\n\n }\n }\n }\n\n }", "@Override\n public void onBarcodeDetected(Barcode barcode) {\n Log.d(TAG,\"Barcode detected\");\n }", "public void onNewIntent(Intent intent) {\n\t Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n\t String nfcMessage = intent.getStringExtra(\"nfcMessage\");\n\t \n\t if(nfcMessage != null) {\n\t if(writeTag(this, tag, nfcMessage))\n\t \tToast.makeText(this, \"Write successfull\", Toast.LENGTH_LONG).show();\n\t \n\t newText.setText(\"sample text\");\n\t }\n\t}", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n String payload = null;\n if (intent != null && NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) {\n Parcelable[] rawMessages = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n if (rawMessages != null) {\n NdefMessage[] messages = new NdefMessage[rawMessages.length];\n messages[0] = (NdefMessage) rawMessages[0];\n NdefRecord rec = messages[0].getRecords()[0];\n payload = new String(rec.getPayload());\n //Toast.makeText(getApplicationContext(),payload,Toast.LENGTH_LONG).show();\n ServerComm serverComm = new ServerComm();\n String result=\"\";\n try {\n result = serverComm.execute(\"1\", MainActivity.user.getUserId(), MainActivity.user.getPassword(), payload).get();\n }catch (InterruptedException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }catch (ExecutionException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(result==null){\n Toast.makeText(getApplicationContext(),\"Check your Internet Connection\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(result.equalsIgnoreCase(\"successful\")){\n Toast.makeText(getApplicationContext(),\"Attendance Registered successfully!\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n }", "@SuppressLint(\"NewApi\")\n @Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 100) {\n nfcAdapter = NfcAdapter.getDefaultAdapter(this);\n if (!nfcAdapter.isEnabled()) {\n Toast.makeText(this, \"nfc_not_open\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "public String handleIntent(Intent intent) {\n String action = intent.getAction();\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action) || NfcAdapter.ACTION_TAG_DISCOVERED.equals(action) || NfcAdapter.ACTION_TECH_DISCOVERED.equals(action)) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefRecord relayRecord = ((NdefMessage)rawMsgs[0]).getRecords()[0];\n String nfcData = new String(relayRecord.getPayload());\n return nfcData;\n\n }\n return null;\n }", "public void handleMessage(Message msg) {\n // if the message 'what' matches the constant MESSAGE_SENT, it\n // means the callback\n // to onNdefPushComplete happened which means the NFC was a\n // success\n if (msg.what == MESSAGE_SENT) {\n Toast.makeText(getApplicationContext(), \"Tag written successfully!!\", Toast.LENGTH_LONG).show();\n }\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n String payload = new String(msg.getRecords()[0].getPayload());\n Toast.makeText(this, payload, Toast.LENGTH_LONG).show();\n Log.i(TAG, payload);\n }", "public void onTagsReceived(Map<String, Object> tags);", "public void writeNFC(View view) {\n\n // capture in logcat\n Log.d(TAG, getString(R.string.debug_key) + \" Write key pressed\");\n\n getNdef();\n if (ndef == null)\n return;\n\n NdefMessage mMessage = this.createMessage();\n\n try {\n // establish connection with tag\n ndef.connect();\n //if (ndef.isConnected()) {\n // write the message\n ndef.writeNdefMessage(mMessage);\n //}\n // disconnect\n ndef.close();\n Toast.makeText(this, \"Tag written\", Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n Toast.makeText(this, \"Connection lost: Writing failed\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (FormatException e) {\n Toast.makeText(this, \"Format Error: Writing failed\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n\n // get the edit text string\n// str = mInput.getText().toString();\n// //Log.d(TAG, getString(R.string.debug_key) + \" \" + str);\n//\n//\n // can only be used to beam data between two devices p2p\n// if (nfcAdapter == null) {\n// Toast.makeText(this, getString(R.string.no_nfc), Toast.LENGTH_LONG).show();\n// } else {\n// nfcAdapter.setNdefPushMessageCallback(this, this);\n// //Toast.makeText(this, \"Bring phone close to tag\", Toast.LENGTH_LONG).show();\n// nfcAdapter.setOnNdefPushCompleteCallback(this, this);\n// }\n }", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {\n Log.d(TAG, \"onActivityPreCreated\");\n if(activity instanceof NfcCompatActivity) {\n if(activity instanceof AppCompatActivity) {\n\n NfcCompatActivity nfcActivity = (NfcCompatActivity) activity;\n\n NfcFactory factory = new NfcFactory(nfcAdapter, () -> activity, transitionFlag);\n\n nfcActivity.onPreCreated(factory);\n\n AppCompatActivity appCompatActivity = (AppCompatActivity)activity;\n\n appCompatActivity.getLifecycle().addObserver(new NfcLifecycleEventObserver(nfcActivity, factory));\n } else {\n throw new IllegalArgumentException(\"Expected \" + activity.getClass().getName() + \" instanceof of \" + AppCompatActivity.class.getName());\n }\n }\n }", "boolean onTag(ByteBuffer buffer, int tagIndex, int tagLen, int valueLen);", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }", "public void onTag(RFIDTagEvent e) {\n\t\t\t\t\t// Creating string for the tag string\n\t\t\t\t\tString tagStr = e.getTag();\n\t\t\t\t\t// Creating try to check if its thecorrect tag\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// If thetag is \"1600ee15e9\", publish the message\n\t\t\t\t\t\tif (tagArray1.contains(tagStr)) {\n\t\t\t\t\t\t\t// Print message, if it's the correct tag\n\t\t\t\t\t\t\tSystem.out.println(\"Tag read OPEN DOOR: \" + tagStr);\n\n\t\t\t\t\t\t\t// Publish rfid and motor\n\t\t\t\t\t\t\tpublisher.publishRfid(tagStr);\n\t\t\t\t\t\t\tpublisher.publishMotor(tagStr);\n\t\t\t\t\t\t\t//Print statements to the console\n\t\t\t\t\t\t\tSystem.out.println(\"VALID TAG/USER\");\n\t\t\t\t\t\t\tSystem.out.println(\"Room3 - DOOR OPEN\");\n\t\t\t\t\t\t\t// Seting the sensor name(tag), sensorvalue and user id for the valid tag/user)\n\t\t\t\t\t\t\tRFID.setSensorname(\"1600ee15e9\");// Setting valid sensorname (tag)\n\t\t\t\t\t\t\tRFID.setSensorvalue(\"Room1, Door open\");// Setting the valid sensor value\n\t\t\t\t\t\t\tRFID.setUserid(\"16038287\");// Setting valid user id\n\t\t\t\t\t\t\t// Converting the data to json format\n\t\t\t\t\t\t\tRFIDJSON = gson.toJson(RFID);\n\t\t\t\t\t\t\t// Sending the data to the server\n\t\t\t\t\t\t\tsendToServer(RFIDJSON);\t\t\t\t\t\t\n\n\n\t\t\t\t\t\t\t// inserting rfid data to the database and printing message out onto the console\n\t\t\t\t\t\t\tSystem.out.println(\"Success rrfid data have been added to the database!\"); // printing success message\n\t\t\t\t\t\t\t// Creating variable for gson\n\t\t\t\t\t\t\t// Declaring gson object\n\t\t\t\t\t\t\t// Json is data format which would express data objects consisting of attribute value pairs. \n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\t// Creating string for the json bject and then converting it to json format\n\t\t\t\t\t\t\tString allRFIDDataJson = gson.toJson(RFIDJSON);\n\n\n\t\t\t\t\t\t\t// Print all rfid data in json format\n\t\t\t\t\t\t\tSystem.out.println(allRFIDDataJson);\n\t\t\t\t\t\t\tSystem.out.println(\"RFID data successfully in json format!\"); // printing success message\n\n\t\t\t\t\t\t} // close if statement to check the tag string\n\n\t\t\t\t\t\t// Otherwise fail and print out invalid rfid tag to the console.\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// Print message, if it's the correct tag\n\t\t\t\t\t\t\tSystem.out.println(\"Tag read: DOOR NOT OPEN: \" + tagStr);\n\n\t\t\t\t\t\t\t//Print statements to the console\n\t\t\t\t\t\t\tSystem.out.println(\"INVALID TAG/USER\");\n\t\t\t\t\t\t\tSystem.out.println(\"Room2 - DOOR NOT OPEN\");// CHANGE rfid log..!!!!!\n\t\t\t\t\t\t\t// Seting the sensor name(tag), sensorvalue and user id for the invalid tag/user)\n\t\t\t\t\t\t\tRFID.setSensorname(\"4d004a9afa\");// Setting invalid sensorname (tag)\n\t\t\t\t\t\t\tRFID.setSensorvalue(\"Room2-DOOR NOT OPEN\");// Setting the invalid sensor value\n\t\t\t\t\t\t\tRFID.setUserid(\"16038287\");// Setting valid user id for the invalid user which has been used\n\t\t\t\t\t\t\t// Converting the data to json format\n\t\t\t\t\t\t\tRFIDJSON = gson.toJson(RFID);\n\t\t\t\t\t\t\t// Sending the data to the server\n\t\t\t\t\t\t\tsendToServer(RFIDJSON);\t\t\t\t\t\t\n\n\n\t\t\t\t\t\t\t// inserting rfid data to the database and printing message out onto the console\n\t\t\t\t\t\t\tSystem.out.println(\"Success rrfid data have been added to the database!\"); // printing success message\n\t\t\t\t\t\t\t// Creating variable for gson\n\t\t\t\t\t\t\t// Declaring gson object\n\t\t\t\t\t\t\t// Json is data format which would express data objects consisting of attribute value pairs. \n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\t// Creating string for the json bject and then converting it to json format\n\t\t\t\t\t\t\tString allRFIDDataJson = gson.toJson(RFIDJSON);\n\n\n\t\t\t\t\t\t\t// Print all rfid data in json format\n\t\t\t\t\t\t\tSystem.out.println(allRFIDDataJson);\n\t\t\t\t\t\t\tSystem.out.println(\"RFID data successfully in json format!\"); // printing success message\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (MqttException mqtte) {\n\t\t\t\t\t\tmqtte.printStackTrace();\n\t\t\t\t\t} // Close catch mqtt exception\n\t\t\t\t}", "private void onPreRequestData(int tag) {\n }", "public void onTagLost(RFIDTagLostEvent e) {\n\t\t\t\t\t// Creating string for the tag\n\t\t\t\t\tString tagStr = e.getTag();\n\t\t\t\t\t// If the tag has been lost, print message to the console\n\t\t\t\t\tSystem.out.println(\"Tag lost: \" + tagStr);\n\t\t\t\t}", "@SuppressLint(\"NewApi\")\n private void initnfc() {\n nfcAdapter = NfcAdapter.getDefaultAdapter(VoterCardActivity.this);\n if (nfcAdapter == null) {\n Toast.makeText(this, \"nfc_device_not_support\", Toast.LENGTH_SHORT)\n .show();\n finish();\n }\n if (!nfcAdapter.isEnabled()) {\n AlertDialog dialog = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.nfc_not_open_go_open))\n .setPositiveButton(getString(R.string.yes),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int which) {\n Intent intent = new Intent(\n \"android.settings.NFC_SETTINGS\");\n startActivityForResult(intent, 100);\n }\n }).create();\n dialog.show();\n }\n mPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this,\n getClass()), 0);\n }", "protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\ttry {\n\t\t\tcheckNfcActivation();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static boolean writeTag(Context context, Tag tag, String data) {\n NdefRecord appRecord = NdefRecord.createApplicationRecord(context.getPackageName());\n \n // Record with actual data we care about\n NdefRecord relayRecord = new NdefRecord(NdefRecord.TNF_MIME_MEDIA,\n new String(\"application/\" + context.getPackageName()).getBytes(Charset.forName(\"US-ASCII\")),\n null, data.getBytes());\n \n // Complete NDEF message with both records\n NdefMessage message = new NdefMessage(new NdefRecord[] {relayRecord, appRecord});\n\n try {\n // If the tag is already formatted, just write the message to it\n Ndef ndef = Ndef.get(tag);\n if(ndef != null) {\n ndef.connect();\n\n // Make sure the tag is writable\n if(!ndef.isWritable()) {\n Toast.makeText(context, \"Error: nfcReadOnlyError\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n // Check if there's enough space on the tag for the message\n int size = message.toByteArray().length;\n if(ndef.getMaxSize() < size) {\n Toast.makeText(context, \"Error: nfcBadSpaceError\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n try {\n // Write the data to the tag\n ndef.writeNdefMessage(message);\n \n //DialogUtils.displayInfoDialog(context, R.string.nfcWrittenTitle, R.string.nfcWritten);\n return true;\n } catch (TagLostException tle) {\n Toast.makeText(context, \"Error: nfcTagLostError\", Toast.LENGTH_LONG).show();\n return false;\n } catch (IOException ioe) {\n Toast.makeText(context, \"Error: nfcFormattingError\", Toast.LENGTH_LONG).show();\n return false;\n } catch (FormatException fe) {\n Toast.makeText(context, \"Error: nfcFormattingError\", Toast.LENGTH_LONG).show();\n return false;\n }\n // If the tag is not formatted, format it with the message\n } else {\n NdefFormatable format = NdefFormatable.get(tag);\n if(format != null) {\n try {\n format.connect();\n format.format(message);\n \n //DialogUtils.displayInfoDialog(context, R.string.nfcWrittenTitle, R.string.nfcWritten);\n return true;\n } catch (TagLostException tle) {\n Toast.makeText(context, \"Error: nfcTagLostError\", Toast.LENGTH_LONG).show();\n return false;\n } catch (IOException ioe) {\n Toast.makeText(context, \"Error: nfcFormattingError\", Toast.LENGTH_LONG).show();\n return false;\n } catch (FormatException fe) {\n Toast.makeText(context, \"Error: nfcFormattingError\", Toast.LENGTH_LONG).show();\n return false;\n }\n } else {\n Toast.makeText(context, \"Error: nfcNoNdefErrorTitle\", Toast.LENGTH_LONG).show();\n return false;\n }\n }\n } catch(Exception e) {\n \tToast.makeText(context, \"Error: nfcUnknownErrorTitle\", Toast.LENGTH_LONG).show();\n \n }\n\n return false;\n }", "@Override\n protected void onNfcPerform() throws IOException {\n super.onNfcPerform();\n // either way, finish afterwards\n finish();\n }", "public NfcDetection(Context context) {\n this.context = context;\n fragment = new NfcDetectionFragment();\n name = context.getString(R.string.nfc_detection_name);\n activeSpots = new HashMap<>();\n }", "@Override\n protected void onPause() {\n if(nfcAdapter != null) {\n nfcReader.stopForegroundDispatch(this, nfcAdapter);\n }\n super.onPause();\n }", "@Override\n public void onScanStarted() {\n Log.d(TAG, \"Scan Started\");\n }", "public void handleCFStartTag(HtmlObjects.CFTag t)\n {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (mNfcAdapter == null) {\n // ES NECESARIO QUE EL DISPOSITIVO SOPORTE NFC\n mostrarMensajeUsuario(\"El dispositivo no soporta NFC.\");\n //finish();\n //return;\n }else{\n if (!mNfcAdapter.isEnabled()) {\n mostrarMensajeUsuario(\"Activa NFC en el dispositivo para continuar.\");\n }else{\n mostrarMensajeUsuario(\"Listo para leer NFC.\");\n enableForegroundDispatchSystem();\n }\n }\n }", "@SuppressLint(\"NewApi\")\n @Override\n protected void onResume() {\n super.onResume();\n if (nfcAdapter != null) {\n nfcAdapter.enableForegroundDispatch(this, mPendingIntent, null,\n null);\n }\n }", "public void testNFC(){\n if(mNfcAdapter.isEnabled() && mNfcAdapter != null){\n Log.i(\"test\",\"NFC is Enabled\");\n }\n else{\n Log.i(\"test\",\"NFC is Disabled, Enable NFC from Settings Screen\");\n finish();\n }\n }", "private void checkNfcEnabled()\r\n {\r\n if (!mNfcAdapter.isEnabled())\r\n {\r\n Toast.makeText(this, \"Aby wysyłać, włącz NFC\", Toast.LENGTH_LONG).show();\r\n if(!mNfcAdapter.isNdefPushEnabled())\r\n Toast.makeText(this, \"Aby wysyłać, włącz Android Beam\", Toast.LENGTH_LONG).show();\r\n else\r\n sendNdefMessage();\r\n }\r\n else\r\n {\r\n if (!mNfcAdapter.isNdefPushEnabled())\r\n Toast.makeText(this, \"Aby wysyłać, włącz Android Beam\", Toast.LENGTH_LONG).show();\r\n else\r\n sendNdefMessage();\r\n }\r\n }", "@Override\n public void onNewDetection(int id, final Barcode barcode) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (!mBarcodeDetected) {\n mBarcodeDetected = true;\n mCameraSourcePreview.stop();\n AudioManager audioService = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n if (audioService.getRingerMode() == AudioManager.RINGER_MODE_NORMAL) {\n ToneGenerator toneGenerator\n = new ToneGenerator(AudioManager.STREAM_MUSIC, TONE_VOLUME);\n toneGenerator.startTone(ToneGenerator.TONE_CDMA_PIP, TONE_DURATION);\n }\n onBarcodeDetected(barcode);\n }\n }\n });\n }", "public void stopTrackingNfc() {\n\t\tif (adapter == null) {\n\t\t\treturn;\n\t\t}\n\t\tadapter.disableForegroundDispatch(activity);\n\t}", "public interface OnTagDeleteListener {\n void onTagDeleted(TagGroup view, TagGroup.Tag tag, int position);\n}", "protected void onComponentTag(final ComponentTag tag)\n\t{\n\t}", "void processIntent(Intent intent) {\n\t\tParcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n\t\t// only one message sent during the beam\n\t\tNdefMessage msg = (NdefMessage) rawMsgs[0];\n\t\ttry {\n\t\t\tDaoSession dbSession = HostageApplication.getInstances().getDaoSession();\n\t\t\tDAOHelper daoHelper = new DAOHelper(dbSession,this);\n\t\t\t//HostageDBOpenHelper dbh = new HostageDBOpenHelper(this);\n\n\t\t\tArrayList<NetworkRecord> remoteNetworkInformation = (ArrayList<NetworkRecord>) deserialize(msg.getRecords()[0].getPayload());\n\t\t\tHashMap<String, Long> devices_remote = (HashMap<String, Long>) deserialize(msg.getRecords()[1].getPayload());\n\t\t\tHashMap<String, Long> devices_local = daoHelper.getSyncDeviceDAO().getSyncDeviceHashMap();\n\t\t\tArrayList<SyncInfoRecord> syncInfo = (ArrayList<SyncInfoRecord>) deserialize(msg.getRecords()[2].getPayload());\n\t\t\t\n\t\t\tlong tracing_timestamp = 0;\n\t\t\tif(devices_local.containsKey(TracingSyncService.REMOTE_DEVICE))\n\t\t\t\ttracing_timestamp = devices_local.get(TracingSyncService.REMOTE_DEVICE);\n\t\t\t\t\n\t\t\tfor(Iterator<String> i = devices_remote.keySet().iterator(); i.hasNext(); ){\n\t\t\t\tString key = i.next();\n\t\t\t\tif((devices_local.containsKey(key) && devices_local.get(key) >= devices_remote.get(key)) \n\t\t\t\t || (tracing_timestamp > devices_remote.get(key))){\n\t\t\t\t\ti.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor ( Iterator<SyncInfoRecord> i = syncInfo.iterator(); i.hasNext(); ){\n\t\t\t\tSyncInfoRecord info = i.next();\n\t\t\t\tif(!devices_remote.containsKey(info.getDeviceID())){\n\t\t\t\t\ti.remove();\n\t\t\t\t}\t\t\t\t \n\t\t\t}\t\n\t\t\t\n\t\t\tdaoHelper.getSyncDeviceDAO().updateSyncDevices(devices_remote);\n\t\t\tdaoHelper.getSyncInfoRecordDAO().updateSyncInfo(syncInfo);\n\t\t\tdaoHelper.getNetworkRecordDAO().updateNetworkInformation(remoteNetworkInformation);\n\t\t\tmHandler.obtainMessage(MESSAGE_RECEIVED).sendToTarget();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void onFingerprintEntered();", "void onDFSEntry();", "@Override\n public void onChange(boolean selfChange) {\n super.onChange(selfChange);\n int[] bytesAndStatus = getBytesAndStatus(tag_id);\n if (bytesAndStatus[0] == -1 || bytesAndStatus[1] == -1) {\n hdHandler.sendMessage(hdHandler.obtainMessage(0, 0,\n -1));\n } else {\n hdHandler.sendMessage(hdHandler.obtainMessage(0,\n bytesAndStatus[0], bytesAndStatus[1]));\n }\n }", "@Test\n public void newlyTagged() {\n TestUtil.setupGoogleApiClientBridgeForNearby(googleApiClientBridge, TestUtil.COLT);\n\n activityRule.launchActivity(null);\n\n onData(is(instanceOf(NearbyPerson.class)))\n .atPosition(0)\n .check(matches(withText(TestUtil.COLT.displayName)))\n .check(matches(withCompoundDrawable(0)))\n .check(matches(withCompoundDrawable(2, R.drawable.ic_newly_tagged)));\n }", "@Override\n public void onBluetoothDeviceFound(BluetoothDevice btDevice) {\n }", "private void onBarcodeDetected(Barcode barcode) {\n Log.d(TAG, \"Detected barcode with value: \" + barcode.displayValue);\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(INTENT_EXTRA_BARCODE_VALUE, barcode.displayValue);\n setResult(RESULT_OK, returnIntent);\n finish();\n }", "@Override\n protected void onNewIntent(Intent intent) {\n Log.d(TAG, getString(R.string.debug_key) + \"TagWriter intent filter success\");\n this.setIntent(intent);\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n\n openNfc = 0;\n }", "@Override\n public void onScannedBleDeviceAdded(BluetoothDevice device) {\n Log.d(TAG, \"onScannedBleDeviceAdded enter\");\n// Message msg = mHandler.obtainMessage();\n// msg.what = SCAN_DEVICE_ADD_FLAG;\n// msg.obj = device;\n// mHandler.sendMessage(msg);\n updateScanDialog(SCAN_DEVICE_ADD_FLAG, device);\n }", "@Override\n\t\t\t\t\tpublic void onError(Platform arg0, int arg1, Throwable arg2) {\n\t\t\t\t\t\tLog.i(\"tag\", \"\"+arg2);\n\t\t\t\t\t}", "@Override\n public void onRecognition(Transaction transaction, Recognition recognition) {\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryEvent event) {\n Log.d(TAG, \"DeviceDiscoveryEvent received \");\n enableManualDiscoveryButton(true);\n DiscoveredDevice device = event.getDiscoveredDevice();\n if(device != null) {\n Log.d(TAG, \"name \" + device.getName());\n Log.d(TAG, \"unique id \" + device.getUniqueIdentifier());\n\n updateFavoriteSpinner(device.getUniqueIdentifier(), device.getName());\n }\n }", "public void onDouyinDetectStart() {\n HwAPPStateInfo curAppInfo = getCurStreamAppInfo();\n if (curAppInfo != null && 100501 == curAppInfo.mScenceId) {\n curAppInfo.mIsVideoStart = true;\n }\n }", "void processTag(XMLNode tag) throws Exception {\n if(tag.type()== XMLNode.Type.TAG){\n state.traceTagBegin(tag.getTag()==null?\"process\":tag.getTag(),null);\n tagstk[tagstkptr++] = tag.getTag();\n \n dataloader.beginTag(tagstk, tagstkptr, tag.getTag(), tag.getAttribs());\n if(tag.getTags()!= null) for(XMLNode nextTag : tag.getTags()){\n processTag(nextTag);\n }\n ((LoadDatamapData)dataloader).endTag(tagstk, tagstkptr, tag, tag.getBody(), tag.getAttribs());\n \n tag.clearRef();\n \n tagstkptr--;\n tagstk[tagstkptr]= null;\n state.traceTagEnd();\n }\n }", "public void onRead(BarcodeData barcodeData) {\n }", "public interface RecognitionEvent {\n /**\n * Called to notify that content recognition is done.\n */\n public void onContentRecognized(IRecognitionPlugin plugin, RecognitionOutput output);\n }", "private void processNewFrameEvent(FaceAuthFrameEvent frameEvent) {\n\t\t// Get the status of the frameEvent\n\t\tFaceAuthStatus status = frameEvent.getStatus();\n\t\t// Get the rect that contains the detected face of the user\n\t\tRect rect = frameEvent.getFaceCoordinate();\n\t\tif(rect.left == 0 && rect.top == 0 && rect.right == 0 && rect.bottom == 0) {\n\t\t\t// Face not detected\n\t\t\trect = null;\n\t\t} else {\n\t\t\t// face detected, create new Rect according to Camera size configurations\n\t\t\trect = new Rect(CAM_WIDTH-rect.top, CAM_HEIGHT-rect.left, CAM_WIDTH-rect.bottom, CAM_HEIGHT-rect.right);\n\t\t}\n\n\t\tMyLog.d(TAG, \"Frame - status=\"+status+\" rect=\"+rect+\" pitch=\"+frameEvent.getPitchAngle()+\" yaw=\"+frameEvent.getYawAngle());\n\t\tfaceVerifierUIListener.onNewFrame(frameEvent);\n\n\t\tEnumSet<FaceAuthLivenessAction> liveness = frameEvent.getLivenessAction();\n\t\tEnumSet<FaceAuthLivenessAction> lastLiveness = m_lastLiveness;\n\t\tif(liveness != null) {\n\t\t\tm_lastLiveness = liveness;\n\t\t}\n\n\t\tMyLog.i(TAG, \"lastLiveness=\"+lastLiveness+\" liveness=\"+liveness);\n\n\t\t// (rect!=null)--> face detected\n\t\tif(m_bLastFrameFaceDetected != (rect != null)) { // FaceDetection change state\n\t\t\tm_bLastFrameFaceDetected = (rect != null);\n\t\t\tfaceVerifierUIListener.onFacePositionChanged(m_currentEnrollStep, m_bLastFrameFaceDetected);\n\t\t}\n\n\t\tif (rect != null) { // Face Detected\n\t\t\tif(lastLiveness !=null && lastLiveness.contains(FaceAuthLivenessAction.KEEP_STILL) && liveness == null) {\n\t\t\t\t// Still in KEEP STILL phase, ask user to keep still\n\t\t\t\tfaceVerifierUIListener.onStepChanged(m_currentEnrollStep,\n\t\t\t\t\t\tErrorMode.NONE, m_bLastFrameFaceDetected ? ErrorMode.NONE : ErrorMode.ERROR);\n\t\t\t}\n\n\t\t\tif(m_currentEnrollStep == STEP_WAIT_FACE\n\t\t\t\t\t&& lastLiveness != null && lastLiveness.contains(FaceAuthLivenessAction.KEEP_STILL)\n\t\t\t\t\t&& liveness!=null && liveness.contains(FaceAuthLivenessAction.KEEP_STILL)){\n\t\t\t\tonNextStep(frameEvent);\n\t\t\t}\n\t\t\t// no STILL phase, directly go to BLINK\n\t\t\telse if(m_currentEnrollStep == STEP_WAIT_FACE\n\t\t\t\t\t&& lastLiveness != null && lastLiveness.contains(FaceAuthLivenessAction.BLINK)\n\t\t\t\t\t&& liveness!=null && liveness.contains(FaceAuthLivenessAction.BLINK)){\n\t\t\t\tm_currentEnrollStep = STEP_BLINK;\n\t\t\t\tfaceVerifierUIListener.onStepChanged(m_currentEnrollStep,\n\t\t\t\t\t\tErrorMode.NONE, m_bLastFrameFaceDetected ? ErrorMode.NONE : ErrorMode.ERROR);\n\t\t\t}\n\t\t\telse if(m_currentEnrollStep == STEP_KEEP_STILL) { // Front face\n\t\t\t\tif(lastLiveness !=null && lastLiveness.contains(FaceAuthLivenessAction.KEEP_STILL)\n\t\t\t\t\t\t&& (liveness != null && !liveness.contains(FaceAuthLivenessAction.KEEP_STILL))) {\n\t\t\t\t\t// Last liveness action contains KEEP STILL but not the current ones it means\n\t\t\t\t\t// KEEP STILL phase is over, move to next\n\t\t\t\t\tm_lastLiveness = null;\n\t\t\t\t\tm_loggedUserBitmap = frameEvent.getImage().toBitmap();\n\t\t\t\t\tm_loggedUserFaceRect = rect;\n\t\t\t\t\tonNextStep(frameEvent);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m_currentEnrollStep == STEP_BLINK) { // Blink Detected and processed (cause face detection stop)\n//\t\t\t\tif(lastLiveness !=null && lastLiveness.contains(FaceAuthLivenessAction.BLINK) && liveness == null) {\n//\t\t\t\t\tonNextStep(frameEvent);\n//\t\t\t\t}\n\t\t\t\tif(lastLiveness !=null && lastLiveness.contains(FaceAuthLivenessAction.BLINK)\n\t\t\t\t\t\t&& (liveness != null && liveness.contains(FaceAuthLivenessAction.KEEP_STILL))) {\n\t\t\t\t\tm_currentEnrollStep = STEP_BLINK_STILL;\n\t\t\t\t\tonNextStep(frameEvent);\n\t\t\t\t}\n\t\t\t\tif(m_timerTimeout == null ) {\n\t\t\t\t\tMyLog.i(TAG, \"startCancelTimeout\");\n\t\t\t\t\tm_timerTimeout = new Timer();\n\t\t\t\t\tm_timerTimeout.schedule(new TimerTask() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tMyLog.w(TAG,\"SOFT TIMEOUT!!!\");\n\t\t\t\t\t\t\tm_bTimerTimeout = true;\n\t\t\t\t\t\t\tFaceVerifyManager.this.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t}, m_timoutMs);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m_currentEnrollStep == STEP_PROCESSING) { // Continue Blink Processing\n\t\t\t\tif(lastLiveness !=null && lastLiveness.contains(FaceAuthLivenessAction.KEEP_STILL)) {\n\t\t\t\t\tif(liveness == null && status == FaceAuthStatus.SUCCESS) { // Blink Well treated => Process to real verification\n\t\t\t\t\t\tm_lastLiveness = null;\n\t\t\t\t\t\tonNextStep(frameEvent);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if(m_currentEnrollStep == STEP_BLINK_STILL) { // last still after blinking\n\t\t\t\tif(lastLiveness !=null && lastLiveness.contains(FaceAuthLivenessAction.KEEP_STILL) && liveness == null) {\n\t\t\t\t\tif(liveness == null && status == FaceAuthStatus.SUCCESS) { // Blink Well treated => Process to real verification\n\t\t\t\t\t\tm_lastLiveness = null;\n\t\t\t\t\t\tonNextStep(frameEvent);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "abstract protected void onReceivedSequence(String sequence);", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryCompleteEvent event) {\n enableManualDiscoveryButton(true);\n if(event.isComplete()) {\n Toast.makeText(getApplicationContext(), \"Manual device discovery is complete\" , Toast.LENGTH_SHORT).show();\n }\n }", "public void onIntentReceived(final String payload) {\n this.WriteLine(\"--- Intent received by onIntentReceived() ---\");\n this.WriteLine(payload);\n this.WriteLine();\n }", "@Override\n protected void onResume() {\n super.onResume();\n assert nfcAdapter != null;\n nfcAdapter.enableForegroundDispatch(this, pendingIntent, null, null);\n }", "void onDeviceFound(TxRxScanResult scanResult);", "@Override\n public void onMissing(FaceDetector.Detections<Face> detectionResults)\n {\n int facesFound = detectionResults.getDetectedItems().size();\n\n Log.d(APP_LOG_TAG, \"face missing\");\n faceTrackingListener.onFaceMissing(facesFound);\n }", "public void onNFCResult(String url) {\n\t\tcontroller.connect(url);\t\t\n\t}", "public void tagCreated(TagEvent event) {\n createdEvent = event;\n }", "@Override\r\n\t\t\tpublic void recognizerStarted() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void processInWifiEvent(InWifiEvent arg0) {\n\t\t\r\n\t}", "protected void handleStart(HtmlDocument.Tag tag) {\n if (!tag.isSelfTerminating()) {\n // Add to the stack of tags needing closing tag\n mSeenTags.push(new TagWrapper(tag, mBuilder.length()));\n }\n }", "@Override\n public void onAdImpression() {\n Log.d(TAG, \"Ad recorded an impression.\");\n }", "public interface NewDeviceDetectedEventListener extends EventListener {\r\n\tpublic void newDeviceDetectedEventOccurred(NewDeviceDetectedEvent evt);\r\n }", "@MainThread\n void onChannelScanStarted();", "private static void notifyListenersOfTag(Tag tag){\n ArrayList<TagListener> listenersOfTag = tagListeners.get(tag);\n if(listenersOfTag!=null){\n for(TagListener listener : listenersOfTag){\n try {\n listener.onTagUpdated(tag);\n }catch (NullPointerException e){\n e.printStackTrace();\n }\n }\n }\n }", "public interface INfcTag\n extends IInterface {\n public static abstract class Stub extends Binder\n implements INfcTag {\n private static class Proxy\n implements INfcTag {\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public boolean canMakeReadOnly(int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(17, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n if(j != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int close(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int connect(int i, int j) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int k;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n k = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return k;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int formatNdef(int i, byte abyte0[]) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n parcel.writeByteArray(abyte0);\n mRemote.transact(12, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean getExtendedLengthApdusSupported() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n mRemote.transact(19, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor() {\n return \"android.nfc.INfcTag\";\n }\n\n public int getMaxTransceiveLength(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(18, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int[] getTechList(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int ai[];\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n ai = parcel1.createIntArray();\n parcel1.recycle();\n parcel.recycle();\n return ai;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getTimeout(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(15, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean isNdef(int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n if(j != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean isPresent(int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n if(j != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean ndefIsWritable(int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n if(j != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int ndefMakeReadOnly(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public NdefMessage ndefRead(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n NdefMessage ndefmessage = (NdefMessage)NdefMessage.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return ndefmessage;\n_L2:\n ndefmessage = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int ndefWrite(int i, NdefMessage ndefmessage) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n if(ndefmessage == null)\n break MISSING_BLOCK_LABEL_75;\n parcel.writeInt(1);\n ndefmessage.writeToParcel(parcel, 0);\n_L1:\n int j;\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int reconnect(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public Tag rediscover(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(13, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n Tag tag = (Tag)Tag.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return tag;\n_L2:\n tag = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void resetTimeouts() throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n mRemote.transact(16, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int setTimeout(int i, int j) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int k;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(14, parcel, parcel1, 0);\n parcel1.readException();\n k = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return k;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public TransceiveResult transceive(int i, byte abyte0[], boolean flag) throws RemoteException {\n int j;\n Parcel parcel;\n Parcel parcel1;\n j = 0;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n parcel.writeByteArray(abyte0);\n if(flag)\n j = 1;\n parcel.writeInt(j);\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n TransceiveResult transceiveresult = (TransceiveResult)TransceiveResult.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return transceiveresult;\n_L2:\n transceiveresult = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n private IBinder mRemote;\n\n Proxy(IBinder ibinder) {\n mRemote = ibinder;\n }\n }\n\n\n public static INfcTag asInterface(IBinder ibinder) {\n Object obj;\n if(ibinder == null) {\n obj = null;\n } else {\n IInterface iinterface = ibinder.queryLocalInterface(\"android.nfc.INfcTag\");\n if(iinterface != null && (iinterface instanceof INfcTag))\n obj = (INfcTag)iinterface;\n else\n obj = new Proxy(ibinder);\n }\n return ((INfcTag) (obj));\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j) throws RemoteException {\n int k;\n boolean flag;\n k = 0;\n flag = true;\n i;\n JVM INSTR lookupswitch 20: default 176\n // 1: 199\n // 2: 228\n // 3: 261\n // 4: 290\n // 5: 319\n // 6: 357\n // 7: 395\n // 8: 476\n // 9: 526\n // 10: 588\n // 11: 617\n // 12: 655\n // 13: 688\n // 14: 738\n // 15: 771\n // 16: 800\n // 17: 817\n // 18: 855\n // 19: 884\n // 1598968902: 190;\n goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L11 _L12 _L13 _L14 _L15 _L16 _L17 _L18 _L19 _L20 _L21\n_L1:\n flag = super.onTransact(i, parcel, parcel1, j);\n_L23:\n return flag;\n_L21:\n parcel1.writeString(\"android.nfc.INfcTag\");\n continue; /* Loop/switch isn't completed */\n_L2:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int j3 = close(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(j3);\n continue; /* Loop/switch isn't completed */\n_L3:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int i3 = connect(parcel.readInt(), parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(i3);\n continue; /* Loop/switch isn't completed */\n_L4:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int l2 = reconnect(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(l2);\n continue; /* Loop/switch isn't completed */\n_L5:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int ai[] = getTechList(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeIntArray(ai);\n continue; /* Loop/switch isn't completed */\n_L6:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag6 = isNdef(parcel.readInt());\n parcel1.writeNoException();\n if(flag6)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L7:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag5 = isPresent(parcel.readInt());\n parcel1.writeNoException();\n if(flag5)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L8:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int k2 = parcel.readInt();\n byte abyte0[] = parcel.createByteArray();\n boolean flag4;\n TransceiveResult transceiveresult;\n if(parcel.readInt() != 0)\n flag4 = flag;\n else\n flag4 = false;\n transceiveresult = transceive(k2, abyte0, flag4);\n parcel1.writeNoException();\n if(transceiveresult != null) {\n parcel1.writeInt(flag);\n transceiveresult.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L9:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n NdefMessage ndefmessage1 = ndefRead(parcel.readInt());\n parcel1.writeNoException();\n if(ndefmessage1 != null) {\n parcel1.writeInt(flag);\n ndefmessage1.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L10:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int i2 = parcel.readInt();\n NdefMessage ndefmessage;\n int j2;\n if(parcel.readInt() != 0)\n ndefmessage = (NdefMessage)NdefMessage.CREATOR.createFromParcel(parcel);\n else\n ndefmessage = null;\n j2 = ndefWrite(i2, ndefmessage);\n parcel1.writeNoException();\n parcel1.writeInt(j2);\n continue; /* Loop/switch isn't completed */\n_L11:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int l1 = ndefMakeReadOnly(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(l1);\n continue; /* Loop/switch isn't completed */\n_L12:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag3 = ndefIsWritable(parcel.readInt());\n parcel1.writeNoException();\n if(flag3)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L13:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int k1 = formatNdef(parcel.readInt(), parcel.createByteArray());\n parcel1.writeNoException();\n parcel1.writeInt(k1);\n continue; /* Loop/switch isn't completed */\n_L14:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n Tag tag = rediscover(parcel.readInt());\n parcel1.writeNoException();\n if(tag != null) {\n parcel1.writeInt(flag);\n tag.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L15:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int j1 = setTimeout(parcel.readInt(), parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(j1);\n continue; /* Loop/switch isn't completed */\n_L16:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int i1 = getTimeout(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(i1);\n continue; /* Loop/switch isn't completed */\n_L17:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n resetTimeouts();\n parcel1.writeNoException();\n continue; /* Loop/switch isn't completed */\n_L18:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag2 = canMakeReadOnly(parcel.readInt());\n parcel1.writeNoException();\n if(flag2)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L19:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int l = getMaxTransceiveLength(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(l);\n continue; /* Loop/switch isn't completed */\n_L20:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag1 = getExtendedLengthApdusSupported();\n parcel1.writeNoException();\n if(flag1)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n if(true) goto _L23; else goto _L22\n_L22:\n }\n\n private static final String DESCRIPTOR = \"android.nfc.INfcTag\";\n static final int TRANSACTION_canMakeReadOnly = 17;\n static final int TRANSACTION_close = 1;\n static final int TRANSACTION_connect = 2;\n static final int TRANSACTION_formatNdef = 12;\n static final int TRANSACTION_getExtendedLengthApdusSupported = 19;\n static final int TRANSACTION_getMaxTransceiveLength = 18;\n static final int TRANSACTION_getTechList = 4;\n static final int TRANSACTION_getTimeout = 15;\n static final int TRANSACTION_isNdef = 5;\n static final int TRANSACTION_isPresent = 6;\n static final int TRANSACTION_ndefIsWritable = 11;\n static final int TRANSACTION_ndefMakeReadOnly = 10;\n static final int TRANSACTION_ndefRead = 8;\n static final int TRANSACTION_ndefWrite = 9;\n static final int TRANSACTION_reconnect = 3;\n static final int TRANSACTION_rediscover = 13;\n static final int TRANSACTION_resetTimeouts = 16;\n static final int TRANSACTION_setTimeout = 14;\n static final int TRANSACTION_transceive = 7;\n\n public Stub() {\n attachInterface(this, \"android.nfc.INfcTag\");\n }\n }\n\n\n public abstract boolean canMakeReadOnly(int i) throws RemoteException;\n\n public abstract int close(int i) throws RemoteException;\n\n public abstract int connect(int i, int j) throws RemoteException;\n\n public abstract int formatNdef(int i, byte abyte0[]) throws RemoteException;\n\n public abstract boolean getExtendedLengthApdusSupported() throws RemoteException;\n\n public abstract int getMaxTransceiveLength(int i) throws RemoteException;\n\n public abstract int[] getTechList(int i) throws RemoteException;\n\n public abstract int getTimeout(int i) throws RemoteException;\n\n public abstract boolean isNdef(int i) throws RemoteException;\n\n public abstract boolean isPresent(int i) throws RemoteException;\n\n public abstract boolean ndefIsWritable(int i) throws RemoteException;\n\n public abstract int ndefMakeReadOnly(int i) throws RemoteException;\n\n public abstract NdefMessage ndefRead(int i) throws RemoteException;\n\n public abstract int ndefWrite(int i, NdefMessage ndefmessage) throws RemoteException;\n\n public abstract int reconnect(int i) throws RemoteException;\n\n public abstract Tag rediscover(int i) throws RemoteException;\n\n public abstract void resetTimeouts() throws RemoteException;\n\n public abstract int setTimeout(int i, int j) throws RemoteException;\n\n public abstract TransceiveResult transceive(int i, byte abyte0[], boolean flag) throws RemoteException;\n}", "@Override\n public void i(String TAG, String msg) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if (BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals(intent.getAction())) {\n Log.v(MainActivity.TAG, \"### BT ACTION_DISCOVERY_STARTED ###\");\n } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(intent.getAction())) {\n Log.v(MainActivity.TAG, \"### BT ACTION_DISCOVERY_FINISHED ###\");\n } else if (BluetoothDevice.ACTION_FOUND.equals(intent.getAction())) {\n Log.v(MainActivity.TAG, \"### BT BluetoothDevice.ACTION_FOUND ###\");\n BluetoothDevice btDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n if (btDevice != null && scanCallback != null)\n scanCallback.run(btDevice);\n } else if (BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals(intent.getAction())) {\n Log.v(MainActivity.TAG, \"### BT ACTION_BOND_STATE_CHANGED ###\");\n int cur_bond_state = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.BOND_NONE);\n int previous_bond_state = intent.getIntExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, BluetoothDevice.BOND_NONE);\n Log.v(MainActivity.TAG, \"### cur_bond_state ###\" + cur_bond_state + \" ~~ previous_bond_state\" + previous_bond_state);\n }\n }", "public interface OnBluetoothReadListener {\n\t\tvoid onRead(byte[] status);\n\t}", "@Override\n public void onNewItem(int faceId, Face item)\n {\n Log.d(APP_LOG_TAG, \"face detected\");\n }", "@Override\n public void onCarTunelInfo(BNRGCarTunelInfo arg0) {\n Log.d(BNRemoteConstants.MODULE_TAG, \"onCarTunelInfo...... \");\n }", "public void onIntentReceived(final String payload) {\n }", "public /* synthetic */ void lambda$didReceivedNotification$22(TLObject tLObject, TLRPC$TL_error tLRPC$TL_error) {\n AndroidUtilities.runOnUIThread(new ThemePreviewActivity$$ExternalSyntheticLambda17(this, tLObject));\n }", "@Override\n protected void onResume() {\n super.onResume();\n nfcAdapter.enableForegroundDispatch(this,\n nfcPendingIntent,\n intentFiltersArray,\n null);\n }", "@Override\n public void onNotificationPosted(StatusBarNotification sbn) {\n\n if(isConnected()) {\n cone = ConnectBlActivity.con;\n //Here every notification is checked and if the user wands to listen to facebook, we get the message\n if (getFb()) {\n\n\n if (sbn.getPackageName().equals(\"com.facebook.orca\")) { //checking if the is a notification from facebook\n Bundle extras = sbn.getNotification().extras;\n String title;\n\n\n if (!extras.getString(\"android.text\").equals(\"Chat heads active\")) {\n String pack = \"Facebook\";\n title = extras.getString(\"android.text\"); //This is the actual user that sends the message\n String text = extras.getCharSequence(\"android.title\").toString(); //and that is the actual message\n\n\n Log.i(\"Title\", title);\n Log.i(\"Text\", text);\n\n\n //The message is being put in a String Builder\n StringBuilder msg = new StringBuilder();\n msg.append(pack);\n msg.append(\"\\n\");\n msg.append(text);\n msg.append(\"\\n\");\n msg.append(title);\n\n //The ui gets updated with the message\n Main.t.setText(msg);\n\n\n //The message is written to the outputStream\n\n byte[] send = msg.toString().getBytes();\n try {\n cone.write(String.valueOf(msg));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n\n\n //Here every notification is checked and if the user wands to listen to instagram, we get the message\n if (getInsta()) {\n if (sbn.getPackageName().equals(\"com.instagram.android\")) { //checking if the is a notification from facebook\n Bundle extras = sbn.getNotification().extras;\n String title = extras.getString(\"android.text\"); //This is the actual user that sends the message\n String text = extras.getCharSequence(\"android.title\").toString(); //and that is the actual message\n\n SimpleDateFormat sdff = new SimpleDateFormat(\"HH:mm\", Locale.getDefault());\n String tempf = sdff.format(new Date());\n\n\n Log.i(\"Title\", title);\n Log.i(\"Text\", text);\n\n\n //The message is being put in a String Builder\n StringBuilder msg = new StringBuilder();\n msg.append(\"`\");\n msg.append(tempf);\n msg.append(\" \");\n msg.append(text);\n msg.append(\" \");\n msg.append(title);\n\n //The ui gets updated with the message\n Main.t.setText(msg);\n\n\n //The message is written to the outputStream\n try {\n cone.write(String.valueOf(msg));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "interface BarcodeUpdateListener {\n @UiThread\n void onBarcodeDetected(Barcode barcode);\n}", "@Override\r\n\tprotected void processInUserViewCardEvent(InUserViewCardEvent arg0) {\n\t\t\r\n\t}", "public void present(Tag tag) {\n\n Log.i(TAG, \"dispatching notification\");\n String message = tag.userId + \": \" + tag.text;\n Intent intent = new Intent(mContext, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);\n Notification notification = new NotificationCompat.Builder(mContext).\n setSmallIcon(R.drawable.ic_launcher).\n setContentTitle(message).\n setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)).\n setContentText(\"PopHello\").\n setAutoCancel(true).\n setContentIntent(pendingIntent).\n setTicker(message).\n build();\n\n mNotificationManager.cancelAll();\n mNotificationManager.notify(tag.id, NOTIFICATION_ID, notification);\n }", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onScan(DataEvent event) {\n Log.d(TAG, \"onScan : event = [\" + event + \"]\");\n DecodedData data = event.getData();\n print(data.getString());\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\n if (resultCode == RESULT_CANCELED) {\n Toast.makeText(this, \"Cancelled\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Map<String, Object> data = null;\n if (requestCode == QR_CODE_SCAN_REQUEST_CODE) {\n IntentResult scanResult = IntentIntegrator.parseActivityResult(\n requestCode, resultCode, intent);\n if (scanResult != null && scanResult.getContents() != null) {\n Yaml yaml = new Yaml();\n String scanned_data = scanResult.getContents().toString();\n data = (Map<String, Object>) yaml.load(scanned_data);\n }\n }\n else if (requestCode == NFC_TAG_SCAN_REQUEST_CODE && resultCode == RESULT_OK) {\n if (intent.hasExtra(\"tag_data\")) {\n data = (Map<String, Object>) intent.getExtras().getSerializable(\"tag_data\");\n }\n }\n else {\n Log.w(\"Remocon\", \"Unknown activity request code: \" + requestCode);\n return;\n }\n\n if (data == null) {\n Toast.makeText(this, \"Scan failed\", Toast.LENGTH_SHORT).show();\n }\n else {\n try {\n Log.d(\"Remocon\", \"master chooser OBJECT: \" + data.toString());\n addMaster(new MasterId(data), false);\n } catch (Exception e) {\n Toast.makeText(this, \"invalid rocon master description: \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tSystem.out.println(\"instakk\");\n\t\t}", "private void onRequestData(int tag) {\n \ttry {\n \t data = request.request();\n \t} catch(MatjiException e) {\n \t lastOccuredException = e;\n \t}\n }", "@MainThread\n void onChannelScanFinished();", "protected void readFullTagValue(ExifTag tag) throws IOException {\n short type = tag.getDataType();\n if (type == ExifTag.TYPE_ASCII || type == ExifTag.TYPE_UNDEFINED ||\n type == ExifTag.TYPE_UNSIGNED_BYTE) {\n int size = tag.getComponentCount();\n if (mCorrespondingEvent.size() > 0) {\n if (mCorrespondingEvent.firstEntry().getKey() < mTiffStream.getReadByteCount()\n + size) {\n Object event = mCorrespondingEvent.firstEntry().getValue();\n if (event instanceof ImageEvent) {\n // Tag value overlaps thumbnail, ignore thumbnail.\n Timber.w(\"Thumbnail overlaps value for tag: \\n\" + tag.toString());\n Entry<Integer, Object> entry = mCorrespondingEvent.pollFirstEntry();\n Timber.w(\"Invalid thumbnail offset: \" + entry.getKey());\n } else {\n // Tag value overlaps another tag, shorten count\n if (event instanceof IfdEvent) {\n Timber.w(\"Ifd \" + ((IfdEvent) event).ifd\n + \" overlaps value for tag: \\n\" + tag.toString());\n } else if (event instanceof ExifTagEvent) {\n Timber.w(\"Tag value for tag: \\n\"\n + ((ExifTagEvent) event).tag.toString()\n + \" overlaps value for tag: \\n\" + tag.toString());\n }\n size = mCorrespondingEvent.firstEntry().getKey()\n - mTiffStream.getReadByteCount();\n Timber.w(\"Invalid size of tag: \\n\" + tag.toString()\n + \" setting count to: \" + size);\n tag.forceSetComponentCount(size);\n }\n }\n }\n }\n switch (tag.getDataType()) {\n case ExifTag.TYPE_UNSIGNED_BYTE:\n case ExifTag.TYPE_UNDEFINED: {\n byte buf[] = new byte[tag.getComponentCount()];\n read(buf);\n tag.setValue(buf);\n }\n break;\n case ExifTag.TYPE_ASCII:\n tag.setValue(readString(tag.getComponentCount()));\n break;\n case ExifTag.TYPE_UNSIGNED_LONG: {\n long value[] = new long[tag.getComponentCount()];\n for (int i = 0, n = value.length; i < n; i++) {\n value[i] = readUnsignedLong();\n }\n tag.setValue(value);\n }\n break;\n case ExifTag.TYPE_UNSIGNED_RATIONAL: {\n Rational value[] = new Rational[tag.getComponentCount()];\n for (int i = 0, n = value.length; i < n; i++) {\n value[i] = readUnsignedRational();\n }\n tag.setValue(value);\n }\n break;\n case ExifTag.TYPE_UNSIGNED_SHORT: {\n int value[] = new int[tag.getComponentCount()];\n for (int i = 0, n = value.length; i < n; i++) {\n value[i] = readUnsignedShort();\n }\n tag.setValue(value);\n }\n break;\n case ExifTag.TYPE_LONG: {\n int value[] = new int[tag.getComponentCount()];\n for (int i = 0, n = value.length; i < n; i++) {\n value[i] = readLong();\n }\n tag.setValue(value);\n }\n break;\n case ExifTag.TYPE_RATIONAL: {\n Rational value[] = new Rational[tag.getComponentCount()];\n for (int i = 0, n = value.length; i < n; i++) {\n value[i] = readRational();\n }\n tag.setValue(value);\n }\n break;\n }\n if (LOGV) {\n Timber.v(\"\\n\" + tag.toString());\n }\n }", "public /* synthetic */ void lambda$didReceivedNotification$24(TLObject tLObject, TLRPC$TL_error tLRPC$TL_error) {\n AndroidUtilities.runOnUIThread(new ThemePreviewActivity$$ExternalSyntheticLambda16(this, tLObject));\n }" ]
[ "0.7403103", "0.72545147", "0.7104546", "0.67404026", "0.6610321", "0.65997666", "0.64112043", "0.63395697", "0.63317287", "0.62228185", "0.6196188", "0.6168649", "0.61462593", "0.605821", "0.6041479", "0.6010099", "0.5994271", "0.5990915", "0.5938392", "0.5872081", "0.5865114", "0.5858841", "0.57507104", "0.57013255", "0.5675622", "0.56568605", "0.565407", "0.5608379", "0.5604396", "0.5598421", "0.55910784", "0.5532763", "0.5369813", "0.53676826", "0.53593767", "0.53176075", "0.53104866", "0.5301444", "0.5284063", "0.52408206", "0.5203967", "0.51973635", "0.519628", "0.5195098", "0.5191942", "0.519194", "0.51750195", "0.51643264", "0.51619285", "0.51354474", "0.5101543", "0.5098199", "0.5085274", "0.50725317", "0.50311404", "0.50238097", "0.49699107", "0.49691957", "0.49686247", "0.49371922", "0.49346483", "0.4932568", "0.4928699", "0.49182302", "0.49151123", "0.49091145", "0.48955932", "0.48929635", "0.48875284", "0.48783284", "0.4875793", "0.486366", "0.48627502", "0.48414543", "0.48413187", "0.48344022", "0.48343617", "0.48323312", "0.48232278", "0.4815161", "0.48125395", "0.47937804", "0.479356", "0.4784444", "0.47516686", "0.4750887", "0.47496438", "0.47419092", "0.47406927", "0.47283113", "0.4727229", "0.47187245", "0.4718648", "0.4714881", "0.47065184", "0.4706112", "0.47014648", "0.46942732", "0.4688018", "0.4686187" ]
0.5433809
32
Constructor, creates a reentrant nonfair lock.
public LockSync() { lock = new ReentrantLock(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Lock createLock() {\n return new /*Prio*/Lock();\n }", "public Lock() {\r\n }", "public abstract ReentrantLock getLock();", "public LockCondilock() {\n this(newDefaultLock());\n }", "public SimpleReadWriteLock() {\n\n\t\treaderLock = new ReadLock();\n\t\twriterLock = new WriteLock();\n\t\treaders = 0;\n\t\twriters = 0;\n\t\tthis.lock = this;\n\t}", "LockManager() {\n }", "protected Lock(Block block) {\r\n this(block, null, null, null);\r\n }", "public LockSync(Lock sharedLock) {\n lock = Objects.requireNonNull(sharedLock);\n }", "public Locker(int capacity)\r\n {\r\n super(capacity);\r\n }", "private SingletonSyncBlock() {}", "public VersionLockingPolicy() {\r\n super();\r\n storeInCache();\r\n }", "ManagementLockObject create();", "public Account()\n {\n balance = 0;\n balanceChangeLock = new ReentrantLock();\n sufficientFundsCondition = balanceChangeLock.newCondition();\n }", "void lock();", "public void lock() {\n while (true) {\r\n try {\r\n if (super.tryLock(2, TimeUnit.SECONDS))\r\n return;\r\n } catch (InterruptedException e) {\r\n trace(\"caught \" + e);\r\n }\r\n //trace(\"failed to get lock\", 1);\r\n //trace(\"owning thread: \" + getOwner(), 1);\r\n //Thread.dumpStack();\r\n }\r\n }", "protected synchronized Lock acquireLock() {\n\t\tacquireReadLock();\n\t\treturn new Lock();\n\t}", "public void lock() {\n\n }", "public Item() {\r\n this.quantidade = 0;\r\n this.nome = \"\";\r\n this.myLock = new ReentrantLock();\r\n this.myCond = myLock.newCondition();\r\n }", "public ReadWriteLockObjectHolder() {\n\t\tthis(new ReentrantReadWriteLock());\n\t}", "public Semaphore() {\n m_available = true;\n }", "public static DoubleCheckedLocking getInstanceUsingDoubleLocking(){\n\t if(instance == null){\n\t synchronized (DoubleCheckedLocking.class) {\n\t if(instance == null){\n\t instance = new DoubleCheckedLocking();\n\t }\n\t }\n\t }\n\t return instance;\n\t}", "protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n e.printStackTrace();\n }\n }", "Thread getLocker();", "public ConcurrentRingBuffer(){\r\n\tthis(8, \"ConcurrentRingBuffer disabled\");\r\n}", "public Lock getLock();", "ObjectPool() {\n deadTime = DEFAULT_DEADTIME;\n lock = new Hashtable<T, Long>();\n unlock = new Hashtable<T, Long>();\n }", "public static Singleton doubleCheckLocking(){\n if(instance != null){\n return instance;\n }\n synchronized (key){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }\n }", "public DeadlockImpl() throws RemoteException {\n }", "public Locks acquire() throws Exception {\n\t\t\n\t\tif( DB.getConf().getBoolean(\"locks.disabled\")) return this;\n\t\tSemaphore waitHere = new Semaphore(0);\n\t\tthreadPark.put( lockId, waitHere);\t\n\t\ttry {\n\t\t\tproxy.tell( new RequestLock( this), ActorRef.noSender());\n\t\t\twaitHere.acquire();\n\t\t\tthis.acquired = new Date();\n\t\t} catch(Exception e){\n\t\t\tlog.info( \"Exception while waiting for lock\", e );\n\t\t\tthrow new Exception( \"Failed to get the lock!!\");\n\t\t} finally {\n\t\t\t// thread not parked any more\n\t\t\tthreadPark.remove(lockId);\n\t\t}\n\t\treturn this;\n\t}", "public ThreadSafeInvertedIndex() {\n\t\tsuper();\n\t\tthis.lock = new ReadWriteLock();\n\t}", "public SimpleSemaphore2(int v) \n { this(v, v); }", "public IllegalBlockingModeException() { }", "public static synchronized N_ThreadSafeSingalton getInstance() throws InterruptedException{\n\t\t\n\t\tif (uniqueInstance == null){\n\t\t\tThread.sleep(1000);// just to show multithreading issue.\n\t\t\tuniqueInstance=new N_ThreadSafeSingalton();\n\t\t}\t\t\n\t\t\n\t\treturn uniqueInstance;\n\t}", "public @NotNull ReentrantLock getLock() {\n return lock;\n }", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean tryLock(long arg0, TimeUnit arg1)\n\t\t\tthrows InterruptedException {\n\t\treturn false;\n\t}", "public void lock() {\n/* 254 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public SimpleSemaphore2(boolean b) \n { this(b ? 1 : 0, 1); }", "@Test\r\n\tvoid testReentrant() throws Exception\r\n\t{\r\n\t\tfinal PageAccessSynchronizer sync = new PageAccessSynchronizer(Duration.ofSeconds(5));\r\n\t\tsync.lockPage(0);\r\n\t\tsync.lockPage(0);\r\n\t}", "public void lock() {\r\n super.lock();\r\n }", "public interface PreemptiveLock {\n\n /**\n * 尝试获得锁\n * @return 是否成功获得锁\n * @param lock\n */\n boolean getLock(String lock);\n\n /**\n * 释放锁\n * @param lock\n */\n void releaseLock(String lock);\n}", "public Promise<V> syncUninterruptibly()\r\n/* 191: */ {\r\n/* 192:226 */ awaitUninterruptibly();\r\n/* 193:227 */ rethrowIfFailed();\r\n/* 194:228 */ return this;\r\n/* 195: */ }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public ParallelReceptacle() {\n }", "@Override\n\tpublic boolean tryLock(long time, TimeUnit unit)\n\t\t\tthrows InterruptedException {\n\t\treturn false;\n\t}", "void acquireReadLock() throws InterruptedException;", "protected Lock(Block block, BlockFace attachedFace, String owner) {\r\n this(block, attachedFace, owner, null);\r\n }", "public RCC() {\n v = new Semaphore(1);\n s = new Semaphore(0);\n mutex = new Semaphore(1);\n suspendidos_s = 0;\n }", "@Override\n public void acquireExclusive( Locks.ResourceType resourceType, long resourceId ) throws AcquireLockTimeoutException\n {\n\n ConcurrentMap<Long, ForsetiLockManager.Lock> lockMap = lockMaps[resourceType.typeId()];\n PrimitiveLongIntMap heldLocks = exclusiveLockCounts[resourceType.typeId()];\n\n int heldCount = heldLocks.get( resourceId );\n if(heldCount != -1)\n {\n // We already have a lock on this, just increment our local reference counter.\n heldLocks.put( resourceId, heldCount + 1 );\n return;\n }\n\n // Grab the global lock\n ForsetiLockManager.Lock existingLock;\n int tries = 0;\n while( (existingLock = lockMap.putIfAbsent( resourceId, myExclusiveLock )) != null)\n {\n // If this is a shared lock:\n // Given a grace period of tries (to try and not starve readers), grab an update lock and wait for it\n // to convert to an exclusive lock.\n if( tries > 50 && existingLock instanceof SharedLock)\n {\n // Then we should upgrade that lock\n SharedLock sharedLock = (SharedLock) existingLock;\n if ( tryUpgradeSharedToExclusive( resourceType, lockMap, resourceId, sharedLock ) )\n {\n break;\n }\n }\n\n waitStrategies[resourceType.typeId()].apply( tries++ );\n markAsWaitingFor( existingLock, resourceType, resourceId );\n }\n\n clearWaitList();\n heldLocks.put( resourceId, 1 );\n }", "public static void main(String[] args) {\r\n\r\n\t\t// ReentrantLock implements lock and extends object\r\n\t\t// ReentrantLock can acquire lock N number of times with out any issue\r\n\t\t// internally ReentrantLock increases the thread hold count when we call\r\n\t\t// lock and decreases the hold count when we call unlock.\r\n\t\tReentrantLock lock = new ReentrantLock();\r\n\r\n\t\t// ReentrantLock with fair (truly)\r\n\t\t// if true , if multiple thread are waiting longest thread will get the\r\n\t\t// chance first.\r\n\t\t// default vAlue is false.\r\n\t\tReentrantLock lock2 = new ReentrantLock(true);\r\n\t\t// important methods from Lock Interface\r\n\t\t// if the lock is available it will immediately get the lock or else it\r\n\t\t// will wait(Same as synchronized lock).\r\n\t\tlock.lock();\r\n\r\n\t\t// if the lock is available it will immediately get the lock or else it\r\n\t\t// will continue.\r\n\t\tlock.tryLock(); // returns boolean so alternative execution can be given\r\n\t\t\t\t\t\t// if false.\r\n\r\n\t\ttry {\r\n\t\t\t// if the lock is available it will immediately get the lock or else\r\n\t\t\t// it will wait until specified amount of time.\r\n\t\t\tlock.tryLock(1, TimeUnit.HOURS);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t/*\r\n\t\t * Acquires the lock unless the current thread is interrupted. Acquires\r\n\t\t * the lock if it is not held by another thread and returns immediately,\r\n\t\t * setting the lock hold count to one.\r\n\t\t * \r\n\t\t * If the current thread already holds this lock then the hold count is\r\n\t\t * incremented by one and the method returns immediately.\r\n\t\t * \r\n\t\t * If the lock is held by another thread then the current thread becomes\r\n\t\t * disabled for thread scheduling purposes and lies dormant until one of\r\n\t\t * two things happens: •The lock is acquired by the current thread; or\r\n\t\t * •Some other thread interrupts the current thread.\r\n\t\t * \r\n\t\t * If the lock is acquired by the current thread then the lock hold\r\n\t\t * count is set to one.\r\n\t\t */\r\n\r\n\t\ttry {\r\n\t\t\tlock.lockInterruptibly();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(lock.getHoldCount()); // 4\r\n\r\n\t\t// current thread should having the lock or else it will throw run time\r\n\t\t// exception saying illegalMonitiorStateException.\r\n\t\t// it will release one hold at a time . when hold count decreases to 0\r\n\t\t// it releases the lock.\r\n\t\tlock.unlock();\r\n\t\tSystem.out.println(lock.getHoldCount()); // 3\r\n\t\tlock.unlock();\r\n\t\tSystem.out.println(lock.getHoldCount()); // 2\r\n\r\n\t\tSystem.out.println(lock.isFair()); // fasle\r\n\r\n\t\tSystem.out.println(lock.isHeldByCurrentThread()); // true\r\n\r\n\t\tSystem.out.println(lock.isLocked()); // true\r\n\r\n\t\tSystem.out.println(lock.hasQueuedThreads()); // false\r\n\r\n\t\tSystem.out.println(lock.getQueueLength()); // 0\r\n\r\n/*\t\tDisplay display=new Display();\r\n\t\tMyThreadNew new1 = new MyThreadNew(display, \"karthik\");\r\n\t\tMyThreadNew new2 = new MyThreadNew(display, \"srikanth\");\r\n\t\tnew1.start();\r\n\t\tnew2.start();*/\r\n\r\n\t\tMyThreadNew1 myThreadNew1=new MyThreadNew1();\r\n\t\tMyThreadNew1 myThreadNew12= new MyThreadNew1();\r\n\t\tmyThreadNew1.start();\r\n\t\tmyThreadNew12.start();\r\n\t\t\r\n\t\tMyThreadNew2 myThreadNew2=new MyThreadNew2();\r\n\t\tMyThreadNew2 myThreadNew22= new MyThreadNew2();\r\n\t\tmyThreadNew2.start();\r\n\t\tmyThreadNew22.start();\r\n\t}", "protected void tryAcquire() throws FileLockException {\n if (m_socket != null)\n throw new FileLockException(LOCK_ACQUIRED_ALREADY);\n\n final DatagramSocket socket;\n try {\n socket = new DatagramSocket(m_port);\n } catch (SocketException se) {\n throw new FileLockException(LOCK_ACQUISITION_FAILURE);\n } catch (SecurityException se) {\n throw new FileLockException(LOCK_ACQUISITION_SECURITY_FAILURE, new String[] { IAppConstants.APP_NAME }, se);\n }\n\n m_socket = socket;\n }", "public interface Lock {\n\n boolean acquire();\n\n boolean release();\n}", "public void lock(int key);", "final public Lock test_get_lock() {\r\n\t\treturn lock_;\r\n\t}", "private static void j_lock() {\r\n\t\tdo {\r\n\t\t\tLOCK_FILES_DIR.mkdirs();\r\n\t\t\ttry {\r\n\t\t\t\tRandomAccessFile raf = new RandomAccessFile(GLOBAL_LOCK_FILE,\r\n\t\t\t\t\t\t\"rw\");\r\n\t\t\t\tFileChannel channel = raf.getChannel();\r\n\t\t\t\tFileLock lock = channel.lock();\r\n\t\t\t\tglobalFileChannel = channel;\r\n\t\t\t\tglobalFileLock = lock;\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Throwable t) {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "public static ThreadSafe getInstaceDoubleChecking(){\n if(instance==null){\n synchronized (ThreadSafe.class) {\n if (instance==null) {\n instance = new ThreadSafe();\n }\n }\n }\n return instance;\n }", "public interface LockFactory {\n\n /**\n * Obtain a lock for a resource identified by given {@code identifier}. Depending on the strategy, this\n * method may return immediately or block until a lock is held.\n *\n * @param identifier the identifier of the resource to obtain a lock for.\n * @return a handle to release the lock.\n */\n Lock obtainLock(String identifier);\n}", "void lock(String resourceName) throws InterruptedException;", "public Lock lock(TYPE key) {\n return lock(key, timeoutMs, TimeUnit.MILLISECONDS);\n }", "public LockImpl(long id) {\n\t\tthis.id = id;\n\t}", "private SingletonThreadSafeExample(){\n this.invoke++;\n }", "@Test\n\tpublic void testTryLockAndRelockAndPass() {\n\n\t\tinstance.lock();\n\n\t\tassertTrue(instance.tryLock());\n\t}", "@Override\n\tpublic void lockInterruptibly() throws InterruptedException {\n\t\t\n\t}", "@Override\n\tpublic void lockInterruptibly() throws InterruptedException {\n\t\t\n\t}", "public InputLock(InputMultiplexer input) {\r\n\t\tthis(input, true, true, true, true, true, true, true, true);\r\n\t}", "@Override\n protected int tryAcquireShared(int ignored) {\n if (isSignalled()) {\n return 1;\n }\n\n return -1;// check in AbstractQueuedSynchronizer.doAcquireSharedInterruptibly() why -1 returned here.\n }", "private void initialLockers() {\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n board[i][j] = new ReentrantLock();\n }\n }\n }", "long tryReadLock(long timeout) throws InterruptedException;", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "public Locks acquire(int millis ) throws Exception {\n\t\tSemaphore waitHere = new Semaphore(0);\n\t\tthreadPark.put( lockId, waitHere);\t\n\t\ttry {\n\t\t\tproxy.tell( new RequestLock( this), ActorRef.noSender());\n\t\t\tboolean success = waitHere.tryAcquire(millis, TimeUnit.MILLISECONDS );\n\t\t\tif( !success) throw new Exception();\n\t\t\tthis.acquired = new Date();\n\t\t} catch(Exception e){\n\t\t\t// I don't hold the lock ...\n\t\t\t// it could happen that there is a second release send for this lock, this should not \n\t\t\t// be a problem\n\t\t\tproxy.tell( new ReleaseLock(lockId), ActorRef.noSender());\n\t\t\t\n\t\t\tlog.info( \"Exception while waiting for lock\", e );\n\t\t\tthrow new Exception( \"Failed to get the lock!!\");\n\t\t\t\n\t\t} finally {\n\t\t\t// thread not parked any more\n\t\t\t\tthreadPark.remove(lockId);\t\t\n\t\t}\n\t\treturn this;\n\t}", "Lock getLock(String lockName);", "public AsyncLock getLockFor(long timestamp) {\n return new ImmutableTimestampLock(timestamp, this);\n }", "private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}", "public LockCondilock(final Lock lock) {\n this(\n lock,\n lock.newCondition());\n }", "@Override\n public void acquireShared( Locks.ResourceType resourceType, long resourceId ) throws AcquireLockTimeoutException\n {\n ConcurrentMap<Long, ForsetiLockManager.Lock> lockMap = lockMaps[resourceType.typeId()];\n\n // And grab our local lock maps\n PrimitiveLongIntMap heldShareLocks = sharedLockCounts[resourceType.typeId()];\n PrimitiveLongIntMap heldExclusiveLocks = exclusiveLockCounts[resourceType.typeId()];\n\n // First, check if we already hold this as a shared lock\n int heldCount = heldShareLocks.get( resourceId );\n if(heldCount != -1)\n {\n // We already have a lock on this, just increment our local reference counter.\n heldShareLocks.put( resourceId, heldCount + 1 );\n return;\n }\n\n // Second, check if we hold it as an exclusive lock\n if( heldExclusiveLocks.containsKey( resourceId ) )\n {\n // We already have an exclusive lock, so just leave that in place. When the exclusive lock is released,\n // it will be automatically downgraded to a shared lock, since we bumped the share lock reference count.\n heldShareLocks.put( resourceId, 1 );\n return;\n }\n\n // We don't hold the lock, so we need to grab it via the global lock map\n int tries = 0;\n SharedLock mySharedLock = null;\n\n // Retry loop\n while(true)\n {\n // Check if there is a lock for this entity in the map\n ForsetiLockManager.Lock existingLock = lockMap.get( resourceId );\n\n // No lock\n if(existingLock == null)\n {\n // Try to create a new shared lock\n if(mySharedLock == null)\n {\n mySharedLock = new SharedLock( this );\n }\n\n if(lockMap.putIfAbsent( resourceId, mySharedLock ) == null)\n {\n // Success, we now hold the shared lock.\n break;\n }\n else\n {\n continue;\n }\n }\n\n // Someone holds shared lock on this entity, try and get in on that action\n else if(existingLock instanceof SharedLock)\n {\n if(((SharedLock)existingLock).acquire(this))\n {\n // Success!\n break;\n }\n }\n\n // Someone holds an exclusive lock on this entity\n else if(existingLock instanceof ExclusiveLock)\n {\n // We need to wait, just let the loop run.\n }\n else\n {\n throw new UnsupportedOperationException( \"Unknown lock type: \" + existingLock );\n }\n\n // Apply the designated wait strategy\n waitStrategies[resourceType.typeId()].apply( tries++ );\n\n // And take note of who we are waiting for. This is used for deadlock detection.\n markAsWaitingFor( existingLock, resourceType, resourceId );\n }\n\n // Got the lock, no longer waiting for anyone.\n clearWaitList();\n\n // Make a local note about the fact that we now hold this lock\n heldShareLocks.put( resourceId, 1 );\n }", "public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }", "protected Lock(Block block, String owner, String[] lines) {\r\n this(block, null, owner, lines);\r\n }", "public static synchronized LazyLoadingSingleton getInstanceWithSynchronizedBlock() {\n\t\tif (INSTANCE == null) {\n\t\t\tsynchronized (LazyLoadingSingleton.class) {\n\t\t\t\tINSTANCE = new LazyLoadingSingleton();\n\t\t\t}\n\t\t}\n\t\treturn INSTANCE;\n\t}", "private SingletonDoubleCheck() {}", "public VersionLockingPolicy(DatabaseField field) {\r\n this();\r\n setWriteLockField(field);\r\n }", "private ThreadUtil() {\n \n }", "public SynchronousTimeLimitedTask() {\n _steps = new ArrayDeque<BooleanSupplier>();\n }", "public void lock() {\n\t\tlocked = true;\n\t}", "public boolean acquireReadLockNoWait() {\r\n return true;\r\n }", "public HierarchicalMultiLock(@Nullable final MultiLock parent) {\n super();\n this.parent = parent;\n }", "public DBMaker disableLocking(){\n this.lockingDisabled = true;\n return this;\n }", "IcedHM() { _m = new NonBlockingHashMap<>(); }", "public CacheKey acquireLockNoWait(Vector primaryKey, boolean forMerge) {\n //check if the key is already in the hashtable\n CacheKey key = null;\n\n //cache key should not be changed in other threads during the lock acquire operation\n synchronized (this) {\n key = getCacheKey(primaryKey);\n if (key == null) {\n //create a chachKey and lock the object\n CacheKey cacheKey = createCacheKey(primaryKey, null, null);\n cacheKey.acquire(forMerge);\n put(cacheKey);\n return cacheKey;\n }\n }\n\n //find the key in the hashtable, lock the object\n if (key != null) {\n //couldn't acquire the key so do not return it\n if (!key.acquireNoWait(forMerge)) {\n key = null;\n }\n }\n\n return key;\n }", "public static ThreadSafeSingleton getInstanceWithDoubleCheck() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (ThreadSafeSingleton.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new ThreadSafeSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public ReentrantLock lock(String accountId) throws ImapThrottledException {\n ReentrantLock lock = null;\n synchronized (commandLock) {\n lock = commandLock.get(accountId);\n if (lock == null) {\n lock = new ReentrantLock();\n commandLock.put(accountId, lock);\n }\n }\n boolean locked = false;\n try {\n locked = lock.tryLock(LOCK_TIMEOUT, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n }\n if (!locked) {\n throw new ImapThrottledException(\"Unable to obtain command lock \" + lock.toString() + \" aborting operation\");\n } else {\n return lock;\n }\n }", "@Override\n public void lock() {\n Preconditions.checkState(connection != null);\n if (!tryLock(lockGetTimeout(), TimeUnit.MILLISECONDS)) {\n Monitoring.increment(errorCounter.name(), (KeyValuePair<String, String>[]) null);\n throw new LockException(String.format(\"[%s][%s] Timeout getting lock.\", id().getNamespace(), id().getName()));\n }\n }", "private LazySingleton(){}", "public GcpLock createLock(String blob, long timeout, TimeUnit unit) throws InterruptedException {\n return new GcpLock(storage, bucketName, blob, timeout, unit);\n }", "public Barrier (int max) {\n\t\tMAX_THREADS_TO_SYNCHRONIZE = max;\n\t\tcount = 0;\n\t}", "void lockExpired(String lock);", "public Path lock(\n ) {\n return this;\n }", "protected Recycler(int maxCapacityPerThread)\r\n/* 93: */ {\r\n/* 94:124 */ this(maxCapacityPerThread, MAX_SHARED_CAPACITY_FACTOR);\r\n/* 95: */ }" ]
[ "0.70277303", "0.6875307", "0.68064934", "0.6686786", "0.6445849", "0.6416945", "0.6384889", "0.61268574", "0.60677344", "0.59750503", "0.59269094", "0.5914924", "0.59022546", "0.5881165", "0.5837566", "0.5820984", "0.57633007", "0.5750079", "0.57216907", "0.56960803", "0.56817687", "0.5678805", "0.56350094", "0.5572178", "0.55569446", "0.55547094", "0.5552781", "0.5544138", "0.5530453", "0.55290014", "0.5519459", "0.55160314", "0.5515409", "0.55018413", "0.54917634", "0.54917634", "0.5488839", "0.54838693", "0.54660636", "0.54636246", "0.54494935", "0.54377294", "0.54289055", "0.54214007", "0.54214007", "0.54214007", "0.5387887", "0.5370777", "0.53631127", "0.53374094", "0.5335335", "0.52912146", "0.5285978", "0.52765584", "0.5274664", "0.52691066", "0.526498", "0.5262706", "0.5240144", "0.52346426", "0.5233414", "0.52302086", "0.5218316", "0.5206851", "0.51895696", "0.51791114", "0.51791114", "0.5159026", "0.5158274", "0.5155757", "0.5155012", "0.5133504", "0.51293033", "0.5123238", "0.511354", "0.5100238", "0.50896263", "0.50874895", "0.5083574", "0.50825816", "0.5079949", "0.5076727", "0.5073202", "0.50696564", "0.50654036", "0.5052945", "0.505118", "0.5050163", "0.5049331", "0.5044177", "0.50417185", "0.5039325", "0.50384563", "0.50219715", "0.50172573", "0.50123817", "0.50110483", "0.5005929", "0.5005901", "0.50047636" ]
0.7593725
0
Constructor, takes the given shared lock.
public LockSync(Lock sharedLock) { lock = Objects.requireNonNull(sharedLock); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Lock() {\r\n }", "LockManager() {\n }", "public LockSync() {\n lock = new ReentrantLock();\n }", "public LockCondilock() {\n this(newDefaultLock());\n }", "ManagementLockObject create();", "public LockCondilock(final Lock lock) {\n this(\n lock,\n lock.newCondition());\n }", "static Lock createLock() {\n return new /*Prio*/Lock();\n }", "protected Lock(Block block) {\r\n this(block, null, null, null);\r\n }", "private SingletonSyncBlock() {}", "protected Lock(Block block, BlockFace attachedFace, String owner) {\r\n this(block, attachedFace, owner, null);\r\n }", "ManagementLockObject create(Context context);", "public SharedObject() {}", "public LockServiceInitializer(Process lockService, Model model) throws IOException {\n\t\tthis.lockService = lockService;\n\t\tthis.model = model;\n\t\t\n\t\t// Messenger.\n\t\tthis.threadPool = createThreadPool();\n\t\tthis.messenger = createTCPMessenger();\n\t\tthis.messenger.initialize();\n\t}", "protected Lock(Block block, String owner, String[] lines) {\r\n this(block, null, owner, lines);\r\n }", "private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}", "public VersionLockingPolicy() {\r\n super();\r\n storeInCache();\r\n }", "public ServerThread(Object lock, Socket s1, Socket s2) {\n\t\tthis.lock = lock;\n\t\tthis.s1 = s1;\n\t\tthis.s2 = s2;\n\t}", "public abstract ReentrantLock getLock();", "public SimpleReadWriteLock() {\n\n\t\treaderLock = new ReadLock();\n\t\twriterLock = new WriteLock();\n\t\treaders = 0;\n\t\twriters = 0;\n\t\tthis.lock = this;\n\t}", "public void lock() {\n\n }", "ObjectPool() {\n deadTime = DEFAULT_DEADTIME;\n lock = new Hashtable<T, Long>();\n unlock = new Hashtable<T, Long>();\n }", "public HierarchicalMultiLock(@Nullable final MultiLock parent) {\n super();\n this.parent = parent;\n }", "final public Lock test_get_lock() {\r\n\t\treturn lock_;\r\n\t}", "public InputLock(InputMultiplexer input) {\r\n\t\tthis(input, true, true, true, true, true, true, true, true);\r\n\t}", "public LockImpl(long id) {\n\t\tthis.id = id;\n\t}", "public LockLayer() {\n }", "public Synchronizer(Scriptable obj) {\n super(obj);\n }", "Lock getLock(String lockName);", "public Locker(int capacity)\r\n {\r\n super(capacity);\r\n }", "public WaitableEventSet(Lock lock) {\n if (lock == null) throw new IllegalArgumentException(\"Lock may not be null.\");\n this.lock = lock;\n }", "public Lock getLock();", "protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n e.printStackTrace();\n }\n }", "public SimpleSemaphore2(int v) \n { this(v, v); }", "public Item() {\r\n this.quantidade = 0;\r\n this.nome = \"\";\r\n this.myLock = new ReentrantLock();\r\n this.myCond = myLock.newCondition();\r\n }", "public Communicator() {\n\t\tcommlock = new Lock ();\n\t\tspeaker = new Condition(commlock);\n\t\tlistener = new Condition(commlock);\n\n }", "LockRecord(Record record, String workspace) {\n super(record, workspace);\n }", "void lock();", "public TestSharedObject() {\n super();\n }", "Shared shared();", "public Producer(Buffer shared) {\n sharedLocation = shared;\n }", "public DeadlockImpl() throws RemoteException {\n }", "public void lock() {\r\n super.lock();\r\n }", "public LockMaster(Lock lock, int numAttempts) {\n\t\tthis.lock = lock;\n\t\tthis.numAttempts = numAttempts;\n\t}", "private <T> T withLock(Lock lock, Supplier<T> source) {\n lock.lock();\n try {\n locked(lock);\n return source.get();\n } finally {\n lock.unlock();\n }\n }", "private SparkeyServiceSingleton(){}", "private Singleton(){}", "public AsyncLock getLockFor(long timestamp) {\n return new ImmutableTimestampLock(timestamp, this);\n }", "LockStorage getLockStorage();", "public static Locks create() {\n\t\tString uuid = ObjectId.get().toHexString();\n\t\treturn owner( uuid );\n\t}", "@Override\n public void setLockOwner(Object lockOwner) {\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "@Pointcut(value = \"@annotation(lock)\", argNames = \"lock\")\n public void lockPointcut(Lock lock) {\n }", "public void setLockStatus(long lockStatus) {\r\n this.lockStatus = lockStatus;\r\n }", "public PSServerLockException(int msgCode, Object singleArg)\n {\n super(msgCode, singleArg);\n }", "public static DoubleCheckedLocking getInstanceUsingDoubleLocking(){\n\t if(instance == null){\n\t synchronized (DoubleCheckedLocking.class) {\n\t if(instance == null){\n\t instance = new DoubleCheckedLocking();\n\t }\n\t }\n\t }\n\t return instance;\n\t}", "@Override\n public void lock() {\n Preconditions.checkState(connection != null);\n if (!tryLock(lockGetTimeout(), TimeUnit.MILLISECONDS)) {\n Monitoring.increment(errorCounter.name(), (KeyValuePair<String, String>[]) null);\n throw new LockException(String.format(\"[%s][%s] Timeout getting lock.\", id().getNamespace(), id().getName()));\n }\n }", "void getLock(QName lockQName, String lockToken, long timeToLive);", "protected synchronized Lock acquireLock() {\n\t\tacquireReadLock();\n\t\treturn new Lock();\n\t}", "public DistributedDbLock(@Nonnull String namespace,\n @Nonnull String name,\n @Nonnull AbstractLockAllocator allocator) {\n super(namespace, name, allocator);\n setupMetrics(Metrics.METRIC_LATENCY_LOCK,\n Metrics.METRIC_LATENCY_UNLOCK,\n Metrics.METRIC_COUNTER_CALLS,\n Metrics.METRIC_COUNTER_ERROR);\n }", "private Singleton()\n\t\t{\n\t\t}", "private SingletonObject() {\n\n\t}", "Lock getLockByKey(String key);", "public Account()\n {\n balance = 0;\n balanceChangeLock = new ReentrantLock();\n sufficientFundsCondition = balanceChangeLock.newCondition();\n }", "private LazySingleton(){}", "private Singleton() { }", "public GcpLock createLock(String blob, long timeout, TimeUnit unit) throws InterruptedException {\n return new GcpLock(storage, bucketName, blob, timeout, unit);\n }", "void lockExpired(String lock);", "public void setLockId(String lockId) {\n this.lockId = lockId;\n }", "public Communicator() {\n\n\t\tthis.isReady = false;\n\t\tthis.hold = 0;\n\t\tthis.speaker = 0;\n\t\tthis.listener = 0;\n\t\t//init values\n\n\t\tthis.newLock = new Lock();\n\t\t//new lock\n\t\tthis.speakerR = new Condition2(newLock);\n\t\t//condition variable for speakers\n\t\tthis.listenerR = new Condition2(newLock);\n\t\t//condition variable for listener\n\t\tthis.inProg = new Condition2(newLock);\n\t\t//condition variable for inprog message\n\n\t}", "private static void j_lock() {\r\n\t\tdo {\r\n\t\t\tLOCK_FILES_DIR.mkdirs();\r\n\t\t\ttry {\r\n\t\t\t\tRandomAccessFile raf = new RandomAccessFile(GLOBAL_LOCK_FILE,\r\n\t\t\t\t\t\t\"rw\");\r\n\t\t\t\tFileChannel channel = raf.getChannel();\r\n\t\t\t\tFileLock lock = channel.lock();\r\n\t\t\t\tglobalFileChannel = channel;\r\n\t\t\t\tglobalFileLock = lock;\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Throwable t) {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "private SingletonThreadSafeExample(){\n this.invoke++;\n }", "private Interrupt(Object semaphore, String interrupt_key) {\n this.semaphore = semaphore;\n this.interrupt_key = interrupt_key;\n }", "public interface LockDAO\n{\n /**\n * Aquire a given exclusive lock, assigning it (and any implicitly shared locks) a\n * timeout. All shared locks are implicitly taken as well.\n * <p>\n * A lock can be re-taken if it has expired and if the lock token has not changed\n * \n * @param lockQName the unique name of the lock to acquire\n * @param lockToken the potential lock token (max 36 chars)\n * @param timeToLive the time (in milliseconds) that the lock must remain \n * @return Returns <tt>true</tt> if the lock was taken, \n * otherwise <tt>false</tt>\n * @throws LockAcquisitionException on failure\n */\n void getLock(QName lockQName, String lockToken, long timeToLive);\n\n /**\n * Refresh a held lock. This is successful if the lock in question still exists\n * and if the lock token has not changed. Lock expiry does not prevent the lock\n * from being refreshed.\n * \n * @param lockQName the unique name of the lock to update\n * @param lockToken the lock token for the lock held\n * @param timeToLive the new time to live (in milliseconds)\n * @return Returns <tt>true</tt> if the lock was updated,\n * otherwise <tt>false</tt>\n * @throws LockAcquisitionException on failure\n */\n void refreshLock(QName lockQName, String lockToken, long timeToLive);\n \n /**\n * Release a lock. The lock token must still apply and all the shared and exclusive\n * locks need to still be present. Lock expiration does not prevent this operation\n * from succeeding.\n * <p>\n * Note: Failure to release a lock due to a exception condition is dealt with by\n * passing the exception out.\n * \n * @param lockQName the unique name of the lock to release\n * @param lockToken the current lock token\n * @return Returns <tt>true</tt> if all the required locks were\n * (still) held under the lock token and were\n * valid at the time of release, otherwise <tt>false</tt>\n */\n void releaseLock(QName lockQName, String lockToken);\n}", "@Override\r\n\tpublic void onLock(boolean lock) {\n\t\tthis.lock = lock;\r\n\t}", "public DistributedDbLock(@Nonnull LockId id, @Nonnull AbstractLockAllocator allocator) {\n super(id, allocator);\n setupMetrics(Metrics.METRIC_LATENCY_LOCK,\n Metrics.METRIC_LATENCY_UNLOCK,\n Metrics.METRIC_COUNTER_CALLS,\n Metrics.METRIC_COUNTER_ERROR);\n }", "public void lock(int key);", "public void setLockKey( Long lockKey ) {\n this.lockKey = lockKey;\n }", "private Singleton() {\n\t}", "public TManagerImp() {\n transactions = new ConcurrentHashMap<>();\n }", "public void addLock(I_MemoryLock lock);", "final Object getLockObject() {\n return timeManager;\n }", "public ComboLock(int secret1, int secret2, int secret3)\n {\n // initialise instance variables\n numbers[0] = secret1;\n numbers[1] = secret2;\n numbers[2] = secret3;\n }", "public Semaphore() {\n m_available = true;\n }", "public Lock getLock() {\n return lock;\n }", "private void withLock(Lock lock, Runnable task) {\n withLock(lock, () -> {\n task.run();\n return null;\n });\n }", "public static Singleton doubleCheckLocking(){\n if(instance != null){\n return instance;\n }\n synchronized (key){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }\n }", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "private SingletonDoubleCheck() {}", "private void RecordStoreLockFactory() {\n }", "private Singleton(){\n }", "public ReadWriteLockObjectHolder() {\n\t\tthis(new ReentrantReadWriteLock());\n\t}", "public LocalLockMergingSegmentReadLocker(Cache<?, ?> locksCache, Cache<?, ?> chunksCache, Cache<?, ?> metadataCache, String indexName) {\n this.delegate = new DistributedSegmentReadLocker((Cache<Object, Integer>) locksCache, chunksCache, metadataCache, indexName);\n }", "public interface LockManager {\r\n \r\n /**\r\n * Obtain lock on <code>obj</code> for specified <code>owner</code>.\r\n * Implementation should try to obtain lock few times within the\r\n * specified timeout.\r\n *\r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n * @param timeout maximum time that we grant to obtain a lock.\r\n *\r\n * @throws LockNotGrantedException if lock is not granted within\r\n * specified period.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n */\r\n void lock(Object obj, Object owner, int timeout)\r\n throws LockNotGrantedException, ClassCastException, ChannelException;\r\n\r\n /**\r\n * Release lock on <code>obj</code> owned by specified <code>owner</code>.\r\n *\r\n * since 2.2.9 this method is only a wrapper for \r\n * unlock(Object lockId, Object owner, boolean releaseMultiLocked).\r\n * Use that with releaseMultiLocked set to true if you want to be able to\r\n * release multiple locked locks (for example after a merge)\r\n * \r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n *\r\n * @throws LockOwnerMismatchException if lock is owned by another object.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n */\r\n void unlock(Object obj, Object owner)\r\n throws LockNotReleasedException, ClassCastException, ChannelException;\r\n\r\n /**\r\n * Release lock on <code>obj</code> owned by specified <code>owner</code>.\r\n *\r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n * @param releaseMultiLocked force unlocking of the lock if the local\r\n * lockManager owns the lock even if another lockManager owns the same lock\r\n *\r\n * @throws LockOwnerMismatchException if lock is owned by another object.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n * \r\n * @throws LockMultiLockedException if the lock was unlocked, but another\r\n * node already held the lock\r\n */\r\n void unlock(Object obj, Object owner, boolean releaseMultiLocked)\r\n throws LockNotReleasedException, ClassCastException, ChannelException, LockMultiLockedException;\r\n\r\n \r\n}", "public Object getLock() {\n return dataLock;\n }", "private SingletonSigar(){}", "void lock(Object obj, Object owner, int timeout)\r\n throws LockNotGrantedException, ClassCastException, ChannelException;", "public static Object installLock(Object lock, String label) {\n final LockInfo info = findOrCreateLockInfo(lock);\n info.label = label;\n return lock;\n }", "Thread getLocker();" ]
[ "0.744947", "0.72348535", "0.7191574", "0.67682636", "0.6662147", "0.66017866", "0.6534821", "0.6523939", "0.63105977", "0.62808883", "0.62228066", "0.6063031", "0.598047", "0.59144336", "0.58737105", "0.58081657", "0.58059675", "0.5805946", "0.58023566", "0.57830113", "0.57326794", "0.5681458", "0.56767815", "0.5676624", "0.5674689", "0.56650555", "0.5658429", "0.56261045", "0.56202215", "0.55981916", "0.5592926", "0.5592589", "0.5535239", "0.5519782", "0.55172056", "0.5498402", "0.5463264", "0.54510933", "0.5383274", "0.5372632", "0.53596914", "0.5325866", "0.53214383", "0.531883", "0.53124946", "0.531096", "0.5309364", "0.5299396", "0.52905697", "0.52800244", "0.52791196", "0.52791196", "0.52791196", "0.52760625", "0.5235852", "0.52330095", "0.52060723", "0.52060074", "0.5202019", "0.5201829", "0.51991326", "0.5194413", "0.51929593", "0.51899517", "0.5189213", "0.5176007", "0.5166644", "0.51628184", "0.5162562", "0.5159592", "0.5139375", "0.5136322", "0.51342434", "0.5130387", "0.5130144", "0.5124397", "0.5117316", "0.51037514", "0.51026994", "0.5085915", "0.5065584", "0.50648606", "0.50585526", "0.5057783", "0.5056407", "0.50542074", "0.5032092", "0.5031844", "0.5026367", "0.5012218", "0.50073284", "0.5007154", "0.50042546", "0.49860984", "0.4983294", "0.49818164", "0.4971206", "0.49640042", "0.49614787", "0.49574503" ]
0.7787896
0
Executes the runnable action while holding the lock.
public void sync(Runnable run) { lock.lock(); try { run.run(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void execute() {\n \tlockedOn();\n \tif (lockedOn) {\n \t\tupdateLocked();\n \t} else if (hasLockedOn) {\n \t\tupdateNotLocked();\n \tnew RotateTurretToAngle(angle()).start();\n \t}\n }", "private void execLocked(Runnable l) {\n Lock rl = lock.readLock();\n rl.lock();\n try {\n l.run();\n } finally {\n rl.unlock();\n }\n }", "@Override\n public void run()\n {\n active = true;\n try\n {\n try\n {\n lock.acquire();\n }\n catch (InterruptedException e)\n {\n return;\n }\n guardedRun();\n }\n finally\n {\n lock.release();\n }\n }", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"inside run() method.....\");\n\n\t\tlock();\n\n\t}", "@Override\n public void run() {\n ICBlock currentBlock = null;\n\n while (running) {\n try {\n currentBlock = mQueue.take();\n currentBlock.doAction();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n\n }\n\n\n }", "private void lockAllAndThen(Runnable action) {\n lockAllAndThen(0, action);\n }", "private void lockAllAndThen(Runnable action) {\n lockAllAndThen(0, action);\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tboolean bok = checkMinPath();\n\t\t\t\t\t\t\tif (bok) {\n\t\t\t\t\t\t\t\tcanRun = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (exitWhenGetNotLock) {// 获取不到锁,直接不执行,return\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\tif (canRun) {\n\t\t\t\t\t\t\t\t\tboolean bok1 = checkMinPath();\n\t\t\t\t\t\t\t\t\tif (bok1) {// 获取所成功\n\t\t\t\t\t\t\t\t\t\tgetLockSuccess();\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} else {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"同步等待...\");\n\t\t\t\t\t\t\t\t\tThread.sleep(1000);\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 (KeeperException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void runOnUiThread(Runnable action) {\n h.post(action);\n }", "void lock();", "public void runOnUiThread(Runnable action) {\n synchronized(action) {\n mActivity.runOnUiThread(action);\n try {\n action.wait();\n } catch (InterruptedException e) {\n Log.v(TAG, \"waiting for action running on UI thread is interrupted: \" +\n e.toString());\n }\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tsynchronized (holder.lock1) {\r\n\t\t\t\tSystem.out.println(\"+++Task3 get lock ->\"+Thread.currentThread().getName());\r\n\t\t\t\tSystem.out.println(\"+++Lock1 ready to notify\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(3000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tholder.lock1.notify();\r\n\t\t\t\tSystem.out.println(\"+++Lock1 notified,ready to Exit,Lock1 release\");\r\n\t\t\t}\r\n\t\t}", "@Override\n public void run() {\n final WeakHandler wh = hw.getThat();\n final Runnable r = runnable.get();\n if (wh == null || r == null) {\n return;\n }\n r.run();\n }", "@Override\npublic void run() {\n perform();\t\n}", "@Override\n public void act() {\n sleepCheck();\n if (!isAwake()) return;\n while (getActionTime() > 0f) {\n UAction action = nextAction();\n if (action == null) {\n this.setActionTime(0f);\n return;\n }\n if (area().closed) return;\n doAction(action);\n }\n }", "private void runAction(Runnable action) {\n try {\n action.run();\n }\n catch ( Exception e ) {\n if (this.logger != null) {\n this.logger.error(e.getMessage(), e);\n }\n }\n }", "@Override\n\t\tpublic void execute() throws InterruptedException {\n\t\t\tturnStyle.acquire();\n\t\t\tstate.enter(this);\n\t\t\tmutexRight.acquire();\n\t\t\tright++;\n\t\t\tif (right == 1) {\n\t\t\t\tmutexRope.acquire();\n\t\t\t\tstate.rightPassing();\n\t\t\t}\n\t\t\tmutexRight.release();\n\t\t\tturnStyle.release();\n\n\t\t\tonRope.acquire();\n\t\t\tstate.cross(this);\n\t\t\tonRope.release();\n\n\t\t\tmutexRight.acquire();\n\t\t\tright--;\n\t\t\tstate.leave(this);\n\t\t\tif (right == 0) {\n\t\t\t\tmutexRope.release();\n\t\t\t}\n\t\t\tmutexRight.release();\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tgameHelper.getGamesClient().unlockAchievement(achievementId);\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "@Override\n protected void execute() {\n double timePassed = Timer.getFPGATimestamp() - timePoint;\n\n boolean rumbleOver = (state == RUMBLE && timePassed > timeOn);\n boolean breakOver = (state == BREAK && timePassed > timeOff);\n\n if (rumbleOver) {\n rumble(false);\n if (repeatCount >= 0)\n repeatCount--;\n } else if (breakOver)\n rumble(true);\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tSystem.out.println(\"---ready to get lock1\");\r\n\t\t\tsynchronized (holder.lock1) {\r\n\t\t\t\tSystem.out.println(\"---get lock ->\"+Thread.currentThread().getName());\r\n\t\t\t\tSystem.out.println(\"---Lock1 ready to notify\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tholder.lock1.notify();\r\n\t\t\t\tSystem.out.println(\"---Lock1 notified,ready to Exit,Lock1 release\");\r\n\t\t\t}\r\n\t\t}", "public synchronized void applyAction(int action) {\n\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ts.put();\n\t\t\t\t}", "public void lock() {\n\n }", "@Override\n\tpublic void run() {\n\t\tStaticSynchronized.execute();\n\t\tStaticSynchronized.execute2();\n\t\tStaticSynchronized.execute3();\n\t}", "@Override\n public void run()\n {\n storage.unblock(Storage.Type.SHADE);\n }", "public synchronized void execute() {\n\t\tthis.timeoutFuture = SCHEDULER.schedule(this::processTimeout, 5, TimeUnit.SECONDS);\n\t\tthis.statuses.put(this.localNode.getInfo(), NodeStatus.Unasked);\n\t\tcheckFinishAndProcess();\n\t}", "void lockGranted(LockHandle lockHandle);", "public void execute(Runnable runnable) {\n executorService.execute(runnable);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ts.get();\n\t\t\t\t}", "@Override\n public void run() {\n //如果本延迟任务已经执行,那么做个标识标注本清楚任务已经执行,然后手按下的时候那里就不会移除本任务\n b = false;\n cleanLine();\n }", "public final void run() {\n\t\ttask();\n\t\t_nextTaskHasRan = true;\n\t}", "ManagementLockObject apply();", "public void run() {\n\n if (cancelUpdate(persistentEntity, entityAccess)) {\n return;\n }\n\n updateEntry(persistentEntity, updateId, e);\n firePostUpdateEvent(persistentEntity, entityAccess);\n }", "@Override\r\n\tpublic void run() {\r\n\t\twhile (!isDeadlock) {\r\n\t\t\tcheckDeadlock();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tstartRecallJobTask();\n\t\t\t\tmHandler.postDelayed(mHandlerTask, INTERVAL);\n\t\t\t}", "protected void afterLockWaitingForBooleanCondition() {\n }", "public void run() {\n\t\tThread t = Thread.currentThread();\n\t\ttry {\n\t\t\tlock.lockInterruptibly();//无论有没有得到锁,该线程都可以被中断\n\t\t\ttry {\n\t\t\t\tSystem.out.println(t.getName() + \" :我得到了锁\");\n\t\t\t\tThread.sleep(10000);\n\t\t\t} finally {\n\t\t\t\tSystem.out.println(\"解锁\");\n\t\t\t\tlock.unlock();\n\t\t\t}\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(t.getName() + \" :我是被中断的线程\");\n\t\t}\n\t}", "@Override\n\t\tpublic void execute() throws InterruptedException {\n\t\t\tturnStyle.acquire();\n\n\t\t\t// vlez na majmin\n\t\t\tstate.enter(this);\n\n\t\t\t//\n\t\t\tmutexLeft.acquire();\n\t\t\tleft++;\n\t\t\t// Samo prviot majmun ja smenuva sostojbata na jazheto\n\t\t\tif (left == 1) {\n\t\t\t\tmutexRope.acquire();\n\t\t\t\tstate.leftPassing();\n\t\t\t}\n\n\t\t\tmutexLeft.release();\n\n\t\t\t// Ko ova se dozvoluva nekoj nareden majmun da dojdi od bilo koja\n\t\t\t// strana\n\t\t\tturnStyle.release();\n\n\t\t\t// Kontrola na brojot na majmuni na jazheto\n\t\t\tonRope.acquire();\n\t\t\tstate.cross(this);\n\t\t\tonRope.release();\n\n\t\t\tmutexLeft.acquire();\n\t\t\tleft--;\n\t\t\tstate.leave(this);\n\t\t\t// Posledniot majmun od redicata koja shto cheka go osloboduva\n\t\t\t// jazheto\n\t\t\tif (left == 0) {\n\t\t\t\tmutexRope.release();\n\t\t\t}\n\n\t\t\tmutexLeft.release();\n\t\t}", "@Override\n public void run() {\n super.run();\n notAtomic.naIncreament();\n }", "protected void execute() {\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, _rumbleValue);\n\t\t_timesRumbled++;\n\t\tSystem.out.println(\"Rumbling \" + _timesRumbled);\n\t}", "@Override\n\tpublic void execute() throws Exception {\n\t\tthis.done = false;\n\t\tthis.error = null;\n\n\t\tint timeout = value(this.timeout, 60000);\n\t\tint interval = value(this.interval, 1000);\n\t\tlong started = System.currentTimeMillis();\n\t\ttry {\n\t\t\tdo {\n\t\t\t\tboolean checked = check();\n\t\t\t\tif (checked || this.done || this.error != null || (System.currentTimeMillis() - started) > timeout) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsynchronized (lock) {\n\t\t\t\t\tlock.wait(interval);\n\t\t\t\t}\n\t\t\t} while (true);\n\n\t\t} catch (Exception x) {\n\t\t\terror = new AssertionError(x);\n\t\t}\n\n\t\tif (error != null) {\n\t\t\tthrow error;\n\t\t}\n\n\t\tif (!done) {\n\t\t\tfail(\"Wait timeout: \" + timeout + \" ms\");\n\t\t}\n\t}", "public void run() {\n Looper.prepare();\n operationRunnableOver = false;\n oper.operate();\n operationRunnableOver = true;\n if (StatusCheckUtil.mediaUpdating > 0) {\n return;\n }\n Message mess = new Message();\n mess.what = Constants.OperationContants.FINISH_OPERATION;\n mess.obj = operatingDialog;\n ((CommonActivity) context).handler.sendMessage(mess);\n\n Looper.loop();\n }", "public void execute(final Runnable r) {\n lock.lock();\n try {\n tasks.add(new Runnable() {\n public void run() {\n try {\n r.run();\n } finally {\n scheduleNext();\n }\n }\n });\n if (active == null) {\n scheduleNext();\n }\n } finally {\n lock.unlock();\n }\n }", "protected void execute() {\n\t\t//execution handled by pid thread\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "public final void run() {\r\n }", "public void run() {\n synchronized(target) { // synchronized block 同步块 //锁住target\n target.call(msg);\n }\n }", "public void runBlocking() {\n if (!this.stopAction.isDone()) {\n this.tryPerformBeforeAction();\n this.tryCreateTaskAssignment();\n this.startLoadGeneration();\n }\n this.stopAction.join();\n this.stopLoadGeneration();\n this.stopFinished.complete(null);\n }", "public final void update(){\n if(waitingToExecute){\n execute();\n waitingToExecute = false;\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tSystem.out.println(\"***ready to get lock1\");\r\n\t\t\tsynchronized (holder.lock1) {\r\n\t\t\t\tnew Thread(new Task3(holder)).start();\r\n\t\t\t\tSystem.out.println(\"***get lock ->\"+Thread.currentThread().getName());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"***Lock1 ready to wait\");\r\n\t\t\t\t\tholder.lock1.wait();\r\n\t\t\t\t\tSystem.out.println(\"***Lock1 get,ready to Exit\");\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "private void async(Runnable runnable) {\n Bukkit.getScheduler().runTaskAsynchronously(KitSQL.getInstance(), runnable);\n }", "public void run() {\n\twhile (true) {\n\t synchronized(_taskQueue) {\n\t\twhile (_taskQueue.size() > 0) {\n\t\t Version v = (Version) _taskQueue.firstElement();\n\t\t _taskQueue.remove(0);\n\t\t executeRemoteTask(v);\n\t\t}\n\t }\n\t try {\n\t\tThread.sleep(_SLEEP_TIME);\n\t } catch (InterruptedException e) {\n\t\tlog(e.toString());\n\t }\n\t}\n }", "@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmainBoard.commitNewValues();\n\t\t\t}", "public void run(){\n //logic to execute in a thread \n }", "public void acquireDeferredLock() {\r\n return;\r\n }", "@Override\r\n\tpublic void run() {\n\t\tthis.get(set);\r\n\t\t\r\n\t}", "public void lock() {\n\t\tlocked = true;\n\t}", "public synchronized void dispatch(Runnable runnable) {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tif (runnable != null) {\n\t\t\tqueue.push(runnable);\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "public void lock(int key);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.e(\"timer\",\"calling\");\n\t\t\t\tMessage message = mHandler.obtainMessage();\n\t\t\t\tmessage.sendToTarget();\n\n\t\t\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\tSystem.out.println(\"updateThread\");\r\n\t\t\thandler.postDelayed(updateThread, 3000);\r\n\t\t}", "public synchronized void a() {\n AppMethodBeat.i(98173);\n Runnable runnable = (Runnable) this.a.poll();\n this.b = runnable;\n if (runnable != null) {\n AsyncTask.sHighThreadExecutor.execute(this.b);\n }\n AppMethodBeat.o(98173);\n }", "public final synchronized void e() {\n this.b.b();\n if (this.d) {\n this.d = false;\n if (this.e) {\n d();\n }\n } else {\n throw new IllegalStateException(\"Already unlocked\");\n }\n }", "@Override\r\n\tpublic void execute() {\n\t\tm_FlywheelSubsystem.shoot();\r\n\t}", "void executeStraight(Runnable task);", "private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }", "@Override\n public boolean execute() throws QVCSException {\n if (!getLogFileImpl().getLogFileHeaderInfo().getLogFileHeader().attributes().getIsCheckLock()) {\n // Do not allow a lock operation on a file that\n // does not support locking.\n throw new QVCSException(getLogFileImpl().getShortWorkfileName() + \" does not support locking.\");\n }\n\n return unlockRevision();\n }", "private void withLock(Lock lock, Runnable task) {\n withLock(lock, () -> {\n task.run();\n return null;\n });\n }", "public abstract void unlock();", "@Override\n public void run() {\n task.run();\n }", "@Override\n\tpublic void run() {\n\t\twhile (!isStoped) {\n\t\t\tdoPause();\n\t\t\tinnerAction();\n\t\t}\n\t}", "public void run() {\n\t\t\t\t\thandler.handle(key);\r\n\t\t\t\t\thandler.onResume(key);\r\n\t\t\t\t}", "@Override\n\tpublic void run() {\n\t\tleftShooter.set(leftPower);\n\t\trightShooter.set(rightPower);\n\t\tfeed(true);\n\t\twhile (!ending.done()) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(20);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tleftShooter.set(0);\n\t\trightShooter.set(0);\n\t\tfeed(false);\n\t\tsynchronized (shooterLock) {\n\t\t\tSystem.out.println(\"Releasing shooter thread\");\n\t\t\tshooterLock = false;\n\t\t}\n\t}", "@Override\n public void run() {\n if (requestsTable.get(userID) == -1) {\n requestsTable.put(userID, 0);\n }\n }", "public void lock() {\n while (true) {\r\n try {\r\n if (super.tryLock(2, TimeUnit.SECONDS))\r\n return;\r\n } catch (InterruptedException e) {\r\n trace(\"caught \" + e);\r\n }\r\n //trace(\"failed to get lock\", 1);\r\n //trace(\"owning thread: \" + getOwner(), 1);\r\n //Thread.dumpStack();\r\n }\r\n }", "private void handleActionOnce() {\n // TODO: Handle action\n try {\n Executors.newScheduledThreadPool(1).submit(new NewsReceiveTask(getApplicationContext() , true));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void run() {\n\t\tdb.i(\"PowerupRunnable commiting spawn\");\n\t\tif (a.fightInProgress) {\n\t\t\t\n\t\t\tpum.calcPowerupSpawn(a);\n\t\t} else {\n\t\t\t// deactivate the auto saving task\n\t\t\tBukkit.getServer().getScheduler().cancelTask(pum.SPAWN_ID);\n\t\t}\n\t}", "public void execute() {\n if(cb) {\n Main.cb.step(Main.cpu.get8BitImm());\n }\n }", "public void execute() throws InterruptedException;", "public void execute(long t) \n\t\t{\n\t\t\t// Call super class\n\t\t\tthat.setPressed(false);\n\t\t\t\n\t\t\t// Reset event flag\n\t\t\tpressReleaseSchedule = false;\n\t\t}", "@Override\n public void run() {\n mRunnable.onPreExecute();\n mExecutor.onPreExecuteCallback(mRunnable);\n }", "public abstract void submit(Runnable runnable);", "protected void execute(Runnable evt) {\n executor.execute(evt);\n }", "@Override\n void invokeOperation() {\n\n AcquiredAccount from, to;\n if (fromIndex < toIndex) {\n from = acquire(fromIndex, this);\n to = acquire(toIndex, this);\n } else {\n to = acquire(toIndex, this);\n from = acquire(fromIndex, this);\n }\n\n if (from != null && to != null) {\n if (amount > from.amount)\n errorMessage = \"Underflow\";\n else if (to.amount + amount > MAX_AMOUNT)\n errorMessage = \"Overflow\";\n else {\n from.newAmount = from.amount - amount;\n to.newAmount = to.amount + amount;\n }\n this.completed = true;\n }\n\n if (fromIndex < toIndex) {\n release(toIndex, this);\n release(fromIndex, this);\n } else {\n release(fromIndex, this);\n release(toIndex, this);\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile (put_flag) {\n\t\t\t\tString path;\n\t\t\t\tif (usbImagePathList.size() > 0) {\n\t\t\t\t\tif (currentImg >= usbImagePathList.size()) {\n\t\t\t\t\t\tcurrentImg = 0;\n\t\t\t\t\t}\n\t\t\t\t\tpath = usbImagePathList.get(currentImg++);\n\t\t\t\t\t//Log.d(TAG,\"the PutImageIntoSdcard thread is running--PutImageIntoSdcard_path---------:\" + path);\n\t\t\t\t\tsynchronizedImage.push(path);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep((int) (4 * ONE_SECOND));\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public void run() {\n // maintenance mode\n if(cluster.isUnderMaintenance()) {\n logger.log(Level.INFO, \"Cluster \" + cluster.getClusterId() + \" is under maintenance mode.\");\n executorThread.schedule(this, confOperatorExecIntervalSec, TimeUnit.SECONDS);\n return;\n }\n // go through all operators and intercept the dispatch calls\n for(OperatorContainer operatorContainer : operatorContainers){\n try {\n operatorContainer.operate(cluster);\n } catch (Exception e){\n logger.log(Level.SEVERE, \"Operator \" + operatorContainer.getOperator().getName() + \" failed to operate\", e);\n }\n }\n\n // compare the shadow list and actual list and determine where the nextIdx is in the shadow queue\n // then swap actual list with shadow list, and clear shadow list\n commitShadowList();\n\n // execute the next action in the actual list\n boolean success = false;\n if(nextIdx < actualList.size()){\n Action nextAction = actualList.get(nextIdx);\n nextAction.setOwner(AUTOMATION_ACTION_OWNER);\n try {\n success = actionEngine.dispatchNow(nextAction);\n if (!success) {\n logger.info(\"Failed to dispatch action \" + nextAction.getName() + \" since there are existing actions in the ActionEngine\");\n } else {\n logger.info(\"Dispatched action: \" + nextAction.getName() + \" on \" + cluster.getClusterId());\n nextIdx++;\n }\n } catch (Exception e) {\n logger.severe(\"Failed to dispatch action \" + nextAction.getName() + \" from operator executor :\" + e);\n nextAction.markFailed(e);\n }\n }\n\n // re-evaluate operators immediately if the actual list is not empty, otherwise run with fix interval\n if(!actualList.isEmpty() && success && nextIdx < actualList.size()){\n executorThread.schedule(this, 0, TimeUnit.SECONDS);\n } else {\n executorThread.schedule(this, confOperatorExecIntervalSec, TimeUnit.SECONDS);\n }\n }", "@Override\n public void run() {\n System.out.println(\"Inside runnable 1\");\n }", "void execute(Runnable job);", "public void execute() {\n\t\tlaunch();\n\t}", "@Override\n public void run() {\n handler.post(Update);\n }", "@Override\n public void run() {\n handler.post(Update);\n }", "@Override\n public void run() {\n handler.post(Update);\n }", "@Override\n public void run() {\n handler.post(Update);\n }", "@Override\n public void run() {\n handler.post(Update);\n }", "@Override\n public void run() {\n handler.post(Update);\n }", "public void executWaiting() {\n for (Runnable action : this.todo) {\n runAction( action );\n }\n }", "public abstract ReentrantLock getLock();" ]
[ "0.67308813", "0.64961296", "0.6491499", "0.64761204", "0.64070374", "0.61926824", "0.61697555", "0.61697555", "0.6082913", "0.6031534", "0.60259956", "0.5935899", "0.5914307", "0.5910938", "0.5896859", "0.5880178", "0.5852316", "0.5840365", "0.5823343", "0.58141893", "0.57874686", "0.5773461", "0.5771848", "0.575015", "0.5748326", "0.5697374", "0.5691114", "0.5691088", "0.5687172", "0.5681031", "0.56768286", "0.5646061", "0.56459343", "0.56186247", "0.558674", "0.5570179", "0.5570035", "0.5563435", "0.55534196", "0.5547988", "0.5537389", "0.55344284", "0.5531366", "0.5526362", "0.5517533", "0.55122185", "0.55116", "0.54993623", "0.5497643", "0.54894066", "0.5484793", "0.5477585", "0.54758173", "0.54724175", "0.54645985", "0.5449193", "0.54438806", "0.5443853", "0.5436777", "0.5433495", "0.54250866", "0.5409703", "0.5404041", "0.5396428", "0.5389689", "0.5384479", "0.53841156", "0.53816086", "0.5381383", "0.53732604", "0.53729576", "0.5370531", "0.5365953", "0.5364713", "0.5361875", "0.5359078", "0.5355598", "0.5353689", "0.5350881", "0.5347803", "0.53429544", "0.53419983", "0.53401357", "0.5331058", "0.53268063", "0.53252196", "0.5318168", "0.5304709", "0.53037506", "0.5302887", "0.52993053", "0.5295744", "0.5294836", "0.5294836", "0.5294836", "0.5294836", "0.5294836", "0.5294836", "0.52934295", "0.52858925" ]
0.5620146
33
Calls the given supplier while holding the lock and returns its value.
public <T> T sync(Supplier<? extends T> supplier) { lock.lock(); try { return supplier.get(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = supplier.get();\n\t\t\treturn this.value;\n\t\t}\n\t}", "public long sync(LongSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsLong();\n } finally {\n lock.unlock();\n } \n }", "public int sync(IntSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsInt();\n } finally {\n lock.unlock();\n } \n }", "public V getAndUpdate(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tfinal V prev = this.value;\n\t\t\tthis.value = supplier.get();\n\t\t\treturn prev;\n\t\t}\n\t}", "public double sync(DoubleSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsDouble();\n } finally {\n lock.unlock();\n } \n }", "public boolean sync(BooleanSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsBoolean();\n } finally {\n lock.unlock();\n } \n }", "private <T> T withLock(Lock lock, Supplier<T> source) {\n lock.lock();\n try {\n locked(lock);\n return source.get();\n } finally {\n lock.unlock();\n }\n }", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "Supplier<Number> getSupplier();", "private static <T> Supplier<T> memoize(Supplier<T> supplier) {\n return null;\n }", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "public Object get() {\n Supplier supplier = this.delegate;\n synchronized (supplier) {\n Supplier supplier2 = this.delegate;\n return supplier2.get();\n }\n }", "@Override\n public V get(final K name, final Supplier<V> supplier)\n {\n V value = get(name);\n\n if (value == null)\n {\n value = supplier.get();\n put(name, value);\n }\n\n return value;\n }", "@Override\n public T get(int key) {\n T value = _map.get(key, noFound);\n if (value == noFound) {\n value = _supplier.apply(key);\n if (value == noFound) {\n throw new UnsupportedOperationException(\"Invalid return for supplier function\");\n }\n _map.put(key, value);\n }\n\n return value;\n }", "public String getSupplier() {\n return supplier;\n }", "private static void useSupplier(Supplier<Integer> expression){}", "static <T> EagerFutureStream<T> react(Supplier<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(value);\n\t}", "@Override\n @ReturnsLock(\"L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void setSupplier(Supplier<Number> supplier);", "@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}", "@Override\n @ReturnsLock(\"x:M\")\n public Object get(final C x, final C y) {\n return lock;\n }", "long getAndSet(long newValue);", "@Override\n @ReturnsLock(\"this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "T getOrElse(Supplier<T> fn);", "public <S> S notInStateIgnoreOtherThreads(T forbidden, Supplier<S> supplier) {\n synchronized (this) {\n rethrowFailure();\n if (currentTarget == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \" but is in state \" + this.state + \" and transitioning to \" + currentTarget + \".\");\n }\n if (this.state == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \".\");\n }\n }\n try {\n return supplier.get();\n } catch (Throwable t) {\n synchronized (this) {\n if (failure == null) {\n failure = ExecutionResult.failed(t);\n }\n }\n throw UncheckedException.throwAsUncheckedException(t);\n }\n }", "public abstract ReentrantLock getLock();", "public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\telse if (cause instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) cause;\n\t\t\telse if (cause instanceof Error)\n\t\t\t\tthrow (Error) cause;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Unexpected error loading item into cache: \" + cause.getMessage(), cause);\n\t\t}\n\t}", "@Override\n @ReturnsLock(\"N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "@NotNull\n public static <T> Lazy<T> createSingleThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new SingleThreadedLazy<>(supplier);\n }", "@Override\n public Object get() throws InterruptedException, ExecutionException {\n return getSafely();\n }", "public static <T> ReactiveStateMachine<T> supply(Supplier<T> supplier) {\n\t\treturn supply(new ReactiveValue<>(new ReactiveBlockingException(), true), supplier);\n\t}", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "private Call(ThrowingSupplier<T> fSupplier)\n\t{\n\t\tthis.fSupplier = fSupplier;\n\t}", "public Lock getLock();", "@Test(timeOut = 30_000)\n public void testValueLoaderWithLocking() throws Exception {\n //given\n final SpringRemoteCacheManager springRemoteCacheManager = new SpringRemoteCacheManager(remoteCacheManager);\n final SpringCache cache = springRemoteCacheManager.getCache(TEST_CACHE_NAME);\n\n CountDownLatch waitUntilThread1LocksValueGetter = new CountDownLatch(1);\n\n //when\n Future<String> thread1 = fork(() -> cache.get(\"test\", () -> {\n waitUntilThread1LocksValueGetter.countDown();\n// /TimeUnit.MILLISECONDS.sleep(10);\n return \"thread1\";\n }));\n\n Future<String> thread2 = fork(() -> {\n waitUntilThread1LocksValueGetter.await();\n return cache.get(\"test\", () -> \"thread2\");\n });\n\n String valueObtainedByThread1 = thread1.get();\n String valueObtainedByThread2 = thread2.get();\n\n Cache.ValueWrapper valueAfterGetterIsDone = cache.get(\"test\");\n\n //then\n assertNotNull(valueAfterGetterIsDone);\n assertEquals(\"thread1\", valueAfterGetterIsDone.get());\n assertEquals(\"thread1\", valueObtainedByThread1);\n assertEquals(\"thread1\", valueObtainedByThread2);\n }", "public static Object wrappedSupplier(Supplier<String> s) {\n return new LazySupplierToString(s);\n }", "@Override\n @ReturnsLock(\"x:L\")\n public Object get(final C x, final C y) {\n return x;\n }", "public static Response process(Supplier<Object> supplier) {\n try {\n return process(supplier.get());\n } catch (Exception e) {\n log.error(\"failed to process request\", e);\n return Response.serverError().build();\n }\n }", "@Override\n @ReturnsLock(\"Bad4c.this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void lockGranted(LockHandle lockHandle);", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "@Override\n @ReturnsLock(\"a:M\")\n public Object get(final C a, final C b) {\n return lock;\n }", "interface SupplierInterfaceDemo<T> {\n public T get();\n }", "@Override\n @ReturnsLock(\"test.formals.C:N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "public Long getSupplierId() {\n\t\treturn supplierId;\n\t}", "public static <T, R> Supplier<R> map(Supplier<T> supplier, Function<T, R> function) {\n\t\treturn () -> function.apply(supplier.get());\n\t}", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public void acquireDeferredLock() {\r\n return;\r\n }", "public void update(SupplierCard supplier) {\n supplier_dao.update(supplier);\n }", "@Override\n @ReturnsLock(\"a:L\")\n public Object get(final C a, final C b) {\n return a;\n }", "public T pollUnsafe();", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static <T> Call<T> of(ThrowingSupplier<T> fSupplier)\n\t{\n\t\treturn new Call<>(fSupplier);\n\t}", "public static <R, E extends Exception> Supplier<R> rethrowFromSupplier(SupplierWithExceptions<R, E> supplier) throws E {\n return () -> {\n try {\n return supplier.get();\n } catch (Exception e) {\n throwActualException(e);\n return null;\n }\n };\n }", "V get(K key, Callable<V> source, boolean updateStats);", "public Integer getSupplierId() {\n return supplierId;\n }", "public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}", "public void saveSupplier(Supplier supplier) throws DataAccessException {\r\n getHibernateTemplate().saveOrUpdate(supplier);\r\n }", "public static void m1(Supplier<Double> supplier) {\n\t\tSystem.out.println(Math.sqrt(supplier.get()));\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier) {\r\n\t\treturn singleton(supplier, scheduler());\r\n\t}", "final public Lock test_get_lock() {\r\n\t\treturn lock_;\r\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.next(supplier.invoke());\r\n\t\t\t\t\t\tobserver.finish();\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}", "@Nullable\n\tfinal T blockingGet() {\n\t\tif (Schedulers.isInNonBlockingThread()) {\n\t\t\tthrow new IllegalStateException(\"block()/blockFirst()/blockLast() are blocking, which is not supported in thread \" + Thread.currentThread().getName());\n\t\t}\n\t\tif (getCount() != 0) {\n\t\t\ttry {\n\t\t\t\tawait();\n\t\t\t}\n\t\t\tcatch (InterruptedException ex) {\n\t\t\t\tdispose();\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tthrow Exceptions.propagate(ex);\n\t\t\t}\n\t\t}\n\n\t\tThrowable e = error;\n\t\tif (e != null) {\n\t\t\tRuntimeException re = Exceptions.propagate(e);\n\t\t\t//this is ok, as re is always a new non-singleton instance\n\t\t\tre.addSuppressed(new Exception(\"#block terminated with an error\"));\n\t\t\tthrow re;\n\t\t}\n\t\treturn value;\n\t}", "public Integer getSupplierid() {\r\n return supplierid;\r\n }", "Thread getLocker();", "static Defaulable create(Supplier<Defaulable> supplier) {\n return supplier.get();\n }", "public synchronized void fulfill(Supplier<T> operation) {\n try {\n T value = operation.get();\n resolve(value);\n } catch (Exception e) {\n reject(e);\n }\n }", "Supplier findSupplierById(Integer id)throws SQLException;", "@FunctionalInterface\npublic interface CommonSupplier<T> {\n\n T get() throws InternalSystemException;\n}", "public boolean acquireLock() {\n ValueOperations<String, String> valueOps = redisTemplate.opsForValue();\n boolean result = valueOps.setIfAbsent(lockKey, \"1\");\n // assume that : result == true means fetch the lock.else other server fetch the lock\n if (result == true) {\n long lockLiveTime = Utils.lockKeyLivetimeInMillisecond.get();\n valueOps.set(lockKey, \"2\", lockLiveTime, TimeUnit.MILLISECONDS);\n LOGGER.info(\"fetch redis distribution_lock [{}] suceess,set lock live [{}]ms \", lockKey, lockLiveTime);\n fetch = true;\n }\n return result;\n }", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "void lock();", "public Future<Integer> getValue() {\n GetValue getValue = new GetValue(this.generator);\n return this.scheduled.schedule(getValue, this.delay, TimeUnit.MILLISECONDS);\n }", "void acquireReadLock(E key);", "long get();", "boolean isValueLocked();", "@NotNull\n public static <T> Lazy<T> createMultiThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new MultiThreadedLazy<>(supplier);\n }", "public interface LockFactory {\n\n /**\n * Obtain a lock for a resource identified by given {@code identifier}. Depending on the strategy, this\n * method may return immediately or block until a lock is held.\n *\n * @param identifier the identifier of the resource to obtain a lock for.\n * @return a handle to release the lock.\n */\n Lock obtainLock(String identifier);\n}", "public SimpleLock readLock() {\n\n\t\treturn readerLock;\n\t}", "<T> T get(String key, Callable<? extends T> valueLoader);", "void softPut(String key, Do.Make<Object> lazyValue);", "public static RegistryObject<Block> register(Supplier<Block> supplier, @Nonnull String name, @Nullable Item.Properties properties) {\n RegistryObject<Block> block = BLOCK_DEFERRED.register(name, supplier);\n\n if (properties == null) {\n AquaItems.register(() -> new BlockItem(block.get(), new Item.Properties()), name);\n } else {\n AquaItems.registerWithTab(() -> new BlockItem(block.get(), properties), name);\n }\n\n return block;\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "public Object getLock() {\n return dataLock;\n }", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "@SuppressWarnings(\"unchecked\")\n public <V> V fetchFromSmallCache(String key, Supplier<V> valueComputer) {\n return (V) LOCAL_SMALL_CACHE.get(key, ignored -> valueComputer.get());\n }", "@SafeVarargs\n public final <T> T of(Supplier<T>... suppliers) {\n return suppliers[random.nextInt(0, suppliers.length - 1)].get();\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public E poll() {\n try {\n return b(2, (Long) null, (TimeUnit) null);\n } catch (InterruptedException unused) {\n return null;\n }\n }", "@Override\n public V getValue() {\n Object object = this.h;\n synchronized (object) {\n return this.a().getValue();\n }\n }", "public CacheKey acquireDeferredLock(Vector primaryKey) {\n //check if the key is already in the hashtable\n CacheKey key = null;\n\n //cache key should not be changed in other threads during the lock acquire operation\n synchronized (this) {\n // bug 3094912 get must be synchronized as well\n key = getCacheKey(primaryKey);\n if (key == null) {\n //create a chachKey and lock the object\n CacheKey cacheKey = createCacheKey(primaryKey, null, null);\n cacheKey.acquireDeferredLock();\n put(cacheKey);\n return cacheKey;\n }\n }\n\n // code removed as key will never be null here, either one will be found or one created\n key.acquireDeferredLock();\n\n return key;\n }", "ManagementLockObject apply();", "public static <V> V executeIfLockAlreadyNotAcquired(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n final Lock lock = getLock(uniqueLockResource);\n if (lock.tryLock()) {\n return LockUtils.executeInLock(uniqueLockResource, \"\", operationName, lock, callable);\n }\n throw new Exception(\"Lock on resource \" + uniqueLockResource + \" is already acquired\");\n }", "public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }", "@Override\n public T get() {\n if (!initialized) {\n synchronized (this) {\n if (!initialized) {\n T t = delegate.get();\n value = t;\n initialized = true;\n return t;\n }\n }\n }\n return value;\n }", "Lock getLockByKey(String key);", "public void produce(@Nullable V value) {\n synchronized (LOCK) {\n // Look for a non-cancelled future\n while (myWaitingFutures.size() >= 1) {\n SettableFuture<V> future = myWaitingFutures.remove();\n if (future.set(value)) {\n return;\n }\n }\n\n // If none found, enqueue the value for later\n myValues.add(new Entry(value));\n }\n }", "@Override\n public Supplier<List<Integer>> supplier() {\n // constructor method reference\n // for an Object array use: Object[]::new\n return ArrayList::new;\n }", "@Override\n\t\tpublic ThreadSynchroniser createThreadSynchroniser() {\n\t\t\tthrow new IllegalStateException(\"Mock \" + ThreadSynchroniser.class.getSimpleName() + \" for \"\n\t\t\t\t\t+ SupplierTypeBuilder.class.getSimpleName() + \" can not be used\");\n\t\t}", "public void releaseDeferredLock() {\r\n return;\r\n }" ]
[ "0.7600832", "0.7576708", "0.7425843", "0.72457576", "0.723251", "0.6896585", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.53738576", "0.5347316", "0.53451943", "0.5310429", "0.52869165", "0.5233565", "0.5213117", "0.52059144", "0.51961786", "0.5188371", "0.5169791", "0.5162704", "0.5109756", "0.5104329", "0.5083242", "0.5074174", "0.50625455", "0.50539637", "0.50322306", "0.50290126", "0.50125736", "0.5008299", "0.49717885", "0.4967099", "0.49493304", "0.49295506", "0.49276632", "0.49214804", "0.48948115", "0.48916915", "0.48808655", "0.4875347", "0.486228", "0.48457915", "0.4845562", "0.48195514", "0.48154867", "0.48051566", "0.47938445", "0.47914174", "0.47805354", "0.4739878", "0.47292334", "0.47289276", "0.4718585", "0.47172144", "0.4716952", "0.47108048", "0.47002485", "0.4698753", "0.468732", "0.4678062", "0.4673677", "0.46699935", "0.4664385", "0.46631667", "0.46621343", "0.46583268", "0.4657281", "0.46518713", "0.46480954", "0.46372905", "0.46322268", "0.46315327", "0.4622078", "0.46121547", "0.46082884", "0.46047932", "0.46001127", "0.45631748", "0.45626807", "0.4559967", "0.45559788", "0.45529595", "0.45477453", "0.45334598", "0.4532637", "0.4520813", "0.45193672", "0.45108756" ]
0.782301
0
Calls the given supplier while holding the lock and returns its value.
public int sync(IntSupplier supplier) { lock.lock(); try { return supplier.getAsInt(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = supplier.get();\n\t\t\treturn this.value;\n\t\t}\n\t}", "public long sync(LongSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsLong();\n } finally {\n lock.unlock();\n } \n }", "public V getAndUpdate(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tfinal V prev = this.value;\n\t\t\tthis.value = supplier.get();\n\t\t\treturn prev;\n\t\t}\n\t}", "public double sync(DoubleSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsDouble();\n } finally {\n lock.unlock();\n } \n }", "public boolean sync(BooleanSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsBoolean();\n } finally {\n lock.unlock();\n } \n }", "private <T> T withLock(Lock lock, Supplier<T> source) {\n lock.lock();\n try {\n locked(lock);\n return source.get();\n } finally {\n lock.unlock();\n }\n }", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "Supplier<Number> getSupplier();", "private static <T> Supplier<T> memoize(Supplier<T> supplier) {\n return null;\n }", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "public Object get() {\n Supplier supplier = this.delegate;\n synchronized (supplier) {\n Supplier supplier2 = this.delegate;\n return supplier2.get();\n }\n }", "@Override\n public V get(final K name, final Supplier<V> supplier)\n {\n V value = get(name);\n\n if (value == null)\n {\n value = supplier.get();\n put(name, value);\n }\n\n return value;\n }", "@Override\n public T get(int key) {\n T value = _map.get(key, noFound);\n if (value == noFound) {\n value = _supplier.apply(key);\n if (value == noFound) {\n throw new UnsupportedOperationException(\"Invalid return for supplier function\");\n }\n _map.put(key, value);\n }\n\n return value;\n }", "public String getSupplier() {\n return supplier;\n }", "private static void useSupplier(Supplier<Integer> expression){}", "static <T> EagerFutureStream<T> react(Supplier<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(value);\n\t}", "@Override\n @ReturnsLock(\"L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void setSupplier(Supplier<Number> supplier);", "@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}", "@Override\n @ReturnsLock(\"x:M\")\n public Object get(final C x, final C y) {\n return lock;\n }", "long getAndSet(long newValue);", "@Override\n @ReturnsLock(\"this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "T getOrElse(Supplier<T> fn);", "public <S> S notInStateIgnoreOtherThreads(T forbidden, Supplier<S> supplier) {\n synchronized (this) {\n rethrowFailure();\n if (currentTarget == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \" but is in state \" + this.state + \" and transitioning to \" + currentTarget + \".\");\n }\n if (this.state == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \".\");\n }\n }\n try {\n return supplier.get();\n } catch (Throwable t) {\n synchronized (this) {\n if (failure == null) {\n failure = ExecutionResult.failed(t);\n }\n }\n throw UncheckedException.throwAsUncheckedException(t);\n }\n }", "public abstract ReentrantLock getLock();", "public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\telse if (cause instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) cause;\n\t\t\telse if (cause instanceof Error)\n\t\t\t\tthrow (Error) cause;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Unexpected error loading item into cache: \" + cause.getMessage(), cause);\n\t\t}\n\t}", "@Override\n @ReturnsLock(\"N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "@NotNull\n public static <T> Lazy<T> createSingleThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new SingleThreadedLazy<>(supplier);\n }", "@Override\n public Object get() throws InterruptedException, ExecutionException {\n return getSafely();\n }", "public static <T> ReactiveStateMachine<T> supply(Supplier<T> supplier) {\n\t\treturn supply(new ReactiveValue<>(new ReactiveBlockingException(), true), supplier);\n\t}", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "private Call(ThrowingSupplier<T> fSupplier)\n\t{\n\t\tthis.fSupplier = fSupplier;\n\t}", "public Lock getLock();", "@Test(timeOut = 30_000)\n public void testValueLoaderWithLocking() throws Exception {\n //given\n final SpringRemoteCacheManager springRemoteCacheManager = new SpringRemoteCacheManager(remoteCacheManager);\n final SpringCache cache = springRemoteCacheManager.getCache(TEST_CACHE_NAME);\n\n CountDownLatch waitUntilThread1LocksValueGetter = new CountDownLatch(1);\n\n //when\n Future<String> thread1 = fork(() -> cache.get(\"test\", () -> {\n waitUntilThread1LocksValueGetter.countDown();\n// /TimeUnit.MILLISECONDS.sleep(10);\n return \"thread1\";\n }));\n\n Future<String> thread2 = fork(() -> {\n waitUntilThread1LocksValueGetter.await();\n return cache.get(\"test\", () -> \"thread2\");\n });\n\n String valueObtainedByThread1 = thread1.get();\n String valueObtainedByThread2 = thread2.get();\n\n Cache.ValueWrapper valueAfterGetterIsDone = cache.get(\"test\");\n\n //then\n assertNotNull(valueAfterGetterIsDone);\n assertEquals(\"thread1\", valueAfterGetterIsDone.get());\n assertEquals(\"thread1\", valueObtainedByThread1);\n assertEquals(\"thread1\", valueObtainedByThread2);\n }", "public static Object wrappedSupplier(Supplier<String> s) {\n return new LazySupplierToString(s);\n }", "@Override\n @ReturnsLock(\"x:L\")\n public Object get(final C x, final C y) {\n return x;\n }", "public static Response process(Supplier<Object> supplier) {\n try {\n return process(supplier.get());\n } catch (Exception e) {\n log.error(\"failed to process request\", e);\n return Response.serverError().build();\n }\n }", "@Override\n @ReturnsLock(\"Bad4c.this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void lockGranted(LockHandle lockHandle);", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "@Override\n @ReturnsLock(\"a:M\")\n public Object get(final C a, final C b) {\n return lock;\n }", "interface SupplierInterfaceDemo<T> {\n public T get();\n }", "@Override\n @ReturnsLock(\"test.formals.C:N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "public Long getSupplierId() {\n\t\treturn supplierId;\n\t}", "public static <T, R> Supplier<R> map(Supplier<T> supplier, Function<T, R> function) {\n\t\treturn () -> function.apply(supplier.get());\n\t}", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public void acquireDeferredLock() {\r\n return;\r\n }", "public void update(SupplierCard supplier) {\n supplier_dao.update(supplier);\n }", "@Override\n @ReturnsLock(\"a:L\")\n public Object get(final C a, final C b) {\n return a;\n }", "public T pollUnsafe();", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static <T> Call<T> of(ThrowingSupplier<T> fSupplier)\n\t{\n\t\treturn new Call<>(fSupplier);\n\t}", "public static <R, E extends Exception> Supplier<R> rethrowFromSupplier(SupplierWithExceptions<R, E> supplier) throws E {\n return () -> {\n try {\n return supplier.get();\n } catch (Exception e) {\n throwActualException(e);\n return null;\n }\n };\n }", "V get(K key, Callable<V> source, boolean updateStats);", "public Integer getSupplierId() {\n return supplierId;\n }", "public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}", "public void saveSupplier(Supplier supplier) throws DataAccessException {\r\n getHibernateTemplate().saveOrUpdate(supplier);\r\n }", "public static void m1(Supplier<Double> supplier) {\n\t\tSystem.out.println(Math.sqrt(supplier.get()));\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier) {\r\n\t\treturn singleton(supplier, scheduler());\r\n\t}", "final public Lock test_get_lock() {\r\n\t\treturn lock_;\r\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.next(supplier.invoke());\r\n\t\t\t\t\t\tobserver.finish();\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}", "@Nullable\n\tfinal T blockingGet() {\n\t\tif (Schedulers.isInNonBlockingThread()) {\n\t\t\tthrow new IllegalStateException(\"block()/blockFirst()/blockLast() are blocking, which is not supported in thread \" + Thread.currentThread().getName());\n\t\t}\n\t\tif (getCount() != 0) {\n\t\t\ttry {\n\t\t\t\tawait();\n\t\t\t}\n\t\t\tcatch (InterruptedException ex) {\n\t\t\t\tdispose();\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tthrow Exceptions.propagate(ex);\n\t\t\t}\n\t\t}\n\n\t\tThrowable e = error;\n\t\tif (e != null) {\n\t\t\tRuntimeException re = Exceptions.propagate(e);\n\t\t\t//this is ok, as re is always a new non-singleton instance\n\t\t\tre.addSuppressed(new Exception(\"#block terminated with an error\"));\n\t\t\tthrow re;\n\t\t}\n\t\treturn value;\n\t}", "public Integer getSupplierid() {\r\n return supplierid;\r\n }", "Thread getLocker();", "static Defaulable create(Supplier<Defaulable> supplier) {\n return supplier.get();\n }", "public synchronized void fulfill(Supplier<T> operation) {\n try {\n T value = operation.get();\n resolve(value);\n } catch (Exception e) {\n reject(e);\n }\n }", "Supplier findSupplierById(Integer id)throws SQLException;", "@FunctionalInterface\npublic interface CommonSupplier<T> {\n\n T get() throws InternalSystemException;\n}", "public boolean acquireLock() {\n ValueOperations<String, String> valueOps = redisTemplate.opsForValue();\n boolean result = valueOps.setIfAbsent(lockKey, \"1\");\n // assume that : result == true means fetch the lock.else other server fetch the lock\n if (result == true) {\n long lockLiveTime = Utils.lockKeyLivetimeInMillisecond.get();\n valueOps.set(lockKey, \"2\", lockLiveTime, TimeUnit.MILLISECONDS);\n LOGGER.info(\"fetch redis distribution_lock [{}] suceess,set lock live [{}]ms \", lockKey, lockLiveTime);\n fetch = true;\n }\n return result;\n }", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "void lock();", "public Future<Integer> getValue() {\n GetValue getValue = new GetValue(this.generator);\n return this.scheduled.schedule(getValue, this.delay, TimeUnit.MILLISECONDS);\n }", "void acquireReadLock(E key);", "long get();", "boolean isValueLocked();", "@NotNull\n public static <T> Lazy<T> createMultiThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new MultiThreadedLazy<>(supplier);\n }", "public interface LockFactory {\n\n /**\n * Obtain a lock for a resource identified by given {@code identifier}. Depending on the strategy, this\n * method may return immediately or block until a lock is held.\n *\n * @param identifier the identifier of the resource to obtain a lock for.\n * @return a handle to release the lock.\n */\n Lock obtainLock(String identifier);\n}", "public SimpleLock readLock() {\n\n\t\treturn readerLock;\n\t}", "<T> T get(String key, Callable<? extends T> valueLoader);", "void softPut(String key, Do.Make<Object> lazyValue);", "public static RegistryObject<Block> register(Supplier<Block> supplier, @Nonnull String name, @Nullable Item.Properties properties) {\n RegistryObject<Block> block = BLOCK_DEFERRED.register(name, supplier);\n\n if (properties == null) {\n AquaItems.register(() -> new BlockItem(block.get(), new Item.Properties()), name);\n } else {\n AquaItems.registerWithTab(() -> new BlockItem(block.get(), properties), name);\n }\n\n return block;\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "public Object getLock() {\n return dataLock;\n }", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "@SuppressWarnings(\"unchecked\")\n public <V> V fetchFromSmallCache(String key, Supplier<V> valueComputer) {\n return (V) LOCAL_SMALL_CACHE.get(key, ignored -> valueComputer.get());\n }", "@SafeVarargs\n public final <T> T of(Supplier<T>... suppliers) {\n return suppliers[random.nextInt(0, suppliers.length - 1)].get();\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public E poll() {\n try {\n return b(2, (Long) null, (TimeUnit) null);\n } catch (InterruptedException unused) {\n return null;\n }\n }", "@Override\n public V getValue() {\n Object object = this.h;\n synchronized (object) {\n return this.a().getValue();\n }\n }", "public CacheKey acquireDeferredLock(Vector primaryKey) {\n //check if the key is already in the hashtable\n CacheKey key = null;\n\n //cache key should not be changed in other threads during the lock acquire operation\n synchronized (this) {\n // bug 3094912 get must be synchronized as well\n key = getCacheKey(primaryKey);\n if (key == null) {\n //create a chachKey and lock the object\n CacheKey cacheKey = createCacheKey(primaryKey, null, null);\n cacheKey.acquireDeferredLock();\n put(cacheKey);\n return cacheKey;\n }\n }\n\n // code removed as key will never be null here, either one will be found or one created\n key.acquireDeferredLock();\n\n return key;\n }", "ManagementLockObject apply();", "public static <V> V executeIfLockAlreadyNotAcquired(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n final Lock lock = getLock(uniqueLockResource);\n if (lock.tryLock()) {\n return LockUtils.executeInLock(uniqueLockResource, \"\", operationName, lock, callable);\n }\n throw new Exception(\"Lock on resource \" + uniqueLockResource + \" is already acquired\");\n }", "public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }", "@Override\n public T get() {\n if (!initialized) {\n synchronized (this) {\n if (!initialized) {\n T t = delegate.get();\n value = t;\n initialized = true;\n return t;\n }\n }\n }\n return value;\n }", "Lock getLockByKey(String key);", "public void produce(@Nullable V value) {\n synchronized (LOCK) {\n // Look for a non-cancelled future\n while (myWaitingFutures.size() >= 1) {\n SettableFuture<V> future = myWaitingFutures.remove();\n if (future.set(value)) {\n return;\n }\n }\n\n // If none found, enqueue the value for later\n myValues.add(new Entry(value));\n }\n }", "@Override\n public Supplier<List<Integer>> supplier() {\n // constructor method reference\n // for an Object array use: Object[]::new\n return ArrayList::new;\n }", "@Override\n\t\tpublic ThreadSynchroniser createThreadSynchroniser() {\n\t\t\tthrow new IllegalStateException(\"Mock \" + ThreadSynchroniser.class.getSimpleName() + \" for \"\n\t\t\t\t\t+ SupplierTypeBuilder.class.getSimpleName() + \" can not be used\");\n\t\t}", "public void releaseDeferredLock() {\r\n return;\r\n }" ]
[ "0.782301", "0.7600832", "0.7576708", "0.72457576", "0.723251", "0.6896585", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.53738576", "0.5347316", "0.53451943", "0.5310429", "0.52869165", "0.5233565", "0.5213117", "0.52059144", "0.51961786", "0.5188371", "0.5169791", "0.5162704", "0.5109756", "0.5104329", "0.5083242", "0.5074174", "0.50625455", "0.50539637", "0.50322306", "0.50290126", "0.50125736", "0.5008299", "0.49717885", "0.4967099", "0.49493304", "0.49295506", "0.49276632", "0.49214804", "0.48948115", "0.48916915", "0.48808655", "0.4875347", "0.486228", "0.48457915", "0.4845562", "0.48195514", "0.48154867", "0.48051566", "0.47938445", "0.47914174", "0.47805354", "0.4739878", "0.47292334", "0.47289276", "0.4718585", "0.47172144", "0.4716952", "0.47108048", "0.47002485", "0.4698753", "0.468732", "0.4678062", "0.4673677", "0.46699935", "0.4664385", "0.46631667", "0.46621343", "0.46583268", "0.4657281", "0.46518713", "0.46480954", "0.46372905", "0.46322268", "0.46315327", "0.4622078", "0.46121547", "0.46082884", "0.46047932", "0.46001127", "0.45631748", "0.45626807", "0.4559967", "0.45559788", "0.45529595", "0.45477453", "0.45334598", "0.4532637", "0.4520813", "0.45193672", "0.45108756" ]
0.7425843
3
Calls the given supplier while holding the lock and returns its value.
public boolean sync(BooleanSupplier supplier) { lock.lock(); try { return supplier.getAsBoolean(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = supplier.get();\n\t\t\treturn this.value;\n\t\t}\n\t}", "public long sync(LongSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsLong();\n } finally {\n lock.unlock();\n } \n }", "public int sync(IntSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsInt();\n } finally {\n lock.unlock();\n } \n }", "public V getAndUpdate(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tfinal V prev = this.value;\n\t\t\tthis.value = supplier.get();\n\t\t\treturn prev;\n\t\t}\n\t}", "public double sync(DoubleSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsDouble();\n } finally {\n lock.unlock();\n } \n }", "private <T> T withLock(Lock lock, Supplier<T> source) {\n lock.lock();\n try {\n locked(lock);\n return source.get();\n } finally {\n lock.unlock();\n }\n }", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "Supplier<Number> getSupplier();", "private static <T> Supplier<T> memoize(Supplier<T> supplier) {\n return null;\n }", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "public Object get() {\n Supplier supplier = this.delegate;\n synchronized (supplier) {\n Supplier supplier2 = this.delegate;\n return supplier2.get();\n }\n }", "@Override\n public V get(final K name, final Supplier<V> supplier)\n {\n V value = get(name);\n\n if (value == null)\n {\n value = supplier.get();\n put(name, value);\n }\n\n return value;\n }", "@Override\n public T get(int key) {\n T value = _map.get(key, noFound);\n if (value == noFound) {\n value = _supplier.apply(key);\n if (value == noFound) {\n throw new UnsupportedOperationException(\"Invalid return for supplier function\");\n }\n _map.put(key, value);\n }\n\n return value;\n }", "public String getSupplier() {\n return supplier;\n }", "private static void useSupplier(Supplier<Integer> expression){}", "static <T> EagerFutureStream<T> react(Supplier<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(value);\n\t}", "@Override\n @ReturnsLock(\"L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void setSupplier(Supplier<Number> supplier);", "@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}", "@Override\n @ReturnsLock(\"x:M\")\n public Object get(final C x, final C y) {\n return lock;\n }", "long getAndSet(long newValue);", "@Override\n @ReturnsLock(\"this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "T getOrElse(Supplier<T> fn);", "public <S> S notInStateIgnoreOtherThreads(T forbidden, Supplier<S> supplier) {\n synchronized (this) {\n rethrowFailure();\n if (currentTarget == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \" but is in state \" + this.state + \" and transitioning to \" + currentTarget + \".\");\n }\n if (this.state == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \".\");\n }\n }\n try {\n return supplier.get();\n } catch (Throwable t) {\n synchronized (this) {\n if (failure == null) {\n failure = ExecutionResult.failed(t);\n }\n }\n throw UncheckedException.throwAsUncheckedException(t);\n }\n }", "public abstract ReentrantLock getLock();", "public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\telse if (cause instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) cause;\n\t\t\telse if (cause instanceof Error)\n\t\t\t\tthrow (Error) cause;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Unexpected error loading item into cache: \" + cause.getMessage(), cause);\n\t\t}\n\t}", "@Override\n @ReturnsLock(\"N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "@NotNull\n public static <T> Lazy<T> createSingleThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new SingleThreadedLazy<>(supplier);\n }", "@Override\n public Object get() throws InterruptedException, ExecutionException {\n return getSafely();\n }", "public static <T> ReactiveStateMachine<T> supply(Supplier<T> supplier) {\n\t\treturn supply(new ReactiveValue<>(new ReactiveBlockingException(), true), supplier);\n\t}", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "private Call(ThrowingSupplier<T> fSupplier)\n\t{\n\t\tthis.fSupplier = fSupplier;\n\t}", "public Lock getLock();", "@Test(timeOut = 30_000)\n public void testValueLoaderWithLocking() throws Exception {\n //given\n final SpringRemoteCacheManager springRemoteCacheManager = new SpringRemoteCacheManager(remoteCacheManager);\n final SpringCache cache = springRemoteCacheManager.getCache(TEST_CACHE_NAME);\n\n CountDownLatch waitUntilThread1LocksValueGetter = new CountDownLatch(1);\n\n //when\n Future<String> thread1 = fork(() -> cache.get(\"test\", () -> {\n waitUntilThread1LocksValueGetter.countDown();\n// /TimeUnit.MILLISECONDS.sleep(10);\n return \"thread1\";\n }));\n\n Future<String> thread2 = fork(() -> {\n waitUntilThread1LocksValueGetter.await();\n return cache.get(\"test\", () -> \"thread2\");\n });\n\n String valueObtainedByThread1 = thread1.get();\n String valueObtainedByThread2 = thread2.get();\n\n Cache.ValueWrapper valueAfterGetterIsDone = cache.get(\"test\");\n\n //then\n assertNotNull(valueAfterGetterIsDone);\n assertEquals(\"thread1\", valueAfterGetterIsDone.get());\n assertEquals(\"thread1\", valueObtainedByThread1);\n assertEquals(\"thread1\", valueObtainedByThread2);\n }", "public static Object wrappedSupplier(Supplier<String> s) {\n return new LazySupplierToString(s);\n }", "@Override\n @ReturnsLock(\"x:L\")\n public Object get(final C x, final C y) {\n return x;\n }", "public static Response process(Supplier<Object> supplier) {\n try {\n return process(supplier.get());\n } catch (Exception e) {\n log.error(\"failed to process request\", e);\n return Response.serverError().build();\n }\n }", "@Override\n @ReturnsLock(\"Bad4c.this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void lockGranted(LockHandle lockHandle);", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "@Override\n @ReturnsLock(\"a:M\")\n public Object get(final C a, final C b) {\n return lock;\n }", "interface SupplierInterfaceDemo<T> {\n public T get();\n }", "@Override\n @ReturnsLock(\"test.formals.C:N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "public Long getSupplierId() {\n\t\treturn supplierId;\n\t}", "public static <T, R> Supplier<R> map(Supplier<T> supplier, Function<T, R> function) {\n\t\treturn () -> function.apply(supplier.get());\n\t}", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public void acquireDeferredLock() {\r\n return;\r\n }", "public void update(SupplierCard supplier) {\n supplier_dao.update(supplier);\n }", "@Override\n @ReturnsLock(\"a:L\")\n public Object get(final C a, final C b) {\n return a;\n }", "public T pollUnsafe();", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static <T> Call<T> of(ThrowingSupplier<T> fSupplier)\n\t{\n\t\treturn new Call<>(fSupplier);\n\t}", "public static <R, E extends Exception> Supplier<R> rethrowFromSupplier(SupplierWithExceptions<R, E> supplier) throws E {\n return () -> {\n try {\n return supplier.get();\n } catch (Exception e) {\n throwActualException(e);\n return null;\n }\n };\n }", "V get(K key, Callable<V> source, boolean updateStats);", "public Integer getSupplierId() {\n return supplierId;\n }", "public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}", "public void saveSupplier(Supplier supplier) throws DataAccessException {\r\n getHibernateTemplate().saveOrUpdate(supplier);\r\n }", "public static void m1(Supplier<Double> supplier) {\n\t\tSystem.out.println(Math.sqrt(supplier.get()));\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier) {\r\n\t\treturn singleton(supplier, scheduler());\r\n\t}", "final public Lock test_get_lock() {\r\n\t\treturn lock_;\r\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.next(supplier.invoke());\r\n\t\t\t\t\t\tobserver.finish();\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}", "@Nullable\n\tfinal T blockingGet() {\n\t\tif (Schedulers.isInNonBlockingThread()) {\n\t\t\tthrow new IllegalStateException(\"block()/blockFirst()/blockLast() are blocking, which is not supported in thread \" + Thread.currentThread().getName());\n\t\t}\n\t\tif (getCount() != 0) {\n\t\t\ttry {\n\t\t\t\tawait();\n\t\t\t}\n\t\t\tcatch (InterruptedException ex) {\n\t\t\t\tdispose();\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tthrow Exceptions.propagate(ex);\n\t\t\t}\n\t\t}\n\n\t\tThrowable e = error;\n\t\tif (e != null) {\n\t\t\tRuntimeException re = Exceptions.propagate(e);\n\t\t\t//this is ok, as re is always a new non-singleton instance\n\t\t\tre.addSuppressed(new Exception(\"#block terminated with an error\"));\n\t\t\tthrow re;\n\t\t}\n\t\treturn value;\n\t}", "public Integer getSupplierid() {\r\n return supplierid;\r\n }", "Thread getLocker();", "static Defaulable create(Supplier<Defaulable> supplier) {\n return supplier.get();\n }", "public synchronized void fulfill(Supplier<T> operation) {\n try {\n T value = operation.get();\n resolve(value);\n } catch (Exception e) {\n reject(e);\n }\n }", "Supplier findSupplierById(Integer id)throws SQLException;", "@FunctionalInterface\npublic interface CommonSupplier<T> {\n\n T get() throws InternalSystemException;\n}", "public boolean acquireLock() {\n ValueOperations<String, String> valueOps = redisTemplate.opsForValue();\n boolean result = valueOps.setIfAbsent(lockKey, \"1\");\n // assume that : result == true means fetch the lock.else other server fetch the lock\n if (result == true) {\n long lockLiveTime = Utils.lockKeyLivetimeInMillisecond.get();\n valueOps.set(lockKey, \"2\", lockLiveTime, TimeUnit.MILLISECONDS);\n LOGGER.info(\"fetch redis distribution_lock [{}] suceess,set lock live [{}]ms \", lockKey, lockLiveTime);\n fetch = true;\n }\n return result;\n }", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "void lock();", "public Future<Integer> getValue() {\n GetValue getValue = new GetValue(this.generator);\n return this.scheduled.schedule(getValue, this.delay, TimeUnit.MILLISECONDS);\n }", "void acquireReadLock(E key);", "long get();", "boolean isValueLocked();", "@NotNull\n public static <T> Lazy<T> createMultiThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new MultiThreadedLazy<>(supplier);\n }", "public interface LockFactory {\n\n /**\n * Obtain a lock for a resource identified by given {@code identifier}. Depending on the strategy, this\n * method may return immediately or block until a lock is held.\n *\n * @param identifier the identifier of the resource to obtain a lock for.\n * @return a handle to release the lock.\n */\n Lock obtainLock(String identifier);\n}", "public SimpleLock readLock() {\n\n\t\treturn readerLock;\n\t}", "<T> T get(String key, Callable<? extends T> valueLoader);", "void softPut(String key, Do.Make<Object> lazyValue);", "public static RegistryObject<Block> register(Supplier<Block> supplier, @Nonnull String name, @Nullable Item.Properties properties) {\n RegistryObject<Block> block = BLOCK_DEFERRED.register(name, supplier);\n\n if (properties == null) {\n AquaItems.register(() -> new BlockItem(block.get(), new Item.Properties()), name);\n } else {\n AquaItems.registerWithTab(() -> new BlockItem(block.get(), properties), name);\n }\n\n return block;\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "public Object getLock() {\n return dataLock;\n }", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "@SuppressWarnings(\"unchecked\")\n public <V> V fetchFromSmallCache(String key, Supplier<V> valueComputer) {\n return (V) LOCAL_SMALL_CACHE.get(key, ignored -> valueComputer.get());\n }", "@SafeVarargs\n public final <T> T of(Supplier<T>... suppliers) {\n return suppliers[random.nextInt(0, suppliers.length - 1)].get();\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public E poll() {\n try {\n return b(2, (Long) null, (TimeUnit) null);\n } catch (InterruptedException unused) {\n return null;\n }\n }", "@Override\n public V getValue() {\n Object object = this.h;\n synchronized (object) {\n return this.a().getValue();\n }\n }", "public CacheKey acquireDeferredLock(Vector primaryKey) {\n //check if the key is already in the hashtable\n CacheKey key = null;\n\n //cache key should not be changed in other threads during the lock acquire operation\n synchronized (this) {\n // bug 3094912 get must be synchronized as well\n key = getCacheKey(primaryKey);\n if (key == null) {\n //create a chachKey and lock the object\n CacheKey cacheKey = createCacheKey(primaryKey, null, null);\n cacheKey.acquireDeferredLock();\n put(cacheKey);\n return cacheKey;\n }\n }\n\n // code removed as key will never be null here, either one will be found or one created\n key.acquireDeferredLock();\n\n return key;\n }", "ManagementLockObject apply();", "public static <V> V executeIfLockAlreadyNotAcquired(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n final Lock lock = getLock(uniqueLockResource);\n if (lock.tryLock()) {\n return LockUtils.executeInLock(uniqueLockResource, \"\", operationName, lock, callable);\n }\n throw new Exception(\"Lock on resource \" + uniqueLockResource + \" is already acquired\");\n }", "public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }", "@Override\n public T get() {\n if (!initialized) {\n synchronized (this) {\n if (!initialized) {\n T t = delegate.get();\n value = t;\n initialized = true;\n return t;\n }\n }\n }\n return value;\n }", "Lock getLockByKey(String key);", "public void produce(@Nullable V value) {\n synchronized (LOCK) {\n // Look for a non-cancelled future\n while (myWaitingFutures.size() >= 1) {\n SettableFuture<V> future = myWaitingFutures.remove();\n if (future.set(value)) {\n return;\n }\n }\n\n // If none found, enqueue the value for later\n myValues.add(new Entry(value));\n }\n }", "@Override\n public Supplier<List<Integer>> supplier() {\n // constructor method reference\n // for an Object array use: Object[]::new\n return ArrayList::new;\n }", "@Override\n\t\tpublic ThreadSynchroniser createThreadSynchroniser() {\n\t\t\tthrow new IllegalStateException(\"Mock \" + ThreadSynchroniser.class.getSimpleName() + \" for \"\n\t\t\t\t\t+ SupplierTypeBuilder.class.getSimpleName() + \" can not be used\");\n\t\t}", "public void releaseDeferredLock() {\r\n return;\r\n }" ]
[ "0.782301", "0.7600832", "0.7576708", "0.7425843", "0.72457576", "0.723251", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.53738576", "0.5347316", "0.53451943", "0.5310429", "0.52869165", "0.5233565", "0.5213117", "0.52059144", "0.51961786", "0.5188371", "0.5169791", "0.5162704", "0.5109756", "0.5104329", "0.5083242", "0.5074174", "0.50625455", "0.50539637", "0.50322306", "0.50290126", "0.50125736", "0.5008299", "0.49717885", "0.4967099", "0.49493304", "0.49295506", "0.49276632", "0.49214804", "0.48948115", "0.48916915", "0.48808655", "0.4875347", "0.486228", "0.48457915", "0.4845562", "0.48195514", "0.48154867", "0.48051566", "0.47938445", "0.47914174", "0.47805354", "0.4739878", "0.47292334", "0.47289276", "0.4718585", "0.47172144", "0.4716952", "0.47108048", "0.47002485", "0.4698753", "0.468732", "0.4678062", "0.4673677", "0.46699935", "0.4664385", "0.46631667", "0.46621343", "0.46583268", "0.4657281", "0.46518713", "0.46480954", "0.46372905", "0.46322268", "0.46315327", "0.4622078", "0.46121547", "0.46082884", "0.46047932", "0.46001127", "0.45631748", "0.45626807", "0.4559967", "0.45559788", "0.45529595", "0.45477453", "0.45334598", "0.4532637", "0.4520813", "0.45193672", "0.45108756" ]
0.6896585
6
Calls the given supplier while holding the lock and returns its value.
public long sync(LongSupplier supplier) { lock.lock(); try { return supplier.getAsLong(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = supplier.get();\n\t\t\treturn this.value;\n\t\t}\n\t}", "public int sync(IntSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsInt();\n } finally {\n lock.unlock();\n } \n }", "public V getAndUpdate(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tfinal V prev = this.value;\n\t\t\tthis.value = supplier.get();\n\t\t\treturn prev;\n\t\t}\n\t}", "public double sync(DoubleSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsDouble();\n } finally {\n lock.unlock();\n } \n }", "public boolean sync(BooleanSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsBoolean();\n } finally {\n lock.unlock();\n } \n }", "private <T> T withLock(Lock lock, Supplier<T> source) {\n lock.lock();\n try {\n locked(lock);\n return source.get();\n } finally {\n lock.unlock();\n }\n }", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "Supplier<Number> getSupplier();", "private static <T> Supplier<T> memoize(Supplier<T> supplier) {\n return null;\n }", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "public Object get() {\n Supplier supplier = this.delegate;\n synchronized (supplier) {\n Supplier supplier2 = this.delegate;\n return supplier2.get();\n }\n }", "@Override\n public V get(final K name, final Supplier<V> supplier)\n {\n V value = get(name);\n\n if (value == null)\n {\n value = supplier.get();\n put(name, value);\n }\n\n return value;\n }", "@Override\n public T get(int key) {\n T value = _map.get(key, noFound);\n if (value == noFound) {\n value = _supplier.apply(key);\n if (value == noFound) {\n throw new UnsupportedOperationException(\"Invalid return for supplier function\");\n }\n _map.put(key, value);\n }\n\n return value;\n }", "public String getSupplier() {\n return supplier;\n }", "private static void useSupplier(Supplier<Integer> expression){}", "static <T> EagerFutureStream<T> react(Supplier<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(value);\n\t}", "@Override\n @ReturnsLock(\"L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void setSupplier(Supplier<Number> supplier);", "@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}", "@Override\n @ReturnsLock(\"x:M\")\n public Object get(final C x, final C y) {\n return lock;\n }", "long getAndSet(long newValue);", "@Override\n @ReturnsLock(\"this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "T getOrElse(Supplier<T> fn);", "public <S> S notInStateIgnoreOtherThreads(T forbidden, Supplier<S> supplier) {\n synchronized (this) {\n rethrowFailure();\n if (currentTarget == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \" but is in state \" + this.state + \" and transitioning to \" + currentTarget + \".\");\n }\n if (this.state == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \".\");\n }\n }\n try {\n return supplier.get();\n } catch (Throwable t) {\n synchronized (this) {\n if (failure == null) {\n failure = ExecutionResult.failed(t);\n }\n }\n throw UncheckedException.throwAsUncheckedException(t);\n }\n }", "public abstract ReentrantLock getLock();", "public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\telse if (cause instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) cause;\n\t\t\telse if (cause instanceof Error)\n\t\t\t\tthrow (Error) cause;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Unexpected error loading item into cache: \" + cause.getMessage(), cause);\n\t\t}\n\t}", "@Override\n @ReturnsLock(\"N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "@NotNull\n public static <T> Lazy<T> createSingleThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new SingleThreadedLazy<>(supplier);\n }", "@Override\n public Object get() throws InterruptedException, ExecutionException {\n return getSafely();\n }", "public static <T> ReactiveStateMachine<T> supply(Supplier<T> supplier) {\n\t\treturn supply(new ReactiveValue<>(new ReactiveBlockingException(), true), supplier);\n\t}", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "private Call(ThrowingSupplier<T> fSupplier)\n\t{\n\t\tthis.fSupplier = fSupplier;\n\t}", "public Lock getLock();", "@Test(timeOut = 30_000)\n public void testValueLoaderWithLocking() throws Exception {\n //given\n final SpringRemoteCacheManager springRemoteCacheManager = new SpringRemoteCacheManager(remoteCacheManager);\n final SpringCache cache = springRemoteCacheManager.getCache(TEST_CACHE_NAME);\n\n CountDownLatch waitUntilThread1LocksValueGetter = new CountDownLatch(1);\n\n //when\n Future<String> thread1 = fork(() -> cache.get(\"test\", () -> {\n waitUntilThread1LocksValueGetter.countDown();\n// /TimeUnit.MILLISECONDS.sleep(10);\n return \"thread1\";\n }));\n\n Future<String> thread2 = fork(() -> {\n waitUntilThread1LocksValueGetter.await();\n return cache.get(\"test\", () -> \"thread2\");\n });\n\n String valueObtainedByThread1 = thread1.get();\n String valueObtainedByThread2 = thread2.get();\n\n Cache.ValueWrapper valueAfterGetterIsDone = cache.get(\"test\");\n\n //then\n assertNotNull(valueAfterGetterIsDone);\n assertEquals(\"thread1\", valueAfterGetterIsDone.get());\n assertEquals(\"thread1\", valueObtainedByThread1);\n assertEquals(\"thread1\", valueObtainedByThread2);\n }", "public static Object wrappedSupplier(Supplier<String> s) {\n return new LazySupplierToString(s);\n }", "@Override\n @ReturnsLock(\"x:L\")\n public Object get(final C x, final C y) {\n return x;\n }", "public static Response process(Supplier<Object> supplier) {\n try {\n return process(supplier.get());\n } catch (Exception e) {\n log.error(\"failed to process request\", e);\n return Response.serverError().build();\n }\n }", "@Override\n @ReturnsLock(\"Bad4c.this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void lockGranted(LockHandle lockHandle);", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "@Override\n @ReturnsLock(\"a:M\")\n public Object get(final C a, final C b) {\n return lock;\n }", "interface SupplierInterfaceDemo<T> {\n public T get();\n }", "@Override\n @ReturnsLock(\"test.formals.C:N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "public Long getSupplierId() {\n\t\treturn supplierId;\n\t}", "public static <T, R> Supplier<R> map(Supplier<T> supplier, Function<T, R> function) {\n\t\treturn () -> function.apply(supplier.get());\n\t}", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public void acquireDeferredLock() {\r\n return;\r\n }", "public void update(SupplierCard supplier) {\n supplier_dao.update(supplier);\n }", "@Override\n @ReturnsLock(\"a:L\")\n public Object get(final C a, final C b) {\n return a;\n }", "public T pollUnsafe();", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static <T> Call<T> of(ThrowingSupplier<T> fSupplier)\n\t{\n\t\treturn new Call<>(fSupplier);\n\t}", "public static <R, E extends Exception> Supplier<R> rethrowFromSupplier(SupplierWithExceptions<R, E> supplier) throws E {\n return () -> {\n try {\n return supplier.get();\n } catch (Exception e) {\n throwActualException(e);\n return null;\n }\n };\n }", "V get(K key, Callable<V> source, boolean updateStats);", "public Integer getSupplierId() {\n return supplierId;\n }", "public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}", "public void saveSupplier(Supplier supplier) throws DataAccessException {\r\n getHibernateTemplate().saveOrUpdate(supplier);\r\n }", "public static void m1(Supplier<Double> supplier) {\n\t\tSystem.out.println(Math.sqrt(supplier.get()));\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier) {\r\n\t\treturn singleton(supplier, scheduler());\r\n\t}", "final public Lock test_get_lock() {\r\n\t\treturn lock_;\r\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.next(supplier.invoke());\r\n\t\t\t\t\t\tobserver.finish();\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}", "@Nullable\n\tfinal T blockingGet() {\n\t\tif (Schedulers.isInNonBlockingThread()) {\n\t\t\tthrow new IllegalStateException(\"block()/blockFirst()/blockLast() are blocking, which is not supported in thread \" + Thread.currentThread().getName());\n\t\t}\n\t\tif (getCount() != 0) {\n\t\t\ttry {\n\t\t\t\tawait();\n\t\t\t}\n\t\t\tcatch (InterruptedException ex) {\n\t\t\t\tdispose();\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tthrow Exceptions.propagate(ex);\n\t\t\t}\n\t\t}\n\n\t\tThrowable e = error;\n\t\tif (e != null) {\n\t\t\tRuntimeException re = Exceptions.propagate(e);\n\t\t\t//this is ok, as re is always a new non-singleton instance\n\t\t\tre.addSuppressed(new Exception(\"#block terminated with an error\"));\n\t\t\tthrow re;\n\t\t}\n\t\treturn value;\n\t}", "public Integer getSupplierid() {\r\n return supplierid;\r\n }", "Thread getLocker();", "static Defaulable create(Supplier<Defaulable> supplier) {\n return supplier.get();\n }", "public synchronized void fulfill(Supplier<T> operation) {\n try {\n T value = operation.get();\n resolve(value);\n } catch (Exception e) {\n reject(e);\n }\n }", "Supplier findSupplierById(Integer id)throws SQLException;", "@FunctionalInterface\npublic interface CommonSupplier<T> {\n\n T get() throws InternalSystemException;\n}", "public boolean acquireLock() {\n ValueOperations<String, String> valueOps = redisTemplate.opsForValue();\n boolean result = valueOps.setIfAbsent(lockKey, \"1\");\n // assume that : result == true means fetch the lock.else other server fetch the lock\n if (result == true) {\n long lockLiveTime = Utils.lockKeyLivetimeInMillisecond.get();\n valueOps.set(lockKey, \"2\", lockLiveTime, TimeUnit.MILLISECONDS);\n LOGGER.info(\"fetch redis distribution_lock [{}] suceess,set lock live [{}]ms \", lockKey, lockLiveTime);\n fetch = true;\n }\n return result;\n }", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "void lock();", "public Future<Integer> getValue() {\n GetValue getValue = new GetValue(this.generator);\n return this.scheduled.schedule(getValue, this.delay, TimeUnit.MILLISECONDS);\n }", "void acquireReadLock(E key);", "long get();", "boolean isValueLocked();", "@NotNull\n public static <T> Lazy<T> createMultiThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new MultiThreadedLazy<>(supplier);\n }", "public interface LockFactory {\n\n /**\n * Obtain a lock for a resource identified by given {@code identifier}. Depending on the strategy, this\n * method may return immediately or block until a lock is held.\n *\n * @param identifier the identifier of the resource to obtain a lock for.\n * @return a handle to release the lock.\n */\n Lock obtainLock(String identifier);\n}", "public SimpleLock readLock() {\n\n\t\treturn readerLock;\n\t}", "<T> T get(String key, Callable<? extends T> valueLoader);", "void softPut(String key, Do.Make<Object> lazyValue);", "public static RegistryObject<Block> register(Supplier<Block> supplier, @Nonnull String name, @Nullable Item.Properties properties) {\n RegistryObject<Block> block = BLOCK_DEFERRED.register(name, supplier);\n\n if (properties == null) {\n AquaItems.register(() -> new BlockItem(block.get(), new Item.Properties()), name);\n } else {\n AquaItems.registerWithTab(() -> new BlockItem(block.get(), properties), name);\n }\n\n return block;\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "public Object getLock() {\n return dataLock;\n }", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "@SuppressWarnings(\"unchecked\")\n public <V> V fetchFromSmallCache(String key, Supplier<V> valueComputer) {\n return (V) LOCAL_SMALL_CACHE.get(key, ignored -> valueComputer.get());\n }", "@SafeVarargs\n public final <T> T of(Supplier<T>... suppliers) {\n return suppliers[random.nextInt(0, suppliers.length - 1)].get();\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public E poll() {\n try {\n return b(2, (Long) null, (TimeUnit) null);\n } catch (InterruptedException unused) {\n return null;\n }\n }", "@Override\n public V getValue() {\n Object object = this.h;\n synchronized (object) {\n return this.a().getValue();\n }\n }", "public CacheKey acquireDeferredLock(Vector primaryKey) {\n //check if the key is already in the hashtable\n CacheKey key = null;\n\n //cache key should not be changed in other threads during the lock acquire operation\n synchronized (this) {\n // bug 3094912 get must be synchronized as well\n key = getCacheKey(primaryKey);\n if (key == null) {\n //create a chachKey and lock the object\n CacheKey cacheKey = createCacheKey(primaryKey, null, null);\n cacheKey.acquireDeferredLock();\n put(cacheKey);\n return cacheKey;\n }\n }\n\n // code removed as key will never be null here, either one will be found or one created\n key.acquireDeferredLock();\n\n return key;\n }", "ManagementLockObject apply();", "public static <V> V executeIfLockAlreadyNotAcquired(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n final Lock lock = getLock(uniqueLockResource);\n if (lock.tryLock()) {\n return LockUtils.executeInLock(uniqueLockResource, \"\", operationName, lock, callable);\n }\n throw new Exception(\"Lock on resource \" + uniqueLockResource + \" is already acquired\");\n }", "public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }", "@Override\n public T get() {\n if (!initialized) {\n synchronized (this) {\n if (!initialized) {\n T t = delegate.get();\n value = t;\n initialized = true;\n return t;\n }\n }\n }\n return value;\n }", "Lock getLockByKey(String key);", "public void produce(@Nullable V value) {\n synchronized (LOCK) {\n // Look for a non-cancelled future\n while (myWaitingFutures.size() >= 1) {\n SettableFuture<V> future = myWaitingFutures.remove();\n if (future.set(value)) {\n return;\n }\n }\n\n // If none found, enqueue the value for later\n myValues.add(new Entry(value));\n }\n }", "@Override\n public Supplier<List<Integer>> supplier() {\n // constructor method reference\n // for an Object array use: Object[]::new\n return ArrayList::new;\n }", "@Override\n\t\tpublic ThreadSynchroniser createThreadSynchroniser() {\n\t\t\tthrow new IllegalStateException(\"Mock \" + ThreadSynchroniser.class.getSimpleName() + \" for \"\n\t\t\t\t\t+ SupplierTypeBuilder.class.getSimpleName() + \" can not be used\");\n\t\t}", "public void releaseDeferredLock() {\r\n return;\r\n }" ]
[ "0.782301", "0.7600832", "0.7425843", "0.72457576", "0.723251", "0.6896585", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.53738576", "0.5347316", "0.53451943", "0.5310429", "0.52869165", "0.5233565", "0.5213117", "0.52059144", "0.51961786", "0.5188371", "0.5169791", "0.5162704", "0.5109756", "0.5104329", "0.5083242", "0.5074174", "0.50625455", "0.50539637", "0.50322306", "0.50290126", "0.50125736", "0.5008299", "0.49717885", "0.4967099", "0.49493304", "0.49295506", "0.49276632", "0.49214804", "0.48948115", "0.48916915", "0.48808655", "0.4875347", "0.486228", "0.48457915", "0.4845562", "0.48195514", "0.48154867", "0.48051566", "0.47938445", "0.47914174", "0.47805354", "0.4739878", "0.47292334", "0.47289276", "0.4718585", "0.47172144", "0.4716952", "0.47108048", "0.47002485", "0.4698753", "0.468732", "0.4678062", "0.4673677", "0.46699935", "0.4664385", "0.46631667", "0.46621343", "0.46583268", "0.4657281", "0.46518713", "0.46480954", "0.46372905", "0.46322268", "0.46315327", "0.4622078", "0.46121547", "0.46082884", "0.46047932", "0.46001127", "0.45631748", "0.45626807", "0.4559967", "0.45559788", "0.45529595", "0.45477453", "0.45334598", "0.4532637", "0.4520813", "0.45193672", "0.45108756" ]
0.7576708
2
Calls the given supplier while holding the lock and returns its value.
public double sync(DoubleSupplier supplier) { lock.lock(); try { return supplier.getAsDouble(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = supplier.get();\n\t\t\treturn this.value;\n\t\t}\n\t}", "public long sync(LongSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsLong();\n } finally {\n lock.unlock();\n } \n }", "public int sync(IntSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsInt();\n } finally {\n lock.unlock();\n } \n }", "public V getAndUpdate(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tfinal V prev = this.value;\n\t\t\tthis.value = supplier.get();\n\t\t\treturn prev;\n\t\t}\n\t}", "public boolean sync(BooleanSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsBoolean();\n } finally {\n lock.unlock();\n } \n }", "private <T> T withLock(Lock lock, Supplier<T> source) {\n lock.lock();\n try {\n locked(lock);\n return source.get();\n } finally {\n lock.unlock();\n }\n }", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "Supplier<Number> getSupplier();", "private static <T> Supplier<T> memoize(Supplier<T> supplier) {\n return null;\n }", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "public Object get() {\n Supplier supplier = this.delegate;\n synchronized (supplier) {\n Supplier supplier2 = this.delegate;\n return supplier2.get();\n }\n }", "@Override\n public V get(final K name, final Supplier<V> supplier)\n {\n V value = get(name);\n\n if (value == null)\n {\n value = supplier.get();\n put(name, value);\n }\n\n return value;\n }", "@Override\n public T get(int key) {\n T value = _map.get(key, noFound);\n if (value == noFound) {\n value = _supplier.apply(key);\n if (value == noFound) {\n throw new UnsupportedOperationException(\"Invalid return for supplier function\");\n }\n _map.put(key, value);\n }\n\n return value;\n }", "public String getSupplier() {\n return supplier;\n }", "private static void useSupplier(Supplier<Integer> expression){}", "static <T> EagerFutureStream<T> react(Supplier<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(value);\n\t}", "@Override\n @ReturnsLock(\"L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void setSupplier(Supplier<Number> supplier);", "@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}", "@Override\n @ReturnsLock(\"x:M\")\n public Object get(final C x, final C y) {\n return lock;\n }", "long getAndSet(long newValue);", "@Override\n @ReturnsLock(\"this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "T getOrElse(Supplier<T> fn);", "public <S> S notInStateIgnoreOtherThreads(T forbidden, Supplier<S> supplier) {\n synchronized (this) {\n rethrowFailure();\n if (currentTarget == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \" but is in state \" + this.state + \" and transitioning to \" + currentTarget + \".\");\n }\n if (this.state == forbidden) {\n throw new IllegalStateException(\"Should not be in state \" + forbidden + \".\");\n }\n }\n try {\n return supplier.get();\n } catch (Throwable t) {\n synchronized (this) {\n if (failure == null) {\n failure = ExecutionResult.failed(t);\n }\n }\n throw UncheckedException.throwAsUncheckedException(t);\n }\n }", "public abstract ReentrantLock getLock();", "public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\telse if (cause instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) cause;\n\t\t\telse if (cause instanceof Error)\n\t\t\t\tthrow (Error) cause;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Unexpected error loading item into cache: \" + cause.getMessage(), cause);\n\t\t}\n\t}", "@Override\n @ReturnsLock(\"N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "@NotNull\n public static <T> Lazy<T> createSingleThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new SingleThreadedLazy<>(supplier);\n }", "@Override\n public Object get() throws InterruptedException, ExecutionException {\n return getSafely();\n }", "public static <T> ReactiveStateMachine<T> supply(Supplier<T> supplier) {\n\t\treturn supply(new ReactiveValue<>(new ReactiveBlockingException(), true), supplier);\n\t}", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "private Call(ThrowingSupplier<T> fSupplier)\n\t{\n\t\tthis.fSupplier = fSupplier;\n\t}", "public Lock getLock();", "@Test(timeOut = 30_000)\n public void testValueLoaderWithLocking() throws Exception {\n //given\n final SpringRemoteCacheManager springRemoteCacheManager = new SpringRemoteCacheManager(remoteCacheManager);\n final SpringCache cache = springRemoteCacheManager.getCache(TEST_CACHE_NAME);\n\n CountDownLatch waitUntilThread1LocksValueGetter = new CountDownLatch(1);\n\n //when\n Future<String> thread1 = fork(() -> cache.get(\"test\", () -> {\n waitUntilThread1LocksValueGetter.countDown();\n// /TimeUnit.MILLISECONDS.sleep(10);\n return \"thread1\";\n }));\n\n Future<String> thread2 = fork(() -> {\n waitUntilThread1LocksValueGetter.await();\n return cache.get(\"test\", () -> \"thread2\");\n });\n\n String valueObtainedByThread1 = thread1.get();\n String valueObtainedByThread2 = thread2.get();\n\n Cache.ValueWrapper valueAfterGetterIsDone = cache.get(\"test\");\n\n //then\n assertNotNull(valueAfterGetterIsDone);\n assertEquals(\"thread1\", valueAfterGetterIsDone.get());\n assertEquals(\"thread1\", valueObtainedByThread1);\n assertEquals(\"thread1\", valueObtainedByThread2);\n }", "public static Object wrappedSupplier(Supplier<String> s) {\n return new LazySupplierToString(s);\n }", "@Override\n @ReturnsLock(\"x:L\")\n public Object get(final C x, final C y) {\n return x;\n }", "public static Response process(Supplier<Object> supplier) {\n try {\n return process(supplier.get());\n } catch (Exception e) {\n log.error(\"failed to process request\", e);\n return Response.serverError().build();\n }\n }", "@Override\n @ReturnsLock(\"Bad4c.this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "void lockGranted(LockHandle lockHandle);", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "@Override\n @ReturnsLock(\"a:M\")\n public Object get(final C a, final C b) {\n return lock;\n }", "interface SupplierInterfaceDemo<T> {\n public T get();\n }", "@Override\n @ReturnsLock(\"test.formals.C:N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "public Long getSupplierId() {\n\t\treturn supplierId;\n\t}", "public static <T, R> Supplier<R> map(Supplier<T> supplier, Function<T, R> function) {\n\t\treturn () -> function.apply(supplier.get());\n\t}", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public void acquireDeferredLock() {\r\n return;\r\n }", "public void update(SupplierCard supplier) {\n supplier_dao.update(supplier);\n }", "@Override\n @ReturnsLock(\"a:L\")\n public Object get(final C a, final C b) {\n return a;\n }", "public T pollUnsafe();", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static <T> Call<T> of(ThrowingSupplier<T> fSupplier)\n\t{\n\t\treturn new Call<>(fSupplier);\n\t}", "public static <R, E extends Exception> Supplier<R> rethrowFromSupplier(SupplierWithExceptions<R, E> supplier) throws E {\n return () -> {\n try {\n return supplier.get();\n } catch (Exception e) {\n throwActualException(e);\n return null;\n }\n };\n }", "V get(K key, Callable<V> source, boolean updateStats);", "public Integer getSupplierId() {\n return supplierId;\n }", "public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}", "public void saveSupplier(Supplier supplier) throws DataAccessException {\r\n getHibernateTemplate().saveOrUpdate(supplier);\r\n }", "public static void m1(Supplier<Double> supplier) {\n\t\tSystem.out.println(Math.sqrt(supplier.get()));\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier) {\r\n\t\treturn singleton(supplier, scheduler());\r\n\t}", "final public Lock test_get_lock() {\r\n\t\treturn lock_;\r\n\t}", "@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.next(supplier.invoke());\r\n\t\t\t\t\t\tobserver.finish();\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}", "@Nullable\n\tfinal T blockingGet() {\n\t\tif (Schedulers.isInNonBlockingThread()) {\n\t\t\tthrow new IllegalStateException(\"block()/blockFirst()/blockLast() are blocking, which is not supported in thread \" + Thread.currentThread().getName());\n\t\t}\n\t\tif (getCount() != 0) {\n\t\t\ttry {\n\t\t\t\tawait();\n\t\t\t}\n\t\t\tcatch (InterruptedException ex) {\n\t\t\t\tdispose();\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tthrow Exceptions.propagate(ex);\n\t\t\t}\n\t\t}\n\n\t\tThrowable e = error;\n\t\tif (e != null) {\n\t\t\tRuntimeException re = Exceptions.propagate(e);\n\t\t\t//this is ok, as re is always a new non-singleton instance\n\t\t\tre.addSuppressed(new Exception(\"#block terminated with an error\"));\n\t\t\tthrow re;\n\t\t}\n\t\treturn value;\n\t}", "public Integer getSupplierid() {\r\n return supplierid;\r\n }", "Thread getLocker();", "static Defaulable create(Supplier<Defaulable> supplier) {\n return supplier.get();\n }", "public synchronized void fulfill(Supplier<T> operation) {\n try {\n T value = operation.get();\n resolve(value);\n } catch (Exception e) {\n reject(e);\n }\n }", "Supplier findSupplierById(Integer id)throws SQLException;", "@FunctionalInterface\npublic interface CommonSupplier<T> {\n\n T get() throws InternalSystemException;\n}", "public boolean acquireLock() {\n ValueOperations<String, String> valueOps = redisTemplate.opsForValue();\n boolean result = valueOps.setIfAbsent(lockKey, \"1\");\n // assume that : result == true means fetch the lock.else other server fetch the lock\n if (result == true) {\n long lockLiveTime = Utils.lockKeyLivetimeInMillisecond.get();\n valueOps.set(lockKey, \"2\", lockLiveTime, TimeUnit.MILLISECONDS);\n LOGGER.info(\"fetch redis distribution_lock [{}] suceess,set lock live [{}]ms \", lockKey, lockLiveTime);\n fetch = true;\n }\n return result;\n }", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "void lock();", "public Future<Integer> getValue() {\n GetValue getValue = new GetValue(this.generator);\n return this.scheduled.schedule(getValue, this.delay, TimeUnit.MILLISECONDS);\n }", "void acquireReadLock(E key);", "long get();", "boolean isValueLocked();", "@NotNull\n public static <T> Lazy<T> createMultiThreadedLazy(\n @NotNull Supplier<T> supplier) {\n return new MultiThreadedLazy<>(supplier);\n }", "public interface LockFactory {\n\n /**\n * Obtain a lock for a resource identified by given {@code identifier}. Depending on the strategy, this\n * method may return immediately or block until a lock is held.\n *\n * @param identifier the identifier of the resource to obtain a lock for.\n * @return a handle to release the lock.\n */\n Lock obtainLock(String identifier);\n}", "public SimpleLock readLock() {\n\n\t\treturn readerLock;\n\t}", "<T> T get(String key, Callable<? extends T> valueLoader);", "void softPut(String key, Do.Make<Object> lazyValue);", "public static RegistryObject<Block> register(Supplier<Block> supplier, @Nonnull String name, @Nullable Item.Properties properties) {\n RegistryObject<Block> block = BLOCK_DEFERRED.register(name, supplier);\n\n if (properties == null) {\n AquaItems.register(() -> new BlockItem(block.get(), new Item.Properties()), name);\n } else {\n AquaItems.registerWithTab(() -> new BlockItem(block.get(), properties), name);\n }\n\n return block;\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "public Object getLock() {\n return dataLock;\n }", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "@SuppressWarnings(\"unchecked\")\n public <V> V fetchFromSmallCache(String key, Supplier<V> valueComputer) {\n return (V) LOCAL_SMALL_CACHE.get(key, ignored -> valueComputer.get());\n }", "@SafeVarargs\n public final <T> T of(Supplier<T>... suppliers) {\n return suppliers[random.nextInt(0, suppliers.length - 1)].get();\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public E poll() {\n try {\n return b(2, (Long) null, (TimeUnit) null);\n } catch (InterruptedException unused) {\n return null;\n }\n }", "@Override\n public V getValue() {\n Object object = this.h;\n synchronized (object) {\n return this.a().getValue();\n }\n }", "public CacheKey acquireDeferredLock(Vector primaryKey) {\n //check if the key is already in the hashtable\n CacheKey key = null;\n\n //cache key should not be changed in other threads during the lock acquire operation\n synchronized (this) {\n // bug 3094912 get must be synchronized as well\n key = getCacheKey(primaryKey);\n if (key == null) {\n //create a chachKey and lock the object\n CacheKey cacheKey = createCacheKey(primaryKey, null, null);\n cacheKey.acquireDeferredLock();\n put(cacheKey);\n return cacheKey;\n }\n }\n\n // code removed as key will never be null here, either one will be found or one created\n key.acquireDeferredLock();\n\n return key;\n }", "ManagementLockObject apply();", "public static <V> V executeIfLockAlreadyNotAcquired(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n final Lock lock = getLock(uniqueLockResource);\n if (lock.tryLock()) {\n return LockUtils.executeInLock(uniqueLockResource, \"\", operationName, lock, callable);\n }\n throw new Exception(\"Lock on resource \" + uniqueLockResource + \" is already acquired\");\n }", "public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }", "@Override\n public T get() {\n if (!initialized) {\n synchronized (this) {\n if (!initialized) {\n T t = delegate.get();\n value = t;\n initialized = true;\n return t;\n }\n }\n }\n return value;\n }", "Lock getLockByKey(String key);", "public void produce(@Nullable V value) {\n synchronized (LOCK) {\n // Look for a non-cancelled future\n while (myWaitingFutures.size() >= 1) {\n SettableFuture<V> future = myWaitingFutures.remove();\n if (future.set(value)) {\n return;\n }\n }\n\n // If none found, enqueue the value for later\n myValues.add(new Entry(value));\n }\n }", "@Override\n public Supplier<List<Integer>> supplier() {\n // constructor method reference\n // for an Object array use: Object[]::new\n return ArrayList::new;\n }", "@Override\n\t\tpublic ThreadSynchroniser createThreadSynchroniser() {\n\t\t\tthrow new IllegalStateException(\"Mock \" + ThreadSynchroniser.class.getSimpleName() + \" for \"\n\t\t\t\t\t+ SupplierTypeBuilder.class.getSimpleName() + \" can not be used\");\n\t\t}", "public void releaseDeferredLock() {\r\n return;\r\n }" ]
[ "0.782301", "0.7600832", "0.7576708", "0.7425843", "0.72457576", "0.6896585", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.53738576", "0.5347316", "0.53451943", "0.5310429", "0.52869165", "0.5233565", "0.5213117", "0.52059144", "0.51961786", "0.5188371", "0.5169791", "0.5162704", "0.5109756", "0.5104329", "0.5083242", "0.5074174", "0.50625455", "0.50539637", "0.50322306", "0.50290126", "0.50125736", "0.5008299", "0.49717885", "0.4967099", "0.49493304", "0.49295506", "0.49276632", "0.49214804", "0.48948115", "0.48916915", "0.48808655", "0.4875347", "0.486228", "0.48457915", "0.4845562", "0.48195514", "0.48154867", "0.48051566", "0.47938445", "0.47914174", "0.47805354", "0.4739878", "0.47292334", "0.47289276", "0.4718585", "0.47172144", "0.4716952", "0.47108048", "0.47002485", "0.4698753", "0.468732", "0.4678062", "0.4673677", "0.46699935", "0.4664385", "0.46631667", "0.46621343", "0.46583268", "0.4657281", "0.46518713", "0.46480954", "0.46372905", "0.46322268", "0.46315327", "0.4622078", "0.46121547", "0.46082884", "0.46047932", "0.46001127", "0.45631748", "0.45626807", "0.4559967", "0.45559788", "0.45529595", "0.45477453", "0.45334598", "0.4532637", "0.4520813", "0.45193672", "0.45108756" ]
0.723251
5
Create a library of cell styles
private static Map<String, CellStyle> createStyles(Workbook wbl) { Map<String, CellStyle> styles = new HashMap<String, CellStyle>(); try { CellStyle style; Font titleFont = wbl.createFont(); titleFont.setFontHeightInPoints((short) 18); titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD); style = wbl.createCellStyle(); style.setAlignment(CellStyle.ALIGN_CENTER); style.setVerticalAlignment(CellStyle.VERTICAL_CENTER); style.setFont(titleFont); styles.put("title", style); Font monthFont = wbl.createFont(); monthFont.setFontHeightInPoints((short) 11); monthFont.setColor(IndexedColors.WHITE.getIndex()); style = wbl.createCellStyle(); style.setAlignment(CellStyle.ALIGN_CENTER); style.setVerticalAlignment(CellStyle.VERTICAL_CENTER); style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex()); style.setFillPattern(CellStyle.SOLID_FOREGROUND); style.setFont(monthFont); style.setWrapText(true); style.setRightBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderRight(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); styles.put("header", style); //MandatoryColumn to admission process Font mandatoryColumnFont = wbl.createFont(); mandatoryColumnFont.setFontHeightInPoints((short) 11); mandatoryColumnFont.setColor(IndexedColors.RED.getIndex()); style = wbl.createCellStyle(); style.setAlignment(CellStyle.ALIGN_CENTER); style.setVerticalAlignment(CellStyle.VERTICAL_CENTER); style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex()); style.setFillPattern(CellStyle.SOLID_FOREGROUND); style.setFont(mandatoryColumnFont); style.setWrapText(true); style.setRightBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderRight(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); styles.put("headers", style); style = wbl.createCellStyle(); style.setAlignment(CellStyle.ALIGN_CENTER); style.setWrapText(true); style.setBorderRight(CellStyle.BORDER_THIN); style.setRightBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.BLACK.getIndex()); styles.put("cell", style); style = wbl.createCellStyle(); style.setWrapText(true); style.setBorderRight(CellStyle.BORDER_THIN); style.setRightBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.BLACK.getIndex()); styles.put("string", style); CreationHelper createHelper = wbl.getCreationHelper(); style = wbl.createCellStyle(); style.setDataFormat(createHelper.createDataFormat().getFormat("dd-MMM-yyyy")); style.setAlignment(CellStyle.ALIGN_CENTER); style.setWrapText(true); style.setBorderRight(CellStyle.BORDER_THIN); style.setRightBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.BLACK.getIndex()); styles.put("date", style); } catch (Exception ex) { ex.printStackTrace(); JRExceptionClient jre = new JRExceptionClient();jre.sendException(ex);jre = null; } return styles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }", "private static Map<String, CellStyle> createStyles(Workbook wb)\r\n\t{\r\n\t\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\t\tDataFormat df = wb.createDataFormat();\r\n\r\n\t\tFont titleFont = wb.createFont();\r\n\t\ttitleFont.setFontHeightInPoints((short) 18);\r\n\t\ttitleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t\ttitleFont.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n\t\tCellStyle titleStyle = wb.createCellStyle();\r\n\t\ttitleStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\ttitleStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\ttitleStyle.setFont(titleFont);\r\n\t\tborderCell(titleStyle, CellStyle.BORDER_THICK, IndexedColors.BLUE.getIndex());\r\n\t\tstyles.put(TITLE_STYLE_NAME, titleStyle);\r\n\r\n\t\tFont headerFont = wb.createFont();\r\n\t\theaderFont.setFontHeightInPoints((short) 11);\r\n\t\theaderFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t\tCellStyle headerStyle = wb.createCellStyle();\r\n\t\theaderStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\theaderStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\theaderStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t\theaderStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\theaderStyle.setFont(headerFont);\r\n\t\theaderStyle.setWrapText(true);\r\n\t\tstyles.put(HEADER_STYLE_NAME, headerStyle);\r\n\r\n\t\tCellStyle plainCellStyle = wb.createCellStyle();\r\n\t\tplainCellStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tborderCell(plainCellStyle, CellStyle.BORDER_THIN, IndexedColors.BLACK.getIndex());\r\n\t\tstyles.put(PLAIN_CELL_STYLE_NAME, plainCellStyle);\r\n\r\n\t\tCellStyle dateCellStyle = wb.createCellStyle();\r\n\t\tdateCellStyle.cloneStyleFrom(plainCellStyle);\r\n\t\tdateCellStyle.setDataFormat(df.getFormat(\"yyyy-mm-dd\"));\r\n\t\tstyles.put(DATE_CELL_STYLE_NAME, dateCellStyle);\r\n\r\n\t\tCellStyle integerFormulaStyle = wb.createCellStyle();\r\n\t\tintegerFormulaStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tintegerFormulaStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\tintegerFormulaStyle.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n\t\tintegerFormulaStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\tborderCell(integerFormulaStyle, CellStyle.BORDER_DOTTED, IndexedColors.GREY_80_PERCENT.getIndex());\r\n\t\tintegerFormulaStyle.setDataFormat(df.getFormat(\"0\"));\r\n\t\tintegerFormulaStyle.setWrapText(true);\r\n\t\tstyles.put(INTEGER_FORMULA_STYLE_NAME, integerFormulaStyle);\r\n\r\n\t\tCellStyle floatFormulaStyle = wb.createCellStyle();\r\n\t\tfloatFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tfloatFormulaStyle.setDataFormat(df.getFormat(\"0.00\"));\r\n\t\tstyles.put(FLOAT_FORMULA_STYLE_NAME, floatFormulaStyle);\r\n\r\n\t\tCellStyle percentageFormulaStyle = wb.createCellStyle();\r\n\t\tpercentageFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tpercentageFormulaStyle.setDataFormat(df.getFormat(\"0.00 %\"));\r\n//\t\tpercentageFormulaStyle.setDataFormat((short) 9); // See BuiltinFormats\r\n\t\tshort colorIndex = IndexedColors.INDIGO.getIndex();\r\n\t\tColor customColor = defineColor(wb, colorIndex, 0x88, 0xFF, 0x55);\r\n\t\tif (percentageFormulaStyle instanceof XSSFCellStyle)\r\n\t\t{\r\n\t\t\t((XSSFCellStyle) percentageFormulaStyle).setFillForegroundColor((XSSFColor) customColor);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpercentageFormulaStyle.setFillForegroundColor(colorIndex);\r\n\t\t}\r\n\t\tstyles.put(PERCENTAGE_FORMULA_STYLE_NAME, percentageFormulaStyle);\r\n\r\n\t\treturn styles;\r\n\t}", "private static Map<String, CellStyle> createStyles(Workbook wb) {\n Map<String, CellStyle> styles = new HashMap<>();\n\n CellStyle style;\n Font headerFont = wb.createFont();\n headerFont.setBold(true);\n style = createBorderedStyle(wb);\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n style.setFont(headerFont);\n styles.put(\"header\", style);\n\n style = createBorderedStyle(wb);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n styles.put(\"body\", style);\n\n return styles;\n }", "public CellStyle createCellStyle() {\n\t\treturn null;\n\t}", "@Override\n @Source({CellTable.Style.DEFAULT_CSS, \"../exercise/ScoresCellTableStyleSheet.css\"})\n TableResources.TableStyle cellTableStyle();", "public abstract TC createStyle();", "public static XSSFCellStyle baseStyle(XSSFWorkbook wb) {\n\t\t// Define color palette\n\t\tcmBg = new XSSFColor(new java.awt.Color(33, 150, 243, 0)); // #2196F3\n\t\ttdBg = new XSSFColor(new java.awt.Color(139, 195, 74, 0)); // #8BC34A\n\t\ttpBg = new XSSFColor(new java.awt.Color(255, 193, 7, 0)); // #FFC107\n\t\tccEtBg = new XSSFColor(new java.awt.Color(244, 67, 54, 0)); // #F44336\n\t\tsiBg = new XSSFColor(new java.awt.Color(0, 117, 169, 0));\n\t\tasrBg = new XSSFColor(new java.awt.Color(50, 117, 108, 0));\n\n\t\tdateBg = new XSSFColor(new java.awt.Color(189, 189, 189, 0)); // #BDBDBD\n\t\tweekNumBg = new XSSFColor(new java.awt.Color(224, 224, 224, 0)); // #E0E0E0\n\t\tholidaysBg = new XSSFColor(new java.awt.Color(255, 87, 34, 0)); // #FF5722\n\n\t\t// create font\n\t\tFont font = wb.createFont();\n\t\tfont.setFontHeightInPoints((short) 11);\n\t\tfont.setFontName(\"Arial\");\n\t\tfont.setColor(IndexedColors.BLACK.getIndex());\n\t\tfont.setBold(false);\n\t\tfont.setItalic(false);\n\n\t\t// Create cell style\n\t\tXSSFCellStyle cellStyle = wb.createCellStyle();\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\t\tcellStyle.setWrapText(true); // Set wordwrap\n\n\t\t// Setting font to style\n\t\tcellStyle.setFont(font);\n\n\t\treturn cellStyle;\n\t}", "STYLE createSTYLE();", "public HSSFCellStyle getStyle(HSSFWorkbook workbook) {\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\t// font.setFontHeightInPoints((short)10);\r\n\t\t// Bold font\r\n\t\t// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "protected void buildCellBaseStyle( ICellContent cell,\n \t\t\tStringBuffer styleBuffer )\n \t{\n \t\tIStyle style = null;\n \t\tif ( isEmbeddable )\n \t\t{\n \t\t\tstyle = cell.getStyle( );\n \t\t}\n \t\telse\n \t\t{\n \t\t\tstyle = cell.getInlineStyle( );\n \t\t}\n \t\t// build the cell's style except border\n \t\tAttributeBuilder.buildCellStyle( styleBuffer, style, parentEmitter );\n \n \t\t// prepare build the cell's border\n \t\tint columnCount = -1;\n \t\tIStyle cellStyle = null, cellComputedStyle = null;\n \t\tIStyle rowStyle = null, rowComputedStyle = null;\n \n \t\tcellStyle = cell.getStyle( );\n \t\tcellComputedStyle = cell.getComputedStyle( );\n \t\tIRowContent row = (IRowContent) cell.getParent( );\n \t\tif ( null != row )\n \t\t{\n \t\t\trowStyle = row.getStyle( );\n \t\t\trowComputedStyle = row.getComputedStyle( );\n \t\t\tITableContent table = row.getTable( );\n \t\t\tif ( null != table )\n \t\t\t{\n \t\t\t\tcolumnCount = table.getColumnCount( );\n \t\t\t}\n \t\t}\n \n \t\t// build the cell's border\n \t\tif ( null == rowStyle || cell.getColumn( ) < 0 || columnCount < 1 )\n \t\t{\n \t\t\tif ( null != cellStyle )\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\t\tcellStyle.getBorderTopWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderTopStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderTopColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\t\tcellStyle.getBorderBottomWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderBottomStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderBottomColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \t\t}\n \t\telse if ( null == cellStyle )\n \t\t{\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderTopWidth( ),\n \t\t\t\t\trowStyle.getBorderTopStyle( ),\n \t\t\t\t\trowStyle.getBorderTopColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderRightWidth( ),\n \t\t\t\t\trowStyle.getBorderRightStyle( ),\n \t\t\t\t\trowStyle.getBorderRightColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderBottomWidth( ),\n \t\t\t\t\trowStyle.getBorderBottomStyle( ),\n \t\t\t\t\trowStyle.getBorderBottomColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderLeftWidth( ),\n \t\t\t\t\trowStyle.getBorderLeftStyle( ),\n \t\t\t\t\trowStyle.getBorderLeftColor( ),\n \t\t\t\t\t0 );\n \t\t}\n \t\telse\n \t\t{\n \t\t\t// We have treat the column span. But we haven't treat the row span.\n \t\t\t// It need to be solved in the future.\n \t\t\tint cellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_TOP_WIDTH );\n \t\t\tint rowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_TOP_WIDTH );\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\tcellStyle.getBorderTopWidth( ),\n \t\t\t\t\tcellStyle.getBorderTopStyle( ),\n \t\t\t\t\tcellStyle.getBorderTopColor( ),\n \t\t\t\t\tcellWidthValue,\n \t\t\t\t\trowStyle.getBorderTopWidth( ),\n \t\t\t\t\trowStyle.getBorderTopStyle( ),\n \t\t\t\t\trowStyle.getBorderTopColor( ),\n \t\t\t\t\trowWidthValue );\n \n \t\t\tif ( ( cell.getColumn( ) + cell.getColSpan( ) ) == columnCount )\n \t\t\t{\n \t\t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_RIGHT_WIDTH );\n \t\t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_RIGHT_WIDTH );\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\tcellWidthValue,\n \t\t\t\t\t\trowStyle.getBorderRightWidth( ),\n \t\t\t\t\t\trowStyle.getBorderRightStyle( ),\n \t\t\t\t\t\trowStyle.getBorderRightColor( ),\n \t\t\t\t\t\trowWidthValue );\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \n \t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_BOTTOM_WIDTH );\n \t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_BOTTOM_WIDTH );\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\tcellStyle.getBorderBottomWidth( ),\n \t\t\t\t\tcellStyle.getBorderBottomStyle( ),\n \t\t\t\t\tcellStyle.getBorderBottomColor( ),\n \t\t\t\t\tcellWidthValue,\n \t\t\t\t\trowStyle.getBorderBottomWidth( ),\n \t\t\t\t\trowStyle.getBorderBottomStyle( ),\n \t\t\t\t\trowStyle.getBorderBottomColor( ),\n \t\t\t\t\trowWidthValue );\n \n \t\t\tif ( cell.getColumn( ) == 0 )\n \t\t\t{\n \t\t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_LEFT_WIDTH );\n \t\t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_LEFT_WIDTH );\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\tcellWidthValue,\n \t\t\t\t\t\trowStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\trowStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\trowStyle.getBorderLeftColor( ),\n \t\t\t\t\t\trowWidthValue );\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \n \t\t}\n \n \t\t// output in-line style\n \t\twriter.attribute( HTMLTags.ATTR_STYLE, styleBuffer.toString( ) );\n \t}", "public static String get_cell_style_id(){\r\n\t\t_cell_style_id ++;\r\n\t\treturn \"cond_ce\" + _cell_style_id;\r\n\t}", "StyleSheet createStyleSheet();", "private static StyleBuilder getHeaderStyle(ExportData metaData){\n \n /*pour la police des entàtes de HARVESTING*/\n if(metaData.getTitle().equals(ITitle.HARVESTING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de SERVICING*/\n if(metaData.getTitle().equals(ITitle.SERVICING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de FERTILIZATION*/\n if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de CONTROL_PHYTO*/\n if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }else{\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n }\n \n }", "public static XSSFCellStyle tdStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tdBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public static XSSFCellStyle tpStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tpBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public void modify( CellStyle style );", "AttributeCell createAttributeCell();", "protected interface CellStyleModifier {\n /**\n * Changes the given cell style\n * @param style style to modify\n */\n public void modify( CellStyle style );\n }", "private WritableCellFormat initializeWritableWritableCelFormat() throws WriteException{\r\n\t\tWritableFont times10ptBoldUnderline = new WritableFont(\r\n\t\t\t\tWritableFont.TIMES, 12, WritableFont.BOLD, false,\r\n\t\t\t\tUnderlineStyle.NO_UNDERLINE);\r\n\t\tWritableCellFormat timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\r\n\t\t// Lets automatically wrap the cells\r\n\t\ttimesBoldUnderline.setWrap(false);\r\n\t\t\r\n\t\treturn timesBoldUnderline;\r\n\t}", "@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}", "private Style createDefaultStyle() {\n Rule rule = createRule(LINE_COLOUR, FILL_COLOUR); //utilizamos las definiciones anteriores\n\n FeatureTypeStyle fts = sf.createFeatureTypeStyle();\n fts.rules().add(rule);\n\n Style style = sf.createStyle();\n style.featureTypeStyles().add(fts);\n return style;\n}", "public void customiseStatusCells() {\n TableColumn column = table.getVisibleLeafColumn(5);\n column.setCellFactory(new Callback<TableColumn, TableCell>() {\n public TableCell call(TableColumn p) {\n //cell implementation\n return new styleCell();\n }\n });\n }", "protected CellStyle makeStyleForEmptyTitleCell(final Workbook workbook) {\n final CellStyle myStyle = workbook.createCellStyle();\n myStyle.setBorderTop(CellStyle.BORDER_THIN);\n myStyle.setBorderBottom(CellStyle.BORDER_THIN);\n myStyle.setBorderLeft(CellStyle.BORDER_NONE);\n myStyle.setBorderRight(CellStyle.BORDER_NONE);\n return myStyle;\n }", "public static XSSFCellStyle cmStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(cmBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public int getNumCellStyles() {\n\t\treturn 0;\n\t}", "public static XSSFCellStyle ccStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(ccEtBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "@Override\n protected Sheet createSheet() {\n Sheet sheet = Sheet.createDefault();\n // Create a set of properties\n Sheet.Set set = Sheet.createPropertiesSet();\n\n set.put(getNameProperty());\n set.put(getMajorProperty());\n set.put(getMinorProperty());\n set.put(getPatchProperty());\n set.put(getDescriptionProperty());\n set.put( getGitProperty());\n set.put( getBranchProperty());\n\n // Add the set of properties to the sheet\n sheet.put(set);\n\n return sheet;\n }", "public static XSSFCellStyle gapStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setBorderTop(BorderStyle.THIN);\n\t\tcellStyle.setBorderBottom(BorderStyle.THIN);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\n\t\treturn cellStyle;\n\t}", "public abstract TableCellRenderer getInstance(Map parameterMap);", "private static void createCell(Workbook wb, Row row, int column, HorizontalAlignment halign, VerticalAlignment valign) {\n Cell cell = row.createCell(column);\n cell.setCellValue(\"Align It\");\n CellStyle cellStyle = wb.createCellStyle();\n //水平对其\n// cellStyle.setAlignment(halign);\n //垂直对齐\n// cellStyle.setVerticalAlignment(valign);\n cell.setCellStyle(cellStyle);\n }", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}", "public HSSFCellStyle getColumnTopStyle(HSSFWorkbook workbook) {\r\n\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\tfont.setFontHeightInPoints((short) 11);\r\n\t\t// Bold font\r\n\t\tfont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "public TextCellStyle getCellStyle(int charOffset);", "public void buildCellStyle( ICellContent cell, StringBuffer styleBuffer,\n \t\t\tboolean isInTableHead )\n \t{\n \t\t//build column related style\n \t\tIStyle style = new CellMergedStyle( cell );\n \t\tAttributeBuilder.buildStyle( styleBuffer, style, parentEmitter );\n \n \t\t// set font weight to be normal if the cell use \"th\" tag while it is in\n \t\t// table header.\n \t\tif ( isInTableHead )\n \t\t{\n \t\t\thandleCellFont( cell, styleBuffer );\n \t\t}\n \n \t\tbuildCellBaseStyle( cell, styleBuffer );\n \t}", "GroupCell createGroupCell();", "public S create() {\n\t\tS style = createDefault();\n\t\tint id = nextID();\n\t\tstyle.setId(id);\n\t\taddStyle(style);\n\t\treturn style;\n\t}", "protected AccountingLineTableCell createPaddingCell() {\n AccountingLineTableCell cell = new AccountingLineTableCell();\n cell.setColSpan(2);\n cell.setNeverEmpty(true);\n return cell;\n }", "protected Stylesheet stylesheet () {\n return SimpleStyles.newSheet();\n }", "public void setCellStyle(Cell cell, short halign, short valign, short border, short borderColor, int fontHeight) {\n CellStyle style = workbook.createCellStyle();\n Font font = workbook.createFont();\n font.setFontHeightInPoints((short) fontHeight);\n font.setFontName(\"Times New Roman\");\n style.setAlignment(halign);\n style.setVerticalAlignment(valign);\n style.setBorderBottom(border);\n style.setBottomBorderColor(borderColor);\n style.setBorderLeft(border);\n style.setLeftBorderColor(borderColor);\n style.setBorderRight(border);\n style.setRightBorderColor(borderColor);\n style.setBorderTop(border);\n style.setTopBorderColor(borderColor);\n style.setFont(font);\n cell.setCellStyle(style);\n }", "@Override\n\tpublic void setRowStyle(CellStyle arg0) {\n\t\t\n\t}", "VARCell createVARCell();", "private String cssFileForHtml() {\r\n\t\treturn \"<style>table, td, th {\"\r\n\t\t\t\t+ \"border: 1px solid #ddd;\"\r\n\t\t\t\t+ \"text-align: left;}\"\r\n\t\t\t\t+ \"table {\"\r\n\t\t\t\t+ \"border-collapse: collapse;\"\r\n\t\t\t\t+ \"width: 100%;}\"\r\n\t\t\t\t+ \"th, td {\"\r\n\t\t\t\t+ \"padding: 10px;\"\r\n\t\t\t\t+ \"color:#000000;\"\r\n\t\t\t\t+ \"font-family: 'Roboto', sans-serif;}td{\"\r\n\t\t\t\t+ \"font-size: smaller;}\"\r\n\t\t\t\t+ \"th{background-color:#EEEEEE;color:#000000;}tr{background-color:#FFFFFF;}\"\r\n\t\t\t\t+ \"tr:hover{background-color:#EEEEEE}</style>\";\r\n\t}", "public static String getCSS()\n {\n \treturn \"table.relations \"+\n\t\t \"{ \" +\n\t\t\t\" margin: 1em 1em 1em 2em;\" +\n\t\t\t\" border-collapse: collapse;\" +\n\t\t\t\" width:90%;\" +\n\t\t \"}\" +\n\t\t\"table.relations td\" + \n\t\t\"{\" +\n\t\t\" border-left: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-right: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-bottom: 1px solid #C1DAD7;\" +\n\t\t\"\tbackground: #fff;\" +\n\t\t\"\tpadding: 6px 6px 6px 12px;\" +\n\t\t\"\tcolor: #6D929B;\" +\n\t\t\"}\" +\n\t\t\"table.relations th\" + \n\t\t\"{\" +\n\t\t\"\tfont: bold 10px \\\"Trebuchet MS\\\", Verdana, Arial, Helvetica,\" +\n\t\t\"\tsans-serif;\" +\n\t\t\"\tcolor: #003399;\" +\n\t\t\"\tborder-right: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-left: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-bottom: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-top: 1px solid #C1DAD7;\" +\n\t\t\"\tletter-spacing: 2px;\" +\n\t\t\"\ttext-transform: uppercase;\" +\n\t\t\"\ttext-align: left;\" +\n\t\t\"\tpadding: 3px 3px 3px 6px;\" +\n\t\t\"\tbackground: #B0C4DE;\" +\n\t\t\"}\";\n }", "Map<String, String> styles(String group);", "private void InitColorTable(){\n\n }", "@Override\n\tpublic CellStyle getRowStyle() {\n\t\treturn null;\n\t}", "MemberCell createMemberCell();", "public static HSSFCellStyle getHeaderStyle(final HSSFWorkbook workbook){\n\t\tHSSFCellStyle style=workbook.createCellStyle();\n\t\tFont font=workbook.createFont();\n\t\tfont.setFontHeightInPoints((short)12);\n\t\tfont.setFontName(HSSFFont.FONT_ARIAL);\n\t\tfont.setBoldweight(Font.BOLDWEIGHT_BOLD);\n\t\tstyle.setFont(font);\n\t\treturn style;\n\t}", "public XSSFFontFormatting createFontFormatting(){\n CTDxf dxf = getDxf(true);\n CTFont font;\n if(!dxf.isSetFont()) {\n font = dxf.addNewFont();\n } else {\n font = dxf.getFont();\n }\n\n return new XSSFFontFormatting(font, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }", "public interface StyleObject {\n /**\n * <p>\n * Returns height of the style object.\n * </p>\n *\n * @return height of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getHeight();\n\n /**\n * <p>\n * Returns width of the style object.\n * </p>\n *\n * @return width of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getWidth();\n\n /**\n * <p>\n * Returns x coordinate of the style object.\n * </p>\n *\n * @return x coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getX();\n\n /**\n * <p>\n * Returns y coordinate of the style object.\n * </p>\n *\n * @return y coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public double getY();\n\n /**\n * <p>\n * Returns font name of the style object.\n * </p>\n *\n * @return font name of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFontName();\n\n /**\n * <p>\n * Returns font size of the style object.\n * </p>\n *\n * @return font size of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public int getFontSize();\n\n /**\n * <p>\n * Returns fill color of the style object.\n * </p>\n *\n * @return fill color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFillColor();\n\n /**\n * <p>\n * Returns outline color of the style object.\n * </p>\n *\n * @return outline color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getOutlineColor();\n\n /**\n * <p>\n * Returns text color of the style object.\n * </p>\n *\n * @return text color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getTextColor();\n\n /**\n * <p>\n * Sets the style panel.\n * </p>\n *\n * @param stylePanel stylePanel where this object attached, can be null\n */\n public void setStylePanel(StylePanel stylePanel);\n\n /**\n * <p>\n * Gets the style panel.\n * </p>\n *\n * @return stylePanel where this object is attached, null if this object is not attached\n */\n public StylePanel getStylePanel();\n}", "public void setCellStyle( CellStyle style )\n {\n for (Cell[] colCells : cells) {\n for (Cell cell : colCells) {\n cell.setCellStyle(style);\n }\n }\n }", "public interface IStyledText\r\n{\r\n\t/** returns the plain text, or null */\r\n\tpublic String getPlainText();\r\n\t\r\n\t\r\n\t/** length of the plain text, or 0 if unknown */\r\n\tpublic int getTextLength();\r\n\r\n\r\n\t/** \r\n\t * returns cell styles at the given char index, or null if no styling exists.\r\n\t * The styles should not include view-specific styles such as current line or cursor.\r\n\t */\r\n\tpublic TextCellStyle getCellStyle(int charOffset);\r\n\t\r\n\t\r\n\t/** returns a line color or null */\r\n\tpublic Color getLineColor();\r\n\r\n\r\n\t/** returns a character in the specific cell */\r\n\tpublic char charAt(int charOffset);\r\n}", "CellStyleCriterion border(Keywords.BorderSide first, Keywords.BorderSide second, Keywords.BorderSide third, Consumer<BorderCriterion> borderConfiguration);", "private WritableCellFormat initializeWritableCellFormat() throws WriteException{\r\n\t\tWritableFont times12pt = new WritableFont(WritableFont.TIMES, 12);\r\n\t\t// Define the cell format\r\n\t\tWritableCellFormat times = new WritableCellFormat(times12pt);\r\n\t\t// Lets automatically wrap the cells\r\n\t\ttimes.setWrap(true);\r\n\t\t\r\n\t\treturn times;\r\n\t}", "private static void createCell(Workbook wb, Row row, short column, short halign, short valign) {\n Cell cell = row.createCell(column);\n cell.setCellValue(\"Align It\");\n CellStyle cellStyle = wb.createCellStyle();\n cellStyle.setAlignment(halign);\n cellStyle.setVerticalAlignment(valign);\n cell.setCellStyle(cellStyle);\n }", "public void initOfficeHoursGridStyle() {\r\n // RIGHT SIDE - THE OFFICE HOURS GRID TIME HEADERS\r\n CSGWorkspace workspaceComponent = (CSGWorkspace)app.getWorkspaceComponent();\r\n workspaceComponent.getOfficeHoursGridPane().getStyleClass().add(CLASS_OFFICE_HOURS_GRID);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTimeHeaderPanes(), CLASS_OFFICE_HOURS_GRID_TIME_COLUMN_HEADER_PANE);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTimeHeaderLabels(), CLASS_OFFICE_HOURS_GRID_TIME_COLUMN_HEADER_LABEL);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridDayHeaderPanes(), CLASS_OFFICE_HOURS_GRID_DAY_COLUMN_HEADER_PANE);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridDayHeaderLabels(), CLASS_OFFICE_HOURS_GRID_DAY_COLUMN_HEADER_LABEL);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTimeCellPanes(), CLASS_OFFICE_HOURS_GRID_TIME_CELL_PANE);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTimeCellLabels(), CLASS_OFFICE_HOURS_GRID_TIME_CELL_LABEL);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTACellPanes(), CLASS_OFFICE_HOURS_GRID_TA_CELL_PANE);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTACellLabels(), CLASS_OFFICE_HOURS_GRID_TA_CELL_LABEL);\r\n }", "public void setRowCellStyle( CellStyle style, int rowIndex, int colOffset, int length )\n {\n for (int i=0; i<length; i++) {\n cells[colOffset+i][rowIndex].setCellStyle( style );\n }\n }", "public static XSSFCellStyle tdBorderStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseBorderStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tdBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public static XSSFCellStyle tpBorderStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseBorderStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tpBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public interface Style extends CssResource {\n\n /**\n * The style for the panel that contains\n * the whole user record\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecord();\n\n /**\n * The style for the name of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String nameLabel();\n\n /**\n * The style for the username of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabel();\n\n /**\n * The style for the user avatar image\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImage();\n\n /**\n * The style for the remove image\n *\n * @author Johannes Gryffenberg <[email protected]>\n * @since 26 Feb 2013\n *\n * @return The name of the compiled style\n */\n String removeImageStyle();\n\n /**\n * The style for the user record when it is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecordSelected();\n\n /**\n * The style for the username when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabelSelected();\n\n /**\n * The style for the avatar when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImageSelected();\n }", "private TableCell getTextWrappingCell(){\r\n\t\tTableCell cell = new TableCell<>();\r\n Text text = new Text();\r\n text.setStyle(\"-fx-fill: -fx-text-background-color;\");\r\n cell.setGraphic(text);\r\n cell.setPrefHeight(Control.USE_COMPUTED_SIZE);\r\n text.wrappingWidthProperty().bind(cell.widthProperty());\r\n text.textProperty().bind(cell.itemProperty());\r\n return cell;\r\n\t}", "private void setCellFactories() {\n\t\tcolHotel.setCellValueFactory(new PropertyValueFactory<Room, String>(\"hotelName\"));\n\t\tcolQuality.setCellValueFactory(new PropertyValueFactory<Room, String>(\"quality\"));\n\t\tcolRoomNumber.setCellValueFactory(new PropertyValueFactory<Room, String>(\"roomNumber\"));\n\t}", "public static void main(String[] args) throws Exception {\n\t\tString dataDir = Utils.getSharedDataDir(ReuseStyleObjects.class) + \"TechnicalArticles/\";\n\t\t// Create an instance of Workbook & load an existing spreadsheet\n\t\tWorkbook workbook = new Workbook(dataDir + \"Book1.xls\");\n\n\t\t// Retrieve the Cell Collection of the first Worksheet\n\t\tCells cells = workbook.getWorksheets().get(0).getCells();\n\n\t\t// Create an instance of Style and add it to the pool of styles\n\t\tStyle styleObject = workbook.createStyle();\n\n\t\t// Retrieve the Font object of newly created style\n\t\tFont font = styleObject.getFont();\n\n\t\t// Set the font color to Red\n\t\tfont.setColor(Color.getRed());\n\n\t\t// Set the newly created style on two different cells\n\t\tcells.get(\"A1\").setStyle(styleObject);\n\t\tcells.get(\"A2\").setStyle(styleObject);\n\n\t}", "public static XSSFCellStyle dateStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = dateFormatStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(dateBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle addNewSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(SWCELL$20);\n return target;\n }\n }", "CellStyleCriterion border(Keywords.BorderSide first, Keywords.BorderSide second, Consumer<BorderCriterion> borderConfiguration);", "@Override\n protected void SetCellFactories() {\n columnID.setCellValueFactory(new PropertyValueFactory<>(\"airlineID\"));\n columnName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n columnAlias.setCellValueFactory(new PropertyValueFactory<>(\"alias\"));\n columnIATA.setCellValueFactory(new PropertyValueFactory<>(\"IATA\"));\n columnICAO.setCellValueFactory(new PropertyValueFactory<>(\"ICAO\"));\n columnCallsign.setCellValueFactory(new PropertyValueFactory<>(\"callsign\"));\n columnCountry.setCellValueFactory(new PropertyValueFactory<>(\"country\"));\n columnActive.setCellValueFactory(new PropertyValueFactory<>(\"active\"));\n }", "@Override\n\tpublic CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel) {\n\t\tif (value instanceof Integer || value instanceof Long) {\n\t\t\treturn thousandsGrouping ? numberStyle : numberSimpleStyle;\n\t\t} else if (value instanceof Date || value instanceof LocalDate || value instanceof LocalDateTime) {\n\t\t\tif (attributeModel == null || !attributeModel.isWeek()) {\n\t\t\t\treturn getDateStyle(attributeModel);\n\t\t\t}\n\t\t} else if (value instanceof BigDecimal || NumberUtils.isDouble(value)) {\n\t\t\treturn getDecimalStyle(attributeModel);\n\t\t}\n\t\treturn normal;\n\t}", "public static XSSFCellStyle holidayStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(holidaysBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public interface Style extends CssResource {\n\t\t/**\n\t\t * Returns tabTyle\n\t\t */\n\t\tString tabStyle();\n\t}", "@Override\n\tpublic CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel) {\n\t\tif (value instanceof Integer || value instanceof Long) {\n\t\t\treturn thousandsGrouping ? numberStyle : numberSimpleStyle;\n\t\t} else if (value instanceof Date) {\n\t\t\tif (attributeModel == null || !attributeModel.isWeek()) {\n\t\t\t\tif (attributeModel == null || AttributeDateType.DATE.equals(attributeModel.getDateType())) {\n\t\t\t\t\t// date style is the default\n\t\t\t\t\treturn dateStyle;\n\t\t\t\t} else if (AttributeDateType.TIMESTAMP.equals(attributeModel.getDateType())) {\n\t\t\t\t\treturn dateTimeStyle;\n\t\t\t\t} else if (AttributeDateType.TIME.equals(attributeModel.getDateType())) {\n\t\t\t\t\treturn timeStyle;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (value instanceof BigDecimal) {\n\t\t\tif (attributeModel != null && attributeModel.isPercentage()) {\n\t\t\t\treturn bigDecimalPercentageStyle;\n\t\t\t} else if (attributeModel != null && attributeModel.isCurrency()) {\n\t\t\t\treturn currencyStyle;\n\t\t\t}\n\t\t\treturn bigDecimalStyle;\n\t\t}\n\t\treturn normal;\n\t}", "private void setCellStyle( CellStyle style, int rowIx, int colIx )\n {\n \tcells[colIx][rowIx].setCellStyle( style );\n }", "public interface UseAsRenderer\r\n {\r\n \tpublic TableCellEditor useAsRenderer();\r\n }", "public void createResultsCountAndStyle(int passCount, int failCount, XSSFSheet sheet, XSSFWorkbook book) throws IOException \n\t{\n\t\tXSSFRow row = sheet.createRow(1);\n\t\tXSSFCell testCount= row.createCell(1);\n\t\tXSSFCell testCount1= row.createCell(2);\n\t\ttestCount.setCellValue(\"Test Count\");\n\t\t// Merge the two columns\n\t\tsheet.addMergedRegion(new CellRangeAddress(1,1,1,2));\n\t\t\n\t\t// Apply style to Test Result text\n\t\tcreateStyle(\"Header\",book, testCount);\n\t\tcreateStyle(\"Header\",book, testCount1);\n\t\t\n\t\t// Create row for Pass and apply style\n\t\tXSSFRow row1 = sheet.createRow(2);\n\t\tXSSFCell pass= row1.createCell(1);\n\t\tpass.setCellValue(\"Pass\");\n\t\tcreateStyle(\"\",book, pass);\n\t\t\n\t\t// Create row for Fail and apply style\n\t\tXSSFRow row2 = sheet.createRow(3);\n\t\tXSSFCell fail= row2.createCell(1);\n\t\tfail.setCellValue(\"Fail\");\n\t\tcreateStyle(\"\",book, fail);\n\t\t\n\t\t// Create row for Total count and apply style\n\t\tXSSFRow row3 = sheet.createRow(4);\n\t\tXSSFCell total= row3.createCell(1);\n\t\ttotal.setCellValue(\"Total\");\n\t\tcreateStyle(\"\",book, total);\n\t\t\n\t\t// Create row for Pass and Fail count and apply style\n\t\tXSSFCell countPass =row1.createCell(2);\n\t\tXSSFCell countFail =row2.createCell(2);\n\t\tXSSFCell countTotal =row3.createCell(2);\n\t\tcountPass.setCellValue(passCount);\n\t\tcreateStyle(\"\",book, countPass);\n\t\tcountFail.setCellValue(failCount);\n\t\tcreateStyle(\"\",book, countFail);\n\t\tcountTotal.setCellValue(passCount+failCount);\n\t\tcreateStyle(\"\",book, countTotal);\t \n\t}", "public abstract String getStyle();", "public static XSSFCellStyle weekNumStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(weekNumBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "@SuppressWarnings(\"static-access\")\n\tpublic static XSSFCellStyle estiloTituloReporte2(XSSFWorkbook libro) {\n\t\tXSSFCellStyle estiloCelda = libro.createCellStyle();\n\t\testiloCelda.setWrapText(true);\n\t\testiloCelda.setAlignment(XSSFCellStyle.ALIGN_CENTER);\n\t\testiloCelda.setVerticalAlignment(XSSFCellStyle.VERTICAL_CENTER);\n\t\testiloCelda.setFillForegroundColor((short) 31);\n\t\testiloCelda.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);\n\t\tXSSFFont fuente = libro.createFont();\n\t\tfuente.setFontHeightInPoints((short) 8);\n\t\tfuente.setFontName(fuente.DEFAULT_FONT_NAME);\n\t\tfuente.setBoldweight(XSSFFont.BOLDWEIGHT_BOLD);\n\t\tfuente.setColor((short) 9);\n\t\testiloCelda.setFont(fuente);\n\t\testiloCelda.setBorderBottom((short) 1);\n\t\testiloCelda.setBottomBorderColor((short) 30);\n\t\testiloCelda.setBorderLeft((short) 1);\n\t\testiloCelda.setLeftBorderColor((short) 30);\n\t\testiloCelda.setBorderRight((short) 1);\n\t\testiloCelda.setRightBorderColor((short) 30);\n\t\testiloCelda.setBorderTop((short) 1);\n\t\testiloCelda.setTopBorderColor((short) 30);\n\t\treturn estiloCelda;\n\t}", "Style getStyle();", "public NotebookCell() {}", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle addNewSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(SECELL$18);\n return target;\n }\n }", "protected CellStyle getTextCellStyle(final Workbook workbook) {\n final CellStyle myStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n myStyle.setAlignment(CellStyle.ALIGN_LEFT);\n return myStyle;\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle addNewWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(WHOLETBL$2);\n return target;\n }\n }", "private void createRowForNewStyleButton(Composite section)\n {\n buttonNewStyle = toolkit.createButton(section, \"New Style...\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonNewStyle, SWT.TOP);\n buttonNewStyle.addSelectionListener(new SelectionListener()\n {\n public void widgetDefaultSelected(SelectionEvent e)\n {\n }\n\n public void widgetSelected(SelectionEvent e)\n {\n NewStylePopup dialog = new NewStylePopup(getShell(), documentFile, browser);\n if (dialog.open() == Dialog.OK)\n {\n if (dialog.getStyleInput() != null && dialog.getStyleInput().length() > 0)\n {\n // if the first field is not set\n if (valueToRecognizeReq == null)\n {\n valueToRecognizeReq = new Style(dialog.getStyleInput(), dialog.getRegexInput());\n reqIdComponent.setValueText(valueToRecognizeReq.getText());\n }\n else\n {\n tree.add(new Style(dialog.getStyleInput(), dialog.getRegexInput()));\n listFormat.refresh();\n }\n controller.removeDocumentType();\n updateWizard();\n }\n }\n }\n });\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle addNewNwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(NWCELL$26);\n return target;\n }\n }", "private void initTAWorkspaceStyle() {\r\n // LEFT SIDE - THE HEADER\r\n CSGWorkspace workspaceComponent = (CSGWorkspace)app.getWorkspaceComponent();\r\n workspaceComponent.getTAsHeaderBox().getStyleClass().add(CLASS_HEADER_PANE);\r\n workspaceComponent.getTAsHeaderLabel().getStyleClass().add(CLASS_HEADER_LABEL);\r\n\r\n // LEFT SIDE - THE TABLE\r\n TableView<TeachingAssistant> taTable = workspaceComponent.getTATable();\r\n taTable.getStyleClass().add(CLASS_TA_TABLE);\r\n for (TableColumn tableColumn : taTable.getColumns()) {\r\n tableColumn.getStyleClass().add(CLASS_TA_TABLE_COLUMN_HEADER);\r\n }\r\n\r\n // LEFT SIDE - THE TA DATA ENTRY\r\n workspaceComponent.getAddBox().getStyleClass().add(CLASS_ADD_TA_PANE);\r\n workspaceComponent.getNameTextField().getStyleClass().add(CLASS_ADD_TA_TEXT_FIELD);\r\n workspaceComponent.getAddButton().getStyleClass().add(CLASS_ADD_TA_BUTTON);\r\n workspaceComponent.getClearButton().getStyleClass().add(CLASS_CLEAR_BUTTON);\r\n workspaceComponent.getStartTime().getStyleClass().add(CLASS_OFFICE_HOURS_COMBO_BOX);\r\n workspaceComponent.getEndTime().getStyleClass().add(CLASS_OFFICE_HOURS_COMBO_BOX);\r\n\r\n // RIGHT SIDE - THE HEADER\r\n workspaceComponent.getOfficeHoursSubheaderBox().getStyleClass().add(CLASS_HEADER_PANE);\r\n workspaceComponent.getOfficeHoursSubheaderLabel().getStyleClass().add(CLASS_HEADER_LABEL);\r\n \r\n workspaceComponent.getCourseInfoPane().getStyleClass().add(CLASS_COURSE_INFO_PANE);\r\n workspaceComponent.getCourseInfoLabel().getStyleClass().add(CLASS_COURSE_INFO_LABEL);\r\n \r\n workspaceComponent.getCourseSubjectLabel().getStyleClass().add(CLASS_COURSE_REG_LABEL);\r\n workspaceComponent.getCourseNumberLabel().getStyleClass().add(CLASS_COURSE_REG_LABEL);\r\n workspaceComponent.getCourseSemesterLabel().getStyleClass().add(CLASS_COURSE_REG_LABEL);\r\n workspaceComponent.getCourseYearLabel().getStyleClass().add(CLASS_COURSE_REG_LABEL);\r\n workspaceComponent.getCourseTitleLabel().getStyleClass().add(CLASS_COURSE_REG_LABEL);\r\n workspaceComponent.getCourseInsNameLabel().getStyleClass().add(CLASS_COURSE_REG_LABEL);\r\n workspaceComponent.getCourseInsHomeLabel().getStyleClass().add(CLASS_COURSE_REG_LABEL);\r\n workspaceComponent.getCourseExportDirLabel().getStyleClass().add(CLASS_COURSE_REG_LABEL);\r\n \r\n workspaceComponent.getCourseDetails().getStyleClass().add(CLASS_COURSE_FIRST_BOX);\r\n workspaceComponent.getCoursePane().getStyleClass().add(CLASS_COURSE_PANE);\r\n workspaceComponent.getExportLabel().getStyleClass().add(CLASS_COURSE_EXPORT_LABEL);\r\n workspaceComponent.getCourseTemplatePane().getStyleClass().add(CLASS_COURSE_TEMPLATE_PANE);\r\n workspaceComponent.getCourseTemplateHeaderLabel().getStyleClass().add(CLASS_COURSE_TEMPLATE_HEADER);\r\n workspaceComponent.getCourseTemplateLocLabel().getStyleClass().add(CLASS_COURSE_TEMPLATE_LOCATION);\r\n workspaceComponent.getCourseSitePageLabel().getStyleClass().add(CLASS_COURSE_SITE_PAGE);\r\n workspaceComponent.getPageStylePane().getStyleClass().add(CLASS_PAGE_STYLE_PANE);\r\n workspaceComponent.getPageStyleHeader().getStyleClass().add(CLASS_PAGE_STYLE_LABEL);\r\n \r\n workspaceComponent.getBannerLabel().getStyleClass().add(CLASS_BANNER_LABEL);\r\n workspaceComponent.getLeftFooterLabel().getStyleClass().add(CLASS_LEFT_FOOTER_LABEL);\r\n workspaceComponent.getRightFooterLabel().getStyleClass().add(CLASS_RIGHT_FOOTER_LABEL);\r\n workspaceComponent.getStyleSheetLabel().getStyleClass().add(CLASS_STYLE_NOTE_LABEL);\r\n \r\n workspaceComponent.getRecitationHeaderLabel().getStyleClass().add(CLASS_RECITATION_HEADER);\r\n workspaceComponent.getRecitationPane().getStyleClass().add(CLASS_RECITATION_PANE);\r\n workspaceComponent.getRecitationAddLabel().getStyleClass().add(CLASS_RECITATION_ADD_LABEL);\r\n workspaceComponent.getRecitationAddPane().getStyleClass().add(CLASS_RECITATION_ADD_PANE);\r\n \r\n workspaceComponent.getRecSection().getStyleClass().add(CLASS_RECITATION_SECTION_LABEL);\r\n workspaceComponent.getRecInstructor().getStyleClass().add(CLASS_RECITATION_INSTRUCTOR_LABEL);\r\n workspaceComponent.getRecDayTime().getStyleClass().add(CLASS_RECITATION_DAYTIME_LABEL);\r\n workspaceComponent.getRecLocation().getStyleClass().add(CLASS_RECITATION_LOCATION_LABEL);\r\n workspaceComponent.getRecTA1().getStyleClass().add(CLASS_RECITATION_TA1_LABEL); \r\n workspaceComponent.getRecTA2().getStyleClass().add(CLASS_RECITATION_TA2_LABEL);\r\n \r\n workspaceComponent.getSchedulePane().getStyleClass().add(CLASS_SCHEDULE_PANE);\r\n workspaceComponent.getScheduleHeaderLabel().getStyleClass().add(CLASS_SCHEDULE_HEADER);\r\n workspaceComponent.getCalenderPane().getStyleClass().add(CLASS_CALENDER_PANE);\r\n workspaceComponent.getCalenderBoundariesLabel().getStyleClass().add(CLASS_CALENDER_HEADER);\r\n workspaceComponent.getStartMondayLabel().getStyleClass().add(CLASS_SCHEDULE_START_MON_LABEL);\r\n workspaceComponent.getEndFridayLabel().getStyleClass().add(CLASS_SCHEDULE_END_FRIDAY_LABEL);\r\n workspaceComponent.getScheduleTablePane().getStyleClass().add(CLASS_SCHEDULE_TABLE_PANE);\r\n workspaceComponent.getScheduleItemLabel().getStyleClass().add(CLASS_SCHEDULE_ITEM_LABEL);\r\n \r\n workspaceComponent.getScheduleAddEdit().getStyleClass().add(CLASS_SCHEDULE_ADDEDIT_LABEL);\r\n workspaceComponent.getScheduleTypeLabel().getStyleClass().add(CLASS_SCHEDULE_REG_SCHEDULE_LABEL);\r\n workspaceComponent.getScheduleDateLabel().getStyleClass().add(CLASS_SCHEDULE_REG_SCHEDULE_LABEL);\r\n workspaceComponent.getScheduleTimeLabel().getStyleClass().add(CLASS_SCHEDULE_REG_SCHEDULE_LABEL);\r\n workspaceComponent.getScheduleTitleLabel().getStyleClass().add(CLASS_SCHEDULE_REG_SCHEDULE_LABEL);\r\n workspaceComponent.getScheduleTopicLabel().getStyleClass().add(CLASS_SCHEDULE_REG_SCHEDULE_LABEL);\r\n workspaceComponent.getScheduleLinkLabel().getStyleClass().add(CLASS_SCHEDULE_REG_SCHEDULE_LABEL);\r\n workspaceComponent.getScheduleCriteriaLabel().getStyleClass().add(CLASS_SCHEDULE_REG_SCHEDULE_LABEL);\r\n \r\n workspaceComponent.getProjectPane().getStyleClass().add(CLASS_PROJECT_PANE);\r\n workspaceComponent.getProjectWholePane().getStyleClass().add(CLASS_PROJECT_PANE);\r\n workspaceComponent.getProjectHeaderLabel().getStyleClass().add(CLASS_PROJECT_LABEL);\r\n workspaceComponent.getTeamsPane().getStyleClass().add(CLASS_TEAMS_PANE);\r\n workspaceComponent.getTeamsHeaderLabel().getStyleClass().add(CLASS_TEAMS_HEADER);\r\n \r\n workspaceComponent.getNameColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getEmailColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getUseColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getNavColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getFileNameColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getScriptColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getInstructorColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getDayTimeColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getLocationColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getTa1Column().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getTa2Column().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getTypeColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getDateColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getTitleColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getTopicColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getTeamNameColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getColorColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getTextColorColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getLinkColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n workspaceComponent.getSectionColumn().getStyleClass().add(CLASS_TABLE_COLUMN);\r\n \r\n workspaceComponent.getTeamNameLabel().getStyleClass().add(CLASS_TEAMS_REG_LABEL); \r\n workspaceComponent.getTeamColorLabel().getStyleClass().add(CLASS_TEAMS_REG_LABEL);\r\n workspaceComponent.getTeamLinkLabel().getStyleClass().add(CLASS_TEAMS_REG_LABEL);\r\n workspaceComponent.getTeamTextColorLabel().getStyleClass().add(CLASS_TEAMS_REG_LABEL);\r\n workspaceComponent.getTeamAddEditLabel().getStyleClass().add(CLASS_TEAMS_ADD_LABEL);\r\n \r\n workspaceComponent.getStudentPane().getStyleClass().add(CLASS_TEAMS_PANE);\r\n workspaceComponent.getStudentHeaderLabel().getStyleClass().add(CLASS_TEAMS_HEADER);\r\n workspaceComponent.getStudentAddEditLabel().getStyleClass().add(CLASS_TEAMS_ADD_LABEL);\r\n \r\n workspaceComponent.getStudentFNameLabel().getStyleClass().add(CLASS_TEAMS_REG_LABEL);\r\n workspaceComponent.getStudentLNameLabel().getStyleClass().add(CLASS_TEAMS_REG_LABEL);\r\n workspaceComponent.getStudentRoleLabel().getStyleClass().add(CLASS_TEAMS_REG_LABEL);\r\n workspaceComponent.getStudentTeamLabel().getStyleClass().add(CLASS_TEAMS_REG_LABEL);\r\n \r\n workspaceComponent.getCourseWholePane().getStyleClass().add(CLASS_PROJECT_WHOLE_PANE);\r\n }", "public DataGridColumnStyle(java.lang.Object instance) throws Throwable {\n super(instance);\n if (instance instanceof JCObject) {\n classInstance = (JCObject) instance;\n } else\n throw new Exception(\"Cannot manage object, it is not a JCObject\");\n }", "public Style createSelectBoxStyle() {\n \t \tStroke stroke = styleFactory.createStroke(\n \t \t\t\tfilterFactory.literal(Color.BLUE),\n \t \t\t\tfilterFactory.literal(1),\n \tnull,\n \tnull,\n \tnull,\n \tnew float[] { 5, 2 },\n \tnull,\n \tnull,\n \tnull\n\t\t);\n\t\t//Cria um Symbolizer para linha.\n\t\tPolygonSymbolizer polygonSymbolizer = styleFactory.createPolygonSymbolizer(stroke, null, null);\n\t\t//Regra para um estilo de fei��o.\n\t\tRule rulePoly = styleFactory.createRule();\n\t\t\n\t\t//Adiciona o PointSymbolizer na regra.\n\t\t//rulePoly.setName(\"Polygon\"); \n\t\t//ruleLine.setFilter(filterFactory.equals(filterFactory.property(\"geom\"), filterFactory.literal(false)));\n\t\trulePoly.symbolizers().add(polygonSymbolizer); \n\t\t\t \n\t\t//Adiciona uma ou N regras em uma estilo de uma determinada fei��o.\n\t\tFeatureTypeStyle ftsPoly = styleFactory.createFeatureTypeStyle(new Rule[]{rulePoly});\n\t\t \n\t\t//Cria o estilo (SLD).\n\t\tStyle style = styleFactory.createStyle();\n\t\tstyle.featureTypeStyles().add(ftsPoly);\n\t\t \n\t\treturn style;\n }", "@SuppressWarnings(\"static-access\")\n\tpublic static XSSFCellStyle estiloTituloReporte(XSSFWorkbook libro) {\n\t\tXSSFCellStyle estiloCelda = libro.createCellStyle();\n\t\testiloCelda.setWrapText(true);\n\t\testiloCelda.setAlignment(XSSFCellStyle.ALIGN_CENTER);\n\t\testiloCelda.setVerticalAlignment(XSSFCellStyle.VERTICAL_CENTER);\n\t\testiloCelda.setFillForegroundColor((short) 44);\n\t\testiloCelda.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);\n\t\tXSSFFont fuente = libro.createFont();\n\t\tfuente.setFontHeightInPoints((short) 10);\n\t\tfuente.setFontName(fuente.DEFAULT_FONT_NAME);\n\t\tfuente.setBoldweight(XSSFFont.BOLDWEIGHT_BOLD);\n\t\tfuente.setColor((short) 9);\n\t\testiloCelda.setFont(fuente);\n\t\testiloCelda.setBorderBottom((short) 1);\n\t\testiloCelda.setBottomBorderColor((short) 30);\n\t\testiloCelda.setBorderLeft((short) 1);\n\t\testiloCelda.setLeftBorderColor((short) 30);\n\t\testiloCelda.setBorderRight((short) 1);\n\t\testiloCelda.setRightBorderColor((short) 30);\n\t\testiloCelda.setBorderTop((short) 1);\n\t\testiloCelda.setTopBorderColor((short) 30);\n\t\treturn estiloCelda;\n\t}", "abstract protected InlineStyle createInlineStyle(Node owner);", "public XSSFBorderFormatting createBorderFormatting(){\n CTDxf dxf = getDxf(true);\n CTBorder border;\n if(!dxf.isSetBorder()) {\n border = dxf.addNewBorder();\n } else {\n border = dxf.getBorder();\n }\n\n return new XSSFBorderFormatting(border, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }", "private void initCodeStyling() {\n\t\tboolean codeStyling = Boolean.valueOf(preferences.getProperty(\"codeStyling.enable\")).booleanValue();\n\t\tHashMap<String, Color> colorsMap = new HashMap<String, Color>();\n\t\tVector<String> keywords = null;\n\n\t\t// perform this only if code styling syntax coloring is enabled\n\t\tif (codeStyling) {\n\t\t\tint r = 0, g = 0, b = 0;\n\n\t\t\t// load colors from preferences file and store them in the\n\t\t\t// colors map\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"normal.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"normal.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"normal.color.b\"));\n\t\t\tcolorsMap.put(\"normalColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"numbers.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"numbers.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"numbers.color.b\"));\n\t\t\tcolorsMap.put(\"numbersColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"string.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"string.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"string.color.b\"));\n\t\t\tcolorsMap.put(\"stringColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"keywords.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"keywords.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"keywords.color.b\"));\n\t\t\tcolorsMap.put(\"keywordsColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"comments.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"comments.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"comments.color.b\"));\n\t\t\tcolorsMap.put(\"commentsColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"braceMatching.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"braceMatching.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"braceMatching.color.b\"));\n\t\t\tcolorsMap.put(\"braceMatchingColor\", new Color(r, g, b));\n\n\t\t\t// keywords are specified in the preferences file as comma\n\t\t\t// separated, so after getting them from the preferences file\n\t\t\t// the property is tokenized and added to a keywords vector\n\t\t\tkeywords = new Vector<String>();\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(preferences.getProperty(\"keywords\"), \";\");\n\t\t\twhile (tokenizer.hasMoreTokens())\n\t\t\t\tkeywords.addElement(tokenizer.nextToken());\n\n\t\t\tcodeDocument = new CodeDocument(codeStyling, colorsMap, keywords);\n\t\t\ttextPane.setDocument(codeDocument);\n\t\t}\n\t}", "public CellStyle getCellStyleAt(int arg0) {\n\t\treturn null;\n\t}", "public int getCellStyle(Class<?> clazz) {\n int style;\n if (isString(clazz)) {\n style = Styles.defaultStringBorderStyle();\n } else if (isDateTime(clazz) || isDate(clazz) || isLocalDateTime(clazz)) {\n if (numFmt == null) numFmt = DATETIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isBool(clazz) || isChar(clazz)) {\n style = Styles.clearHorizontal(Styles.defaultStringBorderStyle()) | Horizontals.CENTER;\n } else if (isInt(clazz) || isLong(clazz)) {\n style = Styles.defaultIntBorderStyle();\n } else if (isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) {\n style = Styles.defaultDoubleBorderStyle();\n } else if (isLocalDate(clazz)) {\n if (numFmt == null) numFmt = DATE_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isTime(clazz) || isLocalTime(clazz)) {\n if (numFmt == null) numFmt = TIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else {\n style = (1 << Styles.INDEX_FONT) | (1 << INDEX_BORDER); // Auto-style\n }\n\n // Reset custom number format if specified.\n if (numFmt != null) {\n style = Styles.clearNumFmt(style) | styles.addNumFmt(numFmt);\n }\n\n return style | (option & 1);\n }", "public JScrollPane createTable() {\n dataModel = new AbstractTableModel() {\n public int getColumnCount() { return names.length; }\n public int getRowCount() { return data.length;}\n public Object getValueAt(int row, int col) {return data[row][col];}\n public String getColumnName(int column) {return names[column];}\n public Class getColumnClass(int c) {return String.class;}\n //public boolean isCellEditable(int row, int col) {return true;}\n public void setValueAt(Object aValue, int row, int column) { data[row][column] = aValue; }\n };\n\n // Create the table\n tableView = new JTable(dataModel);\n\n // Show colors by rendering them in their own color.\n DefaultTableCellRenderer colorRenderer = new DefaultTableCellRenderer() {\n public void setValue(Object value) {\n\tif (value instanceof Color) {\n\t Color c = (Color)value;\n\t setForeground(c);\n\t setText(c.getRed() + \", \" + c.getGreen() + \", \" + c.getBlue());\n\t}\n }\n\n };\n tableView.setRowHeight(20);\n\n scrollpane = new JScrollPane(tableView);\n tableView.setPreferredScrollableViewportSize(new Dimension(200, 70));\n return scrollpane;\n }", "public void creatTemplate(Sheet sheet, String title) {\n\n String label1 = \"TẬP ĐOÀN VIỄN THÔNG QUÂN ĐỘI\";\n String label2 = \"TỔNG CÔNG TY VIỄN THÔNG VIETTEL\";\n String label3 = \"CỘNG HOÀ Xà HỘI CHỦ NGHĨA VIỆT NAM\";\n String label4 = \"Độc Lập - Tự Do - Hạnh Phúc\";\n\n createCellObject(sheet, 0, 0, label1, getCsSubTitle());\n createCellObject(sheet, 0, 1, label2, getCsCenterNoboderBoldweight());\n createCellObject(sheet, 5, 0, label3, getCsSubTitle());\n createCellObject(sheet, 5, 1, label4, getCsCenterNoboderBoldweight());\n createCellObject(sheet, 1, 4, title, getCsTitle());\n\n ExcelWriterUtils.mergeCells(sheet, 0, 0, 0, 2);\n ExcelWriterUtils.mergeCells(sheet, 1, 1, 0, 2);\n ExcelWriterUtils.mergeCells(sheet, 0, 0, 5, 8);\n ExcelWriterUtils.mergeCells(sheet, 1, 1, 5, 8);\n ExcelWriterUtils.mergeCells(sheet, 4, 4, 1, 6);\n\n setRowHeight(sheet, 4, 630);\n }", "VariableCell createVariableCell();", "public void buildTableStyle( ITableContent table, StringBuffer styleBuffer,\n \t\t\tString layoutPreference )\n \t{\n \t\tIStyle style = table.getStyle( );\n \n \t\taddDefaultTableStyles( styleBuffer );\n \n \t\t// display\n \t\tDimensionType x = table.getX( );\n \t\tDimensionType y = table.getY( );\n \t\tint display = getElementType( x, y, null, null, style );\n \t\tsetDisplayProperty( display,\n \t\t\t\tHTMLEmitterUtil.DISPLAY_INLINE,\n \t\t\t\tstyleBuffer );\n \n \t\t// shrink\n \t\thandleShrink( HTMLEmitterUtil.DISPLAY_BLOCK,\n \t\t\t\tstyle,\n \t\t\t\ttable.getHeight( ),\n \t\t\t\ttable.getWidth( ),\n \t\t\t\tstyleBuffer );\n \n \t\t//implement table-layout\n \t\tif ( HTMLRenderOption.LAYOUT_PREFERENCE_FIXED.equals( layoutPreference ) )\n \t\t{\n \t\t\t// shrink table will not output table-layout;\n \t\t\tif ( ( null == style )\n \t\t\t\t\t|| !\"true\".equalsIgnoreCase( style.getCanShrink( ) ) )\n \t\t\t{\n \t\t\t\t// build the table-layout\n \t\t\t\tstyleBuffer.append( \" table-layout:fixed;\" );\n \t\t\t}\n \t\t}\n \t\tbuildStyle( table, styleBuffer );\n \t}", "@Override\n public void initStyle() {\n\t// NOTE THAT EACH CLASS SHOULD CORRESPOND TO\n\t// A STYLE CLASS SPECIFIED IN THIS APPLICATION'S\n\t// CSS FILE\n \n // FOR CHANGING THE ITEMS INSIDE THE EDIT TOOLBAR\n editToolbarPane.getStyleClass().add(CLASS_EDITTOOLBAR_PANE);\n \n mapNameLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n mapName.getStyleClass().add(CLASS_MAPNAME_TEXTFIELD);\n backgroundColorLabel.getStyleClass().add(CLASS_LABEL);\n borderColorLabel.getStyleClass().add(CLASS_LABEL);\n borderThicknessLabel.getStyleClass().add(CLASS_LABEL);\n zoomLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n borderThicknessSlider.getStyleClass().add(CLASS_BORDER_SLIDER);\n mapZoomingSlider.getStyleClass().add(CLASS_ZOOM_SLIDER);\n buttonBox.getStyleClass().add(CLASS_PADDING);\n // FIRST THE WORKSPACE PANE\n workspace.getStyleClass().add(CLASS_BORDERED_PANE);\n }", "public String getTableCSS() {\n return \"k-data-table\";\n }", "public HtmlTableCell(){\n\n }" ]
[ "0.7382709", "0.737809", "0.7084974", "0.692385", "0.6834419", "0.66367954", "0.6501511", "0.63987607", "0.6286316", "0.6286196", "0.6235537", "0.6185034", "0.6065653", "0.6023548", "0.6002956", "0.586955", "0.5856858", "0.58512694", "0.5836752", "0.58015716", "0.57989854", "0.5753141", "0.57017463", "0.56868637", "0.5659556", "0.56556606", "0.56304", "0.56204337", "0.5615391", "0.56100553", "0.55876404", "0.5581607", "0.5580004", "0.55642664", "0.55549127", "0.55182093", "0.5493214", "0.5490366", "0.54901946", "0.54813045", "0.54799825", "0.54772377", "0.5464799", "0.5463259", "0.5450951", "0.54444206", "0.54362845", "0.54338956", "0.54187024", "0.54168844", "0.54163516", "0.540745", "0.54013056", "0.53939843", "0.5377448", "0.53501034", "0.5330925", "0.5321916", "0.53190875", "0.5317983", "0.5317888", "0.53154963", "0.5315072", "0.53090644", "0.5306935", "0.53046346", "0.52987856", "0.52955663", "0.5268857", "0.5268035", "0.5263622", "0.5253943", "0.5240915", "0.5234077", "0.5230756", "0.5211732", "0.520511", "0.52023786", "0.52006084", "0.51988965", "0.51981103", "0.5192658", "0.5191549", "0.5188294", "0.5183038", "0.5182007", "0.5174638", "0.515404", "0.5149205", "0.5148928", "0.51461023", "0.51413065", "0.51382446", "0.5128827", "0.5126774", "0.51222533", "0.5120372", "0.51190954", "0.51172495", "0.51138645" ]
0.7045373
3
Parameters: Variables: 20 Baselines: 200 IfBranches: 4
public void reduce(Text prefix, Iterator<IntWritable> iter, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException { int a000_ = 0; int a001_ = 0; int a002_ = 0; int a003_ = 0; int a004_ = 0; int a005_ = 0; int a006_ = 0; int a007_ = 0; int a008_ = 0; int a009_ = 0; int a010_ = 0; int a011_ = 0; int a012_ = 0; int a013_ = 0; int a014_ = 0; int a015_ = 0; int a016_ = 0; int a017_ = 0; int a018_ = 0; int a019_ = 0; int cur_ = 0; while (iter.hasNext()) { cur_ = iter.next().get(); a011_ = a015_ - a008_; a003_ = a000_ + a003_; a005_ = a005_ + a006_; a015_ = a012_ + a011_; a008_ = a014_ + a001_; a007_ = a005_ + a015_; a002_ = a000_ - a009_; a012_ = a005_ + a012_; a010_ = a018_ + a003_; a014_ = a014_ + a004_; cur_ = a002_ + a004_; a017_ = a007_ + a009_; a005_ = cur_ - a014_; a000_ = a012_ - a006_; a006_ = a013_ - a011_; a000_ = 0 - a008_; a006_ = a007_ + a003_; a015_ = a014_ - a019_; a004_ = a012_ + cur_; a005_ = a018_ - a017_; a007_ = a006_ + a000_; a005_ = cur_ - a009_; a001_ = a009_ + a008_; a015_ = cur_ + a010_; a013_ = a018_ * -2; cur_ = a013_ - a012_; a019_ = a002_ - a001_; a017_ = a014_ + a004_; a005_ = a017_ - a006_; a016_ = a019_ - a019_; a009_ = a000_ + cur_; a013_ = a003_ * -1; if (a010_ >= a004_) { a015_ = a018_ + a015_; a010_ = a009_ - a010_; a012_ = a011_ - a005_; a014_ = a002_ - a012_; if (a000_ != a013_) { a004_ = a015_ + cur_; a013_ = a019_ + a016_; a013_ = a012_ + a009_; a016_ = a014_ - -5; a001_ = a002_ - a004_; } else { a007_ = a013_ - a003_; a016_ = a007_ - a018_; a016_ = a013_ + a011_; a013_ = a013_ - a012_; a013_ = -1 + a006_; cur_ = a002_ - a017_; a007_ = a002_ + a018_; cur_ = a002_ + a015_; a003_ = a015_ + a007_; a017_ = a005_ + a009_; a013_ = a006_ - -2; a008_ = a005_ - a003_; a002_ = a017_ - a014_; a006_ = a006_ + a010_; a008_ = a018_ + a010_; a000_ = a015_ + -4; a014_ = a004_ - a010_; a012_ = a009_ - a016_; a008_ = a002_ - a019_; a015_ = a007_ + a005_; a004_ = cur_ + a018_; a011_ = a007_ + a012_; a007_ = 4 - a011_; a001_ = a012_ + cur_; a011_ = a010_ - a013_; a003_ = a006_ - a011_; a006_ = a012_ - a008_; a015_ = a010_ - a013_; a019_ = a012_ + a011_; if (a017_ != a015_) { cur_ = a010_ - cur_; a013_ = a009_ - a002_; a008_ = a011_ - a008_; a019_ = a005_ - a000_; a010_ = a019_ + a010_; a002_ = a004_ - 1; a017_ = a015_ - cur_; cur_ = 1 - a005_; a004_ = a000_ + a003_; a001_ = a012_ + 2; a004_ = a003_ - 2; a003_ = a010_ - -4; a019_ = a014_ - a002_; a011_ = a002_ - a007_; a000_ = a007_ + a015_; a018_ = a009_ + cur_; a006_ = a003_ - a017_; if (a008_ == a013_) { a005_ = a017_ + a016_; a005_ = a005_ + a013_; a017_ = a015_ + a007_; a016_ = a016_ + a018_; a016_ = a014_ - a015_; a003_ = a019_ - a018_; cur_ = a010_ + a005_; a003_ = a001_ + a010_; a016_ = -4 + a003_; a002_ = a017_ + a008_; a016_ = a003_ - a009_; a003_ = a009_ + a015_; a016_ = a004_ - a000_; a005_ = a015_ + cur_; a018_ = a010_ + a003_; a016_ = a017_ - a004_; } else { a018_ = a019_ + a009_; a015_ = a004_ + a018_; a019_ = a005_ - a003_; a009_ = -5 + a008_; a010_ = a000_ + a000_; a009_ = a009_ - a011_; a005_ = a006_ - cur_; a019_ = a018_ + a009_; a014_ = a005_ + cur_; a004_ = a010_ + a008_; a000_ = a015_ - a018_; a015_ = a017_ - a017_; a008_ = a001_ + a008_; a002_ = a009_ - a012_; a010_ = a006_ - a012_; a014_ = a009_ + a001_; a016_ = a000_ - a016_; a004_ = a018_ - a019_; a007_ = a003_ + a011_; a019_ = a004_ - a017_; a015_ = a018_ - a017_; a003_ = a000_ + a002_; a005_ = a007_ - a014_; a001_ = cur_ + a017_; } a012_ = a012_ + cur_; } else { a010_ = a018_ + a000_; a002_ = a000_ - a003_; a005_ = a012_ + a012_; a015_ = a004_ + a004_; a008_ = a013_ - a019_; a004_ = a002_ + a015_; a011_ = a014_ + a012_; a004_ = a019_ + a010_; a002_ = a018_ + a010_; cur_ = a017_ + a019_; a017_ = a013_ + a005_; a013_ = a008_ - a012_; a004_ = a012_ + a007_; } a009_ = a015_ - a016_; a000_ = a006_ + a008_; a003_ = a008_ - a011_; a001_ = a016_ - a006_; a016_ = a014_ + a016_; a000_ = a011_ + a003_; a004_ = a010_ + a019_; a013_ = a008_ + cur_; a016_ = a016_ + a015_; } a010_ = a003_ + a007_; a006_ = a009_ - a000_; a002_ = a017_ - a001_; a013_ = a016_ + a019_; a013_ = a009_ - a015_; a005_ = a002_ - a018_; a009_ = a002_ + a007_; a008_ = a008_ + a002_; a007_ = a005_ + a009_; a017_ = a019_ + a013_; a012_ = a003_ + a004_; a008_ = a012_ + a012_; a003_ = a007_ + a005_; cur_ = a014_ + a007_; a009_ = a016_ + a010_; a006_ = a005_ - a003_; a014_ = a019_ + cur_; a006_ = a007_ + a000_; a013_ = a011_ - a011_; a018_ = a009_ - 1; a002_ = a004_ - a014_; } else { a004_ = a006_ - a014_; a016_ = a017_ + 2; a014_ = a006_ - a002_; a002_ = a016_ + cur_; a014_ = -3 + a018_; } cur_ = a017_ + a015_; a005_ = a003_ - a015_; a014_ = a019_ + a009_; cur_ = cur_ + a005_; a009_ = a007_ - a004_; cur_ = a014_ + a006_; a013_ = a002_ - a012_; a002_ = a008_ + a014_; a000_ = a006_ + a004_; a017_ = 1 - a009_; a012_ = a017_ + a001_; a011_ = a009_ - a010_; a011_ = a018_ - a014_; a016_ = a003_ - cur_; a013_ = cur_ + a012_; a015_ = a012_ + a010_; a017_ = a007_ + a017_; a000_ = -1 + a008_; a010_ = a008_ + a003_; a016_ = a009_ + a010_; a002_ = a011_ + a008_; a016_ = a015_ + a016_; a002_ = a012_ + a008_; a017_ = a013_ + a004_; } output.collect(prefix, new IntWritable(a005_)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printBranch(Configuration indexingVars, Configuration confComplete, \n Vector listTrans, FiniteStates mainVar, int tabs, \n PrintWriter p){\n Configuration restOfVariables=null;\n Configuration parents=null;\n Vector parentVars=new Vector();\n int i,j,k;\n\n // First at all, test if confSinTrans is null. In this case, it is time\n // to print the values. The values will be contained between \"{\" and \"}\"\n if (indexingVars.getVariables().size() == 0){\n // In this case, get the transparent related to the configuration\n // for non transparent variables. From confComplete form a new\n // configuration with all the non transparent variables. Remember\n // that confSinTrans does not contain all the non transparent\n // variables, but those that are not considered yet\n\n for(i=0; i < confComplete.getVariables().size(); i++){\n FiniteStates var=(FiniteStates)confComplete.getVariables().elementAt(i);\n\n if (listTrans.contains(var) == false && var != mainVar){\n parentVars.addElement(var);\n }\n }\n parents=new Configuration(parentVars);\n\n // Reset the configuration with the values in confComplete\n parents.resetConfiguration(confComplete);\n \n // Get the index of the concrete values for confSinTrans respect the\n // whole set of possible values\n int index=parents.getIndexInTable();\n\n // Get the transparent variable related to this configuration\n FiniteStates transVar=(FiniteStates)listTrans.elementAt(index);\n\n // We have to write as much tables as the number of values for\n // the transparent variable. Print the \"{\". Before printing \"{\"\n // print the right number of tabs\n for(k=0; k < tabs+3; k++)\n p.print(\" \");\n p.println(\"{\");\n\n // Print the extreme points for the values of the transparent\n // variable \n for(i=0; i < transVar.getNumStates(); i++){\n // Print the required number of spaces\n for(k=0; k < tabs+3; k++)\n p.print(\" \");\n\n // Complete the configuration to get the desired values\n confComplete.putValue(transVar,i);\n\n // Print the word table\n p.print(\" table (\");\n\n // Consider the values for the mainVar\n for(j=0; j < mainVar.getNumStates(); j++){\n confComplete.putValue(mainVar.getName(),j);\n\n // Get the value and print it\n double value=getValue(confComplete);\n p.print(value);\n if (j != mainVar.getNumStates()-1)\n p.print(\", \");\n }\n\n // This table is finished\n p.println(\")\");\n }\n\n // One all the tables are printed, print \"}\"\n for(k=0; k < tabs+3; k++)\n p.print(\" \");\n p.println(\"}\");\n }\n else{\n // Consider a new variable. We must go over its states\n FiniteStates varConsidered=(FiniteStates)indexingVars.getVariables().elementAt(0);\n\n // Add a new tab separation\n tabs++;\n\n // We must consider all the values for this variable\n for(i=0; i < varConsidered.getNumStates(); i++){\n\n // Make a new configuration removing this variable\n restOfVariables=new Configuration(indexingVars.getVariables(),varConsidered.getName());\n\n // Print the spaces\n for(j=0; j < tabs; j++)\n p.print(\" \");\n\n // For the first value, print \"case nameOfVar {\"\n if (i == 0){\n p.println(\"case \"+varConsidered.getName()+\"{\");\n // Add a tab separation\n tabs++;\n\n // Add new tabs for the first value\n for(j=0; j < tabs; j++)\n p.print(\" \");\n }\n\n // Print the name of the state\n p.println(varConsidered.getPrintableState(i)+ \" = \");\n\n // Set this value for confComplete\n confComplete.putValue(varConsidered.getName(),i);\n\n // New call to the method\n printBranch(restOfVariables,confComplete,listTrans,mainVar,tabs,p);\n \n // If it is the last value, then close the \"}\"\n if (i == varConsidered.getNumStates()-1){\n // Decrease the number of whites\n tabs-=1;\n // Add a tab separation\n for(j=0; j < tabs; j++)\n p.print(\" \");\n p.println(\"}\");\n\n }\n }\n }\n }", "@Override\n\tvoid parseBranch(int index, boolean branched) {\n\t\t\n\t}", "public int getBranchCount() { return _brcnt; }", "protected void method_865(bcb var1) {\r\n label136: {\r\n boolean var2;\r\n boolean var3;\r\n label132: {\r\n label131: {\r\n label130: {\r\n label137: {\r\n label138: {\r\n label139: {\r\n label140: {\r\n label141: {\r\n var2 = method_1147();\r\n int var10000 = var1.field_450;\r\n if(var2) {\r\n switch(var1.field_450) {\r\n case 1:\r\n var10000 = class_687.field_2947;\r\n break;\r\n case 2:\r\n break label141;\r\n case 3:\r\n break label140;\r\n case 4:\r\n break label139;\r\n case 5:\r\n break label138;\r\n case 50:\r\n break label137;\r\n case 60:\r\n break label130;\r\n case 70:\r\n break label131;\r\n case 100:\r\n break label132;\r\n case 110:\r\n break label136;\r\n default:\r\n return;\r\n }\r\n }\r\n\r\n if(var2) {\r\n var10000 = var10000 == 0?1:0;\r\n }\r\n\r\n class_687.field_2947 = (boolean)var10000;\r\n this.field_972.field_449 = String.valueOf(class_687.field_2947);\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n var3 = class_687.field_2946;\r\n if(var2) {\r\n var3 = !class_687.field_2946;\r\n }\r\n\r\n class_687.field_2946 = var3;\r\n this.field_973.field_449 = String.valueOf(class_687.field_2946);\r\n this.field_984 = true;\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n var3 = class_687.field_2948;\r\n if(var2) {\r\n var3 = !class_687.field_2948;\r\n }\r\n\r\n class_687.field_2948 = var3;\r\n this.field_974.field_449 = String.valueOf(class_687.field_2948);\r\n this.field_983 = true;\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n var3 = class_687.field_2951;\r\n if(var2) {\r\n var3 = !class_687.field_2951;\r\n }\r\n\r\n class_687.field_2951 = var3;\r\n this.field_975.field_449 = String.valueOf(class_687.field_2951);\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n var3 = class_687.field_2952;\r\n if(var2) {\r\n var3 = !class_687.field_2952;\r\n }\r\n\r\n class_687.field_2952 = var3;\r\n this.field_976.field_449 = String.valueOf(class_687.field_2952);\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n class_687.field_2949 = this.field_979.method_835();\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n class_687.field_2950 = this.field_980.method_835();\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n class_687.field_2953 = (double)this.field_981.method_834();\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n bao var6;\r\n label77: {\r\n class_207 var5;\r\n label142: {\r\n var3 = this.field_983;\r\n if(var2) {\r\n if(this.field_983) {\r\n bbv var4 = bao.method_5273().canLoseFocus4;\r\n bbv.SetHUDText(\"\");\r\n }\r\n\r\n var5 = this;\r\n if(!var2) {\r\n break label142;\r\n }\r\n\r\n var3 = this.field_984;\r\n }\r\n\r\n if(var3) {\r\n var6 = this.field_557;\r\n if(!var2) {\r\n break label77;\r\n }\r\n\r\n if(this.field_557.cursorCounter6 != null) {\r\n class_687.field_2954 = true;\r\n }\r\n }\r\n\r\n class_687.method_3712();\r\n this.field_983 = false;\r\n this.field_984 = false;\r\n var5 = this;\r\n }\r\n\r\n var6 = var5.field_557;\r\n }\r\n\r\n var6.method_5236(this.field_971);\r\n if(var2) {\r\n return;\r\n }\r\n }\r\n\r\n class_687.method_3711();\r\n this.field_557.method_5236(this.field_971);\r\n this.field_983 = false;\r\n this.field_984 = false;\r\n }", "MultipleBranchingBlock createMultipleBranchingBlock();", "final public void conditional() throws ParseException {\n jj_consume_token(IF);\n if (jj_2_40(4)) {\n jj_consume_token(39);\n } else {\n ;\n }\n jj_consume_token(BLOCKEDP);\n label_6:\n while (true) {\n if (jj_2_41(4)) {\n ;\n } else {\n break label_6;\n }\n jj_consume_token(34);\n }\n jj_consume_token(37);\n label_7:\n while (true) {\n if (jj_2_42(4)) {\n ;\n } else {\n break label_7;\n }\n jj_consume_token(34);\n }\n if (jj_2_43(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(38);\n }", "private boolean inMultipleBranches(List<Boolean> branches) {\n int inBranches = 0;\n for (Boolean bool : branches) {\n if (bool && ++inBranches > 1) {\n break;\n }\n }\n return inBranches > 1;\n }", "protected void statement(INestedIfElseClauseContainer upperIf) \r\n\t\t\t\t\t\t\t throws NoDefaultDistributionDeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidConditionantException,\r\n\t\t\t\t\t\t\t\t\tSomeStateUndeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidProbabilityRangeException,\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tTableFunctionMalformedException{\r\n\t\t// Debug.println(\"PARSING STATEMENT, VALUE = \" + value + \", LOOKAHEAD = \" + look);\r\n\t\tif (look == '[') {\r\n\t\t\t\t\t\t\t\r\n\t\t\t// Debug.println(\"\");\r\n\t\t\t// Debug.print(\" \");\r\n\t\t\tmatch('[');\r\n\t\t\t\r\n\t\t\t// initialize currently evaluated temporary table's collumn\r\n\t\t\t//this.currentProbCellList = new ArrayList<TempTableProbabilityCell>();\r\n\t\t\t\r\n\t\t\tassignmentOrIf(upperIf);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tmatch(']');\r\n\t\t\t// Debug.println(\"\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t// Debug.println(\"COULD NOT FIND '['\");\r\n\t\t\tthis.expected(\"[\");\r\n\t\t}\r\n\t}", "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource.DEPTH_ONE), new CVSTag(\"b1\", CVSTag.BRANCH));\n branch(asResourceMapping(new IResource[] { project.getFolder(\"folder1\") }, IResource.DEPTH_ONE), new CVSTag(\"b2\", CVSTag.BRANCH));\n branch(asResourceMapping(new IResource[] { project.getFile(\"folder1/subfolder1/c.txt\") }, IResource.DEPTH_ZERO), new CVSTag(\"b3\", CVSTag.BRANCH));\n branch(asResourceMapping(new IResource[] { project }, IResource.DEPTH_INFINITE), new CVSTag(\"b4\", CVSTag.BRANCH));\n }", "public boolean method_2511(ahb var1, int var2, int var3, int var4, int var5, int var6) {\r\n String[] var7 = class_752.method_4253();\r\n int var10000 = var1.field_1832;\r\n if(var7 != null) {\r\n label157: {\r\n if(!var1.field_1832) {\r\n byte var8 = this.method_2685(var1, var2, var3, var4, var6);\r\n var10000 = var8;\r\n if(var7 != null) {\r\n label147: {\r\n if(var8 != 0) {\r\n var10000 = var5;\r\n if(var7 == null) {\r\n break label147;\r\n }\r\n\r\n if(var5 == 1) {\r\n var1.method_2055(var2, var3, var4, var6 | 8, 2);\r\n return false;\r\n }\r\n }\r\n\r\n var10000 = var8;\r\n }\r\n }\r\n\r\n if(var7 == null) {\r\n break label157;\r\n }\r\n\r\n if(var10000 == 0) {\r\n var10000 = var5;\r\n if(var7 == null) {\r\n break label157;\r\n }\r\n\r\n if(var5 == 0) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n }\r\n\r\n label162: {\r\n double var10001;\r\n double var10002;\r\n double var10003;\r\n boolean var20;\r\n if(var7 != null) {\r\n if(var10000 == 0) {\r\n var20 = this.method_2691(var1, var2, var3, var4, var6);\r\n if(var7 != null) {\r\n if(!var20) {\r\n return false;\r\n }\r\n\r\n var1.method_2055(var2, var3, var4, var6 | 8, 2);\r\n }\r\n\r\n var10001 = (double)var2 + 0.5D;\r\n var10002 = (double)var3 + 0.5D;\r\n var10003 = (double)var4 + 0.5D;\r\n String[] var17 = field_2148;\r\n var1.method_2084(var10001, var10002, var10003, \"tile.piston.out\", 0.5F, var1.field_1819.nextFloat() * 0.25F + 0.6F);\r\n if(var7 != null) {\r\n break label162;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n if(var7 == null) {\r\n return (boolean)var10000;\r\n }\r\n\r\n if(var10000 == 1) {\r\n class_580 var18 = var1.method_31(var2 + class_1707.field_8947[var6], var3 + class_1707.field_8948[var6], var4 + class_1707.field_8949[var6]);\r\n var20 = var18 instanceof class_598;\r\n if(var7 != null) {\r\n if(var20) {\r\n ((class_598)var18).method_3196();\r\n }\r\n\r\n var1.method_2054(var2, var3, var4, class_1192.field_6063, var6, 3);\r\n var1.method_2131(var2, var3, var4, class_474.method_2823(this, var6, var6, false, true));\r\n var20 = this.field_2143;\r\n }\r\n\r\n if(var7 != null) {\r\n label125: {\r\n if(var20) {\r\n int var9;\r\n int var10;\r\n int var11;\r\n aji var12;\r\n int var13;\r\n byte var14;\r\n label119: {\r\n var9 = var2 + class_1707.field_8947[var6] * 2;\r\n var10 = var3 + class_1707.field_8948[var6] * 2;\r\n var11 = var4 + class_1707.field_8949[var6] * 2;\r\n var12 = var1.getBlock(var9, var10, var11);\r\n var13 = var1.method_33(var9, var10, var11);\r\n var14 = 0;\r\n if(var12 == class_1192.field_6063) {\r\n class_580 var15 = var1.method_31(var9, var10, var11);\r\n var10000 = var15 instanceof class_598;\r\n if(var7 == null) {\r\n break label119;\r\n }\r\n\r\n if(var10000 != 0) {\r\n class_598 var16 = (class_598)var15;\r\n var10000 = var16.method_3189();\r\n if(var7 == null) {\r\n break label119;\r\n }\r\n\r\n if(var10000 == var6) {\r\n var10000 = var16.method_3188();\r\n if(var7 == null) {\r\n break label119;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var16.method_3196();\r\n var12 = var16.method_3187();\r\n var13 = var16.getBlock96();\r\n var14 = 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = var14;\r\n }\r\n\r\n label165: {\r\n if(var7 != null) {\r\n label106: {\r\n if(var10000 == 0) {\r\n label166: {\r\n aji var21 = var12;\r\n if(var7 != null) {\r\n if(var12.method_2424() == awt.field_4170) {\r\n break label166;\r\n }\r\n\r\n var21 = var12;\r\n }\r\n\r\n var10000 = method_2689(var21, var1, var9, var10, var11, false);\r\n if(var7 == null) {\r\n break label106;\r\n }\r\n\r\n if(var10000 != 0) {\r\n label95: {\r\n var10000 = var12.method_2514();\r\n if(var7 != null) {\r\n if(var10000 != 0) {\r\n label91: {\r\n var21 = var12;\r\n class_420 var19 = class_1192.field_6060;\r\n if(var7 != null) {\r\n if(var12 == class_1192.field_6060) {\r\n break label91;\r\n }\r\n\r\n var21 = var12;\r\n var19 = class_1192.field_6056;\r\n }\r\n\r\n if(var21 != var19) {\r\n break label95;\r\n }\r\n }\r\n }\r\n\r\n var2 += class_1707.field_8947[var6];\r\n var3 += class_1707.field_8948[var6];\r\n var4 += class_1707.field_8949[var6];\r\n var1.method_2054(var2, var3, var4, class_1192.field_6063, var13, 3);\r\n var1.method_2131(var2, var3, var4, class_474.method_2823(var12, var13, var6, false, false));\r\n var1.method_2056(var9, var10, var11);\r\n }\r\n\r\n if(var7 != null) {\r\n break label165;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = var14;\r\n }\r\n }\r\n\r\n if(var7 != null && var10000 == 0) {\r\n var1.method_2056(var2 + class_1707.field_8947[var6], var3 + class_1707.field_8948[var6], var4 + class_1707.field_8949[var6]);\r\n }\r\n }\r\n\r\n if(var7 != null) {\r\n break label125;\r\n }\r\n }\r\n\r\n var1.method_2056(var2 + class_1707.field_8947[var6], var3 + class_1707.field_8948[var6], var4 + class_1707.field_8949[var6]);\r\n }\r\n }\r\n\r\n var10001 = (double)var2 + 0.5D;\r\n var10002 = (double)var3 + 0.5D;\r\n var10003 = (double)var4 + 0.5D;\r\n String[] var10004 = field_2148;\r\n var1.method_2084(var10001, var10002, var10003, \"tile.piston.in\", 0.5F, var1.field_1819.nextFloat() * 0.15F + 0.6F);\r\n }\r\n }\r\n\r\n var10000 = 1;\r\n return (boolean)var10000;\r\n }", "private void compileIfHelper() throws IOException {\n for (int i = 0; i < 2; i++) {\n printToken();\n getNextToken();\n }\n compileExpression();\n for (int i = 0; i < 2; i++) {\n printToken();\n getNextToken();\n }\n compileStatements();\n printToken();\n getNextToken();\n if (currentToken.equals(ELSE_TAG)) {\n for (int i = 0; i < 2; i++) {\n printToken();\n getNextToken();\n }\n compileStatements();\n printToken();\n getNextToken();\n }\n }", "protected void evalBranch(){\n List<Token> arguments = this.mainToken.getChilds();\n\n //Primer argumento es un string\n String stringExpression = arguments.get(0).getValue();\n //Removemos la referencia en la lista\n arguments.remove(0);\n\n String response = this.make(stringExpression, arguments);\n\n //Eliminar hojas\n this.setResponse(response);\n }", "private boolean method_2685(ahb var1, int var2, int var3, int var4, int var5) {\r\n String[] var6 = class_752.method_4253();\r\n int var10000 = var5;\r\n boolean var7;\r\n if(var6 != null) {\r\n label148: {\r\n if(var5 != 0) {\r\n var10000 = var1.method_2170(var2, var3 - 1, var4, 0);\r\n if(var6 == null) {\r\n break label148;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n }\r\n\r\n byte var10001 = 1;\r\n if(var6 != null) {\r\n label138: {\r\n if(var10000 != 1) {\r\n var10000 = var1.method_2170(var2, var3 + 1, var4, 1);\r\n if(var6 == null) {\r\n break label138;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n var10001 = 2;\r\n }\r\n\r\n if(var6 != null) {\r\n label128: {\r\n if(var10000 != var10001) {\r\n var10000 = var1.method_2170(var2, var3, var4 - 1, 2);\r\n if(var6 == null) {\r\n break label128;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n var10001 = 3;\r\n }\r\n\r\n if(var6 != null) {\r\n label118: {\r\n if(var10000 != var10001) {\r\n var10000 = var1.method_2170(var2, var3, var4 + 1, 3);\r\n if(var6 == null) {\r\n break label118;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n var10001 = 5;\r\n }\r\n\r\n label153: {\r\n if(var6 != null) {\r\n label104: {\r\n if(var10000 != var10001) {\r\n var10000 = var1.method_2170(var2 + 1, var3, var4, 5);\r\n if(var6 == null) {\r\n break label104;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n if(var6 == null) {\r\n break label153;\r\n }\r\n\r\n var10001 = 4;\r\n }\r\n\r\n if(var10000 != var10001) {\r\n var10000 = var1.method_2170(var2 - 1, var3, var4, 4);\r\n if(var6 == null) {\r\n break label153;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var1.method_2170(var2, var3, var4, 0);\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var10000 = var1.method_2170(var2, var3 + 2, var4, 1);\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var10000 = var1.method_2170(var2, var3 + 1, var4 - 1, 2);\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var10000 = var1.method_2170(var2, var3 + 1, var4 + 1, 3);\r\n }\r\n\r\n int var8;\r\n ahb var9;\r\n int var10002;\r\n int var10003;\r\n byte var10004;\r\n label155: {\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var9 = var1;\r\n var8 = var2 - 1;\r\n var10002 = var3 + 1;\r\n var10003 = var4;\r\n var10004 = 4;\r\n if(var6 == null) {\r\n break label155;\r\n }\r\n\r\n var10000 = var1.method_2170(var8, var10002, var4, 4);\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var9 = var1;\r\n var8 = var2 + 1;\r\n var10002 = var3 + 1;\r\n var10003 = var4;\r\n var10004 = 5;\r\n }\r\n\r\n var7 = var9.method_2170(var8, var10002, var10003, var10004);\r\n return var7;\r\n }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "public boolean hasBranch() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasBranch() \");\n Via via=(Via)sipHeader;\n \n return via.hasParameter(Via.BRANCH); \n }", "public ArrayList<Byte> generateIfBlockCode(IfBlock ib) {\n if ((ib.getActions().getChildren().size() == 0) || (ib.getCondition().getChildren().size() == 0)\n || ib.getIfHolders().getChildren().size() == 0) {\n return null;\n }\n Block conBlock = (Block) ib.getCondition().getChildren().get(0);\n\n ArrayList<Byte> ifArr = generateByteList(ib.getIfHolders());\n ArrayList<Byte> elseArr = generateByteList(ib.getElseHolders());\n\n ArrayList<Byte> cmdArr = new ArrayList<>();\n //checking condition or sense\n char instruction = 'c';\n int address = conBlock.getCapability().getDevice().getAddress();\n char cmdChar = conBlock.getCapability().getExeCommand().charAt(0);\n char cmdChar1 = conBlock.getCapability().getExeCommand().charAt(1);\n\n char compType = conBlock.getCapability().getCompType().charAt(0);\n cmdArr.add((byte) instruction);\n cmdArr.add((byte) address);\n cmdArr.add((byte) compType);\n short respSize = Short.parseShort(conBlock.getCapability().getRespSize());\n byte[] respArr = shortToByteArray(respSize);\n cmdArr.add(respArr[0]);\n int refVal = Integer.parseInt(conBlock.getCapability().getRefValue());\n if (conBlock.getCapability().getType().equals(Capability.CAP_CONDITION)) {\n refVal = Integer.parseInt(conBlock.getTextField().getText());\n }\n byte[] refArr = intToByteArray(refVal);\n for (int i = 0; i < respSize; i++) {\n cmdArr.add(refArr[i]);\n }\n cmdArr.add((byte) cmdChar);\n cmdArr.add((byte) cmdChar1);\n short jumpAdd = (short) (ifArr.size() + 4 + cmdArr.size() + 3);\n byte[] jumpArr = shortToByteArray(jumpAdd);\n int counter = 3;\n for (byte b : jumpArr) {\n cmdArr.add(counter++, b);\n\n }\n //prepending command length parameter\n cmdArr.add(0, (byte) (cmdArr.size() + 1));\n\n //jump forward instruction\n ArrayList<Byte> jumpBytes = new ArrayList<>();\n instruction = 'j';\n jumpAdd = (short) (elseArr.size() + 4);\n jumpBytes.add((byte) instruction);\n jumpArr = shortToByteArray(jumpAdd);\n for (byte b : jumpArr) {\n jumpBytes.add(b);\n }\n //prepending command length parameter\n jumpBytes.add(0, (byte) (jumpBytes.size() + 1));\n\n //merging lists\n cmdArr.addAll(ifArr);\n cmdArr.addAll(jumpBytes);\n cmdArr.addAll(elseArr);\n\n return cmdArr;\n }", "@Override\n\tpublic String visitIfstatement(IfstatementContext ctx) {\n\t\t\n\t\tfor(int i =0; i< ctx.getChildCount(); i++)\n\t\t{\n\t\t\n\t\tif(ctx.getChild(i).getText().equals(\"if\"))\t\n\t\t sb.append(\"CHECK \\n\");\n\t\telse if (ctx.getChild(i).getText().equals(\"else\"))\n\t\t sb.append(\"OR \\n\");\n\t\telse if (ctx.getChild(i).getText().equals(\"stop\"))\n\t\t\t sb.append(\"STOP\");\n\t\telse if(!ctx.getChild(i).getText().equals(\":\"))\n\t\t{\n\t\t\tString str =visit(ctx.getChild(i));\n\t\t\tif(str.length()>0)\n\t\t\t\tsb.append(str+\"\\n\");\n\t\t}\n\t\t}\n\t\t\n\t\treturn \"\";\n\t}", "protected void ifStatement(INestedIfElseClauseContainer upperIf) \r\n\t\t\t\t\t\t\t throws NoDefaultDistributionDeclaredException,\r\n\t\t\t\t\t\t\t\t\t InvalidConditionantException,\r\n\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException,\r\n\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t TableFunctionMalformedException{\r\n\t\t// Debug.println(\"PARSING IF STATEMENT\");\r\n\t\t// SCAN FOR IF. Note that any blank spaces were already skipped\r\n\t\tscan();\r\n\t\tmatchString(\"IF\");\r\n\t\t\r\n\t\t\r\n\t\t// SCAN FOR ALL/ANY\r\n\t\tscan();\r\n\t\tswitch (token) {\r\n\t\tcase 'a':\r\n\t\t\t// Debug.println(\"ALL VERIFIED\");\r\n\t\t\t// sets the table header w/ this parameters (empty list,false,false): empty list (no verified parents), is not ANY and is not default\r\n\t\t\tthis.currentHeader = new TempTableHeaderCell(new ArrayList<TempTableHeader>(), false, false, this.ssbnnode);\r\n\t\t\tbreak;\r\n\t\tcase 'y':\r\n\t\t\t// Debug.println(\"ANY VERIFIED\");\r\n\t\t\t//\tsets the table header w/ this parameters (empty list,true,false): empty list (no verified parents), is ANY and is not default\r\n\t\t\tthis.currentHeader = new TempTableHeaderCell(new ArrayList<TempTableHeader>(), true, false, this.ssbnnode);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\texpected(\"ALL or ANY\");\r\n\t\t}\r\n\r\n\t\t// stores this.currentHeader in order to become an upper clause of any further nested if/else clause\r\n\t\tINestedIfElseClauseContainer currentIfContainer = this.currentHeader;\r\n\r\n\t\t\r\n\t\t// adds the header to the container (table or upper if/else-clause) before it is changed to another header.\r\n\t\tif (upperIf == null) {\r\n\t\t\t// No upper container identified. Let's assume to be the upper-most container (the temporary table)\r\n\t\t\tupperIf = this.tempTable;\t\t\t\r\n\t\t} \t\t\r\n\t\tupperIf.addNestedClause(this.currentHeader);\r\n\t\t\r\n\t\t// SCAN FOR varsetname\r\n\t\tString varSetName = this.varsetname();\r\n\t\tthis.currentHeader.setVarsetname(varSetName);\r\n\t\t// Debug.println(\"SCANNED VARSETNAME := \" + varSetName);\r\n\r\n\t\t// SCAN FOR HAVE\r\n\t\t// Debug.println(\"SCAN FOR HAVE\");\r\n\t\tscan();\r\n\t\tmatchString(\"HAVE\");\r\n\r\n\t\t// ( EXPECTED\r\n\t\tmatch('(');\r\n\t\t// if we catch sintax error here, it may be conditionant error\r\n\t\t\r\n\t\t// Now, parsing a boolean expression - tree format (we'll store it inside this variable)\r\n\t\tICompilerBooleanValue expressionTree = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\texpressionTree = bExpression();\r\n\t\t} catch (TableFunctionMalformedException e) {\r\n\t\t\tthrow new InvalidConditionantException(getNode().toString() , e);\r\n\t\t}\r\n\t\t//this.nextChar();\r\n\t\t//this.skipWhite();\r\n\t\t// Debug.println(\"LOOKAHEAD = \" + look);\r\n\t\t// ) EXPECTED\r\n\t\tmatch(')');\r\n\t\t\r\n\t\t// since we extracted the expression tree, store it inside the current header in temporary table\r\n\t\tif (expressionTree != null) {\r\n\t\t\tthis.currentHeader.setBooleanExpressionTree(expressionTree);\r\n\t\t} else {\r\n\t\t\tthrow new InvalidConditionantException(this.node.toString());\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"STARTING STATEMENTS\");\r\n\t\t\r\n\t\t// if we catch a sintax error here, it may be a value error\r\n//\t\ttry {\r\n\t\t\t// if there is a nested if, this if should be the upper clause (set currentHeader as upper clause).\r\n\t\t\tstatement(currentIfContainer);\r\n//\t\t} catch (TableFunctionMalformedException e) {\r\n//\t\t\t// Debug.println(\"->\" + getNode());\r\n//\t\t\tthrow new InvalidProbabilityRangeException(\"[\"+this.getNode().getName()+\"]\",e);\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Debug.println(\"LOOKING FOR ELSE STATEMENT\");\r\n\t\t// LOOK FOR ELSE\r\n\t\t// Consistency check C09: the grammar \"may\" state else as optional,\r\n\t\t// but semantically every table must have a default distribution, which is\r\n\t\t// declared within an else clause.\r\n\t\t\r\n\t\t// We dont have to create a new temp table header, because else_statement would do so.\r\n\t\t\r\n\t\t//\tThis test is necessary to verify if there is an else clause\r\n\t\tif (this.index < this.text.length) {\r\n\t\t\ttry {\r\n\t\t\t\tscan();\r\n\t\t\t} catch (TableFunctionMalformedException e) {\r\n\t\t\t\t// a sintax error here represents a statement other than an else statement\r\n\t\t\t\tthrow new NoDefaultDistributionDeclaredException(e);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// No statement was found at all (that means no else statement).\r\n\t\t\t// Debug.println(\"END OF TABLE\");\r\n\t\t\tthrow new NoDefaultDistributionDeclaredException(getNode().toString());\r\n\t\t}\r\n\t\t\r\n\t\tif (token == 'l') {\r\n\t\t\t// The else statement should be a child statement of the upper container,\r\n\t\t\t// that means, it is on the same level of currently evaluated IF clause\r\n\t\t\telse_statement(upperIf);\r\n\t\t} else {\r\n\t\t\t// The statement found was not an else statement\r\n\t\t\tthrow new NoDefaultDistributionDeclaredException(getNode().toString());\r\n\t\t}\r\n\t\t\r\n\t\t// we may have another if/else clause after this...\r\n\t\t\r\n\t}", "public void incrementBranchCount() {\n this.branchCount++;\n }", "private void method_2684(ahb var1, int var2, int var3, int var4) {\r\n String[] var10000 = class_752.method_4253();\r\n int var6 = var1.method_33(var2, var3, var4);\r\n int var7 = method_2686(var6);\r\n String[] var5 = var10000;\r\n int var9 = var7;\r\n if(var5 != null) {\r\n if(var7 == 7) {\r\n return;\r\n }\r\n\r\n var9 = this.method_2685(var1, var2, var3, var4, var7);\r\n }\r\n\r\n int var8 = var9;\r\n var9 = var8;\r\n if(var5 != null) {\r\n label45: {\r\n if(var8 != 0) {\r\n var9 = method_2687(var6);\r\n if(var5 == null) {\r\n break label45;\r\n }\r\n\r\n if(var9 == 0) {\r\n ahb var10 = var1;\r\n int var10001 = var2;\r\n int var10002 = var3;\r\n int var10003 = var4;\r\n if(var5 != null) {\r\n if(!method_2690(var1, var2, var3, var4, var7)) {\r\n return;\r\n }\r\n\r\n var10 = var1;\r\n var10001 = var2;\r\n var10002 = var3;\r\n var10003 = var4;\r\n }\r\n\r\n var10.method_2193(var10001, var10002, var10003, this, 0, var7);\r\n if(var5 != null) {\r\n return;\r\n }\r\n }\r\n }\r\n\r\n var9 = var8;\r\n }\r\n }\r\n\r\n if(var5 != null) {\r\n if(var9 != 0) {\r\n return;\r\n }\r\n\r\n var9 = method_2687(var6);\r\n }\r\n\r\n if(var5 != null) {\r\n if(var9 == 0) {\r\n return;\r\n }\r\n\r\n var1.method_2055(var2, var3, var4, var7, 2);\r\n }\r\n\r\n var1.method_2193(var2, var3, var4, this, 1, var7);\r\n }", "private double noBranch() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('a');\n\t}", "String branch();", "public void method_2456(ahb var1, int var2, int var3, int var4, Random var5) {\r\n String[] var6 = class_752.method_4253();\r\n int var10000 = var1.field_1832;\r\n if(var6 != null) {\r\n if(var1.field_1832) {\r\n return;\r\n }\r\n\r\n var10000 = var1.method_2069(var2, var3 + 1, var4);\r\n }\r\n\r\n byte var10001;\r\n label83: {\r\n var10001 = 4;\r\n if(var6 != null) {\r\n label84: {\r\n if(var10000 < 4) {\r\n var10000 = var1.getBlock(var2, var3 + 1, var4).method_2420();\r\n var10001 = 2;\r\n if(var6 == null) {\r\n break label84;\r\n }\r\n\r\n if(var10000 > 2) {\r\n var1.method_2058(var2, var3, var4, class_1192.field_6028);\r\n if(var6 != null) {\r\n return;\r\n }\r\n }\r\n }\r\n\r\n var10000 = var1.method_2069(var2, var3 + 1, var4);\r\n if(var6 == null) {\r\n break label83;\r\n }\r\n\r\n var10001 = 9;\r\n }\r\n }\r\n\r\n if(var10000 < var10001) {\r\n return;\r\n }\r\n\r\n var10000 = 0;\r\n }\r\n\r\n int var7 = var10000;\r\n\r\n while(var7 < 4) {\r\n int var8 = var2 + var5.nextInt(3) - 1;\r\n int var9 = var3 + var5.nextInt(5) - 3;\r\n int var10 = var4 + var5.nextInt(3) - 1;\r\n aji var11 = var1.getBlock(var8, var9 + 1, var10);\r\n if(var6 != null) {\r\n if(var1.getBlock(var8, var9, var10) == class_1192.field_6028) {\r\n label89: {\r\n var10000 = var1.method_33(var8, var9, var10);\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n break label89;\r\n }\r\n\r\n var10000 = var1.method_2069(var8, var9 + 1, var10);\r\n }\r\n\r\n var10001 = 4;\r\n if(var6 != null) {\r\n if(var10000 < 4) {\r\n break label89;\r\n }\r\n\r\n var10000 = var11.method_2420();\r\n if(var6 == null) {\r\n break label89;\r\n }\r\n\r\n var10001 = 2;\r\n }\r\n\r\n if(var10000 <= var10001) {\r\n var1.method_2058(var8, var9, var10, class_1192.field_6027);\r\n }\r\n }\r\n }\r\n\r\n ++var7;\r\n }\r\n\r\n if(var6 == null) {\r\n break;\r\n }\r\n }\r\n\r\n }", "public boolean //##78\n divideHirIntoBasicBlocks()\n {\n HirIterator lHirIterator;\n HIR lNode, // Current node.\n lParent; // Parent of lNode.\n coins.sym.Sym lSym;\n FlowAnalSym lFlowAnalSym;\n int lNodeIndex;\n Label lLabel, lSubpBlockLabel;\n BBlock lBBlock; // BBlock most recently created.\n IrList lLabelDefList;\n Subp lSubp;\n BlockStmt lSubpBody; // Block as the HIR body of subprogram.\n //## LabeledStmt lSubpBodyWithLabel;\n\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"divideHirIntoBasicBlocks \",\n flowRoot.subpUnderAnalysis.getName() + \" fIrIndexMin \" +\n fIrIndexMin + \" Max \" + fIrIndexMax); //##62\n recordBBlock(bblock(), 0); //Avoid IndexOutofRangeException\n //##62 BEGIN\n lSubp = fSubpDefinition.getSubpSym();\n fNodeCount = fIrIndexMax - fIrIndexMin + 1;\n fFlowIrLinkSize = fNodeCount + 1; //##62\n fFlowIrLink = new IR[fFlowIrLinkSize];\n lBBlock = null; // Record a basic block created.\n boolean lImmediatelyAfterJumpReturn = false; //##63\n //##62 END\n\n //-- Assign index number to symbols actually used in current\n // subprogram setting index to each node.\n // Make label reference list for labels that are explicitly\n // refered as jump target.\n for (lHirIterator = hirRoot.hir.hirIterator(fSubpDefinition.getHirBody());\n lHirIterator.hasNext(); ) {\n lNode = lHirIterator.next();\n if (lNode != null) {\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(6, \" lNode\", lNode.toStringShort());\n lSym = lNode.getSym();\n if (lSym != null) {\n if (lSym instanceof FlowAnalSym) {\n lFlowAnalSym = (FlowAnalSym)lSym;\n if (lFlowAnalSym.getIndex() == 0) {\n recordSym(lFlowAnalSym); //##62\n }else {\n if (fDbgLevel > 0)\n flow.dbg(6, \" \" + lFlowAnalSym.getName()+\n \":\" + lFlowAnalSym.getIndex());\n }\n }\n }\n\n //##63 BEG\n lNodeIndex = lNode.getIndex();\n //##78 BEGIN\n if (lNodeIndex < fIrIndexMin) {\n ioRoot.msgRecovered.put(5010, \"\\nNode index \" + lNodeIndex\n + \" should be greater or equal to \" + fIrIndexMin\n + \" in \" + fSubpDefinition.getSubpSym().getName()\n + \"\\n Skip the flow analysis and the optimization.\");\n return false;\n }\n //##78 END\n fFlowIrLink[lNodeIndex - fIrIndexMin] = lNode; //##60\n fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; //##60\n if (lImmediatelyAfterJumpReturn &&\n (lNode.getOperator() != HIR.OP_LABELED_STMT)) {\n continue; // Control does not come here.\n }\n lImmediatelyAfterJumpReturn = false;\n //##63 END\n switch (lNode.getOperator()) {\n case HIR.OP_LABELED_STMT:\n lBBlock = bblock((LabeledStmt)lNode); // Create a basic block.\n fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; // Store again. //##65\n //## lSubp.addBBlock(lBBlock); // DELETE\n lLabelDefList = ((LabeledStmt)lNode).getLabelDefList();\n if (lLabelDefList != null) {\n for (Iterator lIterator = lLabelDefList.iterator();\n lIterator.hasNext(); ) { // Set link between HIR & Label.\n lLabel = ((coins.ir.hir.LabelDef)(lIterator.next())).getLabel();\n //##60 lLabel.setBBlock(lBBlock);\n flowRoot.fSubpFlow.setBBlock(lLabel, lBBlock); //##60\n }\n }\n lImmediatelyAfterJumpReturn = false;\n break;\n // begin\n case HIR.OP_CONTENTS:\n lParent = (HIR)lNode.getParent();\n if (lParent.getOperator() == HIR.OP_ASSIGN)\n lBBlock.setFlag(BBlock.HAS_PTR_ASSIGN, true);\n case HIR.OP_ARROW:\n case HIR.OP_ADDR:\n lBBlock.setFlag(BBlock.USE_PTR, true);\n break;\n case HIR.OP_QUAL:\n lBBlock.setFlag(BBlock.HAS_STRUCT_UNION, true);\n break;\n case HIR.OP_CALL:\n lBBlock.setFlag(BBlock.HAS_CALL, true);\n //##62 hasCallInSubp = true; //##62\n //##63 BEGIN\n fCallCount++; //##62\n fSubtreesContainingCall.add(lNode);\n for (HIR lHir = (HIR)lNode.getParent(); lHir != null;\n lHir = (HIR)lHir.getParent()) {\n fSubtreesContainingCall.add(lNode);\n }\n //##63 END\n break;\n //##62 BEGIN\n case HIR.OP_ASSIGN:\n fAssignCount++;\n break;\n case HIR.OP_JUMP:\n lLabel = ((JumpStmt)lNode).getLabel();\n //##62 lLabel.addToHirRefList((LabelNode)((JumpStmt)lNode).getChild1());\n lImmediatelyAfterJumpReturn = true; //##63\n ((BBlockImpl)lBBlock).fControlTransfer = lNode; //##73\n break;\n case HIR.OP_RETURN: //##63\n lImmediatelyAfterJumpReturn = true; //##63\n ((BBlockImpl)lBBlock).fControlTransfer = lNode; //##73\n break;\n case HIR.OP_SWITCH:\n SwitchStmt lSwitchStmt = (SwitchStmt)lNode;\n int lCaseCount = lSwitchStmt.getCaseCount();\n for (int i = 0; i < lCaseCount; i++) {\n lLabel = lSwitchStmt.getCaseLabel(i);\n //##62 if (lLabel != null)\n //##62 lLabel.addToHirRefList(lSwitchStmt.getCaseLabelNode(i));\n }\n //##62 lSwitchStmt.getDefaultLabel().addToHirRefList((LabelNode)((SwitchStmt)\n //##62 lNode).getDefaultLabelNode());\n //##62 END\n default:\n break;\n // end\n } // End of switch\n //##63 lNodeIndex = lNode.getIndex();\n //##60 fFlowIrLink[lNodeIndex - fIndexMin] =\n //##60 (FlowIrLinkCell)(new FlowIrLinkCellImpl(lNode, lBBlock, 0));\n //##63 fFlowIrLink[lNodeIndex - fIrIndexMin] = lNode; //##60\n //##63 fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; //##60\n } // End of if(lNode != null)\n }\n //##62 BEGIN\n fUsedSymCount = fSymExpCount;\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, lSubp.getName() +\n \" Number of\", \"Symbols:\" +\n fUsedSymCount + \" Nodes:\" + fNodeCount + \" \");\n fExpVectorBitCount = fUsedSymCount + 2; //##60\n fExpVectorWordCount = (fExpVectorBitCount + 63) / 64; //##60\n\n int lNodeCount = fIrIndexMax - fIrIndexMin;\n if (lNodeCount > fNodeCountLim1)\n fComplexity = 2;\n if (fSymExpCount > fSymCountLim1)\n fComplexity = 2;\n if (lNodeCount > fNodeCountLim2)\n fComplexity = 3;\n if (fSymExpCount > fSymCountLim2)\n fComplexity = 3;\n //##62 END\n if (fDbgLevel > 0) {\n //### fComplexity = 3; //###\n flowRoot.ioRoot.dbgFlow.print(1, \"\\n Node count \" +\n lNodeCount + \" BBlock count \" + getNumberOfBBlocks()+\n \" UsedSymCount \" + getUsedSymCount() + \" SymExpCount \" + getSymExpCount()\n + \"\\n AssignCount \" + getAssignCount()\n + \" CallCount \" + getCallCount()); //##62\n ioRoot.dbgFlow.print(1, \"\\nComplexity level of \",\n getSubpSym().getName() + \" is \" + fComplexity);\n if (fComplexity > 1)\n ioRoot.dbgFlow.print(1, \"\\n Simplify alias analysis.\");\n if (fComplexity > 2)\n ioRoot.dbgFlow.print(1, \"\\n Simplify data flow analysis.\");\n }\n setComputedFlag(CF_BBLOCK); //##60\n return true; //##78\n }", "public Collection<Stmt> branches() {\n if(branches_computed) {\n return branches_value;\n }\n ASTNode$State state = state();\n int num = state.boundariesCrossed;\n boolean isFinal = this.is$Final();\n branches_value = branches_compute();\n if (isFinal && num == state().boundariesCrossed) {\n branches_computed = true;\n } else {\n }\n\n return branches_value;\n }", "double getBranchProbability();", "@Override\n\tpublic void visit(IfNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * Verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam conditia si preluam rezultatul evaluarii fiului corespunzator\n\t\t * branch-ului de then sau de else\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/***\n\t\t * Daca conditia este adevarata, continuam cu evaluarea celui de-al\n\t\t * doiela fiu, iar daca este false evaluam al treilea fiu\n\t\t */\n\t\tif (node.getChild(0).getName().contentEquals(\"true\")) {\n\t\t\tEvaluator.evaluate(node.getChild(1));\n\t\t\tnode.getChild(2).setVisited(true);\n\n\t\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(1).getName());\n\t\t\t}\n\t\t} else {\n\t\t\tEvaluator.evaluate(node.getChild(2));\n\t\t\tnode.getChild(1).setVisited(true);\n\n\t\t\tif (node.getChild(2) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(2).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(2).getName());\n\t\t\t}\n\t\t}\n\n\t}", "public void method_2486(ahl var1, int var2, int var3, int var4) {\r\n String[] var10000 = class_752.method_4253();\r\n int var6 = var1.method_33(var2, var3, var4);\r\n String[] var5 = var10000;\r\n if(method_2687(var6)) {\r\n label47: {\r\n label46: {\r\n label45: {\r\n label44: {\r\n label43: {\r\n label42: {\r\n float var7 = 0.25F;\r\n if(var5 != null) {\r\n switch(method_2686(var6)) {\r\n case 0:\r\n this.method_2443(0.0F, 0.25F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n break;\r\n case 1:\r\n break label42;\r\n case 2:\r\n break label43;\r\n case 3:\r\n break label44;\r\n case 4:\r\n break label45;\r\n case 5:\r\n break label46;\r\n default:\r\n break label47;\r\n }\r\n }\r\n\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 0.75F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.25F, 1.0F, 1.0F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.75F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.25F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 0.75F, 1.0F, 1.0F);\r\n }\r\n\r\n if(var5 != null) {\r\n return;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n }", "void compileIf() {\n\n tagBracketPrinter(IF_TAG, OPEN_TAG_BRACKET);\n try {\n compileIfHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(IF_TAG, CLOSE_TAG_BRACKET);\n }", "public static void deleteifs (Map<SootMethod, Map<Unit, Boolean>> ifStmts){\r\n\t\tSet<SootMethod> m= ifStmts.keySet();\r\n\t\t//boolean j_Unit_Test = false;\r\n\t\tfor(SootMethod s1:m){\r\n\t\t Chain<Unit> units =s1.getActiveBody().getUnits();\r\n\t\t System.err.println(units);\r\n\t\t Body b=s1.getActiveBody();\r\n\t\t Map<Unit,Boolean> res=ifStmts.get(s1);\r\n\t\t\t for (Map.Entry<Unit,Boolean> entry : res.entrySet())\r\n\t\t\t {\r\n\t\t\t\t Boolean result=entry.getValue();\r\n\t\t\t\t Unit unit=entry.getKey();\r\n\t\t\t\t System.out.println(entry.getKey() + \"/\" + entry.getValue());\r\n\t\t\t\t if(result!=null)\r\n\t\t\t\t\t if (result == true) {\r\n\t\t\t\t\t\t// if condition of else always true, convert if to goto\r\n\t\t\t\t\t\tSystem.out.println(\"[Conditional Branch Folding] else condition is true, change statement into target \");\r\n\t\t\t\t\t\tStmt newStmt = Jimple.v().newGotoStmt(((IfStmt)unit).getTarget());\r\n\t\t\t\t\t\tSystem.out.println(\"[Conditional Branch Folding] Changing : \" + unit + \" into: \" + newStmt);\r\n\t\t\t\t\t\tunits.insertAfter(newStmt, unit);\r\n\t\t\t\t\t\tSystem.out.println(\"[Conditional Branch Folding] Removing statement : \" + unit);\r\n\t\t\t\t\t\tunits.remove(unit);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t// if condition of else is false remove both statement and target\r\n\t\t\t\t\t\tSystem.out.println(\"[Conditional Branch Folding] else condition is false, remove both target and statement\");\r\n\t\t\t\t\t\tunits.remove(unit);\r\n\t\t\t\t\t\t/* check if contain else or not, if statement s does not contain \"goto (branch)\" --> statement contains else\r\n\t\t\t\t\t\twe need to remove else block\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t//Removing the unreachable code in the procedure\r\n\t\tif(!j_Unit_Boolean) {\r\n\t\t\tUnreachableCodeEliminator.v().transform(b);\r\n\t\t}\r\n\t\t\r\n\t//\tSystem.out.println(\"reeee\");\r\n\t\t}\r\n\t\r\n\t}", "BranchingBlock createBranchingBlock();", "@Override\n public boolean bodyCall(Node[] args, int length, RuleContext context) {\n try {\n checkArgs(length, context);\n BindingEnvironment env = context.getEnv();\n boolean ok = false;\n JEP mathParser = new JEP();\n Node varList = getArg(0, args, context);\n Node prevSt = getArg(1, args, context);\n Node cond = getArg(2, args, context);\n Node iter = getArg(3, args, context);\n \n return IfTrue_BranchBeTraversed.evaluateExpression(prevSt, cond, context, iter, varList, mathParser);\n\n \n } catch (Exception ex) {\n //Logger.getLogger(IfTrue_BranchBeTraversed.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n return true;\n }\n }", "@Override\n public void visit(CondFactExpr CondFactExpr) {\n Code.loadConst(1);\n Code.putFalseJump(Code.eq, 0);\n andList.add(Code.pc - 2);\n\n }", "public SmallSet<CFGNode> interceptedAbruptStmts() {\n ASTNode$State state = state();\n try {\n \t\tSmallSet<CFGNode> branches = emptySmallSet();\n \t\tIterator itr = super.interceptedAbruptStmts().iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tStmt stmt = (Stmt)itr.next();\n \t\t\tif (stmt.isBreakStmt() && potentialTargetOf((BreakStmt)stmt) || \n \t\t\t\tstmt.isContinueStmt() && potentialTargetOf((ContinueStmt)stmt)) {\n \t\t\t\tcontinue;\n \t\t\t} \n \t\t\tbranches = branches.union(stmt);\n \t\t}\n \t\treturn branches;\n \t}\n finally {\n }\n }", "public BlockIfStmt(Node pIfPart, FirList pOptElseIfs, FirList pOptElse, int line, FirToHir pfHir){\n super(line, pfHir);\n fIfPart = (Pair)pIfPart;\n fOptElseIfs = pOptElseIfs;\n fOptElse = pOptElse;\n }", "private static boolean method_2689(aji var0, ahb var1, int var2, int var3, int var4, boolean var5) {\r\n boolean var10;\r\n label123: {\r\n String[] var6 = class_752.method_4253();\r\n aji var10000 = var0;\r\n aji var10001 = class_1192.field_6076;\r\n if(var6 != null) {\r\n if(var0 == class_1192.field_6076) {\r\n break label123;\r\n }\r\n\r\n var10000 = var0;\r\n var10001 = class_1192.field_6088;\r\n }\r\n\r\n label124: {\r\n if(var6 != null) {\r\n if(var10000 == var10001) {\r\n break label123;\r\n }\r\n\r\n var10000 = var0;\r\n if(var6 == null) {\r\n break label124;\r\n }\r\n\r\n var10001 = class_1192.field_6109;\r\n }\r\n\r\n if(var10000 == var10001) {\r\n break label123;\r\n }\r\n\r\n var10000 = var0;\r\n }\r\n\r\n String var9 = var10000.method_2510();\r\n String[] var11 = field_2148;\r\n var10 = var9.equals(\"tile.pumpkinStem\");\r\n if(var6 == null) {\r\n return var10;\r\n }\r\n\r\n if(!var10) {\r\n label126: {\r\n label127: {\r\n var10000 = var0;\r\n var10001 = class_1192.field_6128;\r\n if(var6 != null) {\r\n if(var0 == class_1192.field_6128) {\r\n break label126;\r\n }\r\n\r\n var10000 = var0;\r\n if(var6 == null) {\r\n break label127;\r\n }\r\n\r\n var10001 = class_1192.field_6112;\r\n }\r\n\r\n if(var10000 == var10001) {\r\n break label126;\r\n }\r\n\r\n var10000 = var0;\r\n }\r\n\r\n int var8;\r\n label88: {\r\n label129: {\r\n label130: {\r\n label85: {\r\n class_420 var12 = class_1192.field_6060;\r\n if(var6 != null) {\r\n if(var10000 == class_1192.field_6060) {\r\n break label85;\r\n }\r\n\r\n var10000 = var0;\r\n if(var6 == null) {\r\n break label130;\r\n }\r\n\r\n var12 = class_1192.field_6056;\r\n }\r\n\r\n if(var10000 != var12) {\r\n var10000 = var0;\r\n break label130;\r\n }\r\n }\r\n\r\n var8 = method_2687(var1.method_33(var2, var3, var4));\r\n if(var6 == null) {\r\n break label88;\r\n }\r\n\r\n if(var8 != 0) {\r\n return false;\r\n }\r\n break label129;\r\n }\r\n\r\n float var13;\r\n var8 = (var13 = var10000.method_2439(var1, var2, var3, var4) - -1.0F) == 0.0F?0:(var13 < 0.0F?-1:1);\r\n if(var6 != null) {\r\n if(var8 == 0) {\r\n return false;\r\n }\r\n\r\n var8 = var0.method_2514();\r\n }\r\n\r\n byte var7 = 2;\r\n if(var6 != null) {\r\n if(var8 == 2) {\r\n return false;\r\n }\r\n\r\n var8 = var0.method_2514();\r\n if(var6 == null) {\r\n break label88;\r\n }\r\n\r\n var7 = 1;\r\n }\r\n\r\n if(var8 == var7) {\r\n var10 = var5;\r\n if(var6 != null) {\r\n if(!var5) {\r\n return false;\r\n }\r\n\r\n var10 = true;\r\n }\r\n\r\n return var10;\r\n }\r\n }\r\n\r\n var8 = var0 instanceof class_28;\r\n }\r\n\r\n if(var6 != null) {\r\n var8 = var8 == 0?1:0;\r\n }\r\n\r\n return (boolean)var8;\r\n }\r\n }\r\n }\r\n\r\n var10 = false;\r\n return var10;\r\n }", "@Override\n\tpublic Void visit(If iff) {\n\t\tprintIndent(\"if\");\n\t\tindent++;\n\t\tiff.cond.accept(this);\n\t\tiff.thenBranch.accept(this);\n\t\tiff.elseBranch.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "public interface IBranchFunctionDef {\n /**\n * Verifies that the branch function is valid\n * @return If the usage of the branch function is valid\n */\n boolean verify(@Nullable IBranchFunctionDef parent, ISkriptFunctionDef function, ICodeDef codeDef);\n\n /**\n * Gets the variables of the def\n * @return Def's variables\n */\n List<IVariableDef> getVariables();\n\n /**\n * Sets up the variables of the def\n * @param factory Variable factory\n */\n void setupVariables(IVariableFactory factory);\n}", "protected void assignmentOrIf(INestedIfElseClauseContainer upperIf) \r\n\t\t\tthrows InvalidProbabilityRangeException, \r\n\t\t\t\t TableFunctionMalformedException,\r\n\t\t\t\t SomeStateUndeclaredException,\r\n\t\t\t\t NoDefaultDistributionDeclaredException,\t// if-clause would eventually throw this\r\n\t\t\t\t InvalidConditionantException{\t\t\t// if-clause would eventually throw this\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif (this.tokenLookAhead() == this.kwcode[this.lookup(\"IF\")]) {\r\n\t\t\t\t// this is an if-clause\r\n\t\t\t\tthis.ifStatement(upperIf);\r\n\t\t\t\t// an if-clause doesnt have do return something...\r\n\t\t\t} else {\r\n\t\t\t\t// since it is an assignment, we should check probability consistency as well\r\n\t\t\t\t\r\n\t\t\t\t// Consistency check C09\r\n\t\t\t\t// Structures that allow us to Verify if all states has probability declared\r\n\t\t\t\tList<Entity> declaredStates = new ArrayList<Entity>();\r\n\t\t\t\tList<Entity> possibleStates = null;\t\t\t\r\n\t\t\t\tif (this.node != null) {\r\n\t\t\t\t\tpossibleStates = this.node.getPossibleValueListIncludingEntityInstances();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.assignment(declaredStates, possibleStates);\r\n\t\t\t\t\r\n\r\n\t\t\t\tif (this.look == this.kwcode[this.lookup(\"IF\")]) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// this is an if-clause after user-defined variable declaration\r\n\t\t\t\t\tthis.ifStatement(upperIf);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// After the assignment, if there are undeclared states, distribute the remaining probability uniformly.\r\n\t\t\t\t\t// obtain undeclared states = possibleStates - declaredStates\r\n\t\t\t\t\tCollection<Entity> undeclaredStates = new HashSet<Entity>(possibleStates);\r\n\t\t\t\t\tundeclaredStates.removeAll(declaredStates);\r\n\t\t\t\t\tif (undeclaredStates.size() > 0) {\r\n\t\t\t\t\t\t// get the current (without the undeclared states) sum of probabilities\r\n\t\t\t\t\t\tfloat sumOfDeclaredProb = currentHeader.getProbCellSum();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// distribute the remaining probability (1-sumOfDeclaredProb) uniformly across the non-declared states\r\n\t\t\t\t\t\tfloat probOfUndeclaredState = (1f-sumOfDeclaredProb)/undeclaredStates.size();\r\n\t\t\t\t\t\tif (!isToNormalize() || (sumOfDeclaredProb >= 1)) {\r\n\t\t\t\t\t\t\t// if we don't need to normalize, then simply set all undeclared states to zero\r\n\t\t\t\t\t\t\tprobOfUndeclaredState = 0f;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor (Entity entity : undeclaredStates) {\r\n\t\t\t\t\t\t\tif (entity != null) {\r\n\t\t\t\t\t\t\t\t// distribute the remaining probability (1-retValue) uniformly across the non-declared states, but substitute NaN with 0\r\n\t\t\t\t\t\t\t\tif (this.getSSBNNode() != null) {\r\n\t\t\t\t\t\t\t\t\t// use a special type of cell which will recalculate the probability each time getProbabiity is called, by uniformly distributing 1-(probability of declared states)\r\n\t\t\t\t\t\t\t\t\tthis.currentHeader.addCell(new TempTableProbabilityCell(entity, new UniformComplementProbabilityValue(this.currentHeader, entity)));\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tthis.currentHeader.addCell(new TempTableProbabilityCell(entity, new SimpleProbabilityValue(Float.isNaN(probOfUndeclaredState)?0f:probOfUndeclaredState )));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// the following may be irrelevant now, since we fill all undeclared states automatically anyway\r\n//\t\t\t\t\t\t\t\tdeclaredStates.add(entity);\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\r\n\t\t\t\t\t// the following check may be irrelevant now, since we fill all undeclared states automatically anyway\r\n//\t\t\t\t\tif (this.node != null) {\r\n//\t\t\t\t\t\t// Consistency check C09\r\n//\t\t\t\t\t\t// Verify if all states has probability declared\r\n//\t\t\t\t\t\tif (!declaredStates.containsAll(possibleStates)) {\r\n//\t\t\t\t\t\t\tthrow new SomeStateUndeclaredException();\r\n//\t\t\t\t\t\t}\r\n//\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Consistency check C09\r\n\t\t\t\t\t// Verify if sum of all declared states' probability is 1\r\n\t\t\t\t\t\r\n\t\t\t\t\t// runtime probability bound check (on SSBN generation time)\r\n\t\t\t\t\tif (isToNormalize()\r\n\t\t\t\t\t\t\t&& this.currentHeader.getProbCellSum() < 0.99995\t// check if normalization of probabilities smaller than 1 worked\r\n\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t// Debug.println(\"Testing cell's probability value's sum: \" + currentHeader.getProbCellSum());\r\n\t\t\t\t\t\tif (!Float.isNaN(this.currentHeader.getProbCellSum())) {\r\n\t\t\t\t\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// Debug.println(\"=>NaN found!!!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\t/* \r\n\t\t\t * catching ArrayIndexOutOfBoundsException means that the keyword \"IF\"\r\n\t\t\t * was not found the list of keywords. It is an horrible implementation error!!\r\n\t\t\t */\r\n\t\t\tthrow new RuntimeException(this.getResource().getString(\"FatalError\"),e);\r\n\t\t}\r\n\t\t\r\n\t\t// any other exception should not be treated by this scope (equivalent to \"catch(Exception e){throw e}\")\r\n\t\t\r\n\t}", "public void removeBranch() {\n if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeBranch()\");\n Via via=(Via)sipHeader;\n \n via.removeParameter(Via.BRANCH);\n }", "private static boolean method_2690(ahb var0, int var1, int var2, int var3, int var4) {\r\n int var6 = var1 + class_1707.field_8947[var4];\r\n int var7 = var2 + class_1707.field_8948[var4];\r\n int var8 = var3 + class_1707.field_8949[var4];\r\n String[] var5 = class_752.method_4253();\r\n int var9 = 0;\r\n\r\n int var10000;\r\n while(true) {\r\n if(var9 < 13) {\r\n label68: {\r\n var10000 = var7;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var7 > 0) {\r\n var10000 = var7;\r\n if(var5 == null) {\r\n return (boolean)var10000;\r\n }\r\n\r\n if(var7 < 255) {\r\n aji var10 = var0.getBlock(var6, var7, var8);\r\n aji var11 = var10;\r\n if(var5 != null) {\r\n if(var10.method_2424() == awt.field_4170) {\r\n break label68;\r\n }\r\n\r\n var11 = var10;\r\n }\r\n\r\n var10000 = method_2689(var11, var0, var6, var7, var8, true);\r\n if(var5 != null) {\r\n if(var10000 == 0) {\r\n return false;\r\n }\r\n\r\n var10000 = var10.method_2514();\r\n }\r\n\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var10000 != 1) {\r\n var10000 = var9;\r\n int var10001 = 12;\r\n if(var5 != null) {\r\n if(var9 == 12) {\r\n return false;\r\n }\r\n\r\n var6 += class_1707.field_8947[var4];\r\n var7 += class_1707.field_8948[var4];\r\n var10000 = var8;\r\n var10001 = class_1707.field_8949[var4];\r\n }\r\n\r\n var8 = var10000 + var10001;\r\n ++var9;\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n break label68;\r\n }\r\n }\r\n\r\n var10000 = 0;\r\n }\r\n\r\n return (boolean)var10000;\r\n }\r\n }\r\n\r\n var10000 = 1;\r\n break;\r\n }\r\n\r\n return (boolean)var10000;\r\n }", "@Override\n protected void generateCodeFromElse(IfStmt ifStmt) {\n }", "public void makeCFG() {\n\t\tArrayList<Integer> entryToBB1 = new ArrayList<>();\n\t\tentryToBB1.add(1);\n\t\tCFG.put(0, entryToBB1);\n\t\tfor (int i = 1; i <= BasicBlocks.size(); i++) {\n\t\t\tArrayList<Integer> targetBBList = new ArrayList<>();\n\t\t\tArrayList<String> BB = BasicBlocks.get(i);\n\t\t\tString lastCode = BB.get(BB.size() - 1);\n\t\t\tString label = lastCode;\n\t\t\tint targetBB;\n\n\t\t\t// Branch (1): fjp\n\t\t\tif (lastCode.charAt(0) == 'f' && lastCode.charAt(1) == 'j') {\n\t\t\t\tif (i != BasicBlocks.size()) {\n\t\t\t\t\ttargetBBList.add(i + 1);\n\t\t\t\t} else {\n\t\t\t\t\ttargetBBList.add(-1);\n\t\t\t\t}\n\t\t\t\tlabel = label.substring(4, label.length());\n\t\t\t\ttargetBB = findTargetBB(label);\n\t\t\t\ttargetBBList.add(targetBB);\n\n\t\t\t}\n\t\t\t// Branch (2): ujp\n\t\t\telse if (lastCode.charAt(0) == 'u' && lastCode.charAt(1) == 'j') {\n\t\t\t\tlabel = label.substring(4, label.length());\n\t\t\t\ttargetBB = findTargetBB(label);\n\t\t\t\ttargetBBList.add(targetBB);\n\t\t\t}\n\t\t\t// Normal Code & 'Exit'\n\t\t\telse {\n\t\t\t\tif (i != BasicBlocks.size()) {\n\t\t\t\t\ttargetBBList.add(i + 1);\n\t\t\t\t} else {\n\t\t\t\t\ttargetBBList.add(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tCFG.put(i, targetBBList);\n\t\t}\n\t}", "@Override\n public String getName() {\n return \"ifTrue_BranchBeTraversed\";\n }", "void branchingStatements()\n{\t\nSystem.out.println(\"***************inside unlabeled break************* \");\n//Break :forceful exit from current loop\nfor(int i=0; i<100; i++) \n\t{\t\n\t\tif(i == 10) \n\t\tbreak; \n\n\t\t\t\t/*when i will become 10. it will exit\n\t\t\t\t from loop and go to next immediate\n\t\t\t\t line out of loops body to execute*/\n\tSystem.out.println(\"value of i is\" + i);\n\t}\n\n\nSystem.out.println(\"***************inside labeled loop************* \");\n\n outer:\t\n\t\tfor(int i=0; i<3; i++)\n\t\t{\n\t\tSystem.out.println(\"Outer loop value of i is \"+ i);\n\t\t\tinner:\n\t\t \tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t System.out.println(\"Inner loop value of i is \"+j);\n\t\t\t if(i== j+1)\n\t\t\t break outer;\t\t \n\t\t\t System.out.println(\"Bye\");\t\n\t\t\t}\n\t\t }\n\n\n//continue:skip the execution of current iteration and start the next one\nSystem.out.println(\"***************inside unlabeled continue.************* \");\nString str = \"she saw a ship in the sea\"; \n\t\tint size = str.length(); \n\t\tint count = 0; \n\t\tfor (int i = 0; i < size; i++) \n\t\t { \n\t\t\tif (str.charAt(i) != 's') \t\n\t\t\t continue;\n\t\t\tcount++; \n\t\t } \nSystem.out.println(\"Number of s in \"+ str + \" = \"+ count); \n\n\nSystem.out.println(\"***************inside labeled continue.************* \"); \nouter: for (int i=0; i<3; i++) \n\t{\n\t\tfor(int j=0; j<3; j++)\n\t\t {\n\t\t\tif(j > i) \n\t\t\t{\n\t\t\tSystem.out.println(\"Hi\");\n\t\t\tcontinue outer; \n\t\t\t}\n\t\t\tSystem.out.print(\" \" + (i * j));\n\t\t}\n\t}\n}", "public String visit(IfStatement n, LLVMRedux argu) throws Exception {\n String[] array =u.getConditionTags();\n u.println(\"br i1 \"+ n.f2.accept(this, argu)+\", label %\"+array[0]+\", label %\"+array[1]);\n u.increaseIndentation();\n u.println(array[0]+\":\");\n n.f4.accept(this, argu);\n u.println(\"br label %\"+array[2]);\n u.println(array[1]+\":\");\n n.f6.accept(this, argu);\n u.println(\"br label %\"+array[2]);\n u.println(array[2]+\":\");\n u.decreaseIndentation();\n return null;\n }", "private Branch parseIf(Tokenizer in) {\n\t\tBranch branch = new Branch();\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.OPEN_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ( got: '\"+expectParen+\"'\"+expectParen.generateLineChar());\n\t\tbranch.condition = parseParen(in);\n\t\tbranch.ifTrue = parseStmt(in);\n\t\tToken next = in.next();\n\t\tif (next != null && next.type == Token.TokenType.KEYWORD && ((KeywordToken) next).value == Keyword.ELSE)\n\t\t\tbranch.ifFalse = parseStmt(in);\n\t\telse\n\t\t\tin.pushTokens(next);\n\t\treturn branch;\n\t}", "protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }", "private void decompose(List<Object> elementPairs, List<Object> printerList, List<Object> parserList) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[692]++;\r\n int size = elementPairs.size();\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[693]++;\nbyte CodeCoverTryBranchHelper_L29 = 0;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[85]++;\n\n\nint CodeCoverConditionCoverageHelper_C205;\r\n for (int i=0;(((((CodeCoverConditionCoverageHelper_C205 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C205 |= (2)) == 0 || true) &&\n ((i<size) && \n ((CodeCoverConditionCoverageHelper_C205 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[205].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C205, 1) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[205].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C205, 1) && false); i+=2) {\nif (CodeCoverTryBranchHelper_L29 == 0) {\n CodeCoverTryBranchHelper_L29++;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[85]--;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[86]++;\n} else if (CodeCoverTryBranchHelper_L29 == 1) {\n CodeCoverTryBranchHelper_L29++;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[86]--;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[87]++;\n}\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[694]++;\r\n Object element = elementPairs.get(i);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[695]++;\nint CodeCoverConditionCoverageHelper_C206;\r\n if ((((((CodeCoverConditionCoverageHelper_C206 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C206 |= (2)) == 0 || true) &&\n ((element instanceof DateTimePrinter) && \n ((CodeCoverConditionCoverageHelper_C206 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[206].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C206, 1) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[206].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C206, 1) && false)) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[422]++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[696]++;\nint CodeCoverConditionCoverageHelper_C207;\r\n if ((((((CodeCoverConditionCoverageHelper_C207 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C207 |= (2)) == 0 || true) &&\n ((element instanceof Composite) && \n ((CodeCoverConditionCoverageHelper_C207 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[207].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C207, 1) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[207].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C207, 1) && false)) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[424]++;\r\n addArrayToList(printerList, ((Composite)element).iPrinters);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[697]++;\n\r\n } else {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[425]++;\r\n printerList.add(element);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[698]++;\r\n }\n\r\n } else {\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[423]++;}\r\n\r\n element = elementPairs.get(i + 1);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[699]++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[700]++;\nint CodeCoverConditionCoverageHelper_C208;\r\n if ((((((CodeCoverConditionCoverageHelper_C208 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C208 |= (2)) == 0 || true) &&\n ((element instanceof DateTimeParser) && \n ((CodeCoverConditionCoverageHelper_C208 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[208].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C208, 1) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[208].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C208, 1) && false)) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[426]++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[701]++;\nint CodeCoverConditionCoverageHelper_C209;\r\n if ((((((CodeCoverConditionCoverageHelper_C209 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C209 |= (2)) == 0 || true) &&\n ((element instanceof Composite) && \n ((CodeCoverConditionCoverageHelper_C209 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[209].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C209, 1) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[209].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C209, 1) && false)) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[428]++;\r\n addArrayToList(parserList, ((Composite)element).iParsers);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[702]++;\n\r\n } else {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[429]++;\r\n parserList.add(element);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[703]++;\r\n }\n\r\n } else {\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[427]++;}\r\n }\r\n }", "public void visit(MatchedIf matchedIf)\n\t{\n\t\t// since there was an else, the jmpNotThen has been updated\n\t\t// so only the jmpEndThen should be updated\n\t\tfixJumpAtEndOfThen();\n\t}", "private List<VariableCoefficientTuple> getVariablesUsedForBranchingInThisRectangle(Rectangle rect){\r\n List<VariableCoefficientTuple> variablesUsedForBranchingInThisRectangle = new ArrayList<VariableCoefficientTuple> ();\r\n \r\n for (String var : rect.zeroFixedVariables) {\r\n if (!treeNode_zeroFixedVariables.contains(var) ) \r\n variablesUsedForBranchingInThisRectangle.add(new VariableCoefficientTuple(var, ZERO) );\r\n }\r\n for (String var : rect.oneFixedVariables){ \r\n if ( !treeNode_oneFixedVariables.contains(var)) {\r\n variablesUsedForBranchingInThisRectangle.add(new VariableCoefficientTuple(var, ONE));\r\n } \r\n }\r\n \r\n return variablesUsedForBranchingInThisRectangle;\r\n }", "private void Conditional(){\n\t\tLogicOR();\n\t\t\n\t\tfor(;;){\n\t\t\tif(eat(\"for\")){\n\t\t\t\tInlineFor();\n\t\t\t}else if(eat(\"if\")){\n\t\t\t\tExpression();\n\t\t\t\tif(eat(\"else\"))\n\t\t\t\t\tConditional();\n\t\t\t}else if(eat(\"defined\") || eat(\"!defined\"));\n\t\t\telse for(;;){\n\t\t\t\tif(eat(\"?\")){\n\t\t\t\t\tExpression();\n\t\t\t\t\tassert_eat(\":\");\n\t\t\t\t\tConditional();\n\t\t\t\t}else return;\n\t\t\t}\n\t\t}\n\t}", "private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}", "public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}", "public void method_2461(ahb var1, int var2, int var3, int var4) {\r\n String[] var5 = class_752.method_4253();\r\n boolean var10000 = var1.field_1832;\r\n if(var5 != null) {\r\n if(var1.field_1832) {\r\n return;\r\n }\r\n\r\n var10000 = this.field_2120;\r\n }\r\n\r\n if(var5 != null) {\r\n label38: {\r\n if(var10000) {\r\n var10000 = var1.method_2172(var2, var3, var4);\r\n if(var5 == null) {\r\n break label38;\r\n }\r\n\r\n if(!var10000) {\r\n var1.method_2110(var2, var3, var4, this, 4);\r\n if(var5 != null) {\r\n return;\r\n }\r\n }\r\n }\r\n\r\n var10000 = this.field_2120;\r\n }\r\n }\r\n\r\n if(var5 != null) {\r\n if(var10000) {\r\n return;\r\n }\r\n\r\n var10000 = var1.method_2172(var2, var3, var4);\r\n }\r\n\r\n if(var5 != null && var10000) {\r\n var1.method_2054(var2, var3, var4, class_1192.field_6148, 0, 2);\r\n }\r\n\r\n }", "private boolean method_2691(ahb var1, int var2, int var3, int var4, int var5) {\r\n int var7 = var2 + class_1707.field_8947[var5];\r\n String[] var10000 = class_752.method_4253();\r\n int var8 = var3 + class_1707.field_8948[var5];\r\n int var9 = var4 + class_1707.field_8949[var5];\r\n String[] var6 = var10000;\r\n int var10 = 0;\r\n\r\n int var10001;\r\n int var21;\r\n label171: {\r\n while(true) {\r\n if(var10 < 13) {\r\n label191: {\r\n var21 = var8;\r\n if(var6 == null) {\r\n break label171;\r\n }\r\n\r\n if(var6 != null) {\r\n if(var8 > 0) {\r\n var21 = var8;\r\n if(var6 == null) {\r\n return (boolean)var21;\r\n }\r\n\r\n if(var8 < 255) {\r\n aji var11 = var1.getBlock(var7, var8, var9);\r\n if(var6 == null) {\r\n break;\r\n }\r\n\r\n if(var11.method_2424() != awt.field_4170) {\r\n var21 = method_2689(var11, var1, var7, var8, var9, true);\r\n if(var6 != null) {\r\n if(var21 == 0) {\r\n return false;\r\n }\r\n\r\n var21 = var11.method_2514();\r\n }\r\n\r\n if(var6 != null) {\r\n if(var21 != 1) {\r\n var21 = var10;\r\n var10001 = 12;\r\n if(var6 != null) {\r\n if(var10 == 12) {\r\n return false;\r\n }\r\n\r\n var7 += class_1707.field_8947[var5];\r\n var8 += class_1707.field_8948[var5];\r\n var21 = var9;\r\n var10001 = class_1707.field_8949[var5];\r\n }\r\n\r\n var9 = var21 + var10001;\r\n ++var10;\r\n if(var6 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var11.method_2466(var1, var7, var8, var9, var1.method_33(var7, var8, var9), 0);\r\n var1.method_2056(var7, var8, var9);\r\n }\r\n }\r\n break label191;\r\n }\r\n }\r\n\r\n var21 = 0;\r\n }\r\n\r\n return (boolean)var21;\r\n }\r\n }\r\n\r\n var10 = var7;\r\n break;\r\n }\r\n\r\n var21 = var8;\r\n }\r\n\r\n int var20 = var21;\r\n int var12 = var9;\r\n int var13 = 0;\r\n aji[] var14 = new aji[13];\r\n\r\n int var15;\r\n int var16;\r\n int var17;\r\n label140: {\r\n do {\r\n label137: {\r\n if(var7 == var2) {\r\n var21 = var8;\r\n var10001 = var3;\r\n if(var6 == null || var6 == null) {\r\n break label137;\r\n }\r\n\r\n if(var8 == var3) {\r\n var21 = var9;\r\n if(var6 == null) {\r\n break label140;\r\n }\r\n\r\n if(var9 == var4) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n var21 = var7;\r\n var10001 = class_1707.field_8947[var5];\r\n }\r\n\r\n aji var18;\r\n label125: {\r\n var15 = var21 - var10001;\r\n var16 = var8 - class_1707.field_8948[var5];\r\n var17 = var9 - class_1707.field_8949[var5];\r\n var18 = var1.getBlock(var15, var16, var17);\r\n int var19 = var1.method_33(var15, var16, var17);\r\n if(var6 != null) {\r\n label122: {\r\n if(var18 == this) {\r\n if(var6 == null) {\r\n break label122;\r\n }\r\n\r\n if(var15 == var2) {\r\n if(var6 == null) {\r\n break label122;\r\n }\r\n\r\n if(var16 == var3) {\r\n if(var6 == null) {\r\n break label122;\r\n }\r\n\r\n if(var17 == var4) {\r\n int var10006 = this.field_2143;\r\n if(var6 != null) {\r\n var10006 = this.field_2143?8:0;\r\n }\r\n\r\n var1.method_2054(var7, var8, var9, class_1192.field_6063, var5 | var10006, 4);\r\n var10006 = this.field_2143;\r\n if(var6 != null) {\r\n var10006 = this.field_2143?8:0;\r\n }\r\n\r\n var1.method_2131(var7, var8, var9, class_474.method_2823(class_1192.field_6061, var5 | var10006, var5, true, false));\r\n if(var6 != null) {\r\n break label125;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n var1.method_2054(var7, var8, var9, class_1192.field_6063, var19, 4);\r\n }\r\n }\r\n\r\n var1.method_2131(var7, var8, var9, class_474.method_2823(var18, var19, var5, true, false));\r\n }\r\n\r\n var14[var13++] = var18;\r\n var7 = var15;\r\n var8 = var16;\r\n var9 = var17;\r\n } while(var6 != null);\r\n\r\n var7 = var10;\r\n var8 = var20;\r\n var9 = var12;\r\n var21 = 0;\r\n }\r\n\r\n var13 = var21;\r\n\r\n do {\r\n label95: {\r\n if(var7 == var2) {\r\n var21 = var8;\r\n var10001 = var3;\r\n if(var6 == null || var6 == null) {\r\n break label95;\r\n }\r\n\r\n if(var8 == var3) {\r\n var21 = var9;\r\n if(var6 == null) {\r\n return (boolean)var21;\r\n }\r\n\r\n if(var9 == var4) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n var21 = var7;\r\n var10001 = class_1707.field_8947[var5];\r\n }\r\n\r\n var15 = var21 - var10001;\r\n var16 = var8 - class_1707.field_8948[var5];\r\n var17 = var9 - class_1707.field_8949[var5];\r\n var1.method_2063(var15, var16, var17, var14[var13++]);\r\n var7 = var15;\r\n var8 = var16;\r\n var9 = var17;\r\n } while(var6 != null);\r\n\r\n var21 = 1;\r\n return (boolean)var21;\r\n }", "private void level4() {\n }", "public void preprocess(ControlFlowGraph cfg) {\n System.out.print(cfg.getMethod().getName().toString());\n\n // register graph\n graph = cfg;\n QuadBBVisitor bbVisitor = new QuadBBVisitor();\n graph.visitBasicBlocks(bbVisitor);\n\n // reset & register quad-bb-map\n CheckTable.reset();\n CheckTable.registerQuadBBMap(bbVisitor.quadBBMap);\n\n /* Generate initial conditions. */\n QuadIterator qit = new QuadIterator(cfg);\n int max = 0;\n while (qit.hasNext()) {\n int x = qit.next().getID();\n if (x > max) max = x;\n }\n max += 1;\n // note: this is just declaration of arrays instead of newing CheckTable\n in = new CheckTable[max];\n out = new CheckTable[max];\n qit = new QuadIterator(cfg);\n\n\n /* Arguments are always there. */\n int numargs = cfg.getMethod().getParamTypes().length;\n for (int i = 0; i < numargs; i++) {\n CheckTable.register(\"R\" + i);\n }\n\n while (qit.hasNext()) {\n Quad q = qit.next();\n for (RegisterOperand def : q.getDefinedRegisters()) {\n CheckTable.register(def.getRegister().toString());\n }\n for (RegisterOperand use : q.getUsedRegisters()) {\n CheckTable.register(use.getRegister().toString());\n }\n }\n\n entry = new CheckTable();\n entry.setToBottom();\n\n exit = new CheckTable();\n transferfn.val = new CheckTable();\n for (int i = 0; i < in.length; i++) {\n in[i] = new CheckTable();\n out[i] = new CheckTable();\n }\n\n// System.out.println(\"Initialization completed. VarSet.core: \" + CheckTable.core);\n }", "public interface BranchNode extends StatementNode\n{\n\t/**\n\t * Set the branching condition.\n\t * \n\t * @param condition\n\t * the condition of the branch.\n\t */\n\tpublic void setCondition(ExpressionNode condition);\n\n\t/**\n\t * Get the branching condition.\n\t * \n\t * @return the condition of the branch.\n\t */\n\tpublic ExpressionNode getCondition();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to true.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to true.\n\t */\n\tpublic void setStatementNodeOnTrue(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition evaluates to true.\n\t * \n\t * @return The statement to execute when the condition evaluates to true.\n\t */\n\tpublic StatementNode getStatementNodeOnTrue();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to false.\n\t * This is the else statement. If there is no else set to null.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to false or\n\t * null if no else branch is needed.\n\t */\n\tpublic void setStatementNodeOnFalse(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition is false. This is the else\n\t * branch. If no else branch exists this will return null.\n\t * \n\t * @return The statement to execute when the condition evaluates to false.\n\t */\n\tpublic StatementNode getStatementNodeOnFalse();\n}", "public BranchAndBound() {\n this.timeFi = Long.parseLong(\"2000000000000\");;\n this.numSoluciones = 0;\n }", "public void method_123(ahb var1, Random var2, int var3, int var4, int var5) {\r\n String[] var10000 = class_752.method_4253();\r\n int var7 = 0;\r\n String[] var6 = var10000;\r\n\r\n while(var7 < 128) {\r\n int var8 = var3;\r\n int var9 = var4 + 1;\r\n int var10 = var5;\r\n int var11 = 0;\r\n\r\n label74: {\r\n label73: {\r\n aji var16;\r\n while(true) {\r\n if(var11 < var7 / 16) {\r\n var8 += var2.nextInt(3) - 1;\r\n var9 += (var2.nextInt(3) - 1) * var2.nextInt(3) / 2;\r\n var10 += var2.nextInt(3) - 1;\r\n if(var6 == null) {\r\n break label74;\r\n }\r\n\r\n var16 = var1.getBlock(var8, var9 - 1, var10);\r\n if(var6 == null) {\r\n break;\r\n }\r\n\r\n if(var16 != class_1192.field_6027 || var1.getBlock(var8, var9, var10).method_2433() && var6 != null) {\r\n break label73;\r\n }\r\n\r\n ++var11;\r\n if(var6 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var16 = var1.getBlock(var8, var9, var10);\r\n break;\r\n }\r\n\r\n if(var16.field_2007 == awt.field_4170) {\r\n label83: {\r\n int var17;\r\n label84: {\r\n var17 = var2.nextInt(8);\r\n if(var6 != null) {\r\n if(var17 == 0) {\r\n break label84;\r\n }\r\n\r\n var17 = class_1192.field_6058.method_2505(var1, var8, var9, var10);\r\n }\r\n\r\n if(var6 != null) {\r\n if(var17 == 0) {\r\n break label83;\r\n }\r\n\r\n var1.method_2054(var8, var9, var10, class_1192.field_6058, 1, 3);\r\n }\r\n\r\n if(var6 != null) {\r\n break label83;\r\n }\r\n }\r\n\r\n String var15 = var1.method_35(var8, var10).method_5698(var2, var8, var9, var10);\r\n Logger var18 = field_2128;\r\n StringBuilder var10001 = new StringBuilder();\r\n String[] var14 = field_2132;\r\n var18.debug(var10001.append(\"Flower in \").append(var1.method_35(var8, var10).field_5031).append(\": \").append(var15).toString());\r\n class_447 var12 = class_447.method_2774(var15);\r\n if(var6 == null) {\r\n break label74;\r\n }\r\n\r\n if(var12 != null) {\r\n label40: {\r\n var17 = var12.method_2505(var1, var8, var9, var10);\r\n if(var6 != null) {\r\n if(var17 == 0) {\r\n break label40;\r\n }\r\n\r\n var17 = class_447.method_2775(var15);\r\n }\r\n\r\n int var13 = var17;\r\n var1.method_2054(var8, var9, var10, var12, var13, 3);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n ++var7;\r\n }\r\n\r\n if(var6 == null) {\r\n break;\r\n }\r\n }\r\n\r\n }", "@Override\n\tpublic Object visitIfStatement(IfStatement ifStatement, Object arg) throws Exception {\n\t\tifStatement.getE().visit(this, arg);\n\t\tLabel if_false = new Label();\n\t\tmv.visitJumpInsn(IFEQ, if_false);\n\t\tLabel if_true = new Label();\n\t\tmv.visitLabel(if_true);\n\t\tifStatement.getB().visit(this, arg);\n\t\tmv.visitLabel(if_false);\n\t\t//System.out.println(\"leaving if statement\");\n\t\treturn null;\n\t}", "public void printBranchSubstitutions() {\n\t\tArrayList<TreeBranch> allBranches = phylogeny.getBranches();\n\t\tIterator<TreeBranch> i = allBranches.iterator();\n\t\twhile(i.hasNext()){\n\t\t\tTreeBranch someBranch = i.next();\n\t\t\tSystem.out.println(someBranch);\n\t\t\tStateComparison.printStateComparisonBetweenTwoNodes(someBranch.getParentNode().states, someBranch.getDaughterNode().states, someBranch.getParentNode().getContent(), someBranch.getDaughterNode().getContent());\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "< HEAD\n=======\n\n>>>>>>> 93dc04052d48956a031f1097719ea212a2c35ce2\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println(\"Operator Perbandingan,Kondisional dan Bitwise\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Operasi PERBANDINGAN\");\n\t\tint nilai1 = 5;\n\t\tint nilai2 = 7;\n\t\tif (nilai1 == nilai2) {\n\t\t\tSystem.out.println(nilai1 + \" = \" + nilai2);\n\t\t}\n\t\tif (nilai1 != nilai2) {\n\t\t\tSystem.out.println(nilai1 + \" != \" + nilai2);\n\t\t}\n\t\tif (nilai1 > nilai2) {\n\t\t\tSystem.out.println(nilai1 + \" > \" + nilai2);\n\t\t}\n\t\tif (nilai1 < nilai2) {\n\t\t\tSystem.out.println(nilai1 + \" < \" + nilai2);\n\t\t}\n\t\tif (nilai1 <= nilai2) {\n\t\t\tSystem.out.println(nilai1 + \" <= \" + nilai2);\n\t\t}\n<<<<<<< HEAD\n=======\n\n>>>>>>> 93dc04052d48956a031f1097719ea212a2c35ce2\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Operasi KONDISIONAL\");\n\t\tint nilai3 = 14;\n\t\tint nilai4 = 11;\n<<<<<<< HEAD\n=======\n\n>>>>>>> 93dc04052d48956a031f1097719ea212a2c35ce2\n\t\tif ((nilai3 == 14) && (nilai4 == 11))\n\t\t\tSystem.out.println(\"Nilai3 adalah 14 AND nilai4 adalah 11\");\n\t\tif ((nilai3 == 14) || (nilai4 == 11))\n\t\t\tSystem.out.println(\"Nilai3 adalah 14 OR nilai4 adalah 11\");\n<<<<<<< HEAD\n=======\n\n>>>>>>> 93dc04052d48956a031f1097719ea212a2c35ce2\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Operasi BITWISE\");\n\t\tbyte nilai5 = 90;\n\t\tbyte nilai6 = -75;\n<<<<<<< HEAD\n\t\tSystem.out.println(~nilai5);\n\t\tSystem.out.println(~nilai6);\n\t\tSystem.out.println(\"hgcgfc\");\n\t\tSystem.out.println(\"operator AND \" + (nilai5 & 5));\n\t\tSystem.out.println(\"operator OR \" + (nilai6 | 5));\n\t\tSystem.out.println(\"operator XOR \" + (nilai6 ^ 5));\n=======\n\n\t\tSystem.out.println(~nilai5);\n\t\tSystem.out.println(~nilai6);\n\t\tSystem.out.println(\"hgcgfc\");\n\t\tSystem.out.println(\"operator AND \"+(nilai5 & 5));\n\t\tSystem.out.println(\"operator OR \"+(nilai6 | 5));\n\t\tSystem.out.println(\"operator XOR \"+(nilai6 ^ 5));\n>>>>>>> 93dc04052d48956a031f1097719ea212a2c35ce2\n\t\tSystem.out.println(nilai5 >> 2);\n\t\tSystem.out.println(nilai6 << 7);\n\t\tSystem.out.println(nilai5 << 3);\n\t\tSystem.out.println(nilai5 >>> 3);\n\t\tSystem.out.println(nilai6 >>> 5);\n<<<<<<< HEAD\n\t}", "private void branch01(Node parent) {\n final GeneralLP lp0 = parent.lp;\n final int v = intVars[parent.level];\n Maths.CnF cf = new Maths.CnF(lp0.x[v - 1]);\n\n double[][] a2 = Arrays.copyOf(lp0.a, lp0.m);\n double[] bLeft = lp0.b; // left branch\n double[] bRight = Arrays.copyOf(lp0.b, lp0.m); // right branch\n double[] c2 = Arrays.copyOf(lp0.c, lp0.n);\n double c0Right = lp0.c0 + lp0.c[v - 1]; // c0Left unchanged\n branch01Arguments(c2, a2, bRight, lp0, v);\n\n // LP1: left branch (=0)\n LOG.debug(parent, \"left branch x(\", v, \") =\", 0);\n GeneralLP lp1 = new GeneralLP(lp0.objectiveType, lp0.c0, c2, a2, lp0.signs, bLeft, lp0.freeVars);\n Node child1 = new Node(lp1, parent, Node.LEFT).binary(v);\n nodes.addLast(child1);\n\n // LP2: right branch (=1)\n LOG.debug(parent, \"right branch x(\", v, \") =\", 1);\n GeneralLP lp2 = new GeneralLP(lp0.objectiveType, c0Right, c2, a2, lp0.signs, bRight, lp0.freeVars);\n Node child2 = new Node(lp2, parent, Node.RIGHT).binary(v);\n nodes.addLast(child2);\n\n parent.lp = null; // release memory\n }", "@Override\n public void visitIfStatement(IfStatement node){\n mPrintWriter.println(\"#IFStatement\");\n Label l0 = new Label();\n Label l1 = new Label();\n Label l2 = new Label();\n //mPrintWriter.println(l1 + \":\");\n inIfStatement(node);\n if(node.getExp() != null)\n {\n node.getExp().accept(this);\n }\n mPrintWriter.println(\"pop r24\");\n //#load zero into reg\n mPrintWriter.println(\"ldi r25, 0\");\n\n //#use cp to set SREG\n mPrintWriter.println(\"cp r24, r25\");\n //#WANT breq MJ_L0\n mPrintWriter.println(\"brne \" + l1);\n mPrintWriter.println(\"jmp \" + l0);\n\n //# then label for if\n mPrintWriter.println(l1 + \":\");\n if(node.getThenStatement() != null)\n {\n node.getThenStatement().accept(this);\n }\n mPrintWriter.println(\"jmp \" + l2);\n\n //# else label for if\n mPrintWriter.println(l0 + \":\");\n if(node.getElseStatement() != null)\n {\n node.getElseStatement().accept(this);\n }\n mPrintWriter.println(l2 + \":\");\n\n outIfStatement(node);\n }", "public void setBranchNum(Integer branchNum) {\r\n this.branchNum = branchNum;\r\n }", "public Branch() { }", "public void caseAIfStmt(AIfStmt node)\n {\n int initCount = 0;\n //inAIfStmt(node);\n if(node.getStmt() != null)\n {\n newScope();\n initCount++;\n }\n if(node.getIf() != null)\n {\n node.getIf().apply(this);\n }\n if(node.getStmt() != null)\n {\n node.getStmt().apply(this);\n }\n if(node.getExp() != null)\n {\n node.getExp().apply(this);\n }\n {\n List<PStmt> copy = new ArrayList<PStmt>(node.getTrue());\n for(PStmt e : copy)\n {\n e.apply(this);\n }\n }\n {\n List<PElseIf> copy = new ArrayList<PElseIf>(node.getElseIf());\n Iterator<PElseIf> itr = copy.iterator();\n while (itr.hasNext()) {\n PElseIf e = itr.next();\n AElseIf elseIf = (AElseIf) e;\n if(elseIf.getStmt() != null)\n {\n newScope();\n initCount++;\n }\n e.apply(this);\n if(elseIf.getExp() != null)\n {\n Type t = typemap.get(elseIf.getExp());\n t = removeAlias(t);\n if(!(t instanceof BooleanType)) throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(elseIf) + \"] If-else statement with non-boolean condition.\");\n }\n }\n }\n {\n List<PStmt> copy = new ArrayList<PStmt>(node.getFalse());\n for(PStmt e : copy)\n {\n e.apply(this);\n }\n }\n //outAIfStmt(node);\n if(node.getExp() != null)\n {\n Node e = node.getExp();\n Type t = typemap.get(e);\n t = removeAlias(t);\n if(!(t instanceof BooleanType)) throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] If statement with non-boolean condition.\");\n }\n if (initCount>0) {\n if (dump) {\n List<PStmt> copy = new ArrayList<PStmt>(node.getTrue());\n if (copy.size()>0 && golite.weeder.LineNumber.getLineNumber(copy.get(copy.size()-1))>0)\n {\n Node n = copy.get(copy.size()-1);\n System.out.println(\"[line \" + golite.weeder.LineNumber.getLineNumber(n) + \"]\");\n }\n }\n while (initCount>0) {\n unScope();\n initCount--;\n }\n }\n }", "Node findBaseCases(Dfg dfg, ProcessTree tree, DfgMinerState minerState);", "public void testConditionalBreakDirective()\n {\n assertEvalEquals(\"1, 2, 3, 4, 5\",\n \"#foreach($i in [1..10])$i#if($i > 4)#break#end, #end\");\n }", "private static void execute1()\n\t{\n\t\tboolean flushRegisterValues = false;\n\t\tboolean branchFUflag = false;\n\t\tExecutionOfOpcode functionUnit = new ExecutionOfOpcode();\n\t\tString controlFlowInstruction = TypesOfOperations.BNZ + \"|\" + TypesOfOperations.BZ + \"|\"\n\t\t\t\t+ TypesOfOperations.JUMP + \"|\" + TypesOfOperations.BAL + \"|\" + TypesOfOperations.HALT;\n\n\t\tif (latches.containsKey(\"D\"))\n\t\t{\n\t\t\tif (!latches.get(\"D\").isNOP())\n\t\t\t{\n\t\t\t\t// Check if the instruction in Decode stage is not Control flow\n\t\t\t\t// instruction\n\t\t\t\tif (!controlFlowInstruction.contains(latches.get(\"D\").getOperation()))\n\t\t\t\t{\n\t\t\t\t\tInstruction instructionEx = latches.get(\"D\");\n\t\t\t\t\t// TODO check the src 1 and src 2 with forwarding registers\n\t\t\t\t\tif ((forwardingReg != null) && (forwardingRegMEMtoEX != null)\n\t\t\t\t\t\t\t&& forwardingReg.getKey().equals(forwardingRegMEMtoEX.getKey()))\n\t\t\t\t\t{\n\t\t\t\t\t\tforwardingRegMEMtoEX.setValue(forwardingReg.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tlatches.put(\"D\", functionUnit.executeInstruction(latches.get(\"D\")));\n\t\t\t\t} else\n\t\t\t\t// Here we have the branch instruction\n\t\t\t\t{\n\t\t\t\t\tbranchFUflag = true;\n\t\t\t\t\tlatches.put(\"E\", stages.get(\"E\"));\n\t\t\t\t\tstages.put(\"E\", new Instruction()); // Add NOP in the ALU1\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!branchFUflag)\n\t\t\t{\n\t\t\t\tmoveInstruction(\"E\", \"D\");\n\t\t\t\tif (flushRegisterValues)\n\t\t\t\t\tflushRegister();\n\t\t\t}\n\t\t}\n\t}", "private void level6() {\n }", "private void collapseAssignmentsIntoConditional(Op03SimpleStatement ifStatement) {\n\n if (!(appropriateForIfAssignmentCollapse1(ifStatement) ||\n appropriateForIfAssignmentCollapse2(ifStatement))) return;\n IfStatement innerIf = (IfStatement) ifStatement.getStatement();\n ConditionalExpression conditionalExpression = innerIf.getCondition();\n\n /*\n * The 'verify' block stops us winding up unless we'd do it into another conditional\n * or into a backjump.\n *\n * Otherwise, we end up with lots of code like\n *\n * int x\n * if ( (x=3) < y )\n *\n * rather than\n *\n * int x = 3\n * if (x < y)\n *\n * which is (a) ugly, and (b) screws with final analysis.\n */\n /*\n * HOWEVER - eclipse (of course) generates code which looks like\n *\n *\n */\n boolean eclipseHeuristic = testEclipse && ifStatement.getTargets().get(1).getIndex().isBackJumpFrom(ifStatement);\n if (!eclipseHeuristic) {\n Op03SimpleStatement statement = ifStatement;\n Set<Op03SimpleStatement> visited = SetFactory.newSet();\n verify:\n do {\n if (statement.getSources().size() > 1) {\n // Progress if we're a backjump target.\n // Otherwise, we'll cause problems with assignments inside\n // while conditionals.\n InstrIndex statementIndex = statement.getIndex();\n for (Op03SimpleStatement source : statement.getSources()) {\n if (statementIndex.isBackJumpFrom(source)) {\n break verify;\n }\n }\n }\n if (statement.getSources().isEmpty()) {\n break;\n }\n statement = statement.getSources().get(0);\n if (!visited.add(statement)) {\n return;\n }\n Statement opStatement = statement.getStatement();\n if (opStatement instanceof IfStatement) break;\n if (opStatement instanceof Nop) continue;\n if (opStatement instanceof AbstractAssignment) continue;\n return;\n } while (true);\n }\n\n /* where possible, collapse any single parent assignments into this. */\n Op03SimpleStatement previousSource = null;\n while (ifStatement.getSources().size() == 1) {\n Op03SimpleStatement source = ifStatement.getSources().get(0);\n if (source == previousSource) return;\n previousSource = source;\n if (!(source.getStatement() instanceof AbstractAssignment)) return;\n LValue lValue = source.getStatement().getCreatedLValue();\n if (lValue instanceof StackSSALabel) return;\n // We don't have to worry about RHS having undesired side effects if we roll it into the\n // conditional - that has already happened.\n LValueUsageCollectorSimple lvc = new LValueUsageCollectorSimple();\n // NB - this will collect values even if they are NOT guaranteed to be used\n // i.e. are on the RHS of a comparison, or in a ternary.\n conditionalExpression.collectUsedLValues(lvc);\n if (!lvc.isUsed(lValue)) return;\n AbstractAssignment assignment = (AbstractAssignment) (source.getStatement());\n\n AbstractAssignmentExpression assignmentExpression = assignment.getInliningExpression();\n LValueUsageCollectorSimple assignmentLVC = new LValueUsageCollectorSimple();\n assignmentExpression.collectUsedLValues(assignmentLVC);\n Set<LValue> used = SetFactory.newSet(assignmentLVC.getUsedLValues());\n used.remove(lValue);\n Set<LValue> usedComparison = SetFactory.newSet(lvc.getUsedLValues());\n\n // Avoid situation where we have\n // a = x\n // b = y.f(a)\n // if (a == b) <-- should not get rolled up.\n SSAIdentifiers<LValue> beforeSSA = source.getSSAIdentifiers();\n SSAIdentifiers<LValue> afterSSA = ifStatement.getSSAIdentifiers();\n\n Set<LValue> intersection = SetUtil.intersectionOrNull(used, usedComparison);\n if (intersection != null) {\n // If there's an intersection, we require the ssa idents for before/after to be the same.\n for (LValue intersect : intersection) {\n if (!afterSSA.isValidReplacement(intersect, beforeSSA)) {\n return;\n }\n }\n }\n\n if (!afterSSA.isValidReplacement(lValue, beforeSSA)) return;\n LValueAssignmentExpressionRewriter rewriter = new LValueAssignmentExpressionRewriter(lValue, assignmentExpression, source);\n ConditionalExpression replacement = rewriter.rewriteExpression(conditionalExpression, ifStatement.getSSAIdentifiers(), ifStatement, ExpressionRewriterFlags.LVALUE);\n if (replacement == null) return;\n innerIf.setCondition(replacement);\n }\n\n }", "private void changeJumps(int breakBCI, int delta) {\n int bci = 0;\n int bc;\n\n // Now, adjust any affected instructions.\n while (bci < bytecodesLength) {\n bc = (bytecodes[bci] & 0xFF);\n\n if (((bc >= opc_ifeq) && (bc <= opc_if_acmpne)) || (bc == opc_ifnull) || (bc == opc_ifnonnull) || (bc == opc_goto)\n || (bc == opc_jsr)) {\n changeJump(bci, bci + 1, true, breakBCI, delta);\n } else {\n switch (bc) {\n case opc_goto_w:\n case opc_jsr_w:\n changeJump(bci, bci + 1, false, breakBCI, delta);\n\n break;\n case opc_tableswitch:\n case opc_lookupswitch: {\n int recPad = getOrigSwitchPadding(bci, (bc != opc_tableswitch));\n int oldPad = (recPad != -1) ? recPad : (align(bci + 1) - (bci + 1));\n\n if (bci > breakBCI) {\n int new_bci = bci + delta;\n int newPad = align(new_bci + 1) - (new_bci + 1);\n\n // Do we need to check the padding?\n if (newPad != oldPad) {\n if (recPad == -1) {\n changes.push(new ChangeSwitchPadding(bci, oldPad, (bc != opc_tableswitch)));\n }\n }\n }\n\n // Then the rest, which depends on the kind of switch.\n if (bc == opc_tableswitch) {\n changeJump(bci, bci + 1 + oldPad, false, breakBCI, delta);\n\n // We cannot use the Bytecode_tableswitch abstraction, since the padding might not be correct.\n int lo = getInt(bci + 1 + oldPad + (4 * 1));\n int hi = getInt(bci + 1 + oldPad + (4 * 2));\n int n = hi - lo + 1;\n\n for (int k = 0; k < n; k++) {\n changeJump(bci, bci + 1 + oldPad + (4 * (k + 3)), false, breakBCI, delta);\n }\n\n // Special next-bci calculation here...\n bci += (1 + oldPad + ((n + 3) * 4));\n\n continue;\n } else {\n changeJump(bci, bci + 1 + oldPad, false, breakBCI, delta);\n\n // We cannot use the Bytecode_lookupswitch abstraction, since the padding might not be correct.\n int npairs = getInt(bci + 1 + oldPad + (4 * 1));\n\n for (int k = 0; k < npairs; k++) {\n changeJump(bci, bci + 1 + oldPad + (4 * (2 + (2 * k) + 1)), false, breakBCI, delta);\n }\n\n // Special next-bci calculation here...\n bci += (1 + oldPad + ((2 + (npairs * 2)) * 4));\n\n continue;\n }\n }\n default:\n break;\n }\n }\n\n bci += opcodeLength(bci);\n }\n }", "private static boolean condenseConditional2_type1(Op03SimpleStatement ifStatement, List<Op03SimpleStatement> allStatements) {\n if (!(ifStatement.getStatement() instanceof IfStatement)) return false;\n\n final Op03SimpleStatement taken1 = ifStatement.getTargets().get(1);\n final Op03SimpleStatement nottaken1 = ifStatement.getTargets().get(0);\n if (!(nottaken1.getStatement() instanceof IfStatement)) return false;\n Op03SimpleStatement ifStatement2 = nottaken1;\n Op03SimpleStatement taken2 = ifStatement2.getTargets().get(1);\n Op03SimpleStatement nottaken2 = ifStatement2.getTargets().get(0);\n final Op03SimpleStatement nottaken2Immed = nottaken2;\n if (nottaken2Immed.getSources().size() != 1) return false;\n nottaken2 = Misc.followNopGotoChain(nottaken2, true, false);\n do {\n Op03SimpleStatement nontaken2rewrite = Misc.followNopGoto(nottaken2, true, false);\n if (nontaken2rewrite == nottaken2) break;\n nottaken2 = nontaken2rewrite;\n } while (true);\n if (!(taken1.getStatement() instanceof IfStatement)) return false;\n if (taken1.getSources().size() != 1) return false;\n Op03SimpleStatement ifStatement3 = taken1;\n Op03SimpleStatement taken3 = ifStatement3.getTargets().get(1);\n Op03SimpleStatement nottaken3 = ifStatement3.getTargets().get(0);\n Op03SimpleStatement notTaken3Source = ifStatement3;\n do {\n Op03SimpleStatement nontaken3rewrite = Misc.followNopGoto(nottaken3, true, false);\n if (nontaken3rewrite == nottaken3) break;\n notTaken3Source = nottaken3;\n nottaken3 = nontaken3rewrite;\n } while (true);\n\n // nottaken2 = nottaken3 = c\n if (nottaken2 != nottaken3) {\n // There's one final thing we can get away with - if these are both returns, and they are IDENTICAL\n // (i.e. same, AND for any variables accessed, ssa-same), then we can assume nottaken2 is a rewritten branch\n // to nottaken3.\n if (nottaken2.getStatement() instanceof ReturnStatement) {\n if (!nottaken2.getStatement().equivalentUnder(nottaken3.getStatement(), new StatementEquivalenceConstraint(nottaken2, nottaken3))) {\n return false;\n }\n } else {\n return false;\n }\n }\n if (taken2 != taken3) return false; // taken2 = taken3 = b;\n /*\n * rewrite as if ((w && z) || x)\n *\n *\n */\n IfStatement if1 = (IfStatement) ifStatement.getStatement();\n IfStatement if2 = (IfStatement) ifStatement2.getStatement();\n IfStatement if3 = (IfStatement) ifStatement3.getStatement();\n\n ConditionalExpression newCond = new BooleanExpression(\n new TernaryExpression(BytecodeLoc.combineShallow(if1, if2, if3),\n if1.getCondition().getNegated().simplify(),\n if2.getCondition().getNegated().simplify(),\n if3.getCondition().getNegated().simplify())).getNegated();\n// TernaryExpression\n// ConditionalExpression newCond =\n// new BooleanOperation(\n// new BooleanOperation(if1.getCondition(), if2.getCondition(), BoolOp.OR),\n// if3.getCondition(), BoolOp.AND);\n\n ifStatement.replaceTarget(taken1, taken3);\n taken3.addSource(ifStatement);\n taken3.removeSource(ifStatement2);\n taken3.removeSource(ifStatement3);\n\n nottaken1.getSources().remove(ifStatement);\n nottaken2Immed.replaceSource(ifStatement2, ifStatement);\n ifStatement.replaceTarget(nottaken1, nottaken2Immed);\n\n// nottaken3.removeSource(notTaken3Source);\n nottaken3.removeSource(notTaken3Source);\n\n ifStatement2.replaceStatement(new Nop());\n ifStatement3.replaceStatement(new Nop());\n ifStatement2.removeTarget(taken3);\n ifStatement3.removeTarget(taken3);\n\n ifStatement.replaceStatement(new IfStatement(BytecodeLoc.NONE, newCond));\n\n /*\n * Now we're cleared up, see if nottaken2immed actually jumps straight to its target.\n */\n if (nottaken2Immed.getSources().size() == 1) {\n if (nottaken2Immed.getSources().get(0).getIndex().isBackJumpFrom(nottaken2Immed)) {\n if (nottaken2Immed.getStatement().getClass() == GotoStatement.class) {\n Op03SimpleStatement nottaken2ImmedTgt = nottaken2Immed.getTargets().get(0);\n int idx = allStatements.indexOf(nottaken2Immed);\n int idx2 = idx + 1;\n do {\n Op03SimpleStatement next = allStatements.get(idx2);\n if (next.getStatement() instanceof Nop) {\n idx2++;\n continue;\n }\n if (next == nottaken2ImmedTgt) {\n // Replace nottaken2 with nottaken2ImmedTgt.\n nottaken2ImmedTgt.replaceSource(nottaken2Immed, ifStatement);\n ifStatement.replaceTarget(nottaken2Immed, nottaken2ImmedTgt);\n }\n break;\n } while (true);\n }\n }\n }\n\n return true;\n\n }", "public void visit(UnmatchedIf unmatchedIf)\n\t{\n\t\t// since there was not an else, the jmpNotThen needs to be updated\n\t\t// and there is no jmpEndThen\n\t\tfixJumpAtEndOfCondition();\n\t}", "private int digitCount(String text, int position, int amount) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[605]++;\r\n int limit = Math.min(text.length() - position, amount);\r\n amount = 0;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[606]++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[607]++;\nbyte CodeCoverTryBranchHelper_L18 = 0;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[52]++;\n\n\nint CodeCoverConditionCoverageHelper_C182;\r\n for (;(((((CodeCoverConditionCoverageHelper_C182 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C182 |= (2)) == 0 || true) &&\n ((limit > 0) && \n ((CodeCoverConditionCoverageHelper_C182 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[182].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C182, 1) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[182].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C182, 1) && false); limit--) {\nif (CodeCoverTryBranchHelper_L18 == 0) {\n CodeCoverTryBranchHelper_L18++;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[52]--;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[53]++;\n} else if (CodeCoverTryBranchHelper_L18 == 1) {\n CodeCoverTryBranchHelper_L18++;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[53]--;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[54]++;\n}\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[608]++;\r\n char c = text.charAt(position + amount);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[609]++;\nint CodeCoverConditionCoverageHelper_C183;\r\n if ((((((CodeCoverConditionCoverageHelper_C183 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C183 |= (8)) == 0 || true) &&\n ((c < '0') && \n ((CodeCoverConditionCoverageHelper_C183 |= (4)) == 0 || true)))\n || \n(((CodeCoverConditionCoverageHelper_C183 |= (2)) == 0 || true) &&\n ((c > '9') && \n ((CodeCoverConditionCoverageHelper_C183 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[183].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C183, 2) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[183].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C183, 2) && false)) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[389]++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[610]++;\r\n break;\n\r\n } else {\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[390]++;}\r\n amount++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[611]++;\r\n }\r\n return amount;\r\n }", "boolean isBranchTaken();", "private void addBranch(Tree.Branch currentBranch, DrawingView draw){\n draw.addLine(new Line(currentBranch.getX1(), currentBranch.getY1(),\n currentBranch.getX2(), currentBranch.getY2(), currentBranch.getWidth()));\n if (currentBranch.hasLeft()) addBranch(currentBranch.getLeft(), draw);\n if (currentBranch.hasRight()) addBranch(currentBranch.getRight(), draw);\n }", "public void visit(BinConditionalExpression x){\n }", "public boolean addBranch()\n\t{\n\t\tList<Branch> branches = this.company.getBranches();\n\t\tList<Stock> stocks = this.company.getStocks();\n\t\tint branchNumber = branches.length();\n\t\tint uniqueId = this.company.getBranchCounter();\n\n\t\tbranches.insert(new Branch(uniqueId, uniqueId));\n\n\t\tType t[] = Type.values();\n\t\tColor c[] = Color.values();\n\t\tList<Furniture> furniture = new List<Furniture>();\n\n\t\tint counter = 0;\n\n\t\t// insert chairs\n\t\tfor(int i=0; i<7; i++)\n\t\t{\n\t\t\tfor(int j=0; j<5; j++)\n\t\t\t{\n\t\t\t\tfurniture.insert(new Furniture(counter++, i, t[0], c[j], branches.get(branchNumber), 5));\n\t\t\t}\n\t\t}\n\n\t\t// insert desks\n\t\tfor(int i=0; i<5; i++)\n\t\t{\n\t\t\tfor(int j=0; j<4; j++)\n\t\t\t{\n\t\t\t\tfurniture.insert(new Furniture(counter++, i, t[1], c[j], branches.get(branchNumber), 5));\n\t\t\t}\n\t\t}\n\n\t\t// insert tables\n\t\tfor(int i=0; i<10; i++)\n\t\t{\n\t\t\tfor(int j=0; j<4; j++)\n\t\t\t{\n\t\t\t\tfurniture.insert(new Furniture(counter++, i, t[2], c[j], branches.get(branchNumber), 5));\n\t\t\t}\n\t\t}\n\n\t\t// insert bookcases\n\t\tfor(int i=0; i<12; i++)\n\t\t{\n\t\t\tfurniture.insert(new Furniture(counter++, i, t[3], Color.NONE, branches.get(branchNumber), 5));\n\t\t}\n\n\t\t// insert cabinets\n\t\tfor(int i=0; i<12; i++)\n\t\t{\n\t\t\tfurniture.insert(new Furniture(counter++, i, t[4], Color.NONE, branches.get(branchNumber), 5));\n\t\t}\n\n\n\t\tstocks.insert(new Stock(uniqueId, furniture));\n\n\t\treturn true;\n\t}", "private void parseIfStatement() {\n check(Token.IF);\n check(Token.LPAR);\n\n parseCondition();\n\n int elseFixup = code.pc - 2;\n\n check(Token.RPAR);\n\n parseStatement();\n\n code.putJump(42); // Any value is fine, this will be fixed up later\n int endifFixup = code.pc - 2;\n\n code.fixup(elseFixup);\n\n if (nextToken.kind == Token.ELSE) {\n check(Token.ELSE);\n parseStatement();\n }\n\n code.fixup(endifFixup);\n }", "private void createBranchReg(Code32 code, int op, int cond, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rm << 0);\r\n\t\tcode.incInstructionNum();\r\n\t}", "@Override\r\n public void visit(IfGoto n, functionStruct fStruct) {\r\n String conditionObject = n.f1.f0.toString();\r\n addId(conditionObject, fStruct.functionName, fStruct.lineNumber);\r\n\r\n String label= n.f3.f0.toString();\r\n String myName= fStruct.functionName;\r\n int myNumber= fStruct.lineNumber;\r\n if(!labelDict.containsKey(myName)|| !labelDict.get(myName).containsKey(label) ){\r\n ;\r\n }\r\n else{\r\n int nextNumber= labelDict.get(myName).get(label);\r\n if(nextNumber < myNumber){\r\n loopArray.add(new Pair(nextNumber, myNumber));\r\n }\r\n }\r\n \r\n }", "@Test(groups = { \"Interactive\" })\n public void troubleCases() {\n String defaultBlocks = \"[[1,1,1,\\\"Green\\\",[\\\"S\\\"]],[1,1,2,\\\"Green\\\",[]],[1,1,3,\\\"Green\\\",[]],[1,1,4,\\\"Green\\\",[]]]\";\n ContextValue context = getContext(defaultBlocks);\n LogInfo.begin_track(\"troubleCases\");\n runFormula(executor, \"(:s (: select *) (: select (or (call veryx top this) (call veryx bot this))))\", context,\n selectedSize(2));\n runFormula(executor, \" (: select (or (call veryx top (color green)) (call veryx bot (color green))))\", context,\n selectedSize(2));\n runFormula(executor, \" (: select (and (call veryx top (color green)) (call veryx bot (color green))))\", context,\n selectedSize(0));\n runFormula(executor, \" (: select (call adj top this))\", context, selectedSize(1));\n LogInfo.end_track();\n }", "private void giveTriangularBranchesHeaders(ArrayList<Map<Integer, Double>> branches, int kOffset)\r\n\t{\r\n\t\tint upperKValue;\r\n\t\tint lowerKValue = Math.abs(currentK + kOffset);\r\n\r\n\t\tif (kOffset > 0) {\r\n\t\t\tupperKValue = Math.abs(currentK + 1);\r\n\t\t} else {\r\n\t\t\tupperKValue = Math.abs(currentK - 1);\r\n\t\t}\r\n\r\n\t\tif (isEType) {\r\n\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \", Lower state K=\" + lowerKValue + \")\",\r\n\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \", Lower state K=\" + lowerKValue + \")\",\r\n\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \", Lower state K=\" + lowerKValue + \")\");\r\n\t\t} else {\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tif (IS_EVEN_SELECTION_RULES) {\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+)\",\r\n\t\t\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+)\",\r\n\t\t\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+)\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+\" + \")\",\r\n\t\t\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+\" + \")\",\r\n\t\t\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (IS_EVEN_SELECTION_RULES) {\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\",\r\n\t\t\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\",\r\n\t\t\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\",\r\n\t\t\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\",\r\n\t\t\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\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 setupAssociatedBranchesAType(Map<Integer, Double> inputBranchWithJ)\r\n\t{\r\n\t\tgetOppositeParityEnergies(currentK);\r\n\t\tArrayList<Map<Integer, Double>> branches = new ArrayList<Map<Integer, Double>>();\r\n\t\tint jOffset = 0;\r\n\r\n\t\tif (IS_EVEN_SELECTION_RULES) {\r\n\t\t\tif (INPUT_BRANCH_TYPE.equals(\"Q\")) {\r\n\t\t\t\tcalculateUpperEnergiesLevelsWithJ(inputBranchWithJ, jOffset);\r\n\t\t\t\t\r\n\t\t\t\tif (currentK >= 0) {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedR, -1, 1, 0, -1, true, false);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedP, 1, -1, 1, 0, false, true);\r\n\t\t\t\t\tbranches.add(associatedP);\r\n\t\t\t\t\tbranches.add(associatedR);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"P-<-\", \"R-<-\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedR, -1, 1, 0, -1, false, true);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedP, 1, -1, 1, 0, true, false);\r\n\t\t\t\t\tbranches.add(associatedP);\r\n\t\t\t\t\tbranches.add(associatedR);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"P+<+\", \"R+<+\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (INPUT_BRANCH_TYPE.equals(\"R\")) {\r\n\t\t\t\tjOffset = 1;\r\n\t\t\t\tcalculateUpperEnergiesLevelsWithJ(inputBranchWithJ, jOffset);\r\n\r\n\t\t\t\tif (currentK >= 0) {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedQ, 1, -1, 1, 0, false, true);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedP, 2, -1, 2, 0, true, true);\r\n\t\t\t\t\tbranches.add(associatedQ);\r\n\t\t\t\t\tbranches.add(associatedP);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"Q+<-\", \"P+<+\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedQ, 1, -1, 1, 0, true, false);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedP, 2, -1, 2, 0, false, false);\r\n\t\t\t\t\tbranches.add(associatedQ);\r\n\t\t\t\t\tbranches.add(associatedP);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"Q-<+\", \"P-<-\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (INPUT_BRANCH_TYPE.equals(\"P\")) {\r\n\t\t\t\tjOffset = -1;\r\n\t\t\t\tcalculateUpperEnergiesLevelsWithJ(inputBranchWithJ, jOffset);\r\n\r\n\t\t\t\tif (currentK >= 0) {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedQ, -1, 1, 0, -1, true, false);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedR, -2, 1, 0, -2, true, true);\r\n\t\t\t\t\tbranches.add(associatedQ);\r\n\t\t\t\t\tbranches.add(associatedR);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"Q+<-\", \"R+<+\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedQ, -1, 1, 0, -1, false, true);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedR, -2, 1, 0, -2, false, false);\r\n\t\t\t\t\tbranches.add(associatedQ);\r\n\t\t\t\t\tbranches.add(associatedR);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"Q-<+\", \"R-<-\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tif (INPUT_BRANCH_TYPE.equals(\"Q\")) {\r\n\t\t\t\tcalculateUpperEnergiesLevelsWithJ(inputBranchWithJ, jOffset);\r\n\t\t\t\t\r\n\t\t\t\tif (currentK >= 0) {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedR, -1, 1, 0, -1, true, false);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedP, 1, -1, 1, 0, false, true);\r\n\t\t\t\t\tbranches.add(associatedP);\r\n\t\t\t\t\tbranches.add(associatedR);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"P+<-\", \"R+<-\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedR, -1, 1, 0, -1, false, true);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedP, 1, -1, 1, 0, true, false);\r\n\t\t\t\t\tbranches.add(associatedP);\r\n\t\t\t\t\tbranches.add(associatedR);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"P-<+\", \"R-<+\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (INPUT_BRANCH_TYPE.equals(\"R\")) {\r\n\t\t\t\tjOffset = 1;\r\n\t\t\t\tcalculateUpperEnergiesLevelsWithJ(inputBranchWithJ, jOffset);\r\n\r\n\t\t\t\tif (currentK >= 0) {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedQ, 1, -1, 1, 0, false, true);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedP, 2, -1, 2, 0, true, true);\r\n\t\t\t\t\tbranches.add(associatedQ);\r\n\t\t\t\t\tbranches.add(associatedP);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"Q-<-\", \"P-<+\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedQ, 1, -1, 1, 0, true, false);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedP, 2, -1, 2, 0, false, false);\r\n\t\t\t\t\tbranches.add(associatedQ);\r\n\t\t\t\t\tbranches.add(associatedP);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"Q+<+\", \"P+<-\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (INPUT_BRANCH_TYPE.equals(\"P\")) {\r\n\t\t\t\tjOffset = -1;\r\n\t\t\t\tcalculateUpperEnergiesLevelsWithJ(inputBranchWithJ, jOffset);\r\n\t\t\t\t\r\n\t\t\t\tif (currentK >= 0) {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedQ, -1, 1, 0, -1, true, false);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedR, -2, 1, 0, -2, true, true);\r\n\t\t\t\t\tbranches.add(associatedQ);\r\n\t\t\t\t\tbranches.add(associatedR);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"Q-<-\", \"R-<+\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedQ, -1, 1, 0, -1, false, true);\r\n\t\t\t\t\tcalculateAssociatedATypeBranches(associatedR, -2, 1, 0, -2, false, false);\r\n\t\t\t\t\tbranches.add(associatedQ);\r\n\t\t\t\t\tbranches.add(associatedR);\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches, \"Q+<+\", \"R+<-\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (TRANSITION_TYPE.equals(\"b-type\")) {\r\n\t\t\t//The 2 and -2 represent \"get lower energies with K +2 / -2 offset from the current K value, if it exists\"\r\n\t\t\tsetupTriangularTypes(2);\r\n\t\t\tsetupTriangularTypes(-2);\r\n\t\t}\r\n\t}", "@Override\n public void visitIntIfCmp(Quad q) {\n final byte EQ = 0;\n final byte NE = 1;\n if (checkLevel != NonNull.LEVEL_NORMAL) {\n Operand s1 = Operator.IntIfCmp.getSrc1(q);\n Operand s2 = Operator.IntIfCmp.getSrc2(q);\n TargetOperand targBranch = Operator.IntIfCmp.getTarget(q);\n\n byte cond = Operator.IntIfCmp.getCond(q).getCondition();\n int targBBid = targBranch.getTarget().getID();\n\n // only do this when at least one of opr is reg\n if (s1 instanceof RegisterOperand && !(s2 instanceof RegisterOperand) ||\n s2 instanceof RegisterOperand && !(s1 instanceof RegisterOperand)) {\n Operand reg = s1 instanceof RegisterOperand ? s1 : s2;\n Operand other = s1 instanceof RegisterOperand ? s2 : s1;\n String regName = ((RegisterOperand) reg).getRegister().toString();\n // now ensure reg is register oprd\n\n if (cond == EQ) {\n if (isChecked(other)) {\n val.checkVarWithBranch(regName, true, targBBid);\n } else if (isNull(other)) {\n val.checkVarWithBranch(regName, false, targBBid);\n }\n } else if (cond == NE) {\n if (isNull(other)) {\n val.checkVarWithBranch(regName, true, targBBid);\n } else if (isChecked(other)) {\n val.checkVarWithBranch(regName, false, targBBid);\n }\n }\n } else if (s1 instanceof RegisterOperand && s2 instanceof RegisterOperand) {\n RegisterOperand r1 = (RegisterOperand) s1;\n RegisterOperand r2 = (RegisterOperand) s2;\n String reg1 = r1.getRegister().toString();\n String reg2 = r2.getRegister().toString();\n if (cond == EQ) {\n if (isChecked(r1)) {\n val.checkVarWithBranch(reg2, true, targBBid);\n } else if (isNull(r1)) {\n val.checkVarWithBranch(reg2, false, targBBid);\n } else if (isChecked(r2)) {\n val.checkVarWithBranch(reg1, true, targBBid);\n } else if (isNull(r2)) {\n val.checkVarWithBranch(reg1, false, targBBid);\n }\n } else if (cond == NE) {\n if (isChecked(r1)) {\n val.checkVarWithBranch(reg2, false, targBBid);\n } else if (isNull(r1)) {\n val.checkVarWithBranch(reg2, true, targBBid);\n } else if (isChecked(r2)) {\n val.checkVarWithBranch(reg1, false, targBBid);\n } else if (isNull(r2)) {\n val.checkVarWithBranch(reg1, true, targBBid);\n }\n }\n\n }\n }\n }", "public void printBranches() {\n System.out.println(\"=== Branches ===\");\n List<String> allBranchF = Utils.plainFilenamesIn(Main.ALL_BRANCHES);\n String commitInHead = Utils.readObject(HEADNAME, String.class);\n for (String branch: allBranchF) {\n if (branch.equals(commitInHead)) {\n System.out.println(\"*\" + branch);\n } else {\n System.out.println(branch);\n }\n }\n }", "@Test\n public void testNaya() throws Exception {\n ICFG mCFG = null;\n\n // Why A,W ?\n // A -> start node\n // W -> end node\n ICFGBasicBlockNode A = new CFGBasicBlockNode(\"A\",null);\n ICFGBasicBlockNode W = new CFGBasicBlockNode(\"W\",null);\n // This constructor initializes mCFG with start & end node\n mCFG = new CFG(A, W);\n\n ConcreteConstant CONSTANT_TWO = new ConcreteConstant(2,mCFG);\n ConcreteConstant CONSTANT_FIVE = new ConcreteConstant(5,mCFG);\n ConcreteConstant CONSTANT_TWENTY = new ConcreteConstant(20,mCFG);\n ConcreteConstant CONSTANT_THIRTY = new ConcreteConstant(30,mCFG);\n\n\n // variables x & y\n Variable x = new Variable(\"x\", mCFG);\n Variable y = new Variable(\"y\", mCFG);\n Variable p = new Variable(\"p\", mCFG);\n Variable q = new Variable(\"q\", mCFG);\n\n True trueExpr = new True(mCFG);\n ICFGDecisionNode B = new CFGDecisionNode(mCFG,trueExpr);\n mCFG.addDecisionNode(B);\n\n ICFGBasicBlockNode C = new CFGBasicBlockNode(\"C\", mCFG);\n Input i1 = new Input(mCFG);\n Statement stmt1 = new Statement(mCFG, x, i1);\n C.setStatement(stmt1);\n mCFG.addBasicBlockNode(C);\n\n ICFGBasicBlockNode D = new CFGBasicBlockNode(\"D\", mCFG);\n Input i2 = new Input(mCFG);\n Statement stmt2 = new Statement(mCFG, y, i2);\n D.setStatement(stmt2);\n mCFG.addBasicBlockNode(D);\n\n LesserThanExpression expr3 = new LesserThanExpression(mCFG, x, y);\n ICFGDecisionNode E = new CFGDecisionNode(mCFG,expr3);\n mCFG.addDecisionNode(E);\n\n ICFGBasicBlockNode F = new CFGBasicBlockNode(\"F\", mCFG);\n AddExpression addExpr1 = new AddExpression(mCFG,x,y);\n Statement stmt3 = new Statement(mCFG, p, addExpr1);\n F.setStatement(stmt3);\n mCFG.addBasicBlockNode(F);\n\n ICFGBasicBlockNode G = new CFGBasicBlockNode(\"G\", mCFG);\n SubExpression subExpr1 = new SubExpression(mCFG,x,y);\n Statement stmt4 = new Statement(mCFG, p, subExpr1);\n G.setStatement(stmt4);\n mCFG.addBasicBlockNode(G);\n//\n//\n// //edges\n ICFEdge AB = new CFEdge(\"AB\", mCFG, A, B);\n ICFEdge BC = new CFEdge(\"BC\", mCFG, B, C);\n ICFEdge CD = new CFEdge(\"CD\", mCFG, C, D);\n ICFEdge DE = new CFEdge(\"DE\", mCFG, D, E);\n ICFEdge EF = new CFEdge(\"EF\", mCFG, E, F);\n ICFEdge EG = new CFEdge(\"EG\", mCFG, E, G);\n ICFEdge FB = new CFEdge(\"FB\", mCFG, F, B);\n ICFEdge GB = new CFEdge(\"GB\", mCFG, G, B);\n ICFEdge BW = new CFEdge(\"BW\", mCFG, B, W);\n\n B.setThenEdge(BC);\n B.setElseEdge(BW);\n\n E.setThenEdge(EF);\n E.setElseEdge(EG);\n\n System.out.println(mCFG.getEdgeSet());\n\n// System.out.println(mCFG.getNodeSet());\n// System.out.println(mCFG.getEdgeSet());\n\n SEENew2 seeNew2 = new SEENew2(mCFG);\n\n SETNode setNode6 = seeNew2.allPathSE(mCFG,10);\n//\n// System.out.println(seeNew2.getSET().getStartNode().getIncomingEdge());\n// System.out.println(seeNew2.getSET().getStartNode().getCFGNode());\n//\n// Set<SETEdge> edgeSet = seeNew2.getSET().getEdgeSet();\n// for (SETEdge setEdge:edgeSet){\n// System.out.println(\"Edge:\"+setEdge);\n// System.out.println(\"Head:\"+setEdge.getHead());\n// System.out.println(\"Tail:\"+setEdge.getTail().getIncomingEdge());\n// System.out.println(\"Tail:\"+setEdge.getTail().getCFGNode());\n// }\n\n// Set<SETNode> nodeSet = seeNew2.getSET().getNodeSet();\n// for (SETNode setNode:nodeSet){\n// System.out.println(\"Node:\"+setNode);\n// System.out.println(\"CFGNode:\"+setNode.getCFGNode());\n//// System.out.println(\"Head:\"+setEdge.getHead());\n//// System.out.println(\"Tail:\"+setEdge.getTail());\n// }\n\n// // passing empty environment & startNode\n// SETBasicBlockNode startNode = new SETBasicBlockNode(seeNew2.getSET(),A);\n//\n// SETNode setNode = seeNew2.singleStep(B,startNode);\n// System.out.println(setNode.getLatestValue(x));\n//\n// SETNode setNode2 = seeNew2.singleStep(C,setNode);\n// System.out.println(setNode2.getLatestValue(y));\n//\n// SETNode setNode3 = seeNew2.singleStep(D,setNode2);\n// System.out.println(\"PathPredicate:\"+((SETDecisionNode)setNode3).getCondition());\n//\n// SETNode setNode4 = seeNew2.singleStep(E,setNode3);\n// System.out.println(setNode4.getLatestValue(x));\n//\n// SETNode setNode5 = seeNew2.singleStep(F,setNode4);\n// System.out.println(setNode5.getLatestValue(x));\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6.getSET());\n\n// System.out.println(seeNew2.getSET().getNodeSet());\n\n// System.out.println(seeNew2.getSET().getNumberOfDecisionNodes());\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6);\n\n\n\n\n\n }", "public final AstValidator.split_branch_return split_branch() throws RecognitionException {\n AstValidator.split_branch_return retval = new AstValidator.split_branch_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree SPLIT_BRANCH407=null;\n AstValidator.alias_return alias408 =null;\n\n AstValidator.cond_return cond409 =null;\n\n\n CommonTree SPLIT_BRANCH407_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:628:2: ( ^( SPLIT_BRANCH alias cond ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:628:4: ^( SPLIT_BRANCH alias cond )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n SPLIT_BRANCH407=(CommonTree)match(input,SPLIT_BRANCH,FOLLOW_SPLIT_BRANCH_in_split_branch3344); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n SPLIT_BRANCH407_tree = (CommonTree)adaptor.dupNode(SPLIT_BRANCH407);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(SPLIT_BRANCH407_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_alias_in_split_branch3346);\n alias408=alias();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, alias408.getTree());\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cond_in_split_branch3348);\n cond409=cond();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cond409.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n aliases.add( (alias408!=null?alias408.name:null) );\n }\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint a,b,c,d;\n\t a = 50; b =20; c= 30; d=40;\n\t \n\t if (a>d) //true\n\t\t \n\t {\n\t if (d>b) //true\n\t {\n\t if (a>c) //true\n\t {\n\t\t if (c>b) //true\n\t\t {\n\t\t\t System.out.println(\"nested if condition true\");\n\t {\n\t System.out.println(\"nested if condition false\");\n\t} \n\t\t }\n\t }\n\t }\n }\n\n//eg 2\n\nint nu , nu1, nu2;\nnu = 100; nu1 = 200; nu2=300;\n if (nu<nu1 )\n System.out.println(\"nu is lesser\");\n { \n if(nu2>nu1)\n System.out.println(\"nu2 is grater\");\n {\n if (nu1>nu)\n System.out.println(\"nu1 is grater\");\n {\n System.out.println(\"netsred if got executed\");\t\n }\n }\n }\n {\n \tSystem.out.println(\"netsted if not got executed\");\t\n }\n \n \t}", "public void getBranchCommand() {\n\n }", "protected void evaluateConditions()\n {\n ensureConditionContinuity() ;\n checkComponentList() ;\n\n for ( int liCondCtr = 1 ; liCondCtr <= 5 ; liCondCtr++ )\n {\n checkCondition( liCondCtr ) ;\n } /* end for */\n\n }", "private void level7() {\n }", "private void editPipelineDefAddBranchNode(PipelineDefinition pipelineDef) {\n PipelineDefinitionNode newPipelineNode = new PipelineDefinitionNode(\n expectedModuleDef3.getName());\n pipelineDef.getRootNodes()\n .get(0)\n .getNextNodes()\n .add(newPipelineNode);\n newPipelineNode.setUnitOfWork(new ClassWrapper<UnitOfWorkTaskGenerator>(\n new TestUowTaskGenerator()));\n newPipelineNode.setStartNewUow(false);\n }", "public IfCondition() {\r\n super();\r\n }", "private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }", "public static void main(String[] args) {\n if (1 > 0) {\n System.out.println(\"1 > 0\");\n }\n \n \n if (5 < 4) {\n System.out.println(\"5 < 4\");\n } else {\n System.out.println(\"5 > 4\");\n }\n \n if (1 > 10) {\n System.out.println(\"1 > 10\");\n } else if (5 > 10) {\n System.out.println(\"5 > 10\");\n } else if (9 > 10) {\n System.out.println(\"9 > 10\");\n } else if (11 > 10){\n System.out.println(\"11 > 10\");\n } else {\n System.out.println(\"< 10\");\n }\n \n /*\n * keywordul break - opreste executia in acel bloc\n * in cazul structurii switch: daca gasim un rezultat valid vom opri excecutia\n */\n \n \n //Controlul executiei prin switch\n char rezultat;\n char valoareEvaluata = 'F';\n switch (valoareEvaluata) {\n case 'A':\n rezultat = 'A';\n break;\n case 'B':\n rezultat = 'B';\n break;\n case 'C':\n rezultat = 'C';\n break;\n default:\n rezultat = valoareEvaluata;\n }\n System.out.println(\"Am gasit: \" + rezultat);\n \n }" ]
[ "0.5886774", "0.577891", "0.5654645", "0.55879885", "0.55805457", "0.55621797", "0.5551659", "0.5515364", "0.54971254", "0.546872", "0.5466052", "0.5461452", "0.541747", "0.5411981", "0.539182", "0.53821933", "0.5375134", "0.53394663", "0.5336508", "0.53276974", "0.53198737", "0.5315501", "0.5314646", "0.53106606", "0.5308207", "0.52932805", "0.52774674", "0.52617085", "0.5260589", "0.5255697", "0.5247783", "0.523928", "0.5235448", "0.5229632", "0.52261496", "0.5216137", "0.52148575", "0.521172", "0.52006435", "0.51993304", "0.5198349", "0.51720285", "0.5150685", "0.5143801", "0.51416725", "0.5122788", "0.5091729", "0.50795317", "0.50792354", "0.50766", "0.50757796", "0.50755906", "0.5058447", "0.50563496", "0.5055499", "0.50487095", "0.5041758", "0.5039523", "0.5038713", "0.50343305", "0.5030874", "0.50260687", "0.50184155", "0.5001561", "0.5001145", "0.49931368", "0.4990457", "0.4987917", "0.49838096", "0.4962496", "0.49505547", "0.49448556", "0.4942903", "0.49382317", "0.49344996", "0.492219", "0.49190748", "0.49116766", "0.49104255", "0.49103737", "0.49094617", "0.49037552", "0.4895079", "0.48928759", "0.48892468", "0.48887563", "0.4870841", "0.48687845", "0.48685786", "0.48616526", "0.48543122", "0.4853188", "0.485284", "0.48517758", "0.4849663", "0.48442712", "0.4838527", "0.48362154", "0.48354435", "0.48299772", "0.48284155" ]
0.0
-1
Resultado 1 x 1
@Before public void setUp() throws Exception { partidaEmpate = new Partida(); ResultadoPartida resultadoPartidaEmpate = new ResultadoPartida(); resultadoPartidaEmpate.setGolsHTMandante(0); resultadoPartidaEmpate.setGolsFTMandante(1); resultadoPartidaEmpate.setGolsHTVisitante(0); resultadoPartidaEmpate.setGolsFTVisitante(1); partidaEmpate.setResultado(resultadoPartidaEmpate); //Resultado 3 x 1 partidaMandanteVence = new Partida(); ResultadoPartida resultadoPartidaMandanteVenceu = new ResultadoPartida(); resultadoPartidaMandanteVenceu.setGolsHTMandante(2); resultadoPartidaMandanteVenceu.setGolsFTMandante(1); resultadoPartidaMandanteVenceu.setGolsHTVisitante(0); resultadoPartidaMandanteVenceu.setGolsFTVisitante(1); partidaMandanteVence.setResultado(resultadoPartidaMandanteVenceu); //Resultado 0 x 2 partidaVisitanteVence = new Partida(); ResultadoPartida resultadoPartidaVisitante = new ResultadoPartida(); resultadoPartidaVisitante.setGolsHTMandante(0); resultadoPartidaVisitante.setGolsFTMandante(0); resultadoPartidaVisitante.setGolsHTVisitante(0); resultadoPartidaVisitante.setGolsFTVisitante(2); partidaVisitanteVence.setResultado(resultadoPartidaVisitante); analisaSeCravou.proximaAnalise(analisaSeAcertouGolsDoVencedor); analisaSeAcertouGolsDoVencedor.proximaAnalise(analisaSeAcertouSaldo); analisaSeAcertouSaldo.proximaAnalise(analisaResultadoSimples); analisaResultadoSimples.proximaAnalise(analisaEmpateGarantido); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[] args){\n int r=100;\n int i=2;\n int u=r*i;\n\n System.out.println(\"O resultado é:\"+U+\"V\");\n\n }", "public int singleton() { //returns a single int with both values\r\n return( row*MAXCOLS + col );\r\n }", "protected void generar() {\n generar(1, 1);\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 }", "void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }", "public long result(){\n long result = 0L;\n int one = 1;\n \n result = result(one, one, result);\n \n return result;\n }", "public int[] ejecSimulador(){\n\t\t\n\t\tint ruedas[] = new int[2]; //Izda-Dcha\n\t\t\n\t\t/* Por defecto, giro a la izquierda */\n\t\tswitch(factor){\n\t\tcase 1: //Giro muy debil\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 10;\n\t\t\tbreak;\n\t\tcase 2: //Giro debil\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 20;\n\t\t\tbreak;\n\t\tcase 3: //Giro normal\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 30;\n\t\t\tbreak;\n\t\tcase 4: //Giro fuerte\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 40;\n\t\t\tbreak;\n\t\tcase 5: //Giro muy fuerte\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 50;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 0;\n\t\t}\n\t\t\n\t\tif(!izquierda){ //Si giro a la derecha, cambio de ruedas\n\t\t\tint aux = ruedas[0];\n\t\t\truedas[0] = ruedas[1];\n\t\t\truedas[1] = aux;\n\t\t}\n\t\t\n\t\treturn ruedas;\n\t}", "public int producto(){\r\n return x*y;\r\n }", "static void productoEscalarMatriz() {\r\n\r\n System.out.println(\"PRODUCTO ESCALAR X MATRIZ \\n\");\r\n setup(false);\r\n String valor = inputDialog(\"Inserte un escalar\", \"Escalar\", JOptionPane.INFORMATION_MESSAGE);\r\n int escalar = Integer.parseInt(valor);\r\n matrizA.productoEscalarMatriz(escalar);\r\n messageDialog(\"La matriz resultante al multiplicar por el escalar \" + escalar + \", es: \\n\" + matrizA.datosMatrizNumeros(), \"Producto escalar\", 3);\r\n\r\n }", "public String run_1() {\n BigInteger sumOfSquares = BigInteger.ZERO;\n BigInteger sumSquared = BigInteger.ZERO;\n\n for (int i = 1; i <= 100; i++) {\n BigInteger bigI = BigInteger.valueOf(i);\n sumOfSquares = sumOfSquares.add(bigI.multiply(bigI));\n sumSquared = sumSquared.add(bigI);\n }\n\n sumSquared = sumSquared.multiply(sumSquared);\n\n return sumOfSquares.subtract(sumSquared).abs().toString();\n }", "@Override\n\tpublic int calcolo1(int i, int x) {\n\t\treturn 0;\n\t}", "public Unit<Dimensionless> one() {return one;}", "@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n String tamano = request.getParameter(\"tamano\");\n int tam = Integer.parseInt(tamano);\n int[][] m = new int[tam][tam];\n int a = 0, b = tam - 1, valor = 1;\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>MATRIZ CARACOL</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Conversion de divisas</h1>\");\n out.println(\"<b>MATRIZ CARACOL N= <b>\" + tamano);\n\n for (int j = 0; j < m.length; j++) {\n\n for (int i = a; i <= b; i++) {\n m[a][i] = valor;\n valor = valor + 1;\n }\n for (int i = a + 1; i <= b; i++) {\n m[i][b] = valor;\n valor = valor + 1;\n }\n\n for (int i = b - 1; i >= a; i--) {\n m[b][i] = valor;\n valor = valor + 1;\n }\n\n for (int i = b - 1; i >= a + 1; i--) {\n m[i][a] = valor;\n valor = valor + 1;\n }\n\n a = a + 1;\n b = b - 1;\n }\n\n out.println(\"<table border='2' cellspacing='1'>\");\n for (int i = 0; i <m.length; i++) {\n \n \n out.println(\"<tr>\");\n for (int j = 0; j <m[i].length; j++) {\n out.println(\"<td>\");\n out.println(m[i][j]);\n out.println(\"</td>\");\n }\n\n out.println(\"</tr>\");\n }\n out.println(\"</table>\");\n\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "int getResult();", "@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}", "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 void sumar(){\n recogidaDatos();\n System.out.println(\"El resultado de la suma es: \" + (numerando1 + numerando2));\n System.out.println(\"***********************************\");\n\n }", "@Override\r\n\t\tpublic int cube() {\n\t\t\treturn width*width*width;\r\n\t\t}", "public static int[][] computeTable() {\n\t\tint [][] ret = new int[10][10];\n\t\tfor (int m = 0; m < 10; m++) {\n\t\t\tfor (int n = 0; n < 10; n++) {\n\t\t\t\tret[m][n] = m*n;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public String raiz1 (){\r\n //primero, invocamos el determiante\r\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 1\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r1= (float)(-b+ Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 1: \"+r1; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n //Uno para R1 y otro para R2 \r\n }", "public int getResult(){\r\n\t\t return result;\r\n\t }", "@Override\r\n\tpublic int single() {\n\t\treturn 0;\r\n\t}", "private void mostraResultado() {\n int linha = jTableResultados.getSelectedRow();\n if (linha >= 0) {\n int a = new Integer(\"\" + jTableResultados.getValueAt(linha, 0));\n double c0 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 1));\n double c1 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 2));\n telaSemivariograma.getJTextFieldAlcance().setText(\"\" + a);\n telaSemivariograma.getJTextFieldEfeitoPepita().setText(\"\" + c0);\n telaSemivariograma.getJTextFieldContribuicao().setText(\"\" + c1);\n telaSemivariograma.getJSliderAlcance().setValue(a);\n telaSemivariograma.getJSliderEfeitoPepita().setValue((int) (c0 * 10000));\n telaSemivariograma.getJSliderContribuicao().setValue((int) (c1 * 10000));\n if (telaSemivariograma.isVisible()) {\n telaSemivariograma.setVisible(false);\n }\n telaSemivariograma.setVisible(true);\n }\n }", "public void Mostrar() {\n \n for (int i=0;i<3;i++) {\n System.out.print(\"Torre \"+i+\": \");\n for (Iterator it = columnas[i].iterator(); it.hasNext();) {\n int n = (int) it.next();\n System.out.print(n+\"[\"+\"]\");\n longitud++;\n }\n System.out.println(\"\");\n \n }\n }", "public List<Integer> Result()\n\t{\n\t\treturn result;\n\t}", "private static void jieCheng(int number){\n int result = 1;\n for (int i = 1; i < number; i++) {\n result = result * (i+1);\n }\n System.out.println(result);\n }", "public static void main(String[] args) {\n\t\t final int NUMERO=1;\n\t\t\n\t\tfor(int i=1;i<=10;i++) {\n\t\t\tSystem.out.println(NUMERO+\"x\"+i+\"=\"+NUMERO*i);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "public Matrix getValue();", "@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}", "public double skalowaneX1() {\r\n\t\treturn x * scalingX;\r\n\t}", "public double getResultado() {\n\t\treturn resultado;\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 }", "public int[][] MatrizPesos(){\n return this.mat;\n }", "@Test(timeout = 4000)\n public void test154() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n int int0 = 3;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.setRowNameWidth(3);\n resultMatrixHTML0.setRowNameWidth(0);\n resultMatrixHTML0.setRowNameWidth(0);\n resultMatrixHTML0.getShowAverage();\n resultMatrixPlainText0.isSignificance(0);\n resultMatrixHTML0.getColCount();\n resultMatrixHTML0.getRowOrder();\n resultMatrixHTML0.setMeanPrec((-1));\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n resultMatrixPlainText0.toArray();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(1, 3486);\n }", "public static String getResult() {\n\t\t\n\t\tRandom rand=new Random();\n\t\t do{\n\t\t x=rand.nextInt(35+1-7)+7;\n\t }while(x%7!=0);\n\t\t y=x/7;\n\t\treturn Integer.toString(x+y);\n\t}", "int getResultValue();", "int getResultValue();", "public Ej_varclase1() {\n\t\t//contador++; \n\t\tcontador = contador + 1;\n\t\t\n\t}", "private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }", "public static int potencia(int x, int y){\r\n int potencia = x;\r\n if (y!=0){\r\n for (int i = 1; i<y; i++){\r\n potencia = potencia * x;\r\n }\r\n }else {\r\n potencia = 1;\r\n }\r\n return potencia;\r\n}", "ImagePlus getRGBResultImage(double[] values,int width,int height){\r\n \t\tImagePlus tempImage = new ImagePlus(\"Visual results\");\r\n \t\ttempImage.setProcessor(new FloatProcessor(width,height,values));\r\n \t\tnew ImageConverter(tempImage).convertToRGB();\r\n \t\treturn tempImage;\r\n \t}", "public Matrix calculate();", "int getSuma();", "public ArrayList<Integer> obtenerYi(){\n ArrayList<Integer> res = new ArrayList<Integer>();\n int cont;\n \n for (float p:probabilidades){\n cont=0;\n while (Math.pow(base, cont)<1/p)\n cont++;\n res.add(cont);\n }\n return res;\n }", "private static Suma creaObjetoSuma (){\n Suma suma = new Suma(4,6);\n return suma; \n }", "public double result() {return 0;}", "public String getInlineResult() {\n StringBuilder builder = new StringBuilder();\n for (int c = 0; c < cols; ++c) {\n for (int r = 0; r < rows; ++r) {\n builder.append(puzzleMap.get(orderedKeys[r][c]).getValue());\n }\n }\n return builder.toString().trim();\n }", "private String MiniOneConversion() {\n int reading = ((raw[22] & 0xF0) >> 4) + ((raw[23] & 0x3F) << 4);\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = m1Conv.eval(variables);\n return result.setScale(3, RoundingMode.UP) + \"\";\n }", "public double getX1Imaginary() {\n return this.x1im;\n }", "public int Suma(){\r\n for (int i = 0; i < 9; i++) {\r\n mult = convert()[i] * arregloCo[i];\r\n // Si la suma e mayor o igual a 10 se le resta 9\r\n if (mult >= 10){\r\n mult = mult - 9;\r\n }\r\n suma = suma + mult;\r\n }\r\n return suma;\r\n }", "public static void respuesta() { TODO code application logic here\n\n //\n int nNumeroFilas = 0;\n int nNumeroColumnas = 0;\n int nValorMaximo = 0;\n int nValorMinimo = 0;\n String MensajeError = \"\";\n MensajeError += \"No ha ingresado número\";\n String MensajeError2 = \"\";\n MensajeError2 += \"No puede salir del programa\";\n try {\n nNumeroFilas = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el # de Filas : \"));\n nNumeroColumnas = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el # de Columnas : \"));\n nValorMinimo = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el Valor Minimo : \"));\n nValorMaximo = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el Valor Maximo : \"));\n } catch (NumberFormatException e) {\n\n JOptionPane.showMessageDialog(null, MensajeError);\n } catch (NullPointerException e) {\n\n JOptionPane.showMessageDialog(null, MensajeError2);\n }\n JOptionPane.showMessageDialog(null, ImpresionMatriz(DevuelveMatriz(nNumeroFilas, nNumeroColumnas,\n nValorMaximo, nValorMinimo), nNumeroFilas, nNumeroColumnas));\n\n }", "public int generateRoshambo(){\n ;]\n\n }", "private int xyTo1D(int r, int c) {\n\t\treturn r * N + c;\n\t}", "public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}", "@Override\r\n\tpublic String getResult() {\n\t\tString res;\r\n\t\ttry {\r\n\t\t\tresult = c.calculate(o.getFirst(), o.getSecond(), o.getOperator());\r\n\t\t\t// System.out.println(\"00\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\r\n\t\tres = String.valueOf(result);\r\n\r\n\t\treturn res;\r\n\t}", "public String getPuzzleResult() {\n return getInlineResult() +\n System.lineSeparator() +\n System.lineSeparator() +\n getTabularResult() +\n System.lineSeparator() +\n System.lineSeparator() +\n + getRowNumber() + \" \" +\n getColumnNumber();\n }", "public int result() {\n return 0;\n }", "private double determinanteCuadrada(){\n\t\tdouble deter = 1;\n\t\tdouble [][] matriz = this.clone().getComponentes();\n\t\t\t\t\n\t\tfor(int i=0;i<this.dimensionCol;i++){\n\t\t\tif(matriz[i][i]==0){\n\t\t\t\tif(this.intercambiarConRenglonNoNuloPorDebajo(matriz, i)==true){\n\t\t\t\t\tdeter *= (-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.llevarACeroPosicionesPorDebajo(matriz, i);\n\t\t\tdeter*=matriz[i][i];\n\t\t}\n\t\t\t\t\n\t\treturn deter;\n\t}", "int getSumaAdunata();", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "public static int[][] firstGeneration(){\n int R = 10, C = 10;\n\n // Intiliazing the grid.\n int[][] grid = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },\n { 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 },\n { 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 },\n { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },\n { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },\n { 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 },\n { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 },\n { 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 },\n { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 },\n { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }\n };\n\n // Displaying the grid\n System.out.println(\"Original Generation\");\n for (int i = 0; i < R; i++)\n {\n for (int j = 0; j < C; j++)\n {\n if (grid[i][j] == 0)\n System.out.print(\".\");\n else\n System.out.print(\"*\");\n }\n System.out.println();\n }\n System.out.println();\n return grid;\n }", "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 }", "public void affiche(){\r\n\t\tfor (int i = 0; i < this.grille.length; i++){\r\n\t\t\tfor (int j = 0; j < this.grille.length; j++){\r\n\t\t\t\tSystem.out.print(this.grille[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.print('\\n');\r\n\t\t}\r\n\t}", "O transform(R result);", "private int xyTo1D(int i, int j) {\n int result = j + number * (i - 1) - 1;\n return result;\n }", "public void matrizInversa(){\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n //System.out.println(\"\");getDeter();\n getMatriz()[i][j] = getMatrizAdjunta()[i][j]/getDeter();\n }\n }\n mostrarMatriz(getMatriz(),\"Matriz inversa\");\n }", "private int matrixRowToGridVal(int i) \n {\n return i % gDim + 1;\n }", "private int xyTo1D(int i, int j) {\n return (mGridSize * (i - 1) + j);\n }", "public EstadoSimulacao[][] alvoSimulacao() {\n\n\t\tEstadoSimulacao[][] result = new EstadoSimulacao\n\t\t\t\t[this.quadricula.length][this.quadricula[0].length];\n\t\tfor (int i = 0 ; i < this.quadricula.length ; i++) {\n\t\t\tfor (int j = 0 ; j < this.quadricula[0].length ; j++) {\n\t\t\t\tswitch(this.quadricula[i][j]) {\n\t\t\t\tcase ESTRADA: case AGUA : case ARDIDO : \n\t\t\t\t\tresult[i][j] = EstadoSimulacao.OBSTACULO;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CASA: case TERRENO : \n\t\t\t\t\tresult[i][j] = EstadoSimulacao.LIVRE;\n\t\t\t\t\tbreak;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "public int[] boardConvertto1d() {\n for (int i = 0; i < 9; i++) {\n int row = i / 3;\n int col = i % 3;\n board[i] = board2d[row][col];\n }\n return board;\n }", "public T getResult();", "public double calcularInteresSimple(){\n double interesSimple = capital * interes * tiempo;\n return interesSimple;\n }", "public static void muestra(int[] x) {\n int i;\n System.out.println(\"Numeros en el arreglo\");\n for (i = 0; i < N; i++) {\n System.out.println(\"X[\" + i + \"] = \" + x[i]);\n \n }\n \n }", "public static void main(String[] args) {\n int primeiroNumero = 10; // Armazena o valor 10 para o primeiro número\n int segundoNumero = 2; // Armazena o valor 10 para o segundo número\n int resultado = 0; // Armazena do resultado da operação\n \n // Forma de adição\n resultado = primeiroNumero + segundoNumero;\n \n //Apresenta o resultado da adição\n System.out.printf(\"Resultado da adição = %d\\n\", resultado);\n \n \n // Forma de subtração\n resultado = primeiroNumero - segundoNumero;\n \n //Apresenta o resultado da subtração\n System.out.printf(\"Resultado da subtração = %d\\n\", resultado);\n \n \n // Forma de multiplicação\n resultado = primeiroNumero * segundoNumero;\n \n //Apresenta o resultado da multiplicação\n System.out.printf(\"Resultado da multiplicação = %d\\n\", resultado);\n \n \n // Forma de divisão\n resultado = primeiroNumero / segundoNumero;\n \n //Apresenta o resultado da divisão\n System.out.printf(\"Resultado da divisão = %d\\n\", resultado);\n \n \n // Forma de resto\n resultado = primeiroNumero % segundoNumero;\n \n //Apresenta o resultado do resto da divisão\n System.out.printf(\"Resultado do resto da divisão = %d\\n\", resultado);\n \n }", "public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }", "public int cima(){\n return VectorPila[cima];\n }", "static void mostrarInstrucciones(){\r\n\t\tSystem.out.println(\"Introduzca la base y el exponente para calcular el resultado.\");\r\n\t}", "@Override\n public String toString() {\n StringBuilder matrixValues = new StringBuilder(\"\\nMatrix : \"\n + values.length + \"x\" + values[0].length + \"\\n\");\n for (int[] row : values) {\n for (int value : row) {\n matrixValues.append(value + \" \");\n }\n matrixValues.append(\"\\n\");\n }\n return matrixValues.toString();\n }", "public static void main(String[] args) {\nint a1=0;\r\nint a2=1;\r\nint a3=a1+a2;\r\nfor(int row=1;row<=5;row++)\r\n{\r\n\tfor(int col=1;col<row;col++)\r\n\t{\r\n\t\tSystem.out.print(a3+\" \");\r\n\t\ta3=a1+a2;\t//0+1=1\t\t1+1=2 \r\n\t\ta1=a2;\t\t//0=1 1=1\t2=2\r\n\t\ta2=a3;\t\t//1=1 1=1\t1=1\r\n\t}\r\n\tSystem.out.println();\r\n}\r\n\t\r\n}", "public static void main(String[] args) {\n\n int a = 3, n = 4;\n\n int calculPutere = 1;\n\n for(int i = 0; i < n; i++){\n\n calculPutere *= a;\n }\n\n System.out.println(a+ \" la puterea \" + n + \" = \" + calculPutere);\n\n\n\n }", "public int contenuto(int r, int c) { return contenutoCaselle[r][c]; }", "private int getSumD1(int[][] a) {\n int sum = 0;\n for (int j = 0; j < a.length; j++) {\n sum += a[j][j];\n }\n return sum;\n }", "T getResult();", "T getResult();", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "@Test(timeout = 4000)\n public void test158() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n intArray0[1] = intArray0[0];\n int[] intArray1 = new int[0];\n intArray0[2] = intArray1;\n int[] intArray2 = new int[6];\n intArray2[1] = 0;\n intArray2[2] = 2;\n intArray2[3] = 0;\n intArray2[4] = 2;\n intArray2[5] = 0;\n intArray0[3] = intArray2;\n int[] intArray3 = new int[0];\n intArray0[4] = intArray3;\n int[] intArray4 = new int[3];\n intArray4[1] = 1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(1, 0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixPlainText resultMatrixPlainText1 = new ResultMatrixPlainText();\n resultMatrixPlainText0.setRemoveFilterName(false);\n resultMatrixPlainText0.globalInfo();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot1.getDefaultEnumerateRowNames();\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n \n int int0 = resultMatrixHTML0.getRowCount();\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, int0);\n }", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint[][] numArr = new int[][] {\r\n\t\t\t{1,1,1,1},\r\n\t\t\t{1,1,1,1,1,1,1},\r\n\t\t\t{1,1,1,1,1,1},\r\n\t\t\t{1,1},\r\n\t\t\t{1,1,1,1,1}\r\n\t\t};\r\n\t\t\r\n\t\t//1\r\n\t\tfor (int i = 0; i < numArr.length; i++) {\r\n\t\t\tfor (int j = 0; j < numArr[i].length; j++) {\r\n\t\t\t\tnumArr[i][j] = (int)(Math.random() * 101);\r\n\t\t\t\tSystem.out.println(numArr[i][j]);\r\n\t\t\t}\r\n\t\t} \r\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n\t\t\r\n\t\t// 2\r\n\t\tint sum = 0;\r\n\t\tint count = 0;\r\n\r\n\t\tfor ( int i = 0 ; i <numArr.length; i++){\r\n\t\t\tfor (int j = 0; j < numArr[i].length; j++){\r\n\t\t\t\tsum += numArr[i][j];\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.printf(\"%d, %.2f\\n\", sum, (double)sum / count);\r\n\t\t\r\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n\t\t\r\n\t\t// 3\r\n\t\tfor (int i = 0; i < numArr.length; i++) {\r\n\t\t\tsum = 0;\r\n\t\t\tfor (int j = 0; j < numArr[i].length; j++) {\r\n\t\t\t\tsum += numArr[i][j];\r\n\t\t\t}\r\n\t\t\tSystem.out.printf(\"%d행의 합계: %d\\n\", i, sum);\r\n\t\t}\r\n\t\t\r\n\t\t// 배열 편하게 출력하기\r\n\t\t// System.out.printf(Arrays.toString(numArr));\r\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n\t\t\r\n\t\t// 4\r\n\t\t// 제일 긴 배열 찾기\r\n\t\tint longest = 0;\r\n\t\tfor (int i = 0; i < numArr.length; i++) {\r\n\t\t\tlongest = Math.max(longest, numArr[i].length);\r\n\t\t}\r\n\t\tint[] colsum = new int[longest];\r\n\t\t\r\n\t\tfor (int i = 0; i < numArr.length; i++) {\r\n\t\t\tsum = 0;\r\n\t\t\tfor (int j = 0; j < numArr[i].length; j++) {\t\t\r\n\t\t\t\tcolsum[j] += numArr[i][j];\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"열의 합 : \" + Arrays.toString(colsum));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t/*\tfor (int i = 0; i < colsum.length; i++) {\r\n\t\t\tsum = 0;\r\n\t\t\tfor (int j = 0; j < numArr.length; j++) {\r\n\t\t\t\tif(numArr[j].length > i) {\r\n\t\t\t\t\tcolsum[i] += numArr[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"열의 합 : \" + Arrays.toString(colsum));\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "protected abstract O getResult();", "@Test(timeout = 4000)\n public void test128() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 1025);\n resultMatrixGnuPlot0.colNameWidthTipText();\n int[][] intArray0 = new int[0][0];\n resultMatrixGnuPlot0.setRanking(intArray0);\n resultMatrixGnuPlot0.setRanking(intArray0);\n resultMatrixGnuPlot0.m_MeanWidth = (-770);\n resultMatrixGnuPlot0.setMeanWidth(1025);\n resultMatrixGnuPlot0.getCount(1025);\n resultMatrixGnuPlot0.getSignificance((-1831), (-2654));\n resultMatrixGnuPlot0.setStdDevWidth(0);\n resultMatrixGnuPlot0.toStringSummary();\n assertEquals(1025, resultMatrixGnuPlot0.getMeanWidth());\n }", "public static void laukiHorizontalaIrudikatu(int neurria, char ikurra) {\n int altuera=neurria/2;\n int zabalera=neurria;\n for(int i=1; i<=altuera; i++){//altuera\n System.out.println(\" \");\n \n \n for(int j=1; j<=zabalera; j++){//zabalera\n \n System.out.print(ikurra);\n }\n\n}\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 static void main(String[] args) {\n\t\tint a[][]=new int [5][5];\r\n\t\tfor(int i=0;i<a.length; i++)\r\n\t\t{\r\n\t\t\tfor (int j=0;j<a[i].length;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i==0 ||j==0||i==4||j==4)\r\n\t\t\t\t{\r\n\t\t\t\t\ta[i][j]=1;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public boolean isScalar() {\n return size == 1;\n }", "byte[] getResult();", "public static void main(String[] args) {\n\t\t\r\n\t\tint[] a = {1,2,4,1,2};//4 = 100, 1 = 001{1^0 =1, 0^0=0, 0^1=1, 1^1=0}\r\n\t\tint result = a[0];\r\n\t\tfor(int i =1; i<a.length;i++)\r\n\t\t{\r\n\t\t\tresult=result^a[i];\r\n\t\t}\r\n\t\tSystem.out.println(\"single repeated elements is: \"+result);\r\n\t}", "public static void main(String[] args) {\n\n int resultado = new Aritmetica(4,5).sumar();\n\n System.out.println(\"resultado = \" + resultado);\n\n }", "public double getX1AddImaginary() {\n this.polyAddSolve();\n return this.x1imadd;\n }", "Result getResult();" ]
[ "0.54896176", "0.54106915", "0.5387198", "0.53371143", "0.53281915", "0.5296878", "0.52849174", "0.5267165", "0.52614456", "0.5260893", "0.5257744", "0.5231269", "0.5198455", "0.5186075", "0.5182677", "0.5162747", "0.51533186", "0.5143268", "0.5126577", "0.51184344", "0.5104701", "0.5101519", "0.5091531", "0.5066541", "0.5047294", "0.5023956", "0.501592", "0.50132847", "0.49908525", "0.4983565", "0.4982144", "0.4980945", "0.49604514", "0.4955655", "0.49534422", "0.49524558", "0.4951825", "0.49477986", "0.49477986", "0.4946803", "0.49409568", "0.4940021", "0.49365565", "0.49346173", "0.49228495", "0.49193588", "0.49190328", "0.49143106", "0.4912066", "0.4909517", "0.4900859", "0.48972556", "0.4897045", "0.48878613", "0.48874635", "0.48853418", "0.48814335", "0.48813662", "0.48788774", "0.4877853", "0.48729074", "0.48660162", "0.48557648", "0.48553294", "0.4854198", "0.48502874", "0.48489645", "0.48444003", "0.48422098", "0.48388728", "0.48344523", "0.4832577", "0.48309132", "0.4829659", "0.48283815", "0.482558", "0.48249286", "0.4821983", "0.48204625", "0.48192498", "0.4819082", "0.48166054", "0.48145497", "0.48124886", "0.4807381", "0.4807381", "0.480634", "0.48061684", "0.48047328", "0.48030332", "0.47987688", "0.47962698", "0.4794836", "0.47937793", "0.4788182", "0.47826096", "0.47805274", "0.4780526", "0.47774595", "0.47766966", "0.4769474" ]
0.0
-1
// Getters and Setters ///
public static int GetTotalBlocks() { return totalBlocks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "public void get() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public String get();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public int getAge() {return age;}", "String getName(){return this.name;}", "protected abstract Set method_1559();", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "public void setdat()\n {\n }", "public int\t\tget() { return value; }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "private Get() {}", "private Get() {}", "public String getName () { return this.name; }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "private ReadProperty()\r\n {\r\n\r\n }", "public String getName(){return this.name;}", "@Override\n\tprotected void getExras() {\n\n\t}", "public String getName ()\n {\n return name;\n }", "@Override\npublic void setAttributes() {\n\t\n}", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "@Override\n String get();", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public String getName()\n {\n return name;\n}", "public String get()\n {\n return this.string;\n }", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "public void setAge(int age) { this.age = age; }", "public String getName(){ return name; }", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public String getName(){\n return name;\n}", "public int value() { \n return this.value; \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "String setValue();", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public void setName(String name){this.name=name;}", "public int get () { return rating; }", "public abstract String get();", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "@Override\n public void init() {\n\n }", "public int getNumber(){return number;}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public int getlife(){\r\n return life;\r\n}", "@Override\r\n\tpublic void read() {\n\r\n\t}", "public int getLives(){return lives;}", "public String getName() \n{\n\treturn name;\n}", "public Book getBook() \t\t{ return this.myBook; }", "public T get() {\n return value;\n }", "private stendhal() {\n\t}", "public String getAuthor(){return author;}", "String get();", "String get();", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public String get() {\n return value;\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public String getName() { return _name; }", "private void assignment() {\n\n\t\t\t}", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "@Test\n\tpublic void testSet() {\n\t}", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "public int getSet() {\n return set;\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public String get_name(){\n return _name;\n }", "@Override\n\tprotected void interr() {\n\t}", "public int getAge(){\n return age;\n }", "public byte[] get(){\n return this.value;\n }", "public String getID(){return ID;}", "public int getSpeed(){return this.speed;}", "@Override\n public void perish() {\n \n }", "public double getPrice(){return price;}", "@Override\n protected void getExras() {\n }", "public double getWage(){\r\n return wage; \r\n }", "public void setName(String name){this.name = name;}", "public int getAge()\r\n {\r\n return age;\r\n }", "boolean get();", "public Address getAddress() { return address; }", "@Override\n\tpublic void read() {\n\n\t}", "public String getName(){\n return name;\n }", "public String getName(){\n return name;\n }", "public String getName(){\n return name;\r\n }", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "public String getName(){return this.aName;}", "@Override\n protected void initialize() {\n\n \n }", "int getNumber () { return number; }", "public int characteristics() {\n/* 1680 */ return this.characteristics;\n/* */ }" ]
[ "0.70213485", "0.7009498", "0.68095636", "0.62862664", "0.6234926", "0.6209921", "0.6125672", "0.611812", "0.6105533", "0.61007047", "0.6088066", "0.60873884", "0.60716784", "0.6068233", "0.6068233", "0.6065443", "0.6065144", "0.6064588", "0.6027205", "0.60159314", "0.6009001", "0.60025644", "0.5998484", "0.5995034", "0.59875244", "0.59875244", "0.59875244", "0.59875244", "0.597458", "0.59717363", "0.59702504", "0.5969771", "0.59668237", "0.5958585", "0.59356385", "0.59338796", "0.59317815", "0.59253895", "0.59046036", "0.58954704", "0.5894181", "0.5892894", "0.5892894", "0.58919406", "0.58911973", "0.5889251", "0.5870717", "0.58650964", "0.58625716", "0.58552545", "0.5851685", "0.584902", "0.5843919", "0.58428884", "0.582477", "0.5822242", "0.58202714", "0.5817797", "0.58174247", "0.5815412", "0.5815412", "0.58132005", "0.58101094", "0.58089083", "0.57970095", "0.5796406", "0.57937044", "0.57937044", "0.5791676", "0.578835", "0.5788232", "0.5783512", "0.57827294", "0.5781183", "0.577683", "0.5776487", "0.5775391", "0.5771529", "0.5770155", "0.57606775", "0.575596", "0.57507825", "0.5746386", "0.5742561", "0.57405746", "0.573869", "0.57385916", "0.5735253", "0.5734068", "0.57291734", "0.57258296", "0.57258296", "0.5720631", "0.57177895", "0.57177895", "0.5715521", "0.57140625", "0.57111824", "0.5701071", "0.5699742", "0.5697341" ]
0.0
-1
Populates the screen with the selected students details
public void populateDetails() { txtpn_NameHeading.setText(selStudent.getfName() + " " + selStudent.getlName()); txtpn_RacesComplete.setText(String.valueOf(dataCur.countNumberRaces(selStudent.getId()))); txtpn_DaysAbsent.setText(String.valueOf(selStudent.getAttend())); txtpn_AgeGroup.setText(String.valueOf(selStudent.getAge())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillInCurrentStudentInfo() {\n // Extract info from Student object\n String name = WordUtils.capitalizeFully(mCurrentStudent.getName());\n int sex = mCurrentStudent.getSex();\n mStudentBirthdate = mCurrentStudent.getBirthdate();\n int grade = mCurrentStudent.getGrade();\n mChosenClassesList = (ArrayList<String>) mCurrentStudent.getClasses();\n String classes = TextUtils.join(\", \", mChosenClassesList);\n String photoUrl = mCurrentStudent.getPhotoUrl();\n\n // Populate views with the current student's information\n mStudentNameEditText.setText(name);\n mStudentBirthdateTextView.setText(DateUtils.convertDateLongToString(mStudentBirthdate));\n mStudentGradeEditText.setText(String.valueOf(grade));\n mStudentClassesTextView.setText(classes);\n mStudentClassesTextView.setVisibility(View.VISIBLE);\n\n // Set student photo (if it exists)\n if (!TextUtils.isEmpty(photoUrl)) {\n Glide.with(mAddPhotoView.getContext())\n .load(photoUrl)\n .into(mAddPhotoView);\n studentHasPhoto = true;\n }\n\n // Set student sex spinner\n switch (sex) {\n case SEX_MALE_INT:\n mStudentSexSpinner.setSelection(SEX_MALE_INT);\n break;\n case SEX_FEMALE_INT:\n mStudentSexSpinner.setSelection(SEX_FEMALE_INT);\n break;\n default:\n throw new IllegalArgumentException(\"Invalid sex\");\n }\n }", "private void initJTableSchoolStudents() {\n schoolStudents = new SchoolStudents();\n // Load data from database\n schoolStudents.findAll(entityManager);\n\n // Model for JTable, assigning classgroups content\n schoolStudentsTableModel = new SchoolStudentsTableModel(schoolStudents);\n jTableSchoolStudents.setModel(schoolStudentsTableModel); \n\n // Allow only one row selected\n jTableSchoolStudents.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \n // Listen for student selection in jtable\n jTableSchoolStudents.getSelectionModel().addListSelectionListener(\n new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent event) {\n int indexSelectedRow = jTableSchoolStudents.getSelectedRow();\n if(indexSelectedRow >= 0) {\n schoolStudentSelected = schoolStudents.getSchoolStudentList().get(indexSelectedRow);\n showDetailStudentSelected();\n } else {\n jTextFieldName.setText(\"\");\n jTextFieldSurnames.setText(\"\");\n jTextFieldGrade.setText(\"\");\n }\n }\n }\n );\n \n enableEditingStudentDetail(false);\n }", "public void onItemSelected(String studentSelected);", "public void changeCanvasToDetailedStudentView(ActionEvent event) {\r\n CanvasSwitcher.loadCanvas(CanvasSwitcher.SECRETARY_STUDENTS_PROFILE);\r\n \r\n //access the controller and call a method\r\n SecretaryStudentProfileCntrl controller = \r\n (SecretaryStudentProfileCntrl)CanvasSwitcher.getController();\r\n controller.initData(tableView.getSelectionModel().getSelectedItem());\r\n }", "private void createStudyStudent() {\n\t\t\n\t\t//Initiate Window\n\t\tsAssignStudyWindow = new JFrame(\"Assign Study Material\");\n\t\tsAssignStudyWindow.setSize(assignStudyWidth, assignStudyHeight);\n\t\tsAssignStudyWindow.setLocationRelativeTo(null);\n\t\tsAssignStudyWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tArrayList<Class> sClasses = student.getClasses();\n\t\t\n\t\tsAddStudyModel = new DefaultListModel<>();\n\t JList classList = new JList<>(sAddStudyModel);\n\t classList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t classList.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));\n\t\tclassList.addMouseListener(this);\n\t \n\t\t//Add classes\n\t for (Class c: sClasses) {\n\t \t\tsAddStudyModel.addElement(c.getName());\n\t }\n\t \n\t //Main JPanel\n\t JPanel panel = new JPanel();\n\t panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\n\t \n\t //Left JPanel\n\t JPanel leftPanel = new JPanel();\n\t leftPanel.setLayout(new BorderLayout());\n\t leftPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));\n\t leftPanel.add(new JScrollPane(classList));\n\t \n\t //Right JPanel\n\t JPanel rightPanel = new JPanel();\n\t rightPanel.setLayout(new GridLayout(2,1,1,1));\n\t rightPanel.setBorder(BorderFactory.createEmptyBorder(75, 10, 75, 20));\n\n\t //Student: \"Assign\" JButton\n\t JButton assignB = new JButton(\"Assign\");\n\t assignB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t ListSelectionModel selmodel = classList.getSelectionModel();\n\t int index = selmodel.getMinSelectionIndex();\n\t if (index >= 0) {\n\t \t \tClass selectedClass = sClasses.get(index);\n\t \t \tselectedClass.addFlashCard(newFlashCard);\n\t }\n\t }\n\t });\n\t rightPanel.add(assignB);\n\t\t\n\t //Student: \"Exit\" JButton\n\t JButton exitB = new JButton(\"Exit\");\n\t exitB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t sAssignStudyWindow.dispose();\n\t \tsPortalWindow.dispose();\n\t \tstudentPortalScreen();\n\t }\n\t \t});\n\t rightPanel.add(exitB);\n\n\t panel.add(leftPanel);\n\t panel.add(rightPanel);\n\n\t sAssignStudyWindow.add(panel);\n\t sAssignStudyWindow.setVisible(true);\n\t\t\n\t}", "public static void display_student() {\n\t\t\n\n \n\t\n\ttry {\n\t\t//jdbc code\n\t\tConnection connection=Connection_Provider.creatC();\t\t\n\n\t\tString q=\"select * from students\";\n\t\t// Create Statement\n\t\tStatement stmt=connection.createStatement();\n\t\tResultSet result=stmt.executeQuery(q);\n\t\twhile (result.next()) {\n\t\t\tSystem.out.println(\"Student id \"+result.getInt(1));\n\t\t\tSystem.out.println(\"Student Name \"+result.getString(2));\n\t\t\tSystem.out.println(\"Student Phone No \"+result.getInt(3));\n\t\t\tSystem.out.println(\"Student City \"+result.getString(4));\n\t\t\tSystem.out.println(\"=========================================\");\n\t\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} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\t\t\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n stuNum.setCellValueFactory(new PropertyValueFactory<> (\"stunum\"));\n course.setCellValueFactory(new PropertyValueFactory<> (\"coursename\"));\n classM.setCellValueFactory(new PropertyValueFactory <>(\"classM\"));\n exam.setCellValueFactory(new PropertyValueFactory <>(\"exam\"));\n finalM.setCellValueFactory(new PropertyValueFactory <>(\"finalM\"));\n \n String user = CurrentUser.getUserName();\n String role = CurrentUser.getUserRole();\n \n System.out.println(role);\n \n //only show marks for particular sudent\n if(role.equals(\"S\")){\n \n SN.setText(user);\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n\n try{\n this.getStudent();\n }\n catch (IOException | SQLException e) {\n \n }\n\n }\n //show only for particular course\n //AS\n else if(CourseClicked.getClicked()==true){ //admin clicked on it\n \n CC.setText(CourseClicked.getCourse());\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n \n }\n //CC\n else if (UI.EditCourseController.course !=null){\n \n CC.setText(UI.EditCourseController.course);\n System.out.println(UI.EditCourseController.course);\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n }\n //coming back from detail view\n else if(StudentMarkClick.getBack()){\n //searched for student\n if(StudentMarkClick.getLastclick().equals(\"s\")){\n SN.setText(StudentMarkClick.getStunum());\n try{\n this.getStudent();\n }\n catch (IOException | SQLException e) {\n \n }\n }\n //searched for course\n else{\n CC.setText(StudentMarkClick.getCourse());\n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n \n } \n } \n }\n //CC or AS viewing overview\n else if (UI.EditCourseController.course !=null){\n \n CC.setText(UI.EditCourseController.course);\n System.out.println(UI.EditCourseController.course);\n SN.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n }\n \n }", "public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }", "public void select() {\n db = helper.getReadableDatabase();\n Cursor c = db.query(\"student\", null, null, null, null, null, null);\n\n studentInfo = new String[c.getCount()];\n int count = 0;\n\n while(c.moveToNext()) {\n studentInfo[count] = c.getString(c.getColumnIndex(\"name\"))\n + \" \" + c.getString(c.getColumnIndex(\"number\"));\n count++;\n }\n c.close();\n }", "public void viewStudent(ActionEvent actionEvent) throws IOException {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"StudentCard.fxml\"));\n Parent activitiesView = loader.load();\n Scene activitiesScene = new Scene(activitiesView);\n StudentCardController controller = loader.getController();\n controller.intDatas(newStudent);\n controller.intData(studentList);\n Stage window = (Stage)((Node)actionEvent.getSource()).getScene().getWindow();\n window.setScene(activitiesScene);\n window.setTitle(\"View Student\");\n window.show();\n }", "public static void displayStudentRecords() {\n\t\tSystem.out.println(\"Student records in the database are:\");\n\t\tSelectStudentRecords records = new SelectStudentRecords();\n\t\ttry {\n\t\t\tList<Student> studentList = records.selectStudentRecords();\n\t\t\tstudentList.forEach(System.out::println);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public ShowStudentInfo() throws SQLException {\n initComponents();\n ShowDetails();\n }", "private void showList() {\n select();\n //create adapter\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, studentInfo);\n //show data list\n listView.setAdapter(adapter);\n }", "@FXML\n public void getStudent() throws FileNotFoundException, IOException, SQLException{\n \n lastclicked =\"s\";\n \n String search = SN.getText();\n ArrayList<String> courses = new ArrayList<>();\n \n \n if(!search.equals(\"\")){\n data.clear();\n Connection myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/users\", \"root\", \"simnew96\"); \n Statement myStatement = myConn.createStatement();\n ResultSet rs = myStatement.executeQuery(\"SELECT users.participants.student_id, users.participants.courses FROM users.participants\\n\" +\n \"WHERE users.participants.student_id = '\"+search+\"'\");\n while(rs.next()){\n courses.add(rs.getString(\"courses\"));\n \n }\n System.out.println(courses.toArray().toString());\n \n \n for(int i=0;i<courses.size(); i++){\n \n String table1 = courses.get(i).toLowerCase()+\"_marks\";\n ResultSet rs1 = myStatement.executeQuery(\"SELECT * FROM users.\"+table1+\" WHERE studentname='\"+search.toUpperCase()+\"'\");\n String currentcourse =courses.get(i);\n this.getData_and_Set(rs1, currentcourse);\n \n }\n //TRACING\n //System.out.println(data.get(1));\n \n myConn.close();\n \n }\n SN.clear();\n }", "abstract public void showAllStudents();", "private void loardSid() throws IOException{\n StudentController studentController = new StudentController();\n \n List<StudentDTO>list;\n \n try {\n list = studentController.getAllStudent();\n for (StudentDTO studentDTO : list) {\n cmbStudentID.addItem(studentDTO.getId());\n }\n } catch (Exception ex) {\n Logger.getLogger(Registation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "void viewStudents(Professor professor);", "@Override\r\n\tpublic void showlist() {\n int studentid = 0;\r\n System.out.println(\"请输入学生学号:\");\r\n studentid = input.nextInt();\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.showlist(studentid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n \r\n\t}", "@FXML \n public void handleSelected() throws Exception{\n \n TablePosition pos = (TablePosition) table.getSelectionModel().getSelectedCells().get(0);\n int index = pos.getRow();\n String selected = table.getItems().get(index).toString();\n String sn = selected.substring(0, selected.indexOf(\",\"));\n String cc =selected.substring(selected.indexOf(\",\")+1, selected.length());\n \n StudentMarkClick.Activate(sn, cc, lastclicked);\n //switch to detail view\n content.getChildren().clear();\n content.getChildren().add(FXMLLoader.load(getClass().getResource(\"viewMarks.fxml\")));\n \n //selected = selected.substring(1, selected.indexOf(\",\")); //only get username\n System.out.println(sn+\"|\"+cc); \n \n }", "private void setStudentScroll() {\n\t\t\t\tVector<User> studentList = client.getStudentList();\n\t\t\t\tcourseGUI.getModel().removeAllElements();\n\t\t\t\tif(studentList == null)return;\n\t\t\t\tfor(int i = 0; i < studentList.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tString info = studentList.get(i).getID() + \" \" + studentList.get(i).getFirstName() \n\t\t\t\t\t\t\t+ \" \" + studentList.get(i).getLastName() + \" \";;\n\t\t\t\t\t\t\tif(client.isEnrolled(studentList.get(i), courseGUI.getCourse().getName()))\n\t\t\t\t\t\t\t\tinfo += (\"\t\t(enrolled)\");\n\t\t\t\t\t\t\tcourseGUI.getModel().addElement(info);\n\t\t\t\t}\n\t\t\t\t//courseGUI.list.setModel(courseGUI.model);\n\t\t\t}", "public StudentInfo() {\n initComponents();\n\n loadData();\n loadComboBox();\n }", "private void viewStudent() {\n //Lesen wir die ID\n Scanner sc = new Scanner(System.in);\n System.out.print(\"ID of the student to be viewed: \");\n long ID = sc.nextLong();\n\n Student s = ctrl.getStudent(ID);\n if (s != null)\n System.out.println(s.toString()); //wir zeigen die Student\n else\n System.out.println(\"Student with this ID doesn't exist!\");\n }", "public ViewStudent() {\n initComponents();\n DB_Connection();\n DisplayInitialValues();\n }", "void display()\n\t {\n\t\t System.out.println(\"Student ID: \"+id);\n\t\t System.out.println(\"Student Name: \"+name);\n\t\t System.out.println();\n\t }", "private static void showStudentDB () {\n for (Student s : studentDB) {\n System.out.println(\"ID: \" + s.getID() + \"\\n\" + \"Student: \" + s.getName());\n }\n }", "@Given(\"^I selected a student$\")\r\n\tpublic void SelectAstudent() throws Throwable {\n\t\tdriver.findElement(\r\n\t\t\t\tBy.xpath(\".//*[@id='_ING_WAR_INGportlet_:list:studentlist:0:edit']\"))\r\n\t\t\t\t.click();\r\n\t}", "public void SetStudent(Student inStudent) {\n selStudent = inStudent;\n\n }", "private void PopulateStudentInfo(int Id) {\n Student _student = _myDb.getStudentInfoById(Id);\n\n // ***** Build the fields for the data to update\n EditText _fullName = (EditText) findViewById(R.id.editTextFullName);\n EditText _birthdate = (EditText) findViewById(R.id.dateBirthday);\n EditText _fullStreetAddress = (EditText) findViewById(R.id.editTextFullAddress);\n EditText _contactPhone = (EditText) findViewById(R.id.editTextContactPhone);\n EditText _contactEmail = (EditText) findViewById(R.id.editTextContactEmail);\n EditText _parentNames = (EditText) findViewById(R.id.editTextParentNames);\n EditText _defaultRate = (EditText) findViewById(R.id.numberRate);\n EditText _notes = (EditText) findViewById(R.id.editTextNotes);\n\n // ***** Set the field values\n _fullName.setText(_student.fullName);\n _birthdate.setText(_student.birthDate);\n _fullStreetAddress.setText(_student.fullAddress);\n _contactPhone.setText(_student.contactPhone);\n _contactEmail.setText(_student.contactEmail);\n _parentNames.setText(_student.parentNames);\n\n // ***** Convert to a string from Display\n _defaultRate.setText(String.valueOf(_student.defaultRate));\n _notes.setText(_student.notes);\n\n }", "public void setStudentsBox(List<Student> students) {\n for (Student student : students)\n studentsBox.addItem(student.getName());\n }", "private void setListView() {\n\n ArrayList students = new <String>ArrayList();\n\n SQLiteDatabase database = new DatabaseSQLiteHelper(this).getReadableDatabase();\n\n Cursor cursor = database.rawQuery(\"SELECT * FROM \" + Database.Student.TABLE_NAME,null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n String dp = cursor.getString(cursor.getColumnIndex(Database.Student.COL_DP));\n int id = cursor.getInt(cursor.getColumnIndex(Database.Student._ID));\n String fname = cursor.getString(cursor.getColumnIndex(Database.Student.COL_FIRST_NAME));\n String lname = cursor.getString((cursor.getColumnIndex(Database.Student.COL_LAST_NAME)));\n\n String student = Integer.toString(id) +\" \"+fname+\" \"+lname ;\n\n students.add(student);\n cursor.moveToNext();\n }\n }\n\n studentList = (ListView) findViewById(R.id.studentList);\n adapter = new ArrayAdapter<String>(this, R.layout.activity_student_list_view, R.id.textView, students);\n studentList.setAdapter(adapter);\n\n studentList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n studentList.setVisibility(View.GONE);\n addTable.setVisibility(View.GONE);\n editTable.setVisibility(View.VISIBLE);\n\n\n fillEdit(position);\n }\n });\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String selectStudent = nameArray[position];\n\n //create an Intent and attach the vars\n Intent gotoScreen2 = new Intent(MainActivity.this, second_page.class);\n\n gotoScreen2.putExtra(\"nameKey\", selectStudent);\n gotoScreen2.putExtra(\"indexKey\", position);\n\n startActivity(gotoScreen2);\n\n\n\n }", "public void onClick(View view) {\n String gender = spGender.getSelectedItem().toString();\r\n String ageRange = spAgeRage.getSelectedItem().toString();\r\n String shelterName = etShelterName.getText().toString();\r\n\r\n myAdapter.setmValues(model.searchShelterList(gender, ageRange, shelterName));\r\n myAdapter.notifyDataSetChanged();\r\n }", "private void fillData() {\n\tparname.setText(UpStudentController.getName());\r\n\tparphone.setText(UpStudentController.getPhone());\r\n\tparmail.setText(UpStudentController.getMail());\r\n\taddres.setText(UpStudentController.getAdr());\r\n\tlocation.setText(UpStudentController.getLoc());\r\n\tkazi.setText(UpStudentController.getOc());\r\n\ttaifa.setText(UpStudentController.getNat());\r\n\t}", "@FXML\n private void getStudent() {\n System.out.println(\"Handling student: \"+handledStudent.toString());\n Student toBeEdited = handledStudent;\n System.out.println(\"Student to be edited:\"+toBeEdited.toString());\n txfID.setText(toBeEdited.getStudentID());\n txfFirstName.setText(toBeEdited.getFirstName());\n txfLastName.setText(toBeEdited.getLastName());\n txfAddress.setText(toBeEdited.getAddress());\n txfZIP.setText(toBeEdited.getZIP());\n txfZIPloc.setText(toBeEdited.getZIPloc());\n txfEmail.setText(toBeEdited.getEmail());\n txfPhone.setText(toBeEdited.getPhone());\n }", "public void displayStudentInfo(JTextField studentId, JTextField firstname, JTextField lastName, \n JTextField address, JTextField phoneNum, JTextField email, JTextField birthday){\n \n try {\n Connection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/Student\", \n \"menaagina\", \"Polynomial5%\");\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(\"select * from students where Student_id = \"+id);\n rs.next();\n studentId.setText(rs.getString(1));\n firstname.setText(rs.getString(2));\n lastName.setText(rs.getString(3));\n address.setText(rs.getString(4));\n phoneNum.setText(rs.getString(5));\n email.setText(rs.getString(6));\n birthday.setText(rs.getString(7)); \n } catch (SQLException ex) {\n //an exception will never be thrown\n }\n \n }", "public studentsPanel() {\n initComponents();\n String no = String.valueOf(sNum.studentID);\n String name = String.valueOf(sNum.studentName);\n lblStudentID.setText(name);\n delivery();\n lblTakeBookLimit.setText(new texts().bookLimit() + takeBookLimit + \" )\");\n List();\n }", "public void retrieveData(Info info) {\n for(int i=0 ; i<degree.getAdapter().getCount() ;i++){\n if(Objects.equals(info.getEducation().getDegree(),degree.getAdapter().getItem(i))) {\n degree.setSelection(i);\n }\n }\n\n universityName.setText(info.getEducation().getUniversity());\n specialization.setText(info.getEducation().getSpecialization());\n specializationRate.setText(info.getEducation().getSpecializationRate()+\"\");\n\n jobTitle.setText(info.getWork().getJobTitle());\n jobAddress.setText(info.getWork().getJobAddress());\n companyName.setText(info.getWork().getCompanyName());\n salary.setText(info.getWork().getSalary()+\"\");\n otherJobs.setText(info.getWork().getOtherJobs());\n\n\n }", "public void setStudents() {\n\t}", "public void displayStudentFold(View view){\n\n classList = (ListView) findViewById(R.id.foldList);\n\n // get the student details\n list = new ArrayList<>();\n for (int i = 0; i < studentList.size(); i++) {\n list.add(studentList.get(i).getStudentName());\n }\n\n // sort the student list\n Collections.sort(studentList, new CustomComparator());\n\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, list);\n\n classList.setOnItemClickListener(null); // does not go anywhere when clicked\n // TODO: onClick will take the user to the information about the student's attendance\n\n classList.setAdapter(adapter);\n\n }", "private void showPersonDetails(Shops shops) {\n if (shops != null) {\n // Fill the labels with info from the shops object.\n idLabel.setText(Integer.toString(shops.getId()));\n nameLabel.setText(shops.getName());\n unitLabel.setText(shops.getUnit());\n countLabel.setText(Integer.toString(shops.getCount()));\n priceLabel.setText(Integer.toString(shops.getPrice()));\n dateLabel.setText(DateUtil.format(shops.getDate()));\n descrLabel.setText(shops.getDescriptionInfo());\n } else {\n // Shops is null, remove all the text.\n idLabel.setText(\"\");\n nameLabel.setText(\"\");\n unitLabel.setText(\"\");\n countLabel.setText(\"\");\n priceLabel.setText(\"\");\n dateLabel.setText(\"\");\n descrLabel.setText(\"\");\n }\n }", "@Override\n public void onClick(View v) {\n SplNewList.clear();\n\n splNewListId.clear();\n for (int i = 0; i < specializationSelectedList.size(); i++)\n\n if (specializationSelectedList.get(i).getStatus()) {\n // jobLocation.setText(metrocitySelectedList.toString().replace(\"[\",\"\").replace(\"]\",\"\"));\n SplNewList.add(specializationSelectedList.get(i).getSpecialization_name());\n splNewListId.add(specializationSelectedList.get(i).getSpecialization_id());\n Log.d(\"modelArrayList\", specializationList.get(i).getSpecialization_name() + \"<><<\" + specializationList.get(i).getStatus());\n }\n\n Log.d(\"ISZEOFTITLESELLIS\", SplNewList.size() + \"\");\n medicalSplId = splNewListId.toString().replace(\"[\", \"\").replace(\"]\", \"\");\n\n Log.d(\"MEDICALmedicalSplId\", medicalSplId);\n\n spl_auto.setText(SplNewList.toString().replace(\"[\", \"\").replace(\"]\", \"\"));\n if (SplNewList.size() > 3) {\n Toast toast = Toast.makeText(Sell_Buy_Practice_Activity.this, \"Only 3 Specializations can be selected!\", Toast.LENGTH_LONG);\n\n toast.show();\n dialog.show();\n } else {\n dialog.dismiss();\n }\n\n }", "public static void editStudentInfo(){\n System.out.println(\"Enter the students ID\");\r\n System.out.println(\"=============================\");\r\n Scanner studentNameSearch = new Scanner(System.in);\r\n String idToSearch = studentNameSearch.nextLine();\r\n for (Student searchStudent : studentList){ //basic loop to search through the list of student by the ID\r\n if (searchStudent.getStudentID().equals(idToSearch)){\r\n searchStudent.printStudentInfo();\r\n System.out.println(\"What would you like to do?\");\r\n System.out.println(\"===========================\");\r\n System.out.println(\"1: Change a students name\");\r\n System.out.println(\"2: Add a course\");\r\n System.out.println(\"3: Remove a course\");\r\n System.out.println(\"4: Set course as completed\");\r\n System.out.println(\" \");\r\n Scanner editChoice = new Scanner(System.in);\r\n\r\n switch (editChoice.nextInt()){\r\n case 1 -> {\r\n //Edit first and last name\r\n Scanner newNameInput = new Scanner(System.in);\r\n System.out.println(\"Enter the students Last name\");\r\n String newName = newNameInput.nextLine();\r\n searchStudent.setLastName(newName);\r\n System.out.println(\"Enter the students First name\");\r\n String newName1 = newNameInput.nextLine();\r\n searchStudent.setFirstName(newName1);\r\n searchStudent.getFullName();\r\n mainMenu();\r\n }\r\n case 2 -> {\r\n //search for a course and add a course to the students schedule\r\n System.out.println(\"Enter the course ID\");\r\n Scanner courseToAdd = new Scanner(System.in);\r\n String courseIdToSearch = courseToAdd.nextLine();\r\n for (Course searchCourse : courseList){\r\n if (searchCourse.getCourseID().equals(courseIdToSearch)){\r\n searchStudent.addClasstoSchedule(searchCourse);\r\n }\r\n }\r\n mainMenu();\r\n }\r\n case 3 -> {\r\n //remove a course from the students schedule\r\n System.out.println(\"Enter the course ID\");\r\n Scanner courseToAdd = new Scanner(System.in);\r\n String courseIdToSearch = courseToAdd.nextLine();\r\n for (Course searchCourse : courseList){\r\n if (searchCourse.getCourseID().equals(courseIdToSearch)){\r\n searchStudent.removeClassFromSchedule(searchCourse);\r\n }\r\n }\r\n mainMenu();\r\n }\r\n case 4 ->{\r\n //Set a course as completed\r\n System.out.println(\"Enter the course ID\");\r\n Scanner courseToAdd = new Scanner(System.in);\r\n String courseIdToSearch = courseToAdd.nextLine();\r\n for (Course searchCourse : courseList){\r\n if (searchCourse.getCourseID().equals(courseIdToSearch)){\r\n searchStudent.setCourseComplete(courseIdToSearch);\r\n }\r\n }\r\n mainMenu();\r\n }\r\n default -> {\r\n //does nothing\r\n }\r\n\r\n }\r\n\r\n }\r\n else{\r\n System.err.println(\"Could not find student based on that ID\");\r\n mainMenu();\r\n }\r\n }\r\n }", "public ViewPaymentsEachStudent() {\n initComponents();\n try {\n fillSubjectCombo();\n } catch (SQLException ex) {\n Logger.getLogger(ViewPaymentsEachStudent.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ViewPaymentsEachStudent.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void newStudentButtonPushed() {\r\n String firstName = firstNameTextField.getText();\r\n String lastName = lastNameTextField.getText();\r\n LocalDate birthdayDate = birthdayDatePicker.getValue();\r\n \r\n // Firts Name Validation\r\n if (firstName != null && (firstName.length() < MIN_CHARS)) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"First Name is not correct \"\r\n + \"(empty name or shorter that three characters)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Last Name Validation\r\n if (lastName != null && (lastName.length() < MIN_CHARS)) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"Last Name is not correct \"\r\n + \"(empty name or shorter that three characters)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Date Validation\r\n if (birthdayDate == null || birthdayDate.isAfter(\r\n LocalDate.now().minusYears(MIN_YEARS_OLD))) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"Date is not correct \"\r\n + \"(empty date or student < 17 years old)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Construct new student\r\n Student newStudent = new Student(firstName, lastName, birthdayDate);\r\n \r\n try {\r\n newStudent = covidMngrService.addStudent(newStudent);\r\n \r\n // Get all the items from the table as a list, then add the \r\n // new student to the list\r\n tableView.getItems().add(newStudent);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(StudentMainCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }", "private void displayContactDetails() {\n bindTextViews();\n populateTextViews();\n }", "private void populateListView(View view, ArrayList<Student> students) {\n adapter = new StudentEntryAdapter(getContext(), students);\n\n // Attach the adapter to a ListView\n ListView lvStudentList = view.findViewById(R.id.lvStudentList);\n lvStudentList.setAdapter(adapter);\n }", "private void bindComponentData() {\n prgresbar.setVisibility(View.GONE);\n if (IISERApp.get_session(IISERApp.SESSION_USER_TYPE).equalsIgnoreCase(\"student\")) {\n lnrlayout_roll_no.setVisibility(View.GONE);\n lnrlayout_degree.setVisibility(View.GONE);\n lnrlayout_designation.setVisibility(View.GONE);\n lnrlayout_research.setVisibility(View.GONE);\n student_data = TABLE_USER_PROFILE.get_student_details();\n if (student_data.size() != 0) {\n IISERApp.log(LOG_TAG, \"student_data:\" + student_data);\n txt_batch_selection.setText(\"Batch Selection for Semester \" + student_data.get(0).get(\"semester_name\").toString());\n set_student_data();\n String sem_name = student_data.get(0).get(\"semester_name\").toString();\n }\n /*if (sem_name.equalsIgnoreCase(\"V\") | sem_name.equalsIgnoreCase(\"VI\") | sem_name.equalsIgnoreCase(\"VII\")\n | sem_name.equalsIgnoreCase(\"VIII\") | sem_name.equalsIgnoreCase(\"XI\") | sem_name.equalsIgnoreCase(\"X\")) {\n fab.setVisibility(View.VISIBLE);\n } else {\n fab.setVisibility(View.GONE);\n }*/\n\n } else if (IISERApp.get_session(IISERApp.SESSION_USER_TYPE).equalsIgnoreCase(\"faculty\")) {\n lnrlayout_roll_no.setVisibility(View.GONE);\n lnrlayout_semester_name.setVisibility(View.GONE);\n fab.setVisibility(View.GONE);\n add_courses.setVisibility(View.GONE);\n lnrlayout_batch_selection.setVisibility(View.GONE);\n faculty_data = TABLE_USER_PROFILE.get_faculty_details();\n IISERApp.log(LOG_TAG, \"faculty_data:\" + faculty_data);\n set_faculty_data();\n } else if (IISERApp.get_session(IISERApp.SESSION_USER_TYPE).equalsIgnoreCase(\"supervisor\")) {\n add_courses.setVisibility(View.GONE);\n lnrlayout_roll_no.setVisibility(View.GONE);\n lnrlayout_semester_name.setVisibility(View.GONE);\n fab.setVisibility(View.GONE);\n lnrlayout_batch_selection.setVisibility(View.GONE);\n supervisor_data = TABLE_USER_PROFILE.get_supervisor_details();\n IISERApp.log(LOG_TAG, \"faculty_data:\" + faculty_data);\n set_supervisor_data();\n }\n }", "public void setStuData() {\n\n System.out.print(\"Enter The Name : \"); \t String Entered_Name = Scan.next();\n\n System.out.print(\"Enter User Name : \");\t String Entered_User = Scan.next();\n\n System.out.print(\"Enter Password : \");\t int Entered_Pass = Scan.nextInt();\n\n System.out.print(\"Enter Feild : \");\t\t String Entered_Feild = Scan.next();\n\n Students_list.add(new Student(Entered_User , Entered_Name , Entered_Pass , Entered_Feild));\n\n System.out.print(\"Data Has been Saved!\");\n\n }", "public ManageStudentForm() {\n initComponents();\n \n initTable();\n \n fillTable();\n \n initMajor();\n setLocationRelativeTo(null);\n \n \n }", "private void updateUserDetailsFromView() {\n\t\tcurrentDetails.setFirstName(detailDisplay.getFirstName().getValue());\n\t\tcurrentDetails.setLastName(detailDisplay.getLastName().getValue());\n\t\tcurrentDetails.setMiddleInitial(detailDisplay.getMiddleInitial().getValue());\n\t\tcurrentDetails.setTitle(detailDisplay.getTitle().getValue());\n\t\tcurrentDetails.setEmailAddress(detailDisplay.getEmailAddress().getValue());\n\t\tcurrentDetails.setPhoneNumber(detailDisplay.getPhoneNumber().getValue());\n\t\tcurrentDetails.setActive(detailDisplay.getIsActive().getValue());\n\t\t//currentDetails.setRootOid(detailDisplay.getRootOid().getValue());\n\t\tcurrentDetails.setRole(detailDisplay.getRole().getValue());\n\t\t\n\t\tcurrentDetails.setOid(detailDisplay.getOid().getValue());\n\t\tString orgId = detailDisplay.getOrganizationListBox().getValue();\n\t\tcurrentDetails.setOrganizationId(orgId);\n\t\tResult organization = detailDisplay.getOrganizationsMap().get(orgId);\n\t\tif (organization != null) {\n\t\t\tcurrentDetails.setOrganization(organization.getOrgName());\n\t\t} else {\n\t\t\tcurrentDetails.setOrganization(\"\");\n\t\t}\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n tcID.setCellValueFactory(new PropertyValueFactory(\"id\"));\n tcName.setCellValueFactory(new PropertyValueFactory(\"name\"));\n tcMajor.setCellValueFactory(new PropertyValueFactory(\"major\"));\n tcGrade.setCellValueFactory(new PropertyValueFactory(\"grade\"));\n tableView.getSelectionModel().selectedItemProperty().addListener(\n event-> showSelectedStudent() );\n this.emf = Persistence.createEntityManagerFactory(\"JavaFXApplication17PU\");\n }", "private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}", "public void studentsBtn_onClick(View view){\n Intent examManagingStudentsIntent = new Intent(this, ExamManagingStudentsActivity.class);\n examManagingStudentsIntent.putExtra(\"teacherConfigs\", teacherConfigs.toString());\n /*\n examManagingStudentsIntent.putExtra(\"studentConfigsFileIdArray\", teacherConfigs.getStudentConfigsFileIdArray());\n examManagingStudentsIntent.putExtra(\"teacherAnswerFileId\", teacherConfigs.getCorrectAnswersFileId());\n */\n startActivity(examManagingStudentsIntent);\n }", "public void viewStudents(List<Student> studentList) {\n\t\tfor (Student student : studentList) {\n\t\t\tSystem.out.format(\"%5d | \", student.getId());\n\t\t\tSystem.out.format(\"%20s | \", student.getName());\n\t\t\tSystem.out.format(\"%5d | \", student.getAge());\n\t\t\tSystem.out.format(\"%20s | \", student.getAddress());\n\t\t\tSystem.out.format(\"%10.1f%n\", student.getGpa());\n\t\t}\n\t}", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public static void studentsScreenPrompter(int choice){\n makeSpace();\n switch (choice){\n case 1:\n System.out.println(\"You have chosen to add a student\\n\" +\n \"--------------------------------\");\n StudentImplementations.addStudent();\n break;\n case 2:\n System.out.println(\"You have chosen to get a list of students\\n\" +\n \"-----------------------------------------\");\n StudentImplementations.getListOfStudents();\n break;\n case 3:\n System.out.println(\"You have chosen to get information about a student\\n\" +\n \"--------------------------------------------------\");\n StudentImplementations.getInformationAboutStudent();\n break;\n case 4:\n System.out.println(\"You have chosen to remove a student\\n\" +\n \"---------------------------------\");\n StudentImplementations.removeStudent();\n break;\n case 5:\n System.out.println(\"You have chosen to exit\\n\"+\n \"-----------------------\");\n exitToMainScreen();\n break;\n default:\n System.out.println(\"Incorrect choice\\n\" +\n \"----------------\");\n break;\n }\n pressEnter();\n makeSpace();\n System.out.println(\"------------------------\");\n GuiMessages.printStudentSelectionScreen();\n secondScreenPrompter(4);\n\n }", "@FXML\n public void populateRecords() {\n DBhandler db = new DBhandler();\n\n tbvRecords.getItems().clear();\n tbvRecords.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n DBhandler dbh = new DBhandler();\n System.out.println(\"\\t >> trying to populate course table\");\n\n tbcRecDate.setCellValueFactory(new PropertyValueFactory<>(\"recordDate\"));\n tbcRecID.setCellValueFactory(new PropertyValueFactory<>(\"RecordID\"));\n tbcCourseName.setCellValueFactory(new PropertyValueFactory<>(\"CourseName\"));\n tbcCredits.setCellValueFactory(new PropertyValueFactory<>(\"Credits\"));\n tbcGrade.setCellValueFactory(new PropertyValueFactory<>(\"Grade\"));\n tbcCourseID.setCellValueFactory(new PropertyValueFactory<>(\"CourseID\"));\n\n System.out.println(\"\\t >> table prepped. Getting courses...\");\n\n ObservableList<Record> a = dbh.loadStudentsRecordData(handledStudent.getStudentID());\n System.out.println(\"\\t >> Course retrieval done. Populating course table...\");\n\n tbvRecords.getItems().addAll(a);\n\n System.out.println(\"\\t >> Course table populated.\");\n\n tbvRecords.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if(event.getButton() == MouseButton.PRIMARY && event.getClickCount() == 2 ) {\n callCourseEditPageFromStudentEditPage();\n }\n }\n });\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "void displayData(SchoolDetailResponse schoolDetailResponse);", "public void actionPerformed(ActionEvent e){\n \t\t \tstudentsController.addStudent();\n \t\t }", "private void viewGradeCard(int studentId)\n\t{\n\t\t\n\t\t\n\t\tList<StudentGrade> grade_card=null;\n\t\ttry \n\t\t{\n\t\t\tgrade_card = registrationInterface.viewGradeCard(studentId);\n\t\t} \n\t\tcatch (SQLException e) \n\t\t{\n\n\t\t\tlogger.info(e.getMessage());\n\t\t}\n\t\t\n\t\tlogger.info(String.format(\"%-20s %-20s %-20s\",\"COURSE CODE\", \"COURSE NAME\", \"GRADE\"));\n\t\t\n\t\tif(grade_card.isEmpty())\n\t\t{\n\t\t\tlogger.info(\"You haven't registered for any course\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(StudentGrade obj : grade_card)\n\t\t{\n\t\t\tlogger.info(String.format(\"%-20s %-20s %-20s\",obj.getCourseCode(), obj.getCourseName(),obj.getGrade()));\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n studentPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n IDTextField = new javax.swing.JTextField();\n lastNameTextField = new javax.swing.JTextField();\n firstNameTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n addStudentBtn = new javax.swing.JButton();\n deleteStudentBtn = new javax.swing.JButton();\n updateStudentBtn = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n studentInfoCourseComboBox1 = new javax.swing.JComboBox();\n studentInfoSectionComboBox1 = new javax.swing.JComboBox();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n studentSearchjButton1 = new javax.swing.JButton();\n Back = new javax.swing.JLabel();\n stduentPanel2 = new javax.swing.JPanel();\n Exit = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n stdInfoTable = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n studentPanel1.setBackground(new java.awt.Color(51, 51, 51));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"First Name:\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Last Name:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Section:\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"ID:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Course:\");\n\n IDTextField.setBackground(studentPanel1.getBackground());\n IDTextField.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n IDTextField.setForeground(new java.awt.Color(255, 255, 255));\n IDTextField.setBorder(null);\n IDTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n IDTextFieldActionPerformed(evt);\n }\n });\n\n lastNameTextField.setBackground(studentPanel1.getBackground());\n lastNameTextField.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n lastNameTextField.setForeground(new java.awt.Color(255, 255, 255));\n lastNameTextField.setBorder(null);\n\n firstNameTextField.setBackground(studentPanel1.getBackground());\n firstNameTextField.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n firstNameTextField.setForeground(new java.awt.Color(255, 255, 255));\n firstNameTextField.setBorder(null);\n\n addStudentBtn.setBackground(studentPanel1.getBackground());\n addStudentBtn.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n addStudentBtn.setForeground(new java.awt.Color(255, 255, 255));\n addStudentBtn.setText(\"Add\");\n addStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addStudentBtnActionPerformed(evt);\n }\n });\n\n deleteStudentBtn.setBackground(studentPanel1.getBackground());\n deleteStudentBtn.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n deleteStudentBtn.setForeground(new java.awt.Color(255, 255, 255));\n deleteStudentBtn.setText(\"Delete\");\n deleteStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteStudentBtnActionPerformed(evt);\n }\n });\n\n updateStudentBtn.setBackground(studentPanel1.getBackground());\n updateStudentBtn.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n updateStudentBtn.setForeground(new java.awt.Color(255, 255, 255));\n updateStudentBtn.setText(\"Update\");\n updateStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n updateStudentBtnActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Cambria\", 0, 28)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"Student Infomration\");\n jLabel6.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.black, java.awt.Color.white, null, null));\n\n studentInfoCourseComboBox1.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n studentInfoCourseComboBox1.setBorder(studentInfoSectionComboBox1.getBorder());\n studentInfoCourseComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentInfoCourseComboBox1ActionPerformed(evt);\n }\n });\n\n studentInfoSectionComboBox1.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n\n studentSearchjButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n studentSearchjButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ToggleIcons/Search_25px.png\"))); // NOI18N\n studentSearchjButton1.setText(\"Search\");\n studentSearchjButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentSearchjButton1ActionPerformed(evt);\n }\n });\n\n Back.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ToggleIcons/Go Back_35px.png\"))); // NOI18N\n Back.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BackMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout studentPanel1Layout = new javax.swing.GroupLayout(studentPanel1);\n studentPanel1.setLayout(studentPanel1Layout);\n studentPanel1Layout.setHorizontalGroup(\n studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(147, 147, 147)\n .addComponent(addStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(74, 74, 74)\n .addComponent(updateStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(75, 75, 75)\n .addComponent(deleteStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(198, Short.MAX_VALUE))\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(Back))\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(266, 266, 266)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel3))\n .addGap(33, 33, 33)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(studentInfoSectionComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentInfoCourseComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(51, 51, 51)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, studentPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(IDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE)\n .addComponent(jSeparator2)\n .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lastNameTextField, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(firstNameTextField)\n .addComponent(jSeparator3))\n .addGap(18, 18, 18)\n .addComponent(studentSearchjButton1)\n .addGap(110, 110, 110))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, studentPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(283, 283, 283))\n );\n studentPanel1Layout.setVerticalGroup(\n studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(Back)\n .addGap(36, 36, 36)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(76, 76, 76)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(72, 72, 72)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addComponent(IDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel4)))\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(studentSearchjButton1)))\n .addGap(55, 55, 55)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(firstNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(68, 68, 68)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addComponent(lastNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2))\n .addGap(60, 60, 60)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(studentInfoCourseComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(52, 52, 52)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(studentInfoSectionComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 222, Short.MAX_VALUE)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(updateStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(deleteStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(120, 120, 120))\n );\n\n stduentPanel2.setBackground(new java.awt.Color(51, 51, 51));\n\n Exit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ToggleIcons/Delete_35px.png\"))); // NOI18N\n Exit.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n ExitMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout stduentPanel2Layout = new javax.swing.GroupLayout(stduentPanel2);\n stduentPanel2.setLayout(stduentPanel2Layout);\n stduentPanel2Layout.setHorizontalGroup(\n stduentPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, stduentPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Exit)\n .addContainerGap())\n );\n stduentPanel2Layout.setVerticalGroup(\n stduentPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(stduentPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(Exit)\n .addContainerGap(155, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n stdInfoTable.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n stdInfoTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Last Name\", \"First Name\", \"Course\", \"Section\"\n }\n ));\n stdInfoTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n stdInfoTableMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(stdInfoTable);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1040, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 852, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 20, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(studentPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(stduentPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(stduentPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(studentPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\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, 1913, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1079, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n pack();\n }", "@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }", "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed\r\n //Step1: Get the selected homework from the dropdown jComboBox1\r\n String selectedHW = Homeworks.get(jComboBox1.getSelectedIndex());\r\n \r\n //Step2: Get the corresponding data from database for that homework and populate on UI\r\n try\r\n {\r\n //For max and min score of homework\r\n query = \"select max(atmpt_score) as maximum, min(atmpt_score) as minimum from attempt \"\r\n + \"where assignment_id = '\" + selectedHW + \"'\";\r\n rs = stmt.executeQuery(query);\r\n while (rs.next()) {\r\n jLabel4.setText(rs.getString(\"maximum\"));\r\n jLabel6.setText(rs.getString(\"minimum\"));\r\n }\r\n \r\n //For avg number of attempts for homework\r\n query = \"select avg(temp.number1) as average from (select count(*) as number1 from attempt \"\r\n + \"where assignment_id = '\" + selectedHW + \"' group by student_id) temp \";\r\n rs = stmt.executeQuery(query);\r\n while (rs.next()) {\r\n jLabel8.setText(rs.getString(\"average\"));\r\n }\r\n \r\n //For student name who scored max first for particular homework\r\n query = \"select user_name from dbuser where user_id = \"\r\n + \"(select student_id from (select student_id from attempt where assignment_id = '\"\r\n + selectedHW + \"' order by atmpt_score desc, atmpt_dt asc) where rownum = 1)\";\r\n rs = stmt.executeQuery(query);\r\n while (rs.next()) {\r\n jLabel11.setText(rs.getString(\"user_name\"));\r\n } \r\n \r\n //For finding the list of students who did not attempt particular homework\r\n query = \"select e.student_id, db.user_name from dbuser db, enrollment e \"\r\n + \" where db.user_id = e.student_id and e.course_id = '\" \r\n + courseActionObj.getCourseID() + \"'\"\r\n + \" minus (select distinct at.student_id, db.user_name from attempt at, \"\r\n + \" dbuser db where assignment_id = '\" + selectedHW + \"')\";\r\n \r\n rs = stmt.executeQuery(query);\r\n DefaultListModel studentList = new DefaultListModel();\r\n while (rs.next()) {\r\n studentList.addElement(rs.getString(\"user_name\"));\r\n }\r\n jList1.setModel(studentList); \r\n \r\n } catch (Exception oops) {\r\n System.out.println(\"Prof_Report.java:jButton2ActionPerformed() \" + oops);\r\n }\r\n }", "@Override\n\tpublic List<JSONObject> selectStudents(JSONObject params) {\n\t\treturn this.selectList(\"selectStudents\", params);\n\t}", "private void loadMasterData()\r\n\t{\r\n\t\tlistOfMasterStud.clear();\r\n\t\tString qu = \"SELECT * FROM MASTERSTUDENT\";\r\n\t\tResultSet resultM = databaseHandler.execQuery(qu);\r\n\t\ttry {\r\n\t\t\t// retrieve student information form database\r\n\t\t\twhile(resultM.next())\r\n\t\t\t{\r\n\t\t\t\tString studIDM = resultM.getString(\"studentNoM\");\r\n\t\t\t\tString studNameM = resultM.getString(\"nameM\");\r\n\t\t\t\tString studSurnameM = resultM.getString(\"surnameM\");\r\n\t\t\t\tString studSupervisorM = resultM.getString(\"supervisorM\");\r\n\t\t\t\tString studEmailM = resultM.getString(\"emailM\");\r\n\t\t\t\tString studCellphoneM = resultM.getString(\"cellphoneNoM\");\r\n\t\t\t\tString studStationM = resultM.getString(\"stationM\");\r\n\t\t\t\tString studCourseM = resultM.getString(\"courseM\");\r\n\r\n\t\t\t\tlistOfMasterStud.add(new StudentProperty(studIDM, studNameM, studSurnameM,\r\n\t\t\t\t\t\tstudSupervisorM, studEmailM, studCellphoneM, studStationM, studCourseM));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tmasterStudTable.setItems(listOfMasterStud);\r\n\t}", "public void displayGrade(String name,int year){\n try{\n \n List<List<String>>displayAll = new ArrayList<>();\n List<String> displayRecord = new ArrayList<>();\n \n //Retriving value form 'grade' table\n System.out.println(name);\n String query = \"SELECT * from grade WHERE studentName = '\"+ name +\"' AND stuYear = '\"+year+\"'\";\n rs = st.executeQuery(query);\n \n while (rs.next()){\n String displaySubject = rs.getString(\"subjectName\");\n String displayYear = rs.getString(\"asseName\");\n String displayGrade = rs.getString(\"grade\");\n String displaySkill = rs.getString(\"skill\");\n String displayKnowledge = rs.getString(\"knowledge\");\n \n Assessment newRecord = new Assessment();\n displayRecord = newRecord.displayRecord(displaySubject, displayYear, displayGrade, displaySkill, displayKnowledge);\n \n displayAll.add(displayRecord);\n \n }\n this.displayAll = displayAll;\n \n }catch(Exception ex){\n System.out.println(\"Error in display grade \"+ ex);\n }\n }", "private void tblStudentsMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_tblStudentsMouseClicked\n\t\t// TODO add your handling code here:\n\t\tint i = tblBollard.getSelectedRow();\n\t\tTableModel model = tblBollard.getModel();\n\t\ttxtId.setText(model.getValueAt(i, 0).toString());\n\t\ttxtAlert.setText(model.getValueAt(i, 1).toString());\n\t\ttxtNbMax.setText(model.getValueAt(i, 2).toString());\n\t\ttextnbactuel.setText(model.getValueAt(i, 3).toString());\n\t\t\n\t}", "private void deleteStudentStudy() {\n\t\t\n\t\t//Initiate Window\n\t\tsDeleteStudyWindow = new JFrame(\"Edit Study\");\n\t\tsDeleteStudyWindow.setSize(deleteStudyWidth, deleteStudyHeight);\n\t\tsDeleteStudyWindow.setLocationRelativeTo(null);\n\t\tsDeleteStudyWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tArrayList<Class> sClasses = student.getClasses();\n\t\t\n\t\t//Student: classList JList\n\t\tTitledBorder classListBorder = BorderFactory.createTitledBorder(\"Class List\");\n\t\tsClassModel = new DefaultListModel<>();\n\t\tJList classList = new JList<>(sClassModel);\n\t\tclassList.setBorder(classListBorder);\n\t\tclassList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tclassList.addMouseListener(this);\n\t\t\n\t\t//Student: studyList JList\n\t\tTitledBorder studyListBorder = BorderFactory.createTitledBorder(\"Study List\");\n\t\tsStudyModel = new DefaultListModel<>();\n\t JList studyList = new JList<>(sStudyModel);\n\t studyList.setBorder(studyListBorder);\n\t studyList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tstudyList.addMouseListener(this);\n\t \n\t //Add classes\n\t for (Class c: sClasses) {\n\t \t\tsClassModel.addElement(c.getName());\n\t }\n\t \n\t //Main JPanel\n\t JPanel panel = new JPanel();\n\t panel.setLayout(new GridLayout(1,3,1,1));\n\t panel.setBorder(compound);\n\n\t //Left JPanel\n\t JPanel leftPanel = new JPanel();\n\t leftPanel.setLayout(new BorderLayout());\n\t leftPanel.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\t leftPanel.add(new JScrollPane(classList));\n\t \n\t //Middle JPanel\n\t JPanel middlePanel = new JPanel();\n\t middlePanel.setLayout(new BorderLayout());\n\t middlePanel.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\t middlePanel.add(new JScrollPane(studyList));\n\t \n\t //Right JPanel\n\t JPanel rightPanel = new JPanel();\n\t rightPanel.setLayout(new GridLayout(3,1,1,1));\n\t rightPanel.setBorder(BorderFactory.createEmptyBorder(50, 10, 50, 10));\n\n\t //Student: \"Select\" JButton\n\t JButton selectB = new JButton(\"Select\");\n\t selectB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t ListSelectionModel selmodel = classList.getSelectionModel();\n\t int index = selmodel.getMinSelectionIndex();\n\t sSelectedClass = sClasses.get(index);\n\t if (index >= 0 && isClassSelected == false) {\n\t \t \tsFlashCards = sSelectedClass.getFlashCards();\n\t \t \taddFlashCards(sFlashCards, sStudyModel);\n\t \t \tsDeleteStudyWindow.revalidate();\n\t \t \tisClassSelected = true;\n\t \t \tpreviousClass = sSelectedClass;\n\t }\n\t else if (index >= 0 && isClassSelected == true) {\n\t \t \tif (index >= 0 && previousClass != sSelectedClass) {\n\t \t \t\tsStudyModel.clear();\n\t\t \t \tsFlashCards = sSelectedClass.getFlashCards();\n\t\t \t \taddFlashCards(sFlashCards, sStudyModel);\n\t\t \t \tsDeleteStudyWindow.revalidate();\n\t\t \t \tpreviousClass = sSelectedClass;\n\t \t \t}\n\t }\n\t }\n\t });\n\t rightPanel.add(selectB);\n\t \n\t //Student: \"Delete\" JButton\n\t JButton deleteB = new JButton(\"Delete\");\n\t deleteB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t ListSelectionModel selmodel = studyList.getSelectionModel();\n\t int index = selmodel.getMinSelectionIndex();\n\t if (index >= 0) {\n\t \t \tFlashCard selectedFlashCard = sFlashCards.get(index);\n\t \t \tsSelectedClass.removeFlashCard(selectedFlashCard, index);\n\t \t \tsStudyModel.remove(index);\n\t \t \tsDeleteStudyWindow.revalidate();\n\t }\n\t }\n\t });\n\t rightPanel.add(deleteB);\n\t \n\t //Student: \"Exit\" JButton\n\t JButton exitB = new JButton(\"Exit\");\n\t exitB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \tisClassSelected = false;\n\t \tsDeleteStudyWindow.dispose();\n\t \tsPortalWindow.dispose();\n\t \tstudentPortalScreen();\n\t }\n\t \t});\n\t rightPanel.add(exitB);\n\n\t //Add components to main panel\n\t panel.add(leftPanel);\n\t panel.add(middlePanel);\n\t panel.add(rightPanel);\n\n\t //Display the window\n\t sDeleteStudyWindow.add(panel);\n\t sDeleteStudyWindow.setVisible(true);\n\t}", "private void viewAllStudents() {\n Iterable<Student> students = ctrl.getStudentRepo().findAll();\n students.forEach(System.out::println);\n }", "public static void main(String[] args) {\n Group aco21 = new Group();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n Scanner sc = new Scanner(System.in);\n int choice1 = sc.nextInt();\n if (choice1 == 1)\n {\n\n System.out.print(\"input name, phone and birthyear on different lines \\n\");\n String n = sc.nextLine();\n String p = sc.nextLine();\n int y = sc.nextInt();\n Student k = new Student();\n k.init(n,p, y, aco21.listStud.size()+1);\n aco21.listStud.add(k);\n clearScreen();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n choice1 = sc.nextInt();\n }\n if (choice1 == 2)\n {\n for (int i = 0; i<aco21.listStud.size(); i++)\n {\n String l = String.format(\"Name %s Number %s birthyear %d\", aco21.listStud.get(i).name, aco21.listStud.get(i).phone, aco21.listStud.get(i).birthYear);\n System.out.print(l);\n }\n clearScreen();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n choice1 = sc.nextInt();\n }\n }", "private void onLoadClicked() {\r\n\t\tString allGivenNames = Window.showLoadDialog();\r\n\t\t\r\n\t\tif(allGivenNames != null) {\r\n\t\t\tchart.clearNames();\r\n\t\t\r\n\t\t\tString names[] = allGivenNames.split(\",\");\r\n\t\t\tfor (String name : names) {\r\n\t\t\t\tname = name.trim();\r\n\t\t\t\tchart.addStudentName(name);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tupdate();\r\n\t\t}\r\n\t}", "@Override\n\tpublic Student selectStudent(String matriculation) {\n\t\t// FIX ME\n\t\treturn (Student) users.getStudents().get(matriculation);\n\t}", "private void setup() {\n if (getSupportActionBar() != null) {\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }\n\n subjectId = getIntent().getLongExtra(SUBJECT_EXTRA, 0);\n\n final RecyclerView recyclerView = findViewById(R.id.rv_students);\n students = new ArrayList<>();\n\n adapter = new StudentRecyclerAdapter(students);\n recyclerView.setAdapter(adapter);\n\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(), layoutManager.getOrientation());\n recyclerView.addItemDecoration(dividerItemDecoration);\n\n swipeRefreshStudents = findViewById(R.id.sr_students);\n swipeRefreshStudents.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n // Refresh items\n refreshItems();\n }\n });\n\n swipeRefreshStudents.setRefreshing(true);\n refreshItems();\n }", "@Override\n\tpublic Student selectStudent() {\n\t\treturn null;\n\t}", "private void setUserDetailsToView() {\n\t\tdetailDisplay.getFirstName().setValue(currentDetails.getFirstName());\n\t\tdetailDisplay.getLastName().setValue(currentDetails.getLastName());\n\t\tdetailDisplay.getMiddleInitial().setValue(currentDetails.getMiddleInitial());\n\t\tdetailDisplay.getLoginId().setText(currentDetails.getLoginId());\n\t\tdetailDisplay.getTitle().setValue(currentDetails.getTitle());\n\t\tdetailDisplay.getEmailAddress().setValue(currentDetails.getEmailAddress());\n\t\tdetailDisplay.getPhoneNumber().setValue(currentDetails.getPhoneNumber());\n\t\tdetailDisplay.getOrganizationListBox().setValue(currentDetails.getOrganizationId());\n\t\tdetailDisplay.getIsActive().setValue(currentDetails.isActive());\n\t\tif (!currentDetails.isActive()) {\n\t\t\tdetailDisplay.getIsRevoked().setValue(true);\n\t\t} else { // added else to fix default Revoked radio check in Mozilla (User Story 755)\n\t\t\tdetailDisplay.getIsRevoked().setValue(false);\n\t\t}\n\t\t\n\t\tdetailDisplay.setUserLocked(currentDetails.isLocked());\n\t\tif (currentDetails.isExistingUser()) {\n\t\t\tdetailDisplay.setShowRevokedStatus(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t\t// detailDisplay.setUserIsDeletable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t} else {\n\t\t\tdetailDisplay.setShowRevokedStatus(false);\n\t\t\t//detailDisplay.setUserIsDeletable(false);\n\t\t}\n\t\tdetailDisplay.setUserIsActiveEditable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\tdetailDisplay.setShowUnlockOption(currentDetails.isCurrentUserCanUnlock() && currentDetails.isActive());\n\t\tdetailDisplay.getRole().setValue(currentDetails.getRole());\n\t\tdetailDisplay.getOid().setValue(currentDetails.getOid());\n\t\tdetailDisplay.getOid().setTitle(currentDetails.getOid());\n\t\t//detailDisplay.getRootOid().setValue(currentDetails.getRootOid());\n\t}", "public void setStudent(String students) {\n\t\tthis.students = students;\n\t}", "public void lectureDetails() {\n\n try {\n String sql = \"SELECT eid as 'Employee ID', lectur_name as 'Lecturer Name', faculty as 'Faculty', department as 'Department', center as 'Center', building as 'Building', lec_level as 'Level', lec_rank as 'Rank' FROM lecturer\";\n pst = con.prepareStatement(sql);\n res = pst.executeQuery();\n\n lectDetails.setModel(DbUtils.resultSetToTableModel(res));\n\n } catch (SQLException ex) {\n Logger.getLogger(lecturers_mgmt.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void create_menu(int studentId)\n\t{\n\n\t\tis_registered = getRegistrationStatus(studentId);\n\t\twhile (CRSApplication.loggedin) \n\t\t{\n\t\t\tlogger.info(\"*****************************\");\n\t\t\tlogger.info(\"**********Student Menu*********\");\n\t\t\tlogger.info(\"*****************************\");\n\t\t\tlogger.infon(\"1. Course Registration\");\n\t\t\tlogger.info(\"2. Add Course\");\n\t\t\tlogger.info(\"3. Drop Course\");\n\t\t\tlogger.info(\"4. View Course\");\n\t\t\tlogger.info(\"5. View Registered Courses\");\n\t\t\tlogger.info(\"6. View grade card\");\n\t\t\tlogger.info(\"7. Logout\");\n\t\t\tlogger.info(\"*****************************\");\n\n\t\t\tint choice = sc.nextInt();\n\n\t\t\tswitch (choice) {\n\t\t\t\tcase 1: \n\t\t\t\t\t\tregisterCourses(studentId);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\tcase 2: \n\t\t\t\t\t\taddCourse(studentId);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\tcase 3:\n\t\t\t\t\t\t\n\t\t\t\t\t\tdropCourse(studentId);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\tcase 4:\n\t\t\t\t\t\tviewCourse(studentId);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\tcase 5:\n\t\t\t\t\t\tviewRegisteredCourse(studentId);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\tcase 6:\n\t\t\t\t\t\tviewGradeCard(studentId);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\tcase 7: \n\t\t\t\t\t\tCRSApplication.loggedin = false;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tlogger.warn(\"***** Wrong Choice *****\");\n\t\t\t}\n\t\t}\n\t}", "public void getSceneDetails() {\n Intent sceneIntent = getIntent();\n //TODO: set member strings = intent extras\n storyId = sceneIntent.getStringExtra(\"storyId\");\n chapterId = sceneIntent.getStringExtra(\"chapterId\");\n sceneId = sceneIntent.getStringExtra(\"selectedSceneId\");\n\n getAllFormFields();\n\n setSceneFormFields();\n }", "@Override\n public void onClick(View view) {\n Editable mNameViewText = mNameView.getText();\n Object mGenderViewSelectedItem = mGenderView.getSelectedItem();\n Object mAgeViewSelectedItem = mAgeView.getSelectedItem();\n SearchProvider.search(Shelter.getShelterList(),\n mNameViewText.toString(),\n mGenderViewSelectedItem.toString(),\n mAgeViewSelectedItem.toString());\n startActivity(new Intent(ShelterSearchActivity.this, ShelterResultsActivity.class));\n }", "public student() {\n this.setExtendedState(this.getExtendedState() | this.MAXIMIZED_BOTH);\n initComponents();\n jLabel6.setVisible(false);\n jLabel7.setVisible(false);\n jLabel8.setVisible(false);\n jButton2.setVisible(false);\n jLabel9.setVisible(false);\n \n jComboBox2.removeAllItems();\n jComboBox4.removeAllItems();\n jComboBox1.removeAllItems();\n jComboBox3.removeAllItems();\n \n jComboBox2.addItem(\"Engineering\");\n jComboBox2.setSelectedItem(\"Engineering\");\n jComboBox2.addItem(\"MCA\");\n \n jComboBox1.addItem(\"Mechanical\");\n jComboBox1.setSelectedItem(\"Mechanical\");\n jComboBox1.addItem(\"Computer\");\n //jComboBox1.addItem(\"Computer\");\n\n jComboBox3.addItem(\"FE\");\n jComboBox3.setSelectedItem(\"FE\");\n jComboBox3.addItem(\"SE\");\n jComboBox3.addItem(\"TE\");\n jComboBox3.addItem(\"BE\");\n \n jComboBox4.addItem(\"A\");\n jComboBox4.setSelectedItem(\"A\");\n jComboBox4.addItem(\"B\");\n }", "@Override\n public void onItemClick(View view, int postion) {\n //// TODO: 2017/2/21\n Intent intent = new Intent(this,StudentInfoActivity.class);\n intent.putExtra(\"uid\",\"s\"+students.get(postion).getId());\n startActivity(intent);\n\n }", "private void prepareReviewData(Map<String,Object> students) {\n //iterate through each user\n for (Map.Entry<String, Object> entry : students.entrySet()){\n //Get user map and Uid and typecast it to Student object\n Map joinedStudent = (Map) entry.getValue();\n String uid = entry.getKey();\n // Review is done only for blacklisted students\n if(joinedStudent.get(\"isBlacklisted\").toString().equals(\"Blacklisted\")) {\n Student student = new Student(joinedStudent.get(\"name\").toString(),\n Integer.valueOf(joinedStudent.get(\"state\").toString()),\n joinedStudent.get(\"isBlacklisted\").toString(),\n joinedStudent.get(\"review\").toString(), uid,\n Integer.valueOf(joinedStudent.get(\"blacklistedState\").toString())\n );\n mStudentList.add(student);\n }\n }\n mAdapter.notifyDataSetChanged(); // start loading into layout\n }", "public void printStudentInfo(){\r\n System.out.println(\"Name: \" + getName());\r\n System.out.println(\"Student Id: \" + getId());\r\n printMarks();\r\n System.out.println(\"\\nAverage \" + getAverage() + \"%\");\r\n printNumberOfCoursesInEachLetterGradeCategory();\r\n }", "public static void show(Student[] student){\n for(int i=0;i<student.length;i++){\n System.out.printf(\"First Name: %s Last Name: %s Gender: %s Student ID: %d GPA: %,.2f Department: %s Midterm Grade: %d Final Grade: %d %n\",student[i].getFirstName(),student[i].getLastName(),student[i].getGender(),student[i].getStudentID(),student[i].getGPA(),student[i].getDepartment(),student[i].getExamGrade().getMidtermExamGrade(),student[i].getExamGrade().getFinalExamGrade());\n }\n }", "@FXML\n private void SearchSubjects(ActionEvent event) {\n if(studentID.getText() != null){\n \n colsubject.setCellValueFactory(cellData -> cellData.getValue().getSubjectName());\n colmark.setCellValueFactory(cellData -> cellData.getValue().getSubjectMark().asObject());\n try{\n ObservableList<UGSubjectMarks> subList = UGSubject.getMarks(Integer.parseInt(studentID.getText()), sem);\n populateTable(subList);\n } catch(Exception e){\n System.out.println(\"Somthin \" + e);\n }\n }\n }", "private void selectCourses() {\n\t\tIntent intent = new Intent(this, ActivitySelectCourses.class);\n\t\tstartActivity(intent);\n\t}", "@Override\n public void onClick(View v) {\n Cursor c=myDatabase.queryStudent();\n if (c!=null){\n StringBuilder sb=new StringBuilder();\n //that means there\n while (c.moveToNext()){\n int sno=c.getInt(0);\n String sname=c.getString(1);\n String scourse=c.getString(2);\n sb.append(sno+\":\"+sname+\":\"+scourse+\"\\n\");\n }\n //let us apply on textview\n tv.setText(sb.toString());\n }\n }", "private void showStudentCourses()\r\n {\r\n \tString courseResponse = \"\";\r\n \tfor(Course course : this.getDBManager().getStudentCourses(this.studentId))\r\n \t{\r\n \t\tcourseResponse += \"Course Faculty: \" + course.getCourseName() + \", Course Number: \" + String.valueOf(course.getCourseNum()) + \"\\n\";\r\n \t}\r\n \tthis.getClientOut().printf(\"SUCCESS\\n%s\\n\", courseResponse);\r\n \tthis.getClientOut().flush();\r\n }", "public void display() {\n\tSystem.out.println(\"student id is \"+studentid+\"\\t\"+\"student name is \"+studentName+\"\\t\"+\"marks is \"+marks);\r\n}", "public void printStudentList()\n {\n for(int i = 0; i < students.size(); i++)\n System.out.println( (i + 1) + \". \" + students.get(i).getName());\n }", "private void onAddClicked() {\r\n\t\t\r\n\t\tString givenName = Window.showStudentDialog();\r\n\t\t\r\n\t\tif (givenName != null) {\r\n\t\t\t\r\n\t\t\tif(!chart.addStudentName(givenName)) {\r\n\t\t\t\tWindow.msg(\"There are no seats available.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\t\t\r\n\t}", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}", "public static void studentExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: studentID, studentName, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a studentID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a studentID or studentName to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'ENROLL' followed by a studentID, deptID and course_Number to enroll a student\");\n\t\tSystem.out.println(\"Enter 'WITHDRAW' followed by a studentID, deptID and course_Number to withdraw a student in a course\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a studentID or studentName to list all courses student is enrolled in.\");\n\t}", "private void courseGUIsetup() {\n\t\t\t\tif(list.getSelectedValue()!= null)\n\t\t\t\t{\n\t\t\t\t\tCourse c = (Course)list.getSelectedValue();\n\t\t\t\t\tcourseGUI = new CourseGUI(c);\n\t\t\t\t\tcourseGUI.setListeners(new profCourseListener());\n\n\t\t\t\t\tframeHolder.setVisible(false);\n\t\t\t\t\tframeHolder = courseGUI.returnFrame();\n\t\t\t\t\tframeHolder.setVisible(true);\n\n\t\t\t\t\t//Initializing Scroll List with Students\n\t\t\t\t\tsetStudentScroll();\n\t\t\t\t\t//courseGUI.list.setModel(courseGUI.model);\n\t\t\t\t}\n\t\t\t}", "private void printStudListByCourse() throws Exception {\n String courseID = null;\n ArrayList<Student> studentList = new ArrayList<Student>();\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"\\nPlease enter course ID\");\n courseID = sc.nextLine();\n while(!courseID.matches(\"^[a-zA-Z]{2}[0-9]{4}$\")){\n System.out.println(\"Invalid input! Please enter a valid index number!\");\n courseID = sc.nextLine();\n }\n\n studentList= this.adminManager.getStudentByCourse(courseID);\n if(studentList == null){\n System.out.println(\"\\nThere is no such a course index\\n\\n\");\n System.exit(1);\n }\n if (studentList.isEmpty()){\n System.out.println(\"\\nThere is no student registered for this course ID\\n\\n\");\n return;\n }\n else{\n System.out.println(\"Hang on a moment while we load database.\\n\\n\");\n System.out.println(\"------------------------------------------------------\");\n System.out.println(\" STUDENT NAME GENDER NATIONALITY\");\n System.out.println(\"------------------------------------------------------\");\n //\n for(Student student:studentList){\n System.out.println(String.format(\"%20s %6s %s\",student.getName(),student.getGender(),student.getNationality()));\n }\n\n System.out.println(\"------------------------------------------------------\\n\");\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_show_student);\n setTitle(\"StudentList\");\n\n btnAdd = findViewById(R.id.btnAdd);\n btnAdd.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent it = new Intent(ShowStudent.this,Insert.class);\n startActivity(it);\n }\n });\n\n txtSession = findViewById(R.id.txtSession);\n String studentName = loadPreference();\n txtSession.setText(studentName);\n\n lv = findViewById(R.id.lv);\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n HashMap<String,String> map = arrayList.get(position);\n String studentID = map.get(\"studentID\");\n String studentName = map.get(\"studentName\");\n String gender = map.get(\"gender\");\n String birthDate = map.get(\"birthDate\");\n String phoneNumber = map.get(\"phoneNumber\");\n String cityID = map.get(\"cityID\");\n String cityName = map.get(\"cityName\");\n\n Intent it = new Intent(ShowStudent.this,UpdateDelete.class);\n it.putExtra(\"studentID\",studentID);\n it.putExtra(\"studentName\",studentName);\n it.putExtra(\"gender\",gender);\n it.putExtra(\"birthDate\",birthDate);\n it.putExtra(\"phoneNumber\",phoneNumber);\n it.putExtra(\"cityID\",cityID);\n it.putExtra(\"cityName\",cityName);\n startActivity(it);\n }\n });\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, URIs.URL_SHOW,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n JSONObject jsonObject = new JSONObject(response);\n jsonArray = jsonObject.getJSONArray(\"stud\");\n\n for (int i=0;i<jsonArray.length();i++)\n {\n JSONObject jsonObject1 = jsonArray.getJSONObject(i);\n\n HashMap<String,String> map = new HashMap<String, String>();\n map.put(\"studentID\",jsonObject1.getString(\"studentID\"));\n map.put(\"studentName\",jsonObject1.getString(\"studentName\"));\n map.put(\"gender\",jsonObject1.getString(\"gender\"));\n map.put(\"birthDate\",jsonObject1.getString(\"birthDate\"));\n map.put(\"phoneNumber\",jsonObject1.getString(\"phoneNumber\"));\n map.put(\"cityID\",jsonObject1.getString(\"cityID\"));\n map.put(\"cityName\",jsonObject1.getString(\"cityName\"));\n\n arrayList.add(map);\n }\n SimpleAdapter simpleAdapter = new SimpleAdapter(ShowStudent.this,arrayList,R.layout.displaystudents,\n new String[]{\"studentID\",\"studentName\",\"gender\",\"birthDate\",\"phoneNumber\",\"cityName\"},\n new int[]{R.id.txtStudentID,R.id.txtStudentName,R.id.txtGender,R.id.txtBDt,R.id.txtPNo,R.id.txtCityName});\n\n lv.setAdapter(simpleAdapter);\n } catch (JSONException e) {\n Toast.makeText(ShowStudent.this, e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(ShowStudent.this, error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n HashMap<String,String> params = new HashMap<>();\n return params;\n }\n };\n VolleySingleton.getInstance(getApplicationContext()).addToRequestQueue(stringRequest);\n\n btnLogout = findViewById(R.id.btnLogout);\n btnLogout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(ShowStudent.this);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.commit();\n\n Intent it = new Intent(ShowStudent.this,MainActivity.class);\n startActivity(it);\n }\n });\n }", "private void setupSchoolSpinner(){\n //region Used to set up the school spinner\n\n schools = new ArrayList<>(SchoolManager.getListOfAllSchools());\n\n ArrayAdapter<School> schoolAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, schools);\n schoolAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n schoolSpinner.setAdapter(schoolAdapter);\n schoolSpinner.setOnItemSelectedListener(this);\n\n //endregion End code for school spinner\n }", "public void activities(){\n if (exercise.isSelected()){\n newStudent.addActivity(\"exercise\");\n }\n if (sleeping.isSelected()){\n newStudent.addActivity(\"sleeping\");\n }\n if (sports.isSelected()){\n newStudent.addActivity(\"sports\");\n }\n if (music.isSelected()){\n newStudent.addActivity(\"music\");\n }\n if (fishing.isSelected()){\n newStudent.addActivity(\"fishing\");\n }\n if (familyTime.isSelected()){\n newStudent.addActivity(\"familyTime\");\n }\n if (watchingTV.isSelected()){\n newStudent.addActivity(\"watchingTV\");\n }\n if (reading.isSelected()){\n newStudent.addActivity(\"reading\");\n }\n }" ]
[ "0.7173207", "0.66697055", "0.6500463", "0.6340209", "0.6310906", "0.63108134", "0.62815225", "0.6222816", "0.6222507", "0.622019", "0.6186179", "0.6185192", "0.6176185", "0.6128595", "0.61060655", "0.6077233", "0.60595757", "0.60265845", "0.602485", "0.59694874", "0.59349406", "0.59330845", "0.5920854", "0.5920125", "0.590823", "0.59001774", "0.58778256", "0.5845521", "0.5843046", "0.58207726", "0.5810938", "0.57925487", "0.5767606", "0.5756908", "0.57391256", "0.5735237", "0.5726952", "0.5713859", "0.57131165", "0.5704794", "0.570123", "0.56967074", "0.56889296", "0.56848043", "0.5682967", "0.56783193", "0.565974", "0.5655994", "0.5655513", "0.5623815", "0.5616395", "0.5610351", "0.560901", "0.560068", "0.5599183", "0.55970854", "0.5585355", "0.55758834", "0.5571056", "0.5564487", "0.55534554", "0.5546717", "0.5543967", "0.55438226", "0.5533989", "0.5520493", "0.5519696", "0.5518314", "0.5517483", "0.5503292", "0.55012125", "0.54899144", "0.5480075", "0.5478307", "0.54759973", "0.5463248", "0.54597664", "0.5459475", "0.54593873", "0.54557735", "0.5455189", "0.54536164", "0.54519826", "0.54500383", "0.5445335", "0.5444258", "0.54394627", "0.54090947", "0.5407767", "0.54052866", "0.5403719", "0.5400915", "0.5395241", "0.5376362", "0.5372231", "0.53714", "0.5364845", "0.5363129", "0.53570014", "0.5355385" ]
0.73352
0
Setter method used for setting the student of the screen
public void SetStudent(Student inStudent) { selStudent = inStudent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStudent(Student s) {\r\n student = s;\r\n }", "public void setStudent(Student s) {\n\t\tStudent = s;\n\t\tsetWelcomeText(s.getFirstName() , s.getLastName());//update the \"welcome, name!\" JLabel\n\t}", "public void setStudent(Student student) {\r\n\t\tthis.student = student;\r\n\t}", "public void setStudentName(String studentName);", "public void setStudentName() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// setter method initialized\r\n System.out.println(\"Name Of The Student : \"+studentName);}", "protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }", "public void setStudent(String students) {\n\t\tthis.students = students;\n\t}", "public void setStudents() {\n\t}", "public void setStudentClass() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Class : \" +studentClass); }", "@Override\n\tpublic void setStudentPassword() {\n\t\tnew AbstractStudentPasswordSetDialgoTest().setVisible(true);\n\t\t\n\t}", "public void setStudentID(String studentID){\r\n this.studentID.set(studentID);\r\n }", "public void setTeacher(Student s) {\n // TODO implement here\n \tthis.teacher = s;\n }", "public void setStudentId(int studentId);", "public void setGrade(int grade){ ///update com.company.students grade\n this.grade = grade;\n }", "public void setStudentID(long studentID);", "public String getStudent(){\n\t\t\n\t\treturn this.student;\n\t}", "@Override\npublic void studentName(String name) {\n\tthis.name = name;\n\tSystem.out.println(\"student name is \" +name);\n\t\n}", "public void setRegisteredStudent(int registeredStudent)\r\n\t{\r\n\t\tthis.registeredStudent = registeredStudent;\r\n\t}", "private void setStudentScroll() {\n\t\t\t\tVector<User> studentList = client.getStudentList();\n\t\t\t\tcourseGUI.getModel().removeAllElements();\n\t\t\t\tif(studentList == null)return;\n\t\t\t\tfor(int i = 0; i < studentList.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tString info = studentList.get(i).getID() + \" \" + studentList.get(i).getFirstName() \n\t\t\t\t\t\t\t+ \" \" + studentList.get(i).getLastName() + \" \";;\n\t\t\t\t\t\t\tif(client.isEnrolled(studentList.get(i), courseGUI.getCourse().getName()))\n\t\t\t\t\t\t\t\tinfo += (\"\t\t(enrolled)\");\n\t\t\t\t\t\t\tcourseGUI.getModel().addElement(info);\n\t\t\t\t}\n\t\t\t\t//courseGUI.list.setModel(courseGUI.model);\n\t\t\t}", "private void fillInCurrentStudentInfo() {\n // Extract info from Student object\n String name = WordUtils.capitalizeFully(mCurrentStudent.getName());\n int sex = mCurrentStudent.getSex();\n mStudentBirthdate = mCurrentStudent.getBirthdate();\n int grade = mCurrentStudent.getGrade();\n mChosenClassesList = (ArrayList<String>) mCurrentStudent.getClasses();\n String classes = TextUtils.join(\", \", mChosenClassesList);\n String photoUrl = mCurrentStudent.getPhotoUrl();\n\n // Populate views with the current student's information\n mStudentNameEditText.setText(name);\n mStudentBirthdateTextView.setText(DateUtils.convertDateLongToString(mStudentBirthdate));\n mStudentGradeEditText.setText(String.valueOf(grade));\n mStudentClassesTextView.setText(classes);\n mStudentClassesTextView.setVisibility(View.VISIBLE);\n\n // Set student photo (if it exists)\n if (!TextUtils.isEmpty(photoUrl)) {\n Glide.with(mAddPhotoView.getContext())\n .load(photoUrl)\n .into(mAddPhotoView);\n studentHasPhoto = true;\n }\n\n // Set student sex spinner\n switch (sex) {\n case SEX_MALE_INT:\n mStudentSexSpinner.setSelection(SEX_MALE_INT);\n break;\n case SEX_FEMALE_INT:\n mStudentSexSpinner.setSelection(SEX_FEMALE_INT);\n break;\n default:\n throw new IllegalArgumentException(\"Invalid sex\");\n }\n }", "private void setStudentID() {\n\t\tid++;\n\t\tthis.studentId = gradeYear + \"\" + id;\n\t\tSystem.out.println(this.studentId);\n\t}", "public void setStudentID(int studentName) {\r\n switch (studentName) {\r\n case 1:\r\n studentID = \"Ada\";\r\n break;\r\n case 2:\r\n studentID = \"Bobby\";\r\n break;\r\n case 3:\r\n studentID = \"Cathy\";\r\n break;\r\n case 4:\r\n studentID = \"Daniel\";\r\n break;\r\n case 5:\r\n studentID = \"Emily\";\r\n break;\r\n case 6:\r\n studentID = \"Frank\";\r\n break;\r\n case 7:\r\n studentID = \"Gilbert\";\r\n break;\r\n case 8:\r\n studentID = \"Hailey\";\r\n break;\r\n case 9:\r\n studentID = \"Josh\";\r\n break;\r\n default:\r\n studentID = \"Chelsea\";\r\n }\r\n }", "@Override\r\n\tpublic void setStudent(Student student, int index) {\n\t\tthis.students[index] = student;\r\n\t}", "@Override\npublic void studentId(int id) {\n\tthis.myId=id;\n\tSystem.out.println(\"student Id is \" +name);\n}", "private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}", "public Student getStudent() {\r\n\t\treturn student;\r\n\t}", "public static void setGrade(Student std) {\n std = new Student(std.getName(), std.getGrade() * 2 );\n std.setGrade( std.getGrade() * 2 );\n }", "public void setStudentID(String studentID) {\r\n\t\tthis.studentID = studentID;\r\n\t}", "public void changeCanvasToDetailedStudentView(ActionEvent event) {\r\n CanvasSwitcher.loadCanvas(CanvasSwitcher.SECRETARY_STUDENTS_PROFILE);\r\n \r\n //access the controller and call a method\r\n SecretaryStudentProfileCntrl controller = \r\n (SecretaryStudentProfileCntrl)CanvasSwitcher.getController();\r\n controller.initData(tableView.getSelectionModel().getSelectedItem());\r\n }", "public Student(String userName) {\n loggedUser = userName;\n initComponents();\n Toolkit toolKit = getToolkit();\n Dimension size = toolKit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2, size.height/2 - getHeight()/2);\n }", "public void setField(StudentThrift studentThrift){\n id = studentThrift.getId();\n setTextID(FIRST_NAME, studentThrift.getFirstName());\n setTextID(LAST_NAME, studentThrift.getLastName());\n if (studentThrift.getMiddleName() != null){\n setTextID(MIDDLE_NAME, studentThrift.getMiddleName());\n }\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date birthDate = null;\n try {\n birthDate = format.parse(studentThrift.getDateOfBirth());\n } catch (ParseException e) {\n MainWindow.logger.error(\"Not valid date\");\n MainWindow.logger.trace(e);\n }\n jDateChooser.setDate(birthDate);\n setTextID(ADDRESS, studentThrift.getHomeAddress());\n group.setSelectedIndex\n (Arrays.asList(studentGroupArray).indexOf(studentThrift.getStudentGroup().getName()));\n }", "@FXML\n private void getStudent() {\n System.out.println(\"Handling student: \"+handledStudent.toString());\n Student toBeEdited = handledStudent;\n System.out.println(\"Student to be edited:\"+toBeEdited.toString());\n txfID.setText(toBeEdited.getStudentID());\n txfFirstName.setText(toBeEdited.getFirstName());\n txfLastName.setText(toBeEdited.getLastName());\n txfAddress.setText(toBeEdited.getAddress());\n txfZIP.setText(toBeEdited.getZIP());\n txfZIPloc.setText(toBeEdited.getZIPloc());\n txfEmail.setText(toBeEdited.getEmail());\n txfPhone.setText(toBeEdited.getPhone());\n }", "public void setStudentId(int studentId) {\n\t\tStudentId = studentId;\n\t}", "public Student getStudent() {\n\t\treturn student;\n\t}", "protected void setScreenName(String screenName) {\n\tthis.screenName = screenName;\n }", "public void setStudents(StudentDataBase students) {\n this.students = students;\n }", "private void setStudentId() {\n\t id++;\n\t this.studentId=gradeYear+\"\"+id;\n }", "public void setStudentFirstName(String studentFirstName){\r\n this.studentFirstName.set(studentFirstName);\r\n }", "@Override\r\n\tpublic void setStudents(Student[] students) {\n\t\tthis.students = students;\r\n\t}", "public void setStudentId(String studentId) {\r\n this.studentId = studentId;\r\n }", "public void setScreen(final Rect screen)\n {\n this.screen = screen;\n }", "public void setScreen(GameScreen screen);", "public void setStudentList (Students studentList)\n\n {\n\n // studentList is set equal to studentList.\n this.studentList.add (studentList);\n\n }", "@Test\r\n public void testSetStudentID() {\r\n System.out.println(\"setStudentID\");\r\n String studentID = \"\";\r\n Student instance = new Student();\r\n instance.setStudentID(studentID);\r\n \r\n }", "public void setStudent(Student[] studentWaitList) {\n\t\tthis.student = studentWaitList;\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n stuNum.setCellValueFactory(new PropertyValueFactory<> (\"stunum\"));\n course.setCellValueFactory(new PropertyValueFactory<> (\"coursename\"));\n classM.setCellValueFactory(new PropertyValueFactory <>(\"classM\"));\n exam.setCellValueFactory(new PropertyValueFactory <>(\"exam\"));\n finalM.setCellValueFactory(new PropertyValueFactory <>(\"finalM\"));\n \n String user = CurrentUser.getUserName();\n String role = CurrentUser.getUserRole();\n \n System.out.println(role);\n \n //only show marks for particular sudent\n if(role.equals(\"S\")){\n \n SN.setText(user);\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n\n try{\n this.getStudent();\n }\n catch (IOException | SQLException e) {\n \n }\n\n }\n //show only for particular course\n //AS\n else if(CourseClicked.getClicked()==true){ //admin clicked on it\n \n CC.setText(CourseClicked.getCourse());\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n \n }\n //CC\n else if (UI.EditCourseController.course !=null){\n \n CC.setText(UI.EditCourseController.course);\n System.out.println(UI.EditCourseController.course);\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n }\n //coming back from detail view\n else if(StudentMarkClick.getBack()){\n //searched for student\n if(StudentMarkClick.getLastclick().equals(\"s\")){\n SN.setText(StudentMarkClick.getStunum());\n try{\n this.getStudent();\n }\n catch (IOException | SQLException e) {\n \n }\n }\n //searched for course\n else{\n CC.setText(StudentMarkClick.getCourse());\n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n \n } \n } \n }\n //CC or AS viewing overview\n else if (UI.EditCourseController.course !=null){\n \n CC.setText(UI.EditCourseController.course);\n System.out.println(UI.EditCourseController.course);\n SN.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n }\n \n }", "public String getStudentID() {\r\n\t\treturn studentID;\r\n\t}", "public void modifyStudent(Student student) {\n\t\t\r\n\t}", "public void setStudentId(Integer studentId) {\n this.studentId = studentId;\n }", "public void setStudentId(Integer studentId) {\n this.studentId = studentId;\n }", "public void setInstructor(String instructorName) {\n professor = instructorName;\n }", "public int getStudentNum(){//return student Number\r\n \treturn studentNum;\r\n }", "@Override\n\tpublic void updateStudent(StudentForm student) {\n\t\t\n\t}", "public void setName(String studentName) \r\n {\r\n if (isEmpty(studentName)) \r\n {\r\n throw new IllegalArgumentException(\"Student name cannot be blank.\");\r\n } \r\n else \r\n {\r\n this.studentName = studentName;\r\n }\r\n\r\n }", "public String getStudentId() {\n\treturn this.studentId;\n }", "public void setScreen(AbstractStrictScreen scr) {\n this.scr = scr;\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void setId(int studentId) \r\n {\r\n String strId = String.valueOf(studentId);\r\n if (studentId < 0 ) \r\n {\r\n throw new IllegalArgumentException(\"Student ID cannot be less than zero.\");\r\n } \r\n else if(strId == null || strId.trim().isBlank())\r\n {\r\n throw new IllegalArgumentException(\"Student id cannot be blank.\");\r\n }\r\n else \r\n {\r\n this.studentId = studentId;\r\n }\r\n\r\n }", "public void setExamGrade()\n {\n examGrade = gradeCalculator();\n }", "public int getStudentId() {\n\t\treturn StudentId;\n\t}", "public String getStudentName() {\r\n\t\treturn studentName;\r\n\t}", "public int getStudentID() {\r\n\t\t\treturn studentID;\r\n\t\t}", "public void edit(Student student){\n Intent intento = new Intent( context, StudentActivity.class);\n intento.putExtra(\"student\", student);\n context.startActivity(intento);\n }", "public void setStudentLastName(String studentLastName){\r\n this.studentLastName.set(studentLastName);\r\n }", "public int getStudentNum() {\n\t\treturn studentNum;\n\t}", "@Override\n\tpublic Student selectStudent(String matriculation) {\n\t\t// FIX ME\n\t\treturn (Student) users.getStudents().get(matriculation);\n\t}", "public int getStudentId() {\n\t\treturn studentId;\n\t}", "public String getStudentId() {\r\n return studentId;\r\n }", "public void setStudentName(String studentName) {\n\t\tthis.studentName = studentName;\n\t}", "@Override\n public boolean isStudent() {\n return false;\n }", "public void setStartingStudent(int playerIndex) {\n startingPlayer = playerIndex;\n }", "public String getStudentName() {\n\t\treturn studentName;\n\t}", "public Student getStudent() {\n return student;\n }", "Student(String name){\n this.name = name;\n }", "public String getStudentid() {\n return studentid;\n }", "@Override\n\tpublic void setStudentId(long studentId) {\n\t\tmodel.setStudentId(studentId);\n\t}", "public String getStudentName() {\n return studentName;\n }", "public String getStudentName() {\n return studentName;\n }", "public static void updateStudent(String UID){\n if (UID == \"\"){}\n else {\n //Update Student here\n uid_placeholder = UID;\n uid_placeholder = InterfaceCmds.getCurrentUID(UID);\n String y = InterfaceCmds.getCurrentSwipe(UID);\n StudentCall.setText(y);\n // System.out.println(uid_placeholder+ \" \" +y + \" InterfaceCmds.getCurrentSwipe() reached\");\n //System.out.println(\"MAAN LOOK AT ME I'M THE UID WOO! \" + UID);\n }\n }", "public void setStudents(Set<Student> students) {\n this.students = students;\n }", "@Test\r\n public void testSetlName() {\r\n System.out.println(\"setlName\");\r\n String lName = \"\";\r\n Student instance = new Student();\r\n instance.setlName(lName);\r\n \r\n }", "@Override\r\n public Studente getStudente() {\r\n return this.studente;\r\n }", "public void setStuData() {\n\n System.out.print(\"Enter The Name : \"); \t String Entered_Name = Scan.next();\n\n System.out.print(\"Enter User Name : \");\t String Entered_User = Scan.next();\n\n System.out.print(\"Enter Password : \");\t int Entered_Pass = Scan.nextInt();\n\n System.out.print(\"Enter Feild : \");\t\t String Entered_Feild = Scan.next();\n\n Students_list.add(new Student(Entered_User , Entered_Name , Entered_Pass , Entered_Feild));\n\n System.out.print(\"Data Has been Saved!\");\n\n }", "public StudentGUI(Student s) {\n\t\tstudent=s;\n\t\tsetTitle(\"B&B Learning\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcards = new JPanel(new CardLayout());\n\n\t\tstudentHomePagePanel = new StudentHomepage(); \n\t\tstudentHomePagePanel.setStudent(student);\n\t\tcards.add(studentHomePagePanel, \"STUDHOMEPAGE\"); //the cardName of the homePagePanel is STUDHOMEPAGE\n\n\t\tstudentCoursePagePanel = new StudentCoursePage();// TODO set the CoursePage's course every time you go to it \n\t\tcards.add(studentCoursePagePanel, \"STUDCOURSEPAGE\"); //the cardName of the homePagePanel is STUDCOURSEPAGE\n\n\t\tstudentAssignmentPanel = new StudentAssignmentPage();// TODO set the assignment page's file every time you go to it \n\t\tcards.add(studentAssignmentPanel, \"STUDASSIGNMENTPAGE\"); //the cardName is STUDASSIGNMENTPAGE\n\n\t\temailPage = new EmailPage();\n\t\tcards.add(emailPage, \"EMAILPAGE\"); //the cardName is EMAILPAGE\n\t\t\n\t\tgradePage = new GradePage();\n\t\tcards.add(gradePage, \"GRADEPAGE\"); //the cardName is GRADEPAGE\n\t\t\n\t\t\n\t\tadd(cards);\n\t\tpack();\n\t\tsetResizable(false);\n\t\tsetLocationRelativeTo(null); // center the JFram\n\t\tsetVisible(true);\n\t}", "@Test\r\n public void testSetCourse() {\r\n System.out.println(\"setCourse\");\r\n String course = \"\";\r\n Student instance = new Student();\r\n instance.setCourse(course);\r\n \r\n }", "Student() {\n // Set all to \"undefined\"/0, but assign unique student ID\n this.firstName = \"Undefined\";\n this.lastName = \"Undefined\";\n this.grade = 0;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "public Student getStudent() {\n return student; //XXX-CHANGE-XXX\n }", "public Builder setStudent(int index, com.demo.springprotobuff.Demoproto.Student value) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\t\t\t\t\tensureStudentIsMutable();\n\t\t\t\t\tstudent_.set(index, value);\n\t\t\t\t\tonChanged();\n\t\t\t\t} else {\n\t\t\t\t\tstudentBuilder_.setMessage(index, value);\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}", "private void setStudentImage() {\n ImagePicker.create(this)\n .single()\n .origin(images)\n .imageTitle(\"Tap to select student profile\") // image selection title\n .start(REQUEST_CODE_PICKER); // start image picker activity with request code\n }", "public void setMajor(String studentMajor) \r\n {\r\n if (studentMajor.length() != 3) \r\n {\r\n throw new IllegalArgumentException(\"Student Major cannot be longer or shorter than 3 characters.\");\r\n } \r\n else \r\n {\r\n this.studentMajor = studentMajor.toUpperCase();\r\n }\r\n\r\n }", "@Override\n\tpublic Student selectStudent() {\n\t\treturn null;\n\t}", "public boolean isStudent(){\n return student;\n }", "public boolean isStudent(){\n return student;\n }", "public void setStudentId(Long studentId) {\n this.studentId = studentId;\n }", "public Student getStudent() { return student; }", "@Override\n\t\t\tpublic void init(Student student) {\n\t\t\t\tSystem.out.println(\"Called\");\n\t\t\t}", "public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}", "public void setStudent(Student student, ObservableList<Date> dates, Thread thread) {\n\n activeStudent = student;\n this.dates = dates;\n this.updateThread = thread;\n }", "public void setStudentList(ArrayList<Student> studentList) {\r\n this.studentList = studentList;\r\n }", "public void setColl(){\n System.out.println(\"Enter the student's college: \");\n this.college = input.nextLine();\n }" ]
[ "0.7672869", "0.7632776", "0.7530103", "0.7140084", "0.70913446", "0.68630713", "0.68540335", "0.68527794", "0.68295586", "0.67784435", "0.67644864", "0.6713419", "0.6688104", "0.65932614", "0.6585404", "0.64796996", "0.64586335", "0.64437", "0.64289486", "0.6350781", "0.63051355", "0.6284509", "0.62650263", "0.62633795", "0.62514424", "0.62170345", "0.620648", "0.61874944", "0.61864346", "0.6177211", "0.6153697", "0.61534417", "0.6136137", "0.61307824", "0.61236554", "0.61203474", "0.6117007", "0.60955596", "0.60889184", "0.60845184", "0.60315794", "0.6028882", "0.6017509", "0.600973", "0.6007914", "0.60018563", "0.59989166", "0.5996166", "0.5995862", "0.5995862", "0.5992027", "0.5984255", "0.5968726", "0.59681755", "0.59589684", "0.59209627", "0.59141517", "0.5913068", "0.59057474", "0.5905447", "0.5900644", "0.58925587", "0.58922195", "0.5892141", "0.58845156", "0.58837897", "0.5883526", "0.58807296", "0.5872604", "0.5869558", "0.5869112", "0.58479786", "0.5846152", "0.58377975", "0.5837351", "0.58372074", "0.58311945", "0.58311945", "0.5829267", "0.5828612", "0.5822476", "0.5821774", "0.5817572", "0.5806974", "0.58038664", "0.58032143", "0.5793282", "0.5792415", "0.5777571", "0.5772582", "0.5766686", "0.5764135", "0.5764135", "0.5757898", "0.5751357", "0.5741492", "0.57353497", "0.57337713", "0.57256913", "0.57233524" ]
0.73674965
3
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(); lbl_RacesComplete = new javax.swing.JLabel(); lbl_DaysAbsent = new javax.swing.JLabel(); lbl_AgeGroup = new javax.swing.JLabel(); btn_Help = new javax.swing.JButton(); logo_SideDecor = new javax.swing.JLabel(); btn_Back = new javax.swing.JButton(); scrll_RacesComplete = new javax.swing.JScrollPane(); txtpn_RacesComplete = new javax.swing.JTextPane(); scrll_DaysAbsent = new javax.swing.JScrollPane(); txtpn_DaysAbsent = new javax.swing.JTextPane(); scrll_AgeGroup = new javax.swing.JScrollPane(); txtpn_AgeGroup = new javax.swing.JTextPane(); scrll_NameHeading = new javax.swing.JScrollPane(); txtpn_NameHeading = new javax.swing.JTextPane(); btn_Edit = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBackground(new java.awt.Color(178, 219, 244)); jPanel1.setPreferredSize(new java.awt.Dimension(337, 300)); lbl_RacesComplete.setFont(new java.awt.Font("Tahoma", 1, 13)); // NOI18N lbl_RacesComplete.setText("Races Completed:"); lbl_DaysAbsent.setFont(new java.awt.Font("Tahoma", 1, 13)); // NOI18N lbl_DaysAbsent.setText("Days Absent:"); lbl_AgeGroup.setFont(new java.awt.Font("Tahoma", 1, 13)); // NOI18N lbl_AgeGroup.setText("Age Group:"); btn_Help.setText("?"); btn_Help.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_HelpActionPerformed(evt); } }); logo_SideDecor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Lib/CornerDecalsSmall.png"))); // NOI18N btn_Back.setText("Back"); btn_Back.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_BackActionPerformed(evt); } }); scrll_RacesComplete.setViewportView(txtpn_RacesComplete); scrll_DaysAbsent.setViewportView(txtpn_DaysAbsent); scrll_AgeGroup.setViewportView(txtpn_AgeGroup); scrll_NameHeading.setViewportView(txtpn_NameHeading); btn_Edit.setText("Edit"); btn_Edit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_EditActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(40, 40, 40) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(15, 15, 15) .addComponent(btn_Back, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(13, 13, 13) .addComponent(btn_Edit, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btn_Help)) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(lbl_DaysAbsent) .addComponent(lbl_AgeGroup)) .addGap(30, 30, 30) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(scrll_DaysAbsent, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(scrll_AgeGroup, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(lbl_RacesComplete) .addGap(30, 30, 30) .addComponent(scrll_RacesComplete, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addComponent(scrll_NameHeading, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(logo_SideDecor)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(logo_SideDecor) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(scrll_NameHeading, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(41, 41, 41) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lbl_RacesComplete) .addComponent(scrll_RacesComplete, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lbl_DaysAbsent) .addComponent(scrll_DaysAbsent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lbl_AgeGroup) .addComponent(scrll_AgeGroup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(35, 35, 35) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btn_Help) .addComponent(btn_Edit, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btn_Back, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(59, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 318, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "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 kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public 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 vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public IssueBookForm() {\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 Ventaform() {\n initComponents();\n }", "public ViewPrescriptionForm() {\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 FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.69450074", "0.6944328", "0.6937169", "0.6931577", "0.6927632", "0.692602", "0.6925518", "0.6911884", "0.69111824", "0.6894571", "0.68920577", "0.68919677", "0.6891793", "0.6889509", "0.6884149", "0.6883326", "0.68815684", "0.68778104", "0.6876167", "0.6873792", "0.687072", "0.6859156", "0.6856744", "0.6855844", "0.6854915", "0.68542576", "0.68534344", "0.6852383", "0.6852383", "0.6845196", "0.68370795", "0.6836554", "0.6830521", "0.68290323", "0.6827711", "0.68255705", "0.6822908", "0.68180746", "0.68179923", "0.6811043", "0.6809639", "0.68095654", "0.6808346", "0.68082345", "0.68017685", "0.67943394", "0.67933774", "0.6793048", "0.6791145", "0.67897683", "0.6788624", "0.6788244", "0.6781776", "0.67674303", "0.6767318", "0.6764773", "0.6758625", "0.6757251", "0.6753117", "0.6751926", "0.67432684", "0.6740031", "0.67374456", "0.6737373", "0.6734546", "0.6727067", "0.67267615", "0.67210555", "0.6716679", "0.6715794", "0.6715694", "0.6709429", "0.67086613", "0.67038596", "0.6702431", "0.67014176", "0.67002505", "0.66993576", "0.6694831", "0.66915953", "0.6690518" ]
0.0
-1
//GENEND:initComponents Goes back to the Student Screen
private void btn_BackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_BackActionPerformed // go back to database access screen SS.StudentScreenPopulate(); SS.setVisible(true); this.setVisible(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StudentGUI(Student s) {\n\t\tstudent=s;\n\t\tsetTitle(\"B&B Learning\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcards = new JPanel(new CardLayout());\n\n\t\tstudentHomePagePanel = new StudentHomepage(); \n\t\tstudentHomePagePanel.setStudent(student);\n\t\tcards.add(studentHomePagePanel, \"STUDHOMEPAGE\"); //the cardName of the homePagePanel is STUDHOMEPAGE\n\n\t\tstudentCoursePagePanel = new StudentCoursePage();// TODO set the CoursePage's course every time you go to it \n\t\tcards.add(studentCoursePagePanel, \"STUDCOURSEPAGE\"); //the cardName of the homePagePanel is STUDCOURSEPAGE\n\n\t\tstudentAssignmentPanel = new StudentAssignmentPage();// TODO set the assignment page's file every time you go to it \n\t\tcards.add(studentAssignmentPanel, \"STUDASSIGNMENTPAGE\"); //the cardName is STUDASSIGNMENTPAGE\n\n\t\temailPage = new EmailPage();\n\t\tcards.add(emailPage, \"EMAILPAGE\"); //the cardName is EMAILPAGE\n\t\t\n\t\tgradePage = new GradePage();\n\t\tcards.add(gradePage, \"GRADEPAGE\"); //the cardName is GRADEPAGE\n\t\t\n\t\t\n\t\tadd(cards);\n\t\tpack();\n\t\tsetResizable(false);\n\t\tsetLocationRelativeTo(null); // center the JFram\n\t\tsetVisible(true);\n\t}", "private void createStudyStudent() {\n\t\t\n\t\t//Initiate Window\n\t\tsAssignStudyWindow = new JFrame(\"Assign Study Material\");\n\t\tsAssignStudyWindow.setSize(assignStudyWidth, assignStudyHeight);\n\t\tsAssignStudyWindow.setLocationRelativeTo(null);\n\t\tsAssignStudyWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tArrayList<Class> sClasses = student.getClasses();\n\t\t\n\t\tsAddStudyModel = new DefaultListModel<>();\n\t JList classList = new JList<>(sAddStudyModel);\n\t classList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t classList.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));\n\t\tclassList.addMouseListener(this);\n\t \n\t\t//Add classes\n\t for (Class c: sClasses) {\n\t \t\tsAddStudyModel.addElement(c.getName());\n\t }\n\t \n\t //Main JPanel\n\t JPanel panel = new JPanel();\n\t panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\n\t \n\t //Left JPanel\n\t JPanel leftPanel = new JPanel();\n\t leftPanel.setLayout(new BorderLayout());\n\t leftPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));\n\t leftPanel.add(new JScrollPane(classList));\n\t \n\t //Right JPanel\n\t JPanel rightPanel = new JPanel();\n\t rightPanel.setLayout(new GridLayout(2,1,1,1));\n\t rightPanel.setBorder(BorderFactory.createEmptyBorder(75, 10, 75, 20));\n\n\t //Student: \"Assign\" JButton\n\t JButton assignB = new JButton(\"Assign\");\n\t assignB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t ListSelectionModel selmodel = classList.getSelectionModel();\n\t int index = selmodel.getMinSelectionIndex();\n\t if (index >= 0) {\n\t \t \tClass selectedClass = sClasses.get(index);\n\t \t \tselectedClass.addFlashCard(newFlashCard);\n\t }\n\t }\n\t });\n\t rightPanel.add(assignB);\n\t\t\n\t //Student: \"Exit\" JButton\n\t JButton exitB = new JButton(\"Exit\");\n\t exitB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t sAssignStudyWindow.dispose();\n\t \tsPortalWindow.dispose();\n\t \tstudentPortalScreen();\n\t }\n\t \t});\n\t rightPanel.add(exitB);\n\n\t panel.add(leftPanel);\n\t panel.add(rightPanel);\n\n\t sAssignStudyWindow.add(panel);\n\t sAssignStudyWindow.setVisible(true);\n\t\t\n\t}", "public StudentHome() {\n initComponents();\n }", "public ManageStudentForm() {\n initComponents();\n \n initTable();\n \n fillTable();\n \n initMajor();\n setLocationRelativeTo(null);\n \n \n }", "public AddStudent() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void backPageActionPerformed(java.awt.event.ActionEvent evt) {\n studentsEntry panel = new studentsEntry();\n panel.setVisible(true);\n this.setVisible(false);\n }", "public student_homepage() {\n initComponents();\n \n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public ViewStudent() {\n initComponents();\n DB_Connection();\n DisplayInitialValues();\n }", "private void newStudentScreen() {\n\t\t\n\t\t//Initialize Window\n\t\tDimension newStudentSize = new Dimension(newStudentWidth, newStudentHeight);\n\t\tnewStudentWindow = new JFrame(\"Student Account\");\n\t\tnewStudentWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tnewStudentWindow.setSize(newStudentSize);\n\t\tnewStudentWindow.setLayout(null);\n\t\tnewStudentWindow.setResizable(false);\n\t\tnewStudentWindow.setLocationRelativeTo(null);\n\t\tnewStudentWindow.setLayout(new BorderLayout());\n\t\t\t\t\n\t\t//Set Background\n\t\tJLabel background = new JLabel(new ImageIcon(\"Resource/newBackground.jpg\"));\n\t\tbackground.setBounds(0, 0, newStudentWidth, newStudentHeight);\n\t\tnewStudentWindow.add(background);\n\t\t\n\t\t//Student: FirstName JLabel\n\t\tsFirstNameL = new JLabel(\"First\");\n\t\tsFirstNameL.setForeground(Color.WHITE);\n\t\tsFirstNameL.setFont(masterFont);\n\t\tsFirstNameL.setBounds(25, 25, 200, 30);\n\t\tbackground.add(sFirstNameL);\n\t\t\n\t\t//Student: LastName JLabel\n\t\tsLastNameL = new JLabel(\"Last\");\n\t\tsLastNameL.setForeground(Color.WHITE);\n\t\tsLastNameL.setFont(masterFont);\n\t\tsLastNameL.setBounds(275, 25, 200, 30);\n\t\tbackground.add(sLastNameL);\n\t\t\n\t\t//Student: SchoolName JLabel\n\t\tsSchoolNameL = new JLabel(\"School\");\n\t\tsSchoolNameL.setForeground(Color.WHITE);\n\t\tsSchoolNameL.setFont(masterFont);\n\t\tsSchoolNameL.setBounds(25, 85, 200, 30);\n\t\tbackground.add(sSchoolNameL);\n\t\t\n\t\t//Student: Grade JLabel\n\t\tsGradeL = new JLabel(\"Grade\");\n\t\tsGradeL.setForeground(Color.WHITE);\n\t\tsGradeL.setFont(masterFont);\n\t\tsGradeL.setBounds(275, 85, 200, 30);\n\t\tbackground.add(sGradeL);\n\t\t\n\t\t//Student: Password JLabel\n\t\tsPasswordL1 = new JLabel(\"Password\");\n\t\tsPasswordL1.setForeground(Color.WHITE);\n\t\tsPasswordL1.setFont(masterFont);\n\t\tsPasswordL1.setBounds(25, 145, 200, 30);\n\t\tbackground.add(sPasswordL1);\n\t\t\n\t\t//Student: Re-enter Password JLabel\n\t\tsPasswordL2 = new JLabel(\"Re-enter Password\");\n\t\tsPasswordL2.setForeground(Color.WHITE);\n\t\tsPasswordL2.setFont(masterFont);\n\t\tsPasswordL2.setBounds(275, 145, 200, 30);\n\t\tbackground.add(sPasswordL2);\n\t\t\n\t\t//Student: Security Question 1 JLabel\n\t\tsSecurityQ1L = new JLabel(\"Security Question 1\");\n\t\tsSecurityQ1L.setForeground(Color.WHITE);\n\t\tsSecurityQ1L.setFont(masterFont);\n\t\tsSecurityQ1L.setBounds(25, 205, 200, 30);\n\t\tbackground.add(sSecurityQ1L);\n\t\t\n\t\t//Student: Security Question 2 JLabel\n\t\tsSecurityQ2L = new JLabel(\"Security Question 2\");\n\t\tsSecurityQ2L.setForeground(Color.WHITE);\n\t\tsSecurityQ2L.setFont(masterFont);\n\t\tsSecurityQ2L.setBounds(25, 265, 200, 30);\n\t\tbackground.add(sSecurityQ2L);\n\t\t\n\t\t//-----------------------------------------------------------\n\t\t\n\t\t//Student: FirstName JTextField\n\t\tsFirstNameTF = new JTextField();\n\t\tsFirstNameTF.setBounds(25, 55, 200, 30);\n\t\tsFirstNameTF.setBorder(compound);\n\t\tbackground.add(sFirstNameTF);\n\t\t\n\t\t//Student: LastName JTextField\n\t\tsLastNameTF = new JTextField();\n\t\tsLastNameTF.setBounds(275, 55, 200, 30);\n\t\tsLastNameTF.setBorder(compound);\n\t\tbackground.add(sLastNameTF);\n\t\t\n\t\t//Student: SchoolName JTextField\n\t\tsSchoolNameTF = new JTextField();\n\t\tsSchoolNameTF.setBounds(25, 115, 200, 30);\n\t\tsSchoolNameTF.setBorder(compound);\n\t\tbackground.add(sSchoolNameTF);\n\t\t\n\t\t//Student: Security Question 1 JTextField\n\t\tsSecurityQ1TF = new JTextField();\n\t\tsSecurityQ1TF.setBounds(325, 235, 150, 30);\n\t\tsSecurityQ1TF.setBorder(compound);\n\t\tbackground.add(sSecurityQ1TF);\n\t\t\t\t\n\t\t//Student: Security Question 2 JTextField\n\t\tsSecurityQ2TF = new JTextField();\n\t\tsSecurityQ2TF.setBounds(325, 295, 150, 30);\n\t\tsSecurityQ2TF.setBorder(compound);\n\t\tbackground.add(sSecurityQ2TF);\n\t\t\n\t\t//------------------------------------------------\n\t\t\n\t\t//Student: \"Create Account\" JButton\n\t\tJButton sCreateAccountB = new JButton(\"Create Account\");\n\t\tsCreateAccountB.setBounds(175, 350, 150, 50);\n\t\tsCreateAccountB.setBorder(compound);\n\t\tsCreateAccountB.setOpaque(true);\n\t\tsCreateAccountB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tnewStudent = true;\n\t \t\tverifyStudent();\n\t }\n\t \t});\n\t\tbackground.add(sCreateAccountB);\n\t\t\n\t\t//-------------------------------------------------\n\t\t\n\t\t//Student: Password JPasswordField\n\t\tsPasswordPF1 = new JPasswordField();\n\t\tsPasswordPF1.setBounds(25, 175, 200, 30);\n\t\tsPasswordPF1.addActionListener(this);\n\t\tsPasswordPF1.setBorder(compound);\n\t\tbackground.add(sPasswordPF1);\n\t\t\t\n\t\t//Student: Re-enter Password JPasswordField\n\t\tsPasswordPF2 = new JPasswordField();\n\t\tsPasswordPF2.setBounds(275, 175, 200, 30);\n\t\tsPasswordPF2.addActionListener(this);\n\t\tsPasswordPF2.setBorder(compound);\n\t\tbackground.add(sPasswordPF2);\n\t\t\n\t\t//--------------------------------------------------\n\t\t\n\t\t//Student: Grade Level JComboBox\n\t\tString[] sGradeLevels = {\n\t\t\t\t\"Kindergarten\", \"1st\", \"2nd\", \"3rd\", \"4th\",\n\t\t\t\t\"5th\", \"6th\", \"7th\", \"8th\", \"9th\",\n\t\t\t\t\"10th\", \"11th\", \"12th\"\n\t\t};\n\t\tsGradeList = new JComboBox(sGradeLevels);\n\t\tsGradeList.setEditable(false);\n\t\tsGradeList.addActionListener(this);\n\t\tsGradeList.setBounds(275, 115, 200, 30);\n\t\tsGradeList.setBorder(compound);\n\t\tbackground.add(sGradeList);\n\t\t\n\t\t//Student: Security Question 1 JComboBox\n\t\tString[] sSecurityQuestions1 = {\n\t\t \"What is your favorite movie?\",\n\t\t \"What is your favorite food?\",\n\t\t \"What is the name of your first pet?\",\n\t\t \"What is your middle name?\",\n\t\t \"What is your favorite animal?\",\n\t\t \"What is your mother's name?\",\n\t\t \"What is your father's name?\",\n\t\t \"What is your favorite color?\",\n\t\t \"What is your favorite holiday?\"\n\t\t};\n\t\tsSecurityList1 = new JComboBox(sSecurityQuestions1);\n\t\tsSecurityList1.setEditable(false);\n\t\tsSecurityList1.addActionListener(this);\n\t\tsSecurityList1.setBounds(25, 235, 275, 30);\n\t\tsSecurityList1.setBorder(compound);\n\t\tbackground.add(sSecurityList1);\n\t\t\n\t\t//Student: Security Question 2 JComboBox\n\t\tString[] sSecurityQuestions2 = {\n\t\t \"What is your favorite movie?\",\n\t\t \"What is your favorite food?\",\n\t\t \"What is the name of your first pet?\",\n\t\t \"What is your middle name?\",\n\t\t \"What is your favorite animal?\",\n\t\t \"What is your mother's name?\",\n\t\t \"What is your father's name?\",\n\t\t \"What is your favorite color?\",\n\t\t \"What is your favorite holiday?\"\n\t\t};\n\t\tsSecurityList2 = new JComboBox(sSecurityQuestions2);\n\t\tsSecurityList2.setEditable(false);\n\t\tsSecurityList2.addActionListener(this);\n\t\tsSecurityList2.setBounds(25, 295, 275, 30);\n\t\tsSecurityList2.setBorder(compound);\n\t\tbackground.add(sSecurityList2);\n\t\t\n\t\t//Display the window\n\t\tnewStudentWindow.pack();\n\t\tnewStudentWindow.setVisible(true);\n\t}", "public StudentRegistration() {\n initComponents();\n }", "public Jframe_STUDENT() {\n initComponents();\n }", "public studentrecord() {\n initComponents();\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n stuNum.setCellValueFactory(new PropertyValueFactory<> (\"stunum\"));\n course.setCellValueFactory(new PropertyValueFactory<> (\"coursename\"));\n classM.setCellValueFactory(new PropertyValueFactory <>(\"classM\"));\n exam.setCellValueFactory(new PropertyValueFactory <>(\"exam\"));\n finalM.setCellValueFactory(new PropertyValueFactory <>(\"finalM\"));\n \n String user = CurrentUser.getUserName();\n String role = CurrentUser.getUserRole();\n \n System.out.println(role);\n \n //only show marks for particular sudent\n if(role.equals(\"S\")){\n \n SN.setText(user);\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n\n try{\n this.getStudent();\n }\n catch (IOException | SQLException e) {\n \n }\n\n }\n //show only for particular course\n //AS\n else if(CourseClicked.getClicked()==true){ //admin clicked on it\n \n CC.setText(CourseClicked.getCourse());\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n \n }\n //CC\n else if (UI.EditCourseController.course !=null){\n \n CC.setText(UI.EditCourseController.course);\n System.out.println(UI.EditCourseController.course);\n SN.setVisible(false);\n CC.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n }\n //coming back from detail view\n else if(StudentMarkClick.getBack()){\n //searched for student\n if(StudentMarkClick.getLastclick().equals(\"s\")){\n SN.setText(StudentMarkClick.getStunum());\n try{\n this.getStudent();\n }\n catch (IOException | SQLException e) {\n \n }\n }\n //searched for course\n else{\n CC.setText(StudentMarkClick.getCourse());\n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n \n } \n } \n }\n //CC or AS viewing overview\n else if (UI.EditCourseController.course !=null){\n \n CC.setText(UI.EditCourseController.course);\n System.out.println(UI.EditCourseController.course);\n SN.setVisible(false);\n CC.setVisible(false);\n searchSN.setVisible(false);\n searchCC.setVisible(false);\n \n try{\n this.getCourse();\n }\n catch (IOException | SQLException e) {\n\n }\n \n }\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n txtAddress = new javax.swing.JTextArea();\n btnlast = new javax.swing.JButton();\n txtFirstName = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n txtDateOfBirth = new javax.swing.JTextField();\n radiomale = new javax.swing.JRadioButton();\n radioFemale = new javax.swing.JRadioButton();\n jLabel5 = new javax.swing.JLabel();\n txtPhone = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtEmail = new javax.swing.JTextField();\n txtLastName = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n btnfirst = new javax.swing.JButton();\n btnprev = new javax.swing.JButton();\n btnnext = new javax.swing.JButton();\n btnupdate = new javax.swing.JButton();\n\n setTitle(\"View Student\");\n\n jScrollPane1.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jScrollPane1.setName(\"txtaddress\"); // NOI18N\n\n txtAddress.setColumns(20);\n txtAddress.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtAddress.setRows(5);\n txtAddress.setName(\"txtAddress\"); // NOI18N\n jScrollPane1.setViewportView(txtAddress);\n\n btnlast.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n btnlast.setText(\">>\");\n btnlast.setName(\"btnlast\"); // NOI18N\n btnlast.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnlastActionPerformed(evt);\n }\n });\n\n txtFirstName.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtFirstName.setName(\"txtFirstName\"); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel4.setText(\"Gender:\");\n\n txtDateOfBirth.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtDateOfBirth.setToolTipText(\"dd/mm/yyyy\");\n txtDateOfBirth.setName(\"txtDateOfBirth\"); // NOI18N\n\n Gender.add(radiomale);\n radiomale.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n radiomale.setText(\"Male\");\n radiomale.setName(\"radioMale\"); // NOI18N\n\n Gender.add(radioFemale);\n radioFemale.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n radioFemale.setText(\"Female\");\n radioFemale.setName(\"radioFemale\"); // NOI18N\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel5.setText(\"Phone:\");\n\n txtPhone.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtPhone.setToolTipText(\"mobile or landline\");\n txtPhone.setName(\"txtPhone\"); // NOI18N\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel1.setText(\"First Name:\");\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel6.setText(\"Email:\");\n\n jLabel2.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel2.setText(\"Last Name:\");\n\n txtEmail.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtEmail.setName(\"txtEmail\"); // NOI18N\n\n txtLastName.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtLastName.setToolTipText(\"\");\n txtLastName.setName(\"txtLastName\"); // NOI18N\n\n jLabel7.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel7.setText(\"Date of Birth:\");\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel3.setText(\"Address:\");\n\n btnfirst.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n btnfirst.setText(\"<<\");\n btnfirst.setName(\"btnfirst\"); // NOI18N\n btnfirst.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnfirstActionPerformed(evt);\n }\n });\n\n btnprev.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n btnprev.setText(\"<\");\n btnprev.setName(\"btnprev\"); // NOI18N\n btnprev.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnprevActionPerformed(evt);\n }\n });\n\n btnnext.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n btnnext.setText(\">\");\n btnnext.setName(\"btnnext\"); // NOI18N\n btnnext.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnnextActionPerformed(evt);\n }\n });\n\n btnupdate.setBackground(new java.awt.Color(51, 153, 255));\n btnupdate.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n btnupdate.setText(\"Update\");\n btnupdate.setName(\"btnupdate\"); // NOI18N\n btnupdate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnupdateActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(txtFirstName))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(radiomale)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(radioFemale)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(txtLastName)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)\n .addComponent(txtPhone)\n .addComponent(txtEmail)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDateOfBirth))))\n .addGroup(layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addComponent(btnfirst)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnprev)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnnext)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnlast)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnupdate)))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtFirstName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtLastName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(radiomale)\n .addComponent(radioFemale))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtDateOfBirth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnupdate)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnlast)\n .addComponent(btnfirst)\n .addComponent(btnnext))\n .addComponent(btnprev))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public student() {\n this.setExtendedState(this.getExtendedState() | this.MAXIMIZED_BOTH);\n initComponents();\n jLabel6.setVisible(false);\n jLabel7.setVisible(false);\n jLabel8.setVisible(false);\n jButton2.setVisible(false);\n jLabel9.setVisible(false);\n \n jComboBox2.removeAllItems();\n jComboBox4.removeAllItems();\n jComboBox1.removeAllItems();\n jComboBox3.removeAllItems();\n \n jComboBox2.addItem(\"Engineering\");\n jComboBox2.setSelectedItem(\"Engineering\");\n jComboBox2.addItem(\"MCA\");\n \n jComboBox1.addItem(\"Mechanical\");\n jComboBox1.setSelectedItem(\"Mechanical\");\n jComboBox1.addItem(\"Computer\");\n //jComboBox1.addItem(\"Computer\");\n\n jComboBox3.addItem(\"FE\");\n jComboBox3.setSelectedItem(\"FE\");\n jComboBox3.addItem(\"SE\");\n jComboBox3.addItem(\"TE\");\n jComboBox3.addItem(\"BE\");\n \n jComboBox4.addItem(\"A\");\n jComboBox4.setSelectedItem(\"A\");\n jComboBox4.addItem(\"B\");\n }", "public Student_Academic_interface() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n lblFaculty = new javax.swing.JLabel();\n cmbSubjects = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblStudents = new javax.swing.JTable();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtStudentno = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n lblLastname = new javax.swing.JLabel();\n lblFirstname = new javax.swing.JLabel();\n lblMiddlename = new javax.swing.JLabel();\n txtMidterm = new javax.swing.JTextField();\n txtFinals = new javax.swing.JTextField();\n btnSubmit = new javax.swing.JButton();\n jLabel10 = new javax.swing.JLabel();\n cmbCourse = new javax.swing.JComboBox();\n btnSearch = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n SSubject = new javax.swing.JComboBox();\n jLabel12 = new javax.swing.JLabel();\n txtSubjectCode = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n btnSignout = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel1.setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel1.setText(\"FACULTY :\");\n jPanel1.add(jLabel1);\n jLabel1.setBounds(200, 70, 50, 14);\n\n lblFaculty.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n lblFaculty.setText(\" \");\n jPanel1.add(lblFaculty);\n lblFaculty.setBounds(260, 70, 140, 13);\n\n cmbSubjects.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n cmbSubjects.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---CHOOSE---\" }));\n cmbSubjects.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmbSubjectsItemStateChanged(evt);\n }\n });\n cmbSubjects.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n cmbSubjectsMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n cmbSubjectsMouseExited(evt);\n }\n });\n cmbSubjects.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbSubjectsActionPerformed(evt);\n }\n });\n jPanel1.add(cmbSubjects);\n cmbSubjects.setBounds(620, 340, 150, 20);\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel2.setText(\"SUBJECTS:\");\n jPanel1.add(jLabel2);\n jLabel2.setBounds(570, 340, 50, 20);\n\n tblStudents.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"\", \"\", \"\", \"\"\n }\n ));\n jScrollPane1.setViewportView(tblStudents);\n\n jPanel1.add(jScrollPane1);\n jScrollPane1.setBounds(0, 364, 1101, 230);\n\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n jLabel3.setText(\"LIST OF STUDENTS\");\n jPanel1.add(jLabel3);\n jLabel3.setBounds(0, 340, 110, 17);\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel4.setText(\"SEARCH STUDENT NO.:\");\n jPanel1.add(jLabel4);\n jLabel4.setBounds(150, 100, 101, 14);\n\n txtStudentno.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n jPanel1.add(txtStudentno);\n txtStudentno.setBounds(260, 100, 143, 19);\n\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel5.setText(\"LASTNAME:\");\n jPanel1.add(jLabel5);\n jLabel5.setBounds(200, 130, 54, 14);\n\n jLabel6.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel6.setText(\"FIRSTNAME:\");\n jPanel1.add(jLabel6);\n jLabel6.setBounds(200, 160, 56, 14);\n\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel7.setText(\"MIDDLENAME:\");\n jPanel1.add(jLabel7);\n jLabel7.setBounds(190, 190, 69, 14);\n\n jLabel8.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel8.setText(\"MIDTERM GRADE:\");\n jPanel1.add(jLabel8);\n jLabel8.setBounds(170, 230, 83, 14);\n\n jLabel9.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel9.setText(\"FINALS GRADE:\");\n jPanel1.add(jLabel9);\n jLabel9.setBounds(180, 270, 69, 14);\n\n lblLastname.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n lblLastname.setText(\" \");\n jPanel1.add(lblLastname);\n lblLastname.setBounds(260, 130, 143, 13);\n\n lblFirstname.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n lblFirstname.setText(\" \");\n jPanel1.add(lblFirstname);\n lblFirstname.setBounds(260, 160, 143, 13);\n\n lblMiddlename.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n lblMiddlename.setText(\" \");\n jPanel1.add(lblMiddlename);\n lblMiddlename.setBounds(260, 190, 143, 13);\n\n txtMidterm.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n jPanel1.add(txtMidterm);\n txtMidterm.setBounds(260, 230, 143, 19);\n\n txtFinals.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n jPanel1.add(txtFinals);\n txtFinals.setBounds(260, 270, 143, 19);\n\n btnSubmit.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n btnSubmit.setText(\"SUBMIT\");\n btnSubmit.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnSubmit.setContentAreaFilled(false);\n btnSubmit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSubmitActionPerformed(evt);\n }\n });\n jPanel1.add(btnSubmit);\n btnSubmit.setBounds(360, 300, 41, 30);\n\n jLabel10.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel10.setText(\"COURSE:\");\n jPanel1.add(jLabel10);\n jLabel10.setBounds(360, 340, 40, 20);\n\n cmbCourse.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n cmbCourse.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---CHOOSE---\" }));\n cmbCourse.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmbCourseItemStateChanged(evt);\n }\n });\n jPanel1.add(cmbCourse);\n cmbCourse.setBounds(400, 340, 160, 20);\n\n btnSearch.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n btnSearch.setText(\"SEARCH\");\n btnSearch.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnSearch.setContentAreaFilled(false);\n btnSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSearchActionPerformed(evt);\n }\n });\n jPanel1.add(btnSearch);\n btnSearch.setBounds(420, 90, 41, 30);\n\n btnCancel.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n btnCancel.setText(\"CANCEL\");\n btnCancel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnCancel.setContentAreaFilled(false);\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n jPanel1.add(btnCancel);\n btnCancel.setBounds(470, 90, 41, 30);\n\n jLabel11.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel11.setText(\"GRADE SELECTED SUBJECT:\");\n jPanel1.add(jLabel11);\n jLabel11.setBounds(410, 130, 120, 14);\n\n SSubject.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n SSubject.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---CHOOSE---\" }));\n SSubject.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n SSubjectItemStateChanged(evt);\n }\n });\n jPanel1.add(SSubject);\n SSubject.setBounds(550, 130, 130, 20);\n\n jLabel12.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel12.setText(\"SUBJECT CODE:\");\n jPanel1.add(jLabel12);\n jLabel12.setBounds(410, 170, 68, 14);\n\n txtSubjectCode.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n txtSubjectCode.setText(\" \");\n jPanel1.add(txtSubjectCode);\n txtSubjectCode.setBounds(490, 170, 147, 13);\n\n jLabel15.setFont(new java.awt.Font(\"Arial Rounded MT Bold\", 1, 48)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 255, 255));\n jLabel15.setText(\"FACULTY\");\n jPanel1.add(jLabel15);\n jLabel15.setBounds(0, 0, 250, 57);\n\n jLabel13.setFont(new java.awt.Font(\"Arial Rounded MT Bold\", 1, 12)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(255, 0, 51));\n jLabel13.setText(\"SIGN OUT\");\n jPanel1.add(jLabel13);\n jLabel13.setBounds(1030, 40, 80, 15);\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n btnSignout.setBackground(new java.awt.Color(255, 255, 255));\n btnSignout.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n btnSignout.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/enrollmentsystem/Pictures/clear(1).png\"))); // NOI18N\n btnSignout.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnSignout.setBorderPainted(false);\n btnSignout.setContentAreaFilled(false);\n btnSignout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSignoutActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnSignout, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnSignout, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jPanel1.add(jPanel3);\n jPanel3.setBounds(1020, 0, 90, 40);\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/enrollmentsystem/Pictures/adminscreenbg.jpg\"))); // NOI18N\n jPanel1.add(jLabel14);\n jLabel14.setBounds(0, 0, 1110, 600);\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 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1112, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n\n pack();\n }", "public Deletestudent() {\n initComponents();\n }", "public Student_ADD() {\n initComponents();\n }", "public studentGUI() {\n\t\ttry {\n\t\t\tinitialize();\n\t\t} catch (AccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setStudent(Student s) {\n\t\tStudent = s;\n\t\tsetWelcomeText(s.getFirstName() , s.getLastName());//update the \"welcome, name!\" JLabel\n\t}", "@Override\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tmodel = new StudentLoginModel();\n\t\t\t\tuser = txtStudentName.getText();\n\t\t\t\tps = passWord.getPassword();\n\t\t\t\t\n\t\t\t\t//işte burda diyelim şifre doğru değil ise\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Please check the username or password and try again! \");\n\t\t\t\tnew StudentLoginPanel();\n\t\t\t\t//eğer şifre doğru ise\n\t\t\t\tnew StudentPage();\n\t\t\t}", "public void initializeComponents() {\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);// disposes frame if exit button is clicked\n this.setSize(922, 520); // sets size for the frame\n this.setLocationRelativeTo(null); // sets initial position of the frame to the center\n this.setTitle(\"Student\");// sets the title of the frame\n\n f = new Font(\"Georgia\", Font.BOLD, 15); // creating font object for a different font\n\n c = this.getContentPane();\n c.setLayout(null);\n c.setBackground(new Color(39, 40, 34));// setting the background color of the frame\n\n query = new JButton(\"Query\"); // creating new JButton for query frame \n query.setBounds(780, 0, 120, 35); // setting boundary for button\n query.setForeground(Color.WHITE); // setting foreground color of the frame\n query.setBackground(new Color(31, 58, 147)); // setting backgroung color of the frame\n c.add(query); // adding button to container\n query.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n Query qq = new Query(s1); // creating new Query object for query frame\n dispose(); // disposing current frame\n }\n\n });\n\n back = new JButton(\"Back\"); // creating button object for going back to previous frame\n back.setBounds(170, 35, 65, 30); // setting boundary for button\n back.addActionListener(new ActionListener() { \n @Override\n public void actionPerformed(ActionEvent e) {\n new StudentLoginFrame().setVisible(true); // creating new StudentLoginFrame(previus frame) and making it visible\n dispose(); // disposing current frame\n }\n\n });\n c.add(back); // adding button to container\n\n inform = new JLabel(\"Next question appears as submit your answer\"); // creating JLabel object for 7 second caution\n inform.setFont(new Font(\"Comic Sans MS\", Font.BOLD, 15)); // setting font for label\n inform.setBounds(240, 35, 550, 30); // setting boundary for label\n inform.setBackground(new Color(39, 40, 34)); // setting background color for label\n inform.setForeground(Color.WHITE); // setting foreground / font color for label\n c.add(inform); // adding label to the container\n\n cbs = new JLabel(\"Select Subject\"); //creating new JLabel object for subject selection\n cbs.setForeground(Color.WHITE); // setting foreground color to white\n cbs.setBounds(10, 10, 150, 30); // setting boundary for label\n c.add(cbs); // adding label to the container\n\n signIn_as = new JLabel(\"Signed In as: \" + s1.getName()); // creating jlabel object for signed_in\n signIn_as.setOpaque(true);\n signIn_as.setBackground(Color.GRAY); // setting background color\n signIn_as.setBounds(580, 0, 200, 25); // setting boundary for JLabel\n c.add(signIn_as); // adding label to container\n\n marks = new JLabel(); // creating JLabel object for marks display\n marks.setBounds(150, 400, 550, 30); // setting boundary of the label\n marks.setFont(f); // setting font of the label\n marks.setOpaque(true); \n marks.setBackground(Color.DARK_GRAY); // setting background color of the label\n marks.setForeground(Color.WHITE); // setting font/foreground color of the label\n c.add(marks); // adding label to the container\n\n\n select = new JComboBox(initializeQuestionName()); // creating new JComboBox object\n select.setBounds(10, 35, 150, 30); // setting boundary for JComboBox\n select.setEditable(true); // setting the ComboBox Editable\n c.add(select); // adding comboBox to the container\n select.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n question_display.setText(\"\"); // setting the question_display blank\n optionA.setText(\"\"); // setting the optionA blank\n optionB.setText(\"\");// setting the optionB blank\n optionC.setText(\"\");// setting the optionC blank\n optionD.setText(\"\");// setting the optionD blank\n\n }\n });\n\n optionGroup = new ButtonGroup(); // creating new ButtonGroup for option buttons\n\n submit = new JButton(\"Submit\"); // creating new button for submitting ans.\n submit.setBounds(10, 400, 80, 30); // setting boundary for the button\n submit.setBackground(new Color(1, 152, 117)); // setting the background color\n submit.setForeground(Color.WHITE); // setting the font/ foreground color\n submit.addActionListener(new ActionListener() {\n\n public void actionPerformed(ActionEvent ae) {\n \n toSleep = true;\n if(!abandoned) {\n if (optionA.isSelected()) { // checks whether option A is selected or not\n if (check(optionA.getText())) {//matches option with solution \n mark++;\n System.out.println(\"correct ans.\" + mark);\n marks.setText(\"Score: \" + mark); // sets text for the mark textfield\n } else {\n marks.setText(\"Score: \" + mark);\n System.out.println(\"wrong\");\n }\n } else if (optionB.isSelected()) {// checks whether option B is selected or not\n if (check(optionB.getText())) {//matches option with solution \n mark++;\n System.out.println(\"correct ans.\" + mark);\n marks.setText(\"Score: \" + mark);// sets text for the mark textfield\n } else {\n System.out.println(\"wrong\");\n marks.setText(\"Score: \" + mark);\n }\n } else if (optionC.isSelected()) {// checks whether option C is selected or not\n if (check(optionC.getText())) {//matches option with solution \n mark++;\n System.out.println(\"correct ans.\" + mark);\n marks.setText(\"Score: \" + mark);// sets text for the mark textfield\n } else {\n System.out.println(\"wrong\");\n marks.setText(\"Score: \" + mark);\n }\n } else if (optionD.isSelected()) {// checks whether option D is selected or not\n if (check(optionD.getText())) {//matches option with solution \n mark++;\n System.out.println(\"correct ans.\" + mark);\n marks.setText(\"Score: \" + mark);// sets text for the mark textfield\n } else {\n System.out.println(\"wrong\");\n marks.setText(\"Score: \" + mark);\n }\n }\n }\n }\n });\n c.add(submit); // adds submit button to the container\n\n startExam = new JButton(\"Start Exam\"); // creating new button object for starting the exam\n startExam.setBounds(10, 75, 120, 20); // setting boundary of the button\n c.add(startExam); // adding button to the container\n\n startExam.addActionListener(new ActionListener() {\n\n public void actionPerformed(ActionEvent ae) {\n runner1 = new Runner(); // creating runner object(extends Thread)\n \n if(runner1.isAlive())\n runner1.interrupt();\n\n startExam.setEnabled(false); // disabling \"Start Exam\" button\n questionCount = 1;\n\n String questionOption, get, opt1, opt2, opt3, opt4;\n\n File questionPaper = new File(\"Files/Question/\" + select.getSelectedItem().toString() + \".txt\");//selection question file\n File solve = new File(\"Files/Question/\" + select.getSelectedItem().toString() + \"solution\" + \".txt\");//selection solution file\n\n\n if(_first_time_SE) {\n \t_first_time_SE = false;\n\n question = new JLabel(); // new JLabel for question\n question.setOpaque(true);\n question.setFont(f); // setting font for JLabel\n question.setBackground(new Color(39, 40, 34)); //setting backgroung of the label\n question.setForeground(Color.WHITE); //setting font/foreground of the label\n question.setBounds(10, 110, 200, 19); // setting boundary for the label\n\n c.add(question); // adds label to the container\n\n question_display = new JTextArea(); // creates a new JtextArea object for displaying ques.\n question_display.setFont(f); // setting font\n question_display.setOpaque(true); \n question_display.setBackground(new Color(253, 151, 31)); // settin background color\n question_display.setEditable(false); // setting TextArea non-Editable\n question_display.setLineWrap(true); // setting line to go to new line if reaches boundary\n question_display.setWrapStyleWord(true); // avoiding to break a word while creating new line\n\n c.add(question_display); // adding textarea to the container\n\n scroll = new JScrollPane(question_display); // creating a new JscrollPane for question_display\n scroll.setBounds(10, 140, 700, 70); // setting boundary of the ScrollPane\n c.add(scroll); // adding scroll pane to the container\n\n optionA = new JRadioButton(); // creatong a Radiobutton object for option\n optionA.setFont(f);//setting font\n optionA.setBounds(10, 220, 400, 40);//setting boundary\n optionA.setBackground(new Color(39, 40, 34));//setting background color\n optionA.setForeground(Color.WHITE); // setting foreground color\n c.add(optionA);// adding RadioButton to the container\n\n optionB = new JRadioButton();// creatong a Radiobutton object for option\n optionB.setFont(f);//setting font\n optionB.setBounds(10, 260, 400, 40);//setting boundary\n optionB.setBackground(new Color(39, 40, 34));//setting background color\n optionB.setForeground(Color.WHITE);// setting foreground color\n c.add(optionB);// adding RadioButton to the container\n\n optionC = new JRadioButton();// creatong a Radiobutton object for option\n optionC.setFont(f);//setting font\n optionC.setBounds(10, 300, 400, 40);//setting boundary\n optionC.setBackground(new Color(39, 40, 34));//setting background color\n optionC.setForeground(Color.WHITE);// setting foreground color\n c.add(optionC);// adding RadioButton to the container\n\n optionD = new JRadioButton();// creatong a Radiobutton object for option\n optionD.setFont(f);//setting font\n optionD.setBounds(10, 340, 400, 40);//setting boundary\n optionD.setBackground(new Color(39, 40, 34));//setting background color\n optionD.setForeground(Color.WHITE);// setting foreground color\n c.add(optionD);// adding RadioButton to the container\n\n optionGroup.add(optionA); // adding the radioButton to button group -> avoids multiple selection\n optionGroup.add(optionB);// adding the radioButton to button group -> avoids multiple selection\n optionGroup.add(optionC);// adding the radioButton to button group -> avoids multiple selection\n optionGroup.add(optionD);// adding the radioButton to button group -> avoids multiple selection\n }\n\n\n try {\n Scanner scQ = new Scanner(questionPaper); //Scanner object for question file\n Scanner scS = new Scanner(solve);//Scanner object for solution file\n\n while (scQ.hasNext() & scS.hasNext()) {//iterating untill EOF\n\n questionOption = scQ.nextLine();\n solvE = scS.nextLine();\n\n StringTokenizer tokenQuestion = new StringTokenizer(questionOption, \"*\");//splitting option that are fused in a single string using delimiter\n\n get = tokenQuestion.nextToken(); //getting question string\n opt1 = tokenQuestion.nextToken(); // getting optionA\n opt2 = tokenQuestion.nextToken();// getting optionB\n opt3 = tokenQuestion.nextToken();// getting optionC\n opt4 = tokenQuestion.nextToken();// getting optionD\n\n sol_n.add(solvE); //adding to the arrayList\n q_display.add(new Question(get, opt1, opt2, opt3, opt4)); // adding to the arraylist\n\n }\n\n\n System.out.println(runner1.isAlive());\n runner1.start(); // starting thre\n System.out.println(runner1.isAlive());\n System.out.println(runner1.isAlive());\n\n\n\n } catch (FileNotFoundException ex) {\n\n }\n \n startExam.setEnabled(true); // enabling Start exam button\n }\n\n });\n //System.out.println(\"after start\");\n\n abandon = new JButton(\"Abandon Exam\"); // creating button to stop current exam\n abandon.setBounds(770, 400, 130, 30); // setting boundary for JButton\n abandon.setOpaque(true); \n abandon.setBackground(new Color(217, 30, 24)); // setting Background color\n abandon.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n abandoned = true;\n }\n\n });\n c.add(abandon); // adding abandon button to the container\n\n this.setVisible(true); // making frame visible\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tStudentManagement studentManagement =new StudentManagement();\n\t\t\t studentManagement.setModal(true);\n\t\t\t studentManagement.setVisible(true);\n\t\t\t}", "public studentPortal2() {\n initComponents();\n }", "public StudentLogin() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public studentsPanel() {\n initComponents();\n String no = String.valueOf(sNum.studentID);\n String name = String.valueOf(sNum.studentName);\n lblStudentID.setText(name);\n delivery();\n lblTakeBookLimit.setText(new texts().bookLimit() + takeBookLimit + \" )\");\n List();\n }", "public ViewStudents1() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void initJTableSchoolStudents() {\n schoolStudents = new SchoolStudents();\n // Load data from database\n schoolStudents.findAll(entityManager);\n\n // Model for JTable, assigning classgroups content\n schoolStudentsTableModel = new SchoolStudentsTableModel(schoolStudents);\n jTableSchoolStudents.setModel(schoolStudentsTableModel); \n\n // Allow only one row selected\n jTableSchoolStudents.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \n // Listen for student selection in jtable\n jTableSchoolStudents.getSelectionModel().addListSelectionListener(\n new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent event) {\n int indexSelectedRow = jTableSchoolStudents.getSelectedRow();\n if(indexSelectedRow >= 0) {\n schoolStudentSelected = schoolStudents.getSchoolStudentList().get(indexSelectedRow);\n showDetailStudentSelected();\n } else {\n jTextFieldName.setText(\"\");\n jTextFieldSurnames.setText(\"\");\n jTextFieldGrade.setText(\"\");\n }\n }\n }\n );\n \n enableEditingStudentDetail(false);\n }", "private void removeStudentButtonActionPerformed(java.awt.event.ActionEvent evt) {\n removeStudent();\n }", "private void fillInCurrentStudentInfo() {\n // Extract info from Student object\n String name = WordUtils.capitalizeFully(mCurrentStudent.getName());\n int sex = mCurrentStudent.getSex();\n mStudentBirthdate = mCurrentStudent.getBirthdate();\n int grade = mCurrentStudent.getGrade();\n mChosenClassesList = (ArrayList<String>) mCurrentStudent.getClasses();\n String classes = TextUtils.join(\", \", mChosenClassesList);\n String photoUrl = mCurrentStudent.getPhotoUrl();\n\n // Populate views with the current student's information\n mStudentNameEditText.setText(name);\n mStudentBirthdateTextView.setText(DateUtils.convertDateLongToString(mStudentBirthdate));\n mStudentGradeEditText.setText(String.valueOf(grade));\n mStudentClassesTextView.setText(classes);\n mStudentClassesTextView.setVisibility(View.VISIBLE);\n\n // Set student photo (if it exists)\n if (!TextUtils.isEmpty(photoUrl)) {\n Glide.with(mAddPhotoView.getContext())\n .load(photoUrl)\n .into(mAddPhotoView);\n studentHasPhoto = true;\n }\n\n // Set student sex spinner\n switch (sex) {\n case SEX_MALE_INT:\n mStudentSexSpinner.setSelection(SEX_MALE_INT);\n break;\n case SEX_FEMALE_INT:\n mStudentSexSpinner.setSelection(SEX_FEMALE_INT);\n break;\n default:\n throw new IllegalArgumentException(\"Invalid sex\");\n }\n }", "public PGstudentIntake() {\n initComponents();\n this.birthdate.getEditor().setEditable(false);\n if (this.faculty.getSelectedItem()==\"School of Business\") {\n this.course.setSelectedItem(\"MSc in Marketing\");\n }\n this.setLocationRelativeTo(null);\n setExtendedState(JFrame.MAXIMIZED_HORIZ);\n setVisible(true);\n setResizable(false);\n }", "public SignClassForm(MainPage mainPage,Student student) {\n initComponents();\n this.mainPageInstance=mainPage;\n this.student=student;\n this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n this.initialization();\n }", "private void addClassStudent() {\n\n\t\t//Initiate Window\n\t\tDimension dimension = new Dimension(addClassStudentWidth, addClassStudentHeight);\n\t\tsAddClassWindow = new JFrame(\"Add Class\");\n\t\tsAddClassWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsAddClassWindow.setSize(dimension);\n\t\tsAddClassWindow.setLayout(new BorderLayout());\n\t\tsAddClassWindow.setResizable(false);\n\t\tsAddClassWindow.setLocationRelativeTo(null);\n\t\tsAddClassWindow.setMinimumSize(dimension);\n\t\tsAddClassWindow.setMaximumSize(dimension);\n\t\tsAddClassWindow.setPreferredSize(dimension);\n\t\t\n\t\t//Set Background\n\t\t//JLabel background = new JLabel(new ImageIcon(\"Resource/loginBackground.jpg\"));\n\t\tJLabel background = new JLabel();\n\t\tbackground.setBounds(0, 0, addClassStudentWidth, addClassStudentHeight);\t\n\t\tsAddClassWindow.add(background, BorderLayout.CENTER);\n\t\t\n\t\t//Student ClassKey JLabel | JTextField\n\t\tJLabel classKeyL = new JLabel(\"Class Key\");\n\t\tclassKeyL.setForeground(Color.DARK_GRAY);\n\t\tclassKeyL.setFont(new Font(\"Candara\", Font.BOLD, 16));\n\t\tclassKeyL.setBounds(45, 10, 210, 40);\n\t\tbackground.add(classKeyL);\n\t\t\n\t\tclassKeyTF = new JTextField();\n\t\tclassKeyTF.setBounds(45, 45, 210, 40);\n\t\tclassKeyTF.setBorder(compound);\n\t\tbackground.add(classKeyTF);\n\t\t\n\t\t//Student \"Enter\" JButton\n\t\tJButton enterB = new JButton(\"Enter\");\n\t\tenterB.setBounds(45, 95, 100, 50);\n\t\tenterB.setBorder(compound);\n\t\tenterB.setOpaque(true);\n\t\tenterB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\t//searchClassCode();\n\t\t\t\tsAddClassWindow.dispose();\n\t\t\t\tsPortalWindow.dispose();\n\t\t\t\tstudentPortalScreen();\n\t }\n\t \t});\n\t\tbackground.add(enterB);\n\t\t\t\t\n\t\t//Student \"Exit\" JButton\n\t\tJButton exitB = new JButton(\"Exit\");\n\t\texitB.setBounds(155, 95, 100, 50);\n\t\texitB.setBorder(compound);\n\t\texitB.setOpaque(true);\n\t\texitB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tsAddClassWindow.dispose();\n\t }\n\t \t});\n\t\tbackground.add(exitB);\n\t\t\n\t\t//Display the window\n\t sAddClassWindow.pack();\n\t\tsAddClassWindow.setVisible(true);\n\t}", "public void setStudent(String students) {\n\t\tthis.students = students;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jLabel1 = new javax.swing.JLabel();\n studentIdTxt = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n studentFirstNameTxt = new javax.swing.JTextField();\n studentPerAddressTxt = new javax.swing.JTextField();\n studentEmailTxt = new javax.swing.JTextField();\n studentProgramTxt = new javax.swing.JTextField();\n studentMiddleNameTxt = new javax.swing.JTextField();\n studentTemporaryTxt = new javax.swing.JTextField();\n studentMobileTxt = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n studentLastNameTxt = new javax.swing.JTextField();\n studentSectionTxt = new javax.swing.JTextField();\n addStudentBtn = new javax.swing.JButton();\n editStudentBtn = new javax.swing.JButton();\n deleteStudentBtn = new javax.swing.JButton();\n clearStudentBtn = new javax.swing.JButton();\n cancelStudentBtn = new javax.swing.JButton();\n maleRadio = new javax.swing.JRadioButton();\n femaleRadio = new javax.swing.JRadioButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n studentTable = new javax.swing.JTable();\n semesterCombo = new javax.swing.JComboBox();\n jButton1 = new javax.swing.JButton();\n\n jLabel1.setText(\"StudentID\");\n\n studentIdTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentIdTxtActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"FirstName\");\n\n jLabel3.setText(\"Gender\");\n\n jLabel4.setText(\"Permanent Address\");\n\n jLabel5.setText(\"Email\");\n\n jLabel6.setText(\"Program\");\n\n jLabel7.setText(\"MiddleName\");\n\n jLabel8.setText(\"Temporary Address\");\n\n jLabel9.setText(\"Mobile\");\n\n jLabel10.setText(\"Semester\");\n\n studentFirstNameTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentFirstNameTxtActionPerformed(evt);\n }\n });\n\n studentPerAddressTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentPerAddressTxtActionPerformed(evt);\n }\n });\n\n studentProgramTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentProgramTxtActionPerformed(evt);\n }\n });\n\n studentMiddleNameTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentMiddleNameTxtActionPerformed(evt);\n }\n });\n\n studentTemporaryTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentTemporaryTxtActionPerformed(evt);\n }\n });\n\n jLabel11.setText(\"LastName\");\n\n jLabel12.setText(\"Section\");\n\n addStudentBtn.setText(\"Add\");\n addStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addStudentBtnActionPerformed(evt);\n }\n });\n\n editStudentBtn.setText(\"Edit\");\n editStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editStudentBtnActionPerformed(evt);\n }\n });\n\n deleteStudentBtn.setText(\"Delete\");\n deleteStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteStudentBtnActionPerformed(evt);\n }\n });\n\n clearStudentBtn.setText(\"Clear\");\n clearStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n clearStudentBtnActionPerformed(evt);\n }\n });\n\n cancelStudentBtn.setText(\"Cancel\");\n cancelStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelStudentBtnActionPerformed(evt);\n }\n });\n\n maleRadio.setText(\"Male\");\n maleRadio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n maleRadioActionPerformed(evt);\n }\n });\n\n femaleRadio.setText(\"Female\");\n\n studentTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(studentTable);\n\n semesterCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] {\"\", \"First\", \"Second\", \"Third\", \"Fourth\",\"Fifth\",\"Sixth\",\"Seventh\",\"Eighth\" }));\n semesterCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n semesterComboActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"View\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel5))\n .addGap(72, 72, 72)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(studentEmailTxt, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)\n .addComponent(studentProgramTxt)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addStudentBtn)))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel10)\n .addComponent(jLabel9))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(55, 55, 55)\n .addComponent(studentMiddleNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(semesterCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(editStudentBtn)\n .addGap(18, 18, 18)\n .addComponent(deleteStudentBtn)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(clearStudentBtn)\n .addGap(41, 41, 41)\n .addComponent(cancelStudentBtn))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(studentSectionTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentLastNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(279, 279, 279)\n .addComponent(jLabel8))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(studentFirstNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentIdTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(maleRadio)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(femaleRadio))\n .addComponent(studentPerAddressTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(studentMobileTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentTemporaryTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 17, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(studentIdTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabel7)\n .addComponent(studentFirstNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentMiddleNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(studentLastNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(maleRadio)\n .addComponent(femaleRadio))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jLabel8)\n .addComponent(studentPerAddressTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentTemporaryTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jLabel9)\n .addComponent(studentEmailTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentMobileTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(studentProgramTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jLabel12)\n .addComponent(studentSectionTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(semesterCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(editStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addStudentBtn)\n .addComponent(jButton1))\n .addComponent(clearStudentBtn)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(deleteStudentBtn)\n .addComponent(cancelStudentBtn)))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "public void setStudent(Student student) {\r\n\t\tthis.student = student;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jComboBoxSchoolGroup = new javax.swing.JComboBox();\n jToolBar1 = new javax.swing.JToolBar();\n jButtonAddStudent = new javax.swing.JButton();\n jButtonEditStudent = new javax.swing.JButton();\n jButtonRemoveStudent = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n jButtonGroups = new javax.swing.JButton();\n jTextFieldGrade = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jButtonSave = new javax.swing.JButton();\n jButtonCancel = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTableSchoolStudents = new javax.swing.JTable();\n jLabel4 = new javax.swing.JLabel();\n jTextFieldSurnames = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jTextFieldName = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jTextFieldDateBirth = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jComboBoxSchoolGroup.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n\n jButtonAddStudent.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/persistencesampleschool/resources/add.png\"))); // NOI18N\n jButtonAddStudent.setToolTipText(\"Añadir estudiante\");\n jButtonAddStudent.setFocusable(false);\n jButtonAddStudent.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonAddStudent.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonAddStudent.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAddStudentActionPerformed(evt);\n }\n });\n jToolBar1.add(jButtonAddStudent);\n\n jButtonEditStudent.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/persistencesampleschool/resources/edit.png\"))); // NOI18N\n jButtonEditStudent.setToolTipText(\"Editar datos del estudiante seleccionado\");\n jButtonEditStudent.setFocusable(false);\n jButtonEditStudent.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonEditStudent.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonEditStudent.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonEditStudentActionPerformed(evt);\n }\n });\n jToolBar1.add(jButtonEditStudent);\n\n jButtonRemoveStudent.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/persistencesampleschool/resources/remove.png\"))); // NOI18N\n jButtonRemoveStudent.setToolTipText(\"Suprimir estudiante seleccionado\");\n jButtonRemoveStudent.setFocusable(false);\n jButtonRemoveStudent.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRemoveStudent.setMaximumSize(new java.awt.Dimension(39, 39));\n jButtonRemoveStudent.setMinimumSize(new java.awt.Dimension(39, 39));\n jButtonRemoveStudent.setPreferredSize(new java.awt.Dimension(39, 39));\n jButtonRemoveStudent.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRemoveStudent.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRemoveStudentActionPerformed(evt);\n }\n });\n jToolBar1.add(jButtonRemoveStudent);\n jToolBar1.add(jSeparator1);\n\n jButtonGroups.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/persistencesampleschool/resources/group.png\"))); // NOI18N\n jButtonGroups.setToolTipText(\"Mantenimiento de grupos\");\n jButtonGroups.setFocusable(false);\n jButtonGroups.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonGroups.setMaximumSize(new java.awt.Dimension(39, 39));\n jButtonGroups.setMinimumSize(new java.awt.Dimension(39, 39));\n jButtonGroups.setPreferredSize(new java.awt.Dimension(39, 39));\n jButtonGroups.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonGroups.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGroupsActionPerformed(evt);\n }\n });\n jToolBar1.add(jButtonGroups);\n\n jTextFieldGrade.setColumns(5);\n jTextFieldGrade.setToolTipText(\"Formato: 00.0\");\n jTextFieldGrade.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextFieldGradeFocusLost(evt);\n }\n });\n\n jLabel5.setText(\"Grupo:\");\n\n jButtonSave.setText(\"Guardar\");\n jButtonSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSaveActionPerformed(evt);\n }\n });\n\n jButtonCancel.setText(\"Cancelar\");\n jButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCancelActionPerformed(evt);\n }\n });\n\n jTableSchoolStudents.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(jTableSchoolStudents);\n\n jLabel4.setText(\"Calificación expediente:\");\n\n jTextFieldSurnames.setColumns(30);\n\n jLabel2.setText(\"Apellidos:\");\n\n jTextFieldName.setColumns(20);\n\n jLabel1.setText(\"Nombre:\");\n\n jTextFieldDateBirth.setColumns(10);\n\n jLabel3.setText(\"Fecha Nacimiento:\");\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 .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButtonSave)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonCancel))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jTextFieldName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addComponent(jTextFieldSurnames, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jTextFieldDateBirth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jComboBoxSchoolGroup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jTextFieldGrade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldSurnames, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldDateBirth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldGrade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxSchoolGroup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonCancel)\n .addComponent(jButtonSave)))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n pack();\n }", "private void courseGUIsetup() {\n\t\t\t\tif(list.getSelectedValue()!= null)\n\t\t\t\t{\n\t\t\t\t\tCourse c = (Course)list.getSelectedValue();\n\t\t\t\t\tcourseGUI = new CourseGUI(c);\n\t\t\t\t\tcourseGUI.setListeners(new profCourseListener());\n\n\t\t\t\t\tframeHolder.setVisible(false);\n\t\t\t\t\tframeHolder = courseGUI.returnFrame();\n\t\t\t\t\tframeHolder.setVisible(true);\n\n\t\t\t\t\t//Initializing Scroll List with Students\n\t\t\t\t\tsetStudentScroll();\n\t\t\t\t\t//courseGUI.list.setModel(courseGUI.model);\n\t\t\t\t}\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n studentPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n IDTextField = new javax.swing.JTextField();\n lastNameTextField = new javax.swing.JTextField();\n firstNameTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n addStudentBtn = new javax.swing.JButton();\n deleteStudentBtn = new javax.swing.JButton();\n updateStudentBtn = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n studentInfoCourseComboBox1 = new javax.swing.JComboBox();\n studentInfoSectionComboBox1 = new javax.swing.JComboBox();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n studentSearchjButton1 = new javax.swing.JButton();\n Back = new javax.swing.JLabel();\n stduentPanel2 = new javax.swing.JPanel();\n Exit = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n stdInfoTable = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n studentPanel1.setBackground(new java.awt.Color(51, 51, 51));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"First Name:\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Last Name:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Section:\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"ID:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Course:\");\n\n IDTextField.setBackground(studentPanel1.getBackground());\n IDTextField.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n IDTextField.setForeground(new java.awt.Color(255, 255, 255));\n IDTextField.setBorder(null);\n IDTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n IDTextFieldActionPerformed(evt);\n }\n });\n\n lastNameTextField.setBackground(studentPanel1.getBackground());\n lastNameTextField.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n lastNameTextField.setForeground(new java.awt.Color(255, 255, 255));\n lastNameTextField.setBorder(null);\n\n firstNameTextField.setBackground(studentPanel1.getBackground());\n firstNameTextField.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n firstNameTextField.setForeground(new java.awt.Color(255, 255, 255));\n firstNameTextField.setBorder(null);\n\n addStudentBtn.setBackground(studentPanel1.getBackground());\n addStudentBtn.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n addStudentBtn.setForeground(new java.awt.Color(255, 255, 255));\n addStudentBtn.setText(\"Add\");\n addStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addStudentBtnActionPerformed(evt);\n }\n });\n\n deleteStudentBtn.setBackground(studentPanel1.getBackground());\n deleteStudentBtn.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n deleteStudentBtn.setForeground(new java.awt.Color(255, 255, 255));\n deleteStudentBtn.setText(\"Delete\");\n deleteStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteStudentBtnActionPerformed(evt);\n }\n });\n\n updateStudentBtn.setBackground(studentPanel1.getBackground());\n updateStudentBtn.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n updateStudentBtn.setForeground(new java.awt.Color(255, 255, 255));\n updateStudentBtn.setText(\"Update\");\n updateStudentBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n updateStudentBtnActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Cambria\", 0, 28)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"Student Infomration\");\n jLabel6.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.black, java.awt.Color.white, null, null));\n\n studentInfoCourseComboBox1.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n studentInfoCourseComboBox1.setBorder(studentInfoSectionComboBox1.getBorder());\n studentInfoCourseComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentInfoCourseComboBox1ActionPerformed(evt);\n }\n });\n\n studentInfoSectionComboBox1.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n\n studentSearchjButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n studentSearchjButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ToggleIcons/Search_25px.png\"))); // NOI18N\n studentSearchjButton1.setText(\"Search\");\n studentSearchjButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentSearchjButton1ActionPerformed(evt);\n }\n });\n\n Back.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ToggleIcons/Go Back_35px.png\"))); // NOI18N\n Back.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BackMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout studentPanel1Layout = new javax.swing.GroupLayout(studentPanel1);\n studentPanel1.setLayout(studentPanel1Layout);\n studentPanel1Layout.setHorizontalGroup(\n studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(147, 147, 147)\n .addComponent(addStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(74, 74, 74)\n .addComponent(updateStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(75, 75, 75)\n .addComponent(deleteStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(198, Short.MAX_VALUE))\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(Back))\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(266, 266, 266)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel3))\n .addGap(33, 33, 33)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(studentInfoSectionComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentInfoCourseComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(51, 51, 51)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, studentPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(IDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE)\n .addComponent(jSeparator2)\n .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lastNameTextField, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(firstNameTextField)\n .addComponent(jSeparator3))\n .addGap(18, 18, 18)\n .addComponent(studentSearchjButton1)\n .addGap(110, 110, 110))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, studentPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(283, 283, 283))\n );\n studentPanel1Layout.setVerticalGroup(\n studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(Back)\n .addGap(36, 36, 36)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(76, 76, 76)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(72, 72, 72)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addComponent(IDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel4)))\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(studentSearchjButton1)))\n .addGap(55, 55, 55)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(firstNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(68, 68, 68)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(studentPanel1Layout.createSequentialGroup()\n .addComponent(lastNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2))\n .addGap(60, 60, 60)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(studentInfoCourseComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(52, 52, 52)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(studentInfoSectionComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 222, Short.MAX_VALUE)\n .addGroup(studentPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(updateStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(deleteStudentBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(120, 120, 120))\n );\n\n stduentPanel2.setBackground(new java.awt.Color(51, 51, 51));\n\n Exit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ToggleIcons/Delete_35px.png\"))); // NOI18N\n Exit.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n ExitMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout stduentPanel2Layout = new javax.swing.GroupLayout(stduentPanel2);\n stduentPanel2.setLayout(stduentPanel2Layout);\n stduentPanel2Layout.setHorizontalGroup(\n stduentPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, stduentPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Exit)\n .addContainerGap())\n );\n stduentPanel2Layout.setVerticalGroup(\n stduentPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(stduentPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(Exit)\n .addContainerGap(155, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n stdInfoTable.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n stdInfoTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Last Name\", \"First Name\", \"Course\", \"Section\"\n }\n ));\n stdInfoTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n stdInfoTableMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(stdInfoTable);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1040, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 852, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 20, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(studentPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(stduentPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(stduentPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(studentPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\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, 1913, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1079, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n pack();\n }", "private void initialize() throws AccessException, RemoteException, NotBoundException {\n\t\tfrmStudent = new JFrame();\t\t\t//Jframe object is initialized in order to start student gui \n\t\tfrmStudent.setTitle(\"Student Process\");\t\t\t//set the title of student gui to Student Process\n\t\tfrmStudent.setBounds(100, 100, 450, 300);\t\t\t//set the position and size of our student gui\n\t\tfrmStudent.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\t\t\t//To change the default behaviour of JFrame object to close\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\t\t\t// Initializing a grid bag layout for our student process\n\t\tgridBagLayout.columnWidths = new int[]{0, 0, 0, 0, 0};\t\t\t// Initializing the contents of our GridBag Layout system\n\t\tgridBagLayout.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0};\n\t\tgridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};\n\t\tgridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};\n\t\tfrmStudent.getContentPane().setLayout(gridBagLayout);\t\t\t//adding the grid layout to our frame which we have created.\n\t\t\n\t\tJLabel lblName = new JLabel(\"Name\");\t\t\t//Jlabel object is created in order to create Name label in our student GUI\n\t\tGridBagConstraints gbc_lblName = new GridBagConstraints();\t\t\t// Initializing a grid bag layout for our sName label\n\t\tgbc_lblName.insets = new Insets(0, 0, 5, 5);\t\t\t// Initializing the contents of our GridBag Layout system\n\t\tgbc_lblName.gridx = 1;\n\t\tgbc_lblName.gridy = 2;\n\t\tfrmStudent.getContentPane().add(lblName, gbc_lblName);\t\t\t//adding the grid layout to our frame which we have created.\n\t\t\n\t\tJLabel lblSubject = new JLabel(\"Subject\");\t\t\t//Jlabel object is created in order to create Subject label in our student GUI\n\t\tGridBagConstraints gbc_lblSubject = new GridBagConstraints();\t\t\t// Initializing a grid bag layout for our student label\n\t\tgbc_lblSubject.insets = new Insets(0, 0, 5, 0);\t\t\t// Initializing the contents of our GridBag Layout system\n\t\tgbc_lblSubject.gridx = 3;\n\t\tgbc_lblSubject.gridy = 2;\n\t\tfrmStudent.getContentPane().add(lblSubject, gbc_lblSubject);\t\t\t//adding the grid layout to our frame which we have created.\n\t\t\n\t\ttextField = new JTextField();\t\t\t//Initialize JtextField object to get allocate memory for name text field\n\t\tGridBagConstraints gbc_textField = new GridBagConstraints();\t\t\t// Initializing a grid bag layout for name text field\n\t\tgbc_textField.insets = new Insets(0, 0, 5, 5);\t\t\t// Initializing the contents of our GridBag Layout system\n\t\tgbc_textField.anchor = GridBagConstraints.WEST;\n\t\tgbc_textField.gridx = 1;\n\t\tgbc_textField.gridy = 3;\n\t\tfrmStudent.getContentPane().add(textField, gbc_textField);\t\t\t//adding the grid layout to our frame which we have created.\n\t\ttextField.setColumns(10);\t\t\t\n\t\t\n\t\ttextField_1 = new JTextField();\t\t\t//Initialize JtextField object to get allocate memory for subject text field\n\t\tGridBagConstraints gbc_textField_1 = new GridBagConstraints();\t\t\t// Initializing a grid bag layout for subject text field\n\t\tgbc_textField_1.insets = new Insets(0, 0, 5, 0);\t\t\t// Initializing the contents of our GridBag Layout system\n\t\tgbc_textField_1.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_textField_1.gridx = 3;\n\t\tgbc_textField_1.gridy = 3;\n\t\tfrmStudent.getContentPane().add(textField_1, gbc_textField_1);\t\t\t//adding the grid layout to our frame which we have created.\n\t\ttextField_1.setColumns(10);\n\t\tJTextArea textArea = new JTextArea();\n\t\tJScrollPane scrollText=new JScrollPane(textArea);\n\t\tGridBagConstraints gbc_textArea = new GridBagConstraints();\n\t\tgbc_textArea.gridwidth = 2;\n\t\tgbc_textArea.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_textArea.fill = GridBagConstraints.BOTH;\n\t\tgbc_textArea.gridx = 1;\n\t\tgbc_textArea.gridy = 6;\n\t\tfrmStudent.getContentPane().add(scrollText, gbc_textArea);\n\t\ttry {\n\t\t\treg=\tLocateRegistry.getRegistry(\"127.0.0.1\", 1099);\n\t\t} catch (RemoteException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\t\t\t//Returns a reference to the remote object Registry on the specified host and port\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tJButton btnSubmit = new JButton(\"Submit\");\t\t\t//Initialize Jbutton object to allocate memory for submit button \n\t\tbtnSubmit.addActionListener(new ActionListener() {\t\t\t//creating an action listener implementation class which will prevent us from forming other class for action listner\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\t\t\t//function created by action class to look up in the registry which we have created and send the data to message queue\n\t\t\t\ttry {\n\t\t\t\t\treg=\tLocateRegistry.getRegistry(\"127.0.0.1\", 1099);\t\t\t//Returns a reference to the remote object Registry on the specified host and port\n\t\t\t\t\tstudentRMIInterface s1=(studentRMIInterface)reg.lookup(\"studentRMI\");\t\t\t//Returns the remote reference bound to the specified name [studentRMI] in this registry.\n\t\t\t\t\tSystem.out.println(textField.getText()+ textField_1.getText()+\" to advisor\");\n\t\t\t\t\ts1.sendData(textField.getText(), textField_1.getText()+\" to advisor\");\t\t\t//extracting the data from the text fields and sending it out to the send data function to be stored in the message queue.\n\t\t\t\t\ts1.showMessageofMQS();\t\t\t//calling function which will show the contents of message queue on to the screen.\n\t\t\t\t\t\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (NotBoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\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} catch (InterruptedException 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}\n\t\t});\n\t\tGridBagConstraints gbc_btnSubmit = new GridBagConstraints();\t// Initializing a grid bag layout for submit button\t\t\n\t\tgbc_btnSubmit.insets = new Insets(0, 0, 0, 5);\t\t\t// Initializing the contents of our GridBag Layout system\n\t\tgbc_btnSubmit.gridx = 2;\n\t\tgbc_btnSubmit.gridy = 5;\n\t\tfrmStudent.getContentPane().add(btnSubmit, gbc_btnSubmit);\t\t\t//adding the grid layout to our frame which we have created.\n\t\t\n\t\tbtnExit = new JButton(\"Exit\");\t\t\t//Initialize Jbutton object to allocate memory for exit button \n\t\tbtnExit.addActionListener(new ActionListener() {\t\t\t//creating an action listener implementation class which will prevent us from forming other class for action listner\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\t\t\t//function created by action class to exit from the student process.\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnExit = new GridBagConstraints();\t\t\t// Initializing a grid bag layout for exit button\n\t\tgbc_btnExit.gridx = 3;\n\t\tgbc_btnExit.gridy = 5;\n\t\tfrmStudent.getContentPane().add(btnExit, gbc_btnExit);\t\n\t\t//adding the grid layout to our frame which we have created.\n\t\tstudentRMIInterface s1=(studentRMIInterface)reg.lookup(\"studentRMI\");\t\t\t//Returns the remote reference bound to the specified name [studen\n\t\t\n\t\tString message = s1.getMessageFromMQStoStudent();\t\t\t//print the notification message on the student process\n\t\tString[] str1=message.split(\"~\");\n\t\tfor(int i=0;i<str1.length;i++)\n\t\t{\n\t\t\ttextArea.append(str1[i].replace(\" to student\", \" \"));\n\t\t\ttextArea.append(\"\\n\");\n\t\t\t\n\t\t}\n\t\ttry {\n\t\t\ts1.showMessageofMQS();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public RentGUI() {\n initComponents();\n aList = new ArrayList<>();\n Student = new String();\n BookName = new String();\n BookCategory = new String();\n count = 0;\n }", "public Window()\n\t{\n\t\tmyStudent = new Student();\n\t\t\n\t\t//sets title and windowsize \n\t\tsetSize(500, 500);\n\t\tsetTitle(\"BCS 345 - Nick Johnson - Student Activity Data\");\n\t\t\n\t\t\n\t\t//use to select files\n\t\tfile = new JFileChooser();\n\t\t\n\t\t//creating the menu bar with file, save, exit\n\t\t//adds the menu items and and action listener also\n\t\tmenuBar = new JMenuBar();\n\t\tmenuBar.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\t\n\t\tmenu = new JMenu(\"File\");\n\t\t\n\t\t\n\t\titem = new JMenuItem(\"Open\");\n\t\titem.addActionListener(this);\n\t\t\n\t\titem2 = new JMenuItem(\"Save\");\n\t\titem2.addActionListener(this);\n\t\t\n\t\titem3 = new JMenuItem(\"Exit\");\n\t\titem3.addActionListener(this);\n\t\t\n\t\tmenu.add(item);\n\t\tmenu.add(item2);\n\t\tmenu.add(item3);\n\t\t\n\t\tmenuBar.add(menu);\n\t\tsetJMenuBar(menuBar);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//creates two panels to hold student info and to create a new activity\n\t\tpanel1 = new JPanel();\n\t\tpanel1.setLayout(new GridLayout(4,1));\n\t\tpanel2 = new JPanel();\n\t\tpanel2.setLayout(new GridLayout(4,1));\n\t\t\n\t\t//creates panel tabs\n\t\ttabPane = new JTabbedPane();\n\t\ttabPane.addTab(\"Student Info\", panel1);\n\t\ttabPane.addTab(\"New Activity\", panel2);\n\t\tadd(tabPane);\n\t\t\n\t\t//all labeling for panel1\n\t\tpanel1.add(labelFirst = new JLabel(\"First name\"));\n\t\tpanel1.add(sFirstName = new JTextField(\"\"));\n\t\tpanel1.add(labelLast = new JLabel(\"Last name\"));\n\t\tpanel1.add(sLastName = new JTextField(\"\"));\n\t\tpanel1.add(labelCredits = new JLabel(\"Credits\"));\n\t\tpanel1.add(sCredits = new JTextField(\"\"));\n\t\tpanel1.add(labelList = new JLabel(\"Activities\"));\n\t\t\n\t\t\n\t\n\t\tpanel1.add(studentList = new JList<String>(listModel));\n\t\t\n\t\t\n\t\t//labeling for panel2\n\t\tpanel2.add(labelType = new JLabel(\"Type\"));\n\t\tpanel2.add(activityCombo = new JComboBox<String>());\n\t\tpanel2.add(labelHours = new JLabel(\"Hours\"));\n\t\tpanel2.add(aHours = new JTextField(\"\"));\n\t\tpanel2.add(labelMinutes = new JLabel(\"Minutes\"));\n\t\tpanel2.add(aMinutes = new JTextField(\"\"));\n\t\tpanel2.add(addActivityButton = new JButton(\"Add\"));\n\t\t\n\t\t//adding the enum combo box\n\t\tactivityCombo.addItem(\"STUDY\");\n\t\tactivityCombo.addItem(\"SLEEP\");\n\t\tactivityCombo.addItem(\"WORK\");\n\t\tactivityCombo.addItem(\"RELAX\");\n\t\tactivityCombo.addItem(\"OTHER\");\n\t\t\n\t\t\n\t\tactivityCombo.addActionListener(this);\n\t\taddActivityButton.addActionListener(this);\n\t\t\n\n\t}", "public FacultyScreen() {\n initComponents();\n }", "private void deleteStudentStudy() {\n\t\t\n\t\t//Initiate Window\n\t\tsDeleteStudyWindow = new JFrame(\"Edit Study\");\n\t\tsDeleteStudyWindow.setSize(deleteStudyWidth, deleteStudyHeight);\n\t\tsDeleteStudyWindow.setLocationRelativeTo(null);\n\t\tsDeleteStudyWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tArrayList<Class> sClasses = student.getClasses();\n\t\t\n\t\t//Student: classList JList\n\t\tTitledBorder classListBorder = BorderFactory.createTitledBorder(\"Class List\");\n\t\tsClassModel = new DefaultListModel<>();\n\t\tJList classList = new JList<>(sClassModel);\n\t\tclassList.setBorder(classListBorder);\n\t\tclassList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tclassList.addMouseListener(this);\n\t\t\n\t\t//Student: studyList JList\n\t\tTitledBorder studyListBorder = BorderFactory.createTitledBorder(\"Study List\");\n\t\tsStudyModel = new DefaultListModel<>();\n\t JList studyList = new JList<>(sStudyModel);\n\t studyList.setBorder(studyListBorder);\n\t studyList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tstudyList.addMouseListener(this);\n\t \n\t //Add classes\n\t for (Class c: sClasses) {\n\t \t\tsClassModel.addElement(c.getName());\n\t }\n\t \n\t //Main JPanel\n\t JPanel panel = new JPanel();\n\t panel.setLayout(new GridLayout(1,3,1,1));\n\t panel.setBorder(compound);\n\n\t //Left JPanel\n\t JPanel leftPanel = new JPanel();\n\t leftPanel.setLayout(new BorderLayout());\n\t leftPanel.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\t leftPanel.add(new JScrollPane(classList));\n\t \n\t //Middle JPanel\n\t JPanel middlePanel = new JPanel();\n\t middlePanel.setLayout(new BorderLayout());\n\t middlePanel.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\t middlePanel.add(new JScrollPane(studyList));\n\t \n\t //Right JPanel\n\t JPanel rightPanel = new JPanel();\n\t rightPanel.setLayout(new GridLayout(3,1,1,1));\n\t rightPanel.setBorder(BorderFactory.createEmptyBorder(50, 10, 50, 10));\n\n\t //Student: \"Select\" JButton\n\t JButton selectB = new JButton(\"Select\");\n\t selectB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t ListSelectionModel selmodel = classList.getSelectionModel();\n\t int index = selmodel.getMinSelectionIndex();\n\t sSelectedClass = sClasses.get(index);\n\t if (index >= 0 && isClassSelected == false) {\n\t \t \tsFlashCards = sSelectedClass.getFlashCards();\n\t \t \taddFlashCards(sFlashCards, sStudyModel);\n\t \t \tsDeleteStudyWindow.revalidate();\n\t \t \tisClassSelected = true;\n\t \t \tpreviousClass = sSelectedClass;\n\t }\n\t else if (index >= 0 && isClassSelected == true) {\n\t \t \tif (index >= 0 && previousClass != sSelectedClass) {\n\t \t \t\tsStudyModel.clear();\n\t\t \t \tsFlashCards = sSelectedClass.getFlashCards();\n\t\t \t \taddFlashCards(sFlashCards, sStudyModel);\n\t\t \t \tsDeleteStudyWindow.revalidate();\n\t\t \t \tpreviousClass = sSelectedClass;\n\t \t \t}\n\t }\n\t }\n\t });\n\t rightPanel.add(selectB);\n\t \n\t //Student: \"Delete\" JButton\n\t JButton deleteB = new JButton(\"Delete\");\n\t deleteB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t ListSelectionModel selmodel = studyList.getSelectionModel();\n\t int index = selmodel.getMinSelectionIndex();\n\t if (index >= 0) {\n\t \t \tFlashCard selectedFlashCard = sFlashCards.get(index);\n\t \t \tsSelectedClass.removeFlashCard(selectedFlashCard, index);\n\t \t \tsStudyModel.remove(index);\n\t \t \tsDeleteStudyWindow.revalidate();\n\t }\n\t }\n\t });\n\t rightPanel.add(deleteB);\n\t \n\t //Student: \"Exit\" JButton\n\t JButton exitB = new JButton(\"Exit\");\n\t exitB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \tisClassSelected = false;\n\t \tsDeleteStudyWindow.dispose();\n\t \tsPortalWindow.dispose();\n\t \tstudentPortalScreen();\n\t }\n\t \t});\n\t rightPanel.add(exitB);\n\n\t //Add components to main panel\n\t panel.add(leftPanel);\n\t panel.add(middlePanel);\n\t panel.add(rightPanel);\n\n\t //Display the window\n\t sDeleteStudyWindow.add(panel);\n\t sDeleteStudyWindow.setVisible(true);\n\t}", "public Student(String userName) {\n loggedUser = userName;\n initComponents();\n Toolkit toolKit = getToolkit();\n Dimension size = toolKit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2, size.height/2 - getHeight()/2);\n }", "private void initialize() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif (myMembersFile.createNewFile()) \r\n\t\t\t{\r\n\t\t\t\tmyMembersFile.createNewFile();\r\n\t\t\t\tmyStudentsFile.createNewFile();\r\n\t\t\t}\r\n\t\t\tloadMembers();\r\n\t\t\tloadStudents();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tgetContentPane().setForeground(new Color(0, 0, 0));\r\n\t\tsetSize(640, 360);\r\n\t\tsetResizable(false);\r\n\t\tsetLocation((int)((Toolkit.getDefaultToolkit().getScreenSize().getWidth() - getWidth()) / 2), (int)((Toolkit.getDefaultToolkit().getScreenSize().getHeight() - getHeight()) / 2));\r\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\t\tgetContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnCreateProfile = new JButton(\"Create Profile\");\r\n\t\tbtnCreateProfile.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tAsk ask = new Ask(studentList, memberList);\r\n\t\t\t\task.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreateProfile.setBounds(18, 183, 133, 87);\r\n\t\tgetContentPane().add(btnCreateProfile);\r\n\t\t\r\n\t\tJButton btnUpdateProfile = new JButton(\"Update Profile\");\r\n\t\tbtnUpdateProfile.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tUpdateList updateList = new UpdateList(studentList, memberList);\r\n\t\t\t\tupdateList.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnUpdateProfile.setBounds(169, 183, 133, 87);\r\n\t\tgetContentPane().add(btnUpdateProfile);\r\n\t\t\r\n\t\tJButton btnViewProfile = new JButton(\"View Profile\");\r\n\t\tbtnViewProfile.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tViewList viewList = new ViewList(studentList, memberList);\r\n\t\t\t\tviewList.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnViewProfile.setBounds(320, 183, 133, 87);\r\n\t\tgetContentPane().add(btnViewProfile);\r\n\t\t\r\n\t\tJButton btnQuitProgram = new JButton(\"Quit Program\");\r\n\t\tbtnQuitProgram.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tExitConfirmation.NewScreen();\r\n\t\t\t\twriteMembers();\r\n\t\t\t\twriteStudents();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnQuitProgram.setBounds(471, 183, 133, 87);\r\n\t\tgetContentPane().add(btnQuitProgram);\r\n\t\t\r\n\t\tJLabel lblTitle = new JLabel(\"Shekinah Music Academy Directory\");\r\n\t\tlblTitle.setFont(new Font(\"Tahoma\", Font.PLAIN, 32));\r\n\t\tlblTitle.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblTitle.setBounds(59, 63, 505, 65);\r\n\t\tgetContentPane().add(lblTitle);\r\n\t}", "private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}", "public void setStudents() {\n\t}", "private void setStudentScroll() {\n\t\t\t\tVector<User> studentList = client.getStudentList();\n\t\t\t\tcourseGUI.getModel().removeAllElements();\n\t\t\t\tif(studentList == null)return;\n\t\t\t\tfor(int i = 0; i < studentList.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tString info = studentList.get(i).getID() + \" \" + studentList.get(i).getFirstName() \n\t\t\t\t\t\t\t+ \" \" + studentList.get(i).getLastName() + \" \";;\n\t\t\t\t\t\t\tif(client.isEnrolled(studentList.get(i), courseGUI.getCourse().getName()))\n\t\t\t\t\t\t\t\tinfo += (\"\t\t(enrolled)\");\n\t\t\t\t\t\t\tcourseGUI.getModel().addElement(info);\n\t\t\t\t}\n\t\t\t\t//courseGUI.list.setModel(courseGUI.model);\n\t\t\t}", "public StudentResult() {\n initComponents();\n \n \n }", "public void actionPerformed(ActionEvent e){\n \t\t \tstudentsController.addStudent();\n \t\t }", "public StudentExamination() {\n initComponents();\n readExamSlip();\n readExamResult();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n cmbCousreName = new javax.swing.JComboBox();\n backbtn = new javax.swing.JButton();\n cmbStudents = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n barPanel = new javax.swing.JPanel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel1.setText(\"Grade Students\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel2.setText(\"Course Name:\");\n\n cmbCousreName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbCousreNameActionPerformed(evt);\n }\n });\n cmbCousreName.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n cmbCousreNamePropertyChange(evt);\n }\n });\n\n backbtn.setBackground(new java.awt.Color(51, 153, 255));\n backbtn.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n backbtn.setForeground(new java.awt.Color(255, 255, 255));\n backbtn.setText(\"<<Back\");\n backbtn.setToolTipText(\"\");\n backbtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backbtnActionPerformed(evt);\n }\n });\n\n cmbStudents.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbStudentsActionPerformed(evt);\n }\n });\n cmbStudents.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n cmbStudentsPropertyChange(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel3.setText(\"Students :\");\n\n javax.swing.GroupLayout barPanelLayout = new javax.swing.GroupLayout(barPanel);\n barPanel.setLayout(barPanelLayout);\n barPanelLayout.setHorizontalGroup(\n barPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n barPanelLayout.setVerticalGroup(\n barPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 391, Short.MAX_VALUE)\n );\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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(backbtn, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbStudents, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmbCousreName, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 501, Short.MAX_VALUE))\n .addComponent(barPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cmbCousreName, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmbStudents, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(barPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(backbtn)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "public void setStudentName(String studentName);", "private addStudent(Boolean bookAlreadyExisted) {\n setTitle(\"Student Input\");\n setSize(1920,1080);\n setLayout(new FlowLayout());\n setVisible(true);\n\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent windowEvent){\n dispose();\n } \n });\n\n inputPanel = new Panel(new GridLayout(3,2));\n\n studentName = new Label(\"Student Name:\");\n inputPanel.add(studentName);\n \n studentNameField = new TextField(10);\n nameField.setEditable(true);\n inputPanel.add(studentNameField);\n \n \n gradeLevel = new Label(\"Grade Level:\");\n inputPanel.add(gradeLevel);\n \n gradeLevelField = new TextField(10);\n gradeLevelField.setEditable(true);\n inputPanel.add(gradeLevelField);\n \n //Button that adds the owner to an E-Book.\n addOwner = new Button(\"Add Owner\");\n addOwner.addActionListener(new ActionListener(){ \n public void actionPerformed(ActionEvent e){\n Boolean sentinel = false;\n //Checks if all the information inputed is appropiate. \n try{\n if(studentNameField.getText().equals(\"\")){\n new errorWindow(\"Insert a name\");\n sentinel = true;\n }\n if(gradeLevelField.getText().equals(\"\")){\n new errorWindow(\"Insert a grade level\");\n sentinel = true;\n }\n \n \n int gradeLevel = Integer.parseInt(gradeLevelField.getText().trim());\n if(gradeLevel < 1 || gradeLevel > 12){\n new errorWindow(\"Grade Level should be between 1 and 12\");\n sentinel = true;\n }\n\n if(sentinel == true){\n return;\n }\n\n owner = new Student(studentNameField.getText(), gradeLevel);\n //Creates a E-Book with the specifeid owner if the E-Book did not already exist.\n if(bookAlreadyExisted == false){\n inputedEBook.setRedemptionStatus(true);\n inputedEBook.setOwner(owner);\n books.put(inputedEBook);\n Object rowData[] = {inputedEBook.getBookName(), inputedEBook.getClassFor(), inputedEBook.getRedemptionCode(), \"true\", inputedEBook.getOwner().getName(), \n Integer.toString(inputedEBook.getOwner().getGradeLevel())};\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.addRow(rowData); \n dispose(); \n }\n else {\n //Adds the owner to an already existing \n books.remove(inputedEBook);\n unredeemedEBooks.remove(inputedEBook);\n inputedEBook.setRedemptionStatus(true);\n inputedEBook.setOwner(owner);\n books.put(inputedEBook);\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.setValueAt(\"true\", inputedEBook.getRowLocation() - numberOfRowsRemoved, 3); \n table.setValueAt(owner.getName(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 4); \n table.setValueAt(Integer.toString(inputedEBook.getOwner().getGradeLevel()), inputedEBook.getRowLocation() - numberOfRowsRemoved, 5); \n dispose(); \n }\n \n }catch(Exception exception){\n new errorWindow(\"Grade Level must be a number\");\n }\n } \n });\n inputPanel.add(addOwner);\n\n add(inputPanel);\n inputPanel.setVisible(true);\n }", "@SuppressWarnings(\"resource\")\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tObject a = e.getSource();\n\t\t\tif (a==UserManual){\n\t\t\t\t//Opens up user manual as a PDF file\n\t\t\t\tFile file = new File(\"Schools\\\\UserManual.pdf\");\n\t\t\t if (file.toString().endsWith(\".pdf\"))\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \" + file);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t Desktop desktop = Desktop.getDesktop();\n\t\t\t try {\n\t\t\t\t\t\tdesktop.open(file);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\tif(a==back51){\n\t\t\t\ttranscript.setVisible(false);\n\t\t\t\tstudentinfo.setVisible(true);\n\t\t\t}\n\t\t\tif (a == transcriptupdate) {\n\t\t\t\tTranscriptedit();\n\t\t\t}\n\t\t\tif (a == StudentButton) {\n\t\t\t\tAttendancer = false;\n\t\t\t\tcall.StudentStuff();\n\t\t\t}\n\t\t\tif (a == TeacherButton) {\n\t\t\t\tAttendancer = true;\n\t\t\t\tcall.TeacherStuff();\n\t\t\t}\n\t\t\tif (a == AdminButton) {\n\t\t\t\tcall.AdminStuff();\n\t\t\t}\n\t\t\tif (a == SearchBar) {\n\t\t\t}\n\t\t\tif (a == search2) {\n\t\t\t\tFile directory = new File(\"Schools\\\\\" + SearchBar2.getText()\n\t\t\t\t\t\t+ \".hi\");\n\t\t\t\tif (!directory.exists()) {\n\t\t\t\t\tSearchBar2.setText(\"Student does not exist.\");\n\t\t\t\t} else if (SearchBar2.getText().equals(\"\")) {\n\t\t\t\t\tSearchBar2.setText(\"Student does not exist.\");\n\t\t\t\t} else {\n\t\t\t\t\tcall.StudentStuff2();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a == search) {\n\t\t\t\tcall.Studentinfo();\n\t\t\t}\n\t\t\tif (a == NewStudent) {\n\t\t\t\tcall.AddStudent();\n\t\t\t}\n\t\t\tif (a == Add) {\n\t\t\t\tcall.Add();\n\t\t\t\tStudentNum.setText(\"Student Number\");\n\t\t\t\tStudentname.setText(\"Student Name\");\n\t\t\t}\n\t\t\tif (a == back) {\n\t\t\t\tMainFrame1.setVisible(true);\n\t\t\t\tAdminFrame1.setVisible(false);\n\t\t\t\tStudentframe.setVisible(false);\n\t\t\t\tteacherFrame.setVisible(false);\n\t\t\t}\n\t\t\tif (a == back2) {\n\t\t\t\tAdminFrame1.setVisible(true);\n\t\t\t\tnames.clear();\n\t\t\t\tcall.chooseFile();\n\t\t\t\tStudentname.setText(\"Student Name\");\n\t\t\t\tStudentNum.setText(\"Student Number\");\n\t\t\t\tAddStudent1.setVisible(false);\n\t\t\t}\n\t\t\tif (a == update) {\n\t\t\t\tString updater = text.getText();\n\t\t\t\tString names2 = SearchBar.getText();\n\t\t\t\ttry {\n\t\t\t\t\tPrintWriter out;\n\t\t\t\t\tout = new PrintWriter(new FileWriter(\"Schools\\\\\" + names2\n\t\t\t\t\t\t\t+ \".hi\" + \"\\\\\" + \"Student Information.txt\", false));\n\t\t\t\t\tout.print(updater);\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (Exception e1) {\n\t\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a == back3) {\n\t\t\t\tstudentinfo.setVisible(false);\n\t\t\t\tSearchBar.setText(\"Search...\");\n\t\t\t\ttext.setText(\"\");\n\t\t\t\tcall.AdminStuff();\n\t\t\t}\n\t\t\tif (a == back4) {\n\t\t\t\tStudentframe2.setVisible(false);\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\tSearchBar2.setText(\"Enter Student Number\");\n\t\t\t\tcall.StudentStuff();\n\t\t\t}\n\t\t\tif (a == back6) {\n\t\t\t\tCoursesFrame.setVisible(false);\n\t\t\t\tStudentStuff2();\n\t\t\t}\n\t\t\tif (a == CourseSelect) {\n\t\t\t\tif (checker == 0) {\n\t\t\t\t\tCourses();\n\t\t\t\t} else {\n\t\t\t\t\tCoursesFrame.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a == Save) {\n\t\t\t\tcall.Confirm();\n\t\t\t}\n\t\t\tif (a == Yes) {\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(\"Schools\\\\\" + SearchBar2.getText() + \".hi\"\n\t\t\t\t\t\t\t+ \"\\\\Current Classes\");\n\t\t\t\t\tif (!file.exists()) {\n\t\t\t\t\t\tif (file.mkdir()) {\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tint x = 0;\n\t\t\t\t\twhile (StudentCourseList[x] != null) {\n\t\t\t\t\t\tPrintWriter out = new PrintWriter(new FileWriter(file\n\t\t\t\t\t\t\t\t+ \"\\\\\" + StudentCourseList[x] + \".txt\", true));\n\t\t\t\t\t\tout = new PrintWriter(new FileWriter(file + \"\\\\\"\n\t\t\t\t\t\t\t\t+ StudentCourseList[x] + \"_Attendance.txt\", true));\n\t\t\t\t\t\tout.close();\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t}\n\t\t\t\tConfirmation.setVisible(false);\n\t\t\t\tCoursesFrame.setVisible(false);\n\t\t\t\tStudentframe2.setVisible(false);\n\t\t\t\tStudentStuff();\n\t\t\t}\n\t\t\tif (a == No) {\n\t\t\t\tConfirmation.setVisible(false);\n\t\t\t}\n\t\t\tif (a == Marks) {\n\t\t\t\tCurrentMarks();\n\t\t\t}\n\t\t\tif (a == TeacherButton) {\n\t\t\t\tTeacherStuff();\n\t\t\t}\n\t\t\tif (a == search3) {\n\t\t\t\tif (checker2 == 0) {\n\t\t\t\t\tFile directory = new File(\"Schools\\\\Available Classes\\\\\"\n\t\t\t\t\t\t\t+ SearchBar3.getText() + \".txt\");\n\t\t\t\t\tif (!directory.exists()) {\n\t\t\t\t\t\tSearchBar3.setText(\"Course does not exist.\");\n\t\t\t\t\t} else if (directory.exists()) {\n\t\t\t\t\t\tTeacherStuff2();\n\t\t\t\t\t}\n\t\t\t\t\tchecker2 = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a == back7) {\n\t\t\t\tSearchBar3.setText(\"Enter Course Code\");\n\t\t\t\tteacherFrame2.setVisible(false);\n\t\t\t\tTeacherStuff();\n\t\t\t\tchecker3 = 1;\n\t\t\t\tchecker2 = 0;\n\t\t\t}\n\t\t\tif (a == ClassList) {\n\t\n\t\t\t\tbackaroo = false;\n\t\t\t\tteacherFrame2.setVisible(false);\n\t\t\t\tselectedStudent = ClassList.getSelectedItem().toString();\n\t\t\t\tTeacherStuff3();\n\t\t\t\tTeacherStuff4();\n\t\t\t\tAddingMarks();\n\t\t\t}\n\t\t\tif (a == CourseList) {\n\t\t\t\tback10.addActionListener(this);\n\t\t\t\tbackaroo = true;\n\t\t\t\tStudentMarksFrame1.setVisible(false);\n\t\t\t\tselectedClass = CourseList.getSelectedItem().toString();\n\t\t\t\tSearchBar3.setText(selectedClass);\n\t\t\t\tselectedStudent = SearchBar2.getText();\n\t\t\t\tTeacherStuff3();\n\t\t\t\tTeacherStuff4();\n\t\t\t\tAttendance();\n\t\t\t}\n\t\t\tif (a == back8) {\n\t\t\t\tTeacherFrame3.setVisible(false);\n\t\t\t\tMarkFrame.setVisible(false);\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\tAddFrame.setVisible(false);\n\t\t\t\tteacherFrame2.setVisible(true);\n\t\t\t}\n\t\t\tif (a == AddMark) {\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\tAddingMarks2();\n\t\t\t}\n\t\t\tif (a == Enter) {\n\t\t\t\tString input = new String();\n\t\t\t\ttry {\n\t\t\t\t\tdouble percent = Double.parseDouble(Percentage.getText());\n\t\t\t\t\tint worth = Integer.parseInt(MarkWeighting.getText());\n\t\t\t\t\tif (Categories.getText().contains(\"K\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"K/U,\" + AssignName.getText() + \",\" + percent + \",\"\n\t\t\t\t\t\t\t\t+ worth;\n\t\t\t\t\t} else if (Categories.getText().contains(\"T\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"T/I,\" + AssignName.getText() + \",\" + percent + \",\"\n\t\t\t\t\t\t\t\t+ worth;\n\t\t\t\t\t} else if (Categories.getText().contains(\"A\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"App,\" + AssignName.getText() + \",\" + percent + \",\"\n\t\t\t\t\t\t\t\t+ worth;\n\t\t\t\t\t} else if (Categories.getText().contains(\"C\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"Comm,\" + AssignName.getText() + \",\" + percent\n\t\t\t\t\t\t\t\t+ \",\" + worth;\n\t\t\t\t\t} else if (Categories.getText().contains(\"E\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"Exam,\" + AssignName.getText() + \",\" + percent\n\t\t\t\t\t\t\t\t+ \",\" + worth;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJFrame Invalid = new JFrame();\n\t\t\t\t\t\tJLabel l1 = new JLabel(\"INVALID\");\n\t\t\t\t\t\tInvalid.add(l1);\n\t\t\t\t\t\tInvalid.setSize(100, 100);\n\t\t\t\t\t\tInvalid.setLocationRelativeTo(null);\n\t\t\t\t\t\tInvalid.setVisible(true);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception Arg7) {\n\t\t\t\t}\n\t\t\t\tPrintWriter out;\n\t\t\t\tif (checker4 == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new PrintWriter(new FileWriter((\"Schools\\\\\"\n\t\t\t\t\t\t\t\t+ selectedStudent + \".hi\\\\Current Classes\\\\\"\n\t\t\t\t\t\t\t\t+ SearchBar3.getText() + \".txt\"), true));\n\t\t\t\t\t\tout.append(System.getProperty(\"line.separator\"));\n\t\t\t\t\t\tout.append(input);\n\t\t\t\t\t\tout.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t}\n\t\t\t\t\tchecker4 = 1;\n\t\t\t\t}\n\t\t\t\tAddFrame.setVisible(false);\n\t\t\t}\n\t\t\tif (a == back9) {\n\t\t\t\tStudentframe2.setVisible(true);\n\t\t\t\tStudentMarksFrame1.setVisible(false);\n\t\t\t}\n\t\t\tif (a == back10) {\n\t\t\t\tStudentframe2.setVisible(true);\n\t\t\t\tTeacherFrame3.setVisible(false);\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\tCourseList.removeAll();\n\t\t\t}\n\t\t\tif (a == AttendanceB) {\n\t\t\t\tAddFrame.setVisible(false);\n\t\t\t\tAttendance();\n\t\t\t}\n\t\t\tif (a == transcriptb) {\n\t\t\t\tTranscript();\n\t\t\t}\n\t\t\tif (a == AttendanceEnter) {\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\ttry {\n\t\t\t\t\tif (checker6 == true) {\n\t\t\t\t\t\tBufferedWriter pw = new BufferedWriter(\n\t\t\t\t\t\t\t\tnew FileWriter(\n\t\t\t\t\t\t\t\t\t\t(\"Schools\\\\\" + selectedStudent\n\t\t\t\t\t\t\t\t\t\t\t\t+ \".hi\\\\Current Classes\\\\\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ SearchBar3.getText() + \"_Attendance.txt\"),\n\t\t\t\t\t\t\t\t\t\ttrue));\n\t\t\t\t\t\tpw.append((AttendanceT.getText() + \",\"));\n\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\tchecker6 = false;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception Arg8) {\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public ShowStudentInfo() throws SQLException {\n initComponents();\n ShowDetails();\n }", "public void setRegisteredStudent(int registeredStudent)\r\n\t{\r\n\t\tthis.registeredStudent = registeredStudent;\r\n\t}", "public StudentInfo() {\n initComponents();\n\n loadData();\n loadComboBox();\n }", "public StudentOptionFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public void setStudentName(String studentName) {\n\t\tthis.studentName = studentName;\n\t}", "private void onRemoveClicked() {\r\n\t\t\r\n\t\tString givenName = Window.showStudentDialog();\r\n\t\t\r\n\t\tif (givenName != null) {\r\n\t\t\tif(!chart.removeStudentName(givenName)) {\r\n\t\t\t\tWindow.msg(\"This student was not found.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if(nameTextField.getText().isEmpty() || surnameTexField.getText().isEmpty() ||\n genderTextField.getText().isEmpty() || programmeTextField.getText().isEmpty() ||\n nationalityTextField.getText().isEmpty() || courseTextField.getText().isEmpty() ||\n pathwayTextField.getText().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"One or more fields are empty. Each field should be filled!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n else {\n try {\n Student st = new Student(nameTextField.getText(), surnameTexField.getText(), genderTextField.getText(),\n nationalityTextField.getText(), programmeTextField.getText(), courseTextField.getText(), pathwayTextField.getText(), 60.0);\n college.addStudent(st);\n JOptionPane.showMessageDialog(null, \"The student \" + nameTextField.getText() + \" \" + surnameTexField.getText() + \" has been\" +\n \" successfully added to the College!\");\n // clear all the fields\n nameTextField.setText(\"\");\n surnameTexField.setText(\"\");\n genderTextField.setText(\"\");\n nationalityTextField.setText(\"\");\n programmeTextField.setText(\"\");\n courseTextField.setText(\"\");\n pathwayTextField.setText(\"\");\n }\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Oops! Something went wrong...\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n }\n }", "private void assignStudyMaterial() {\n\t\t\n\t\t//Initiate Window\n\t\ttAssignStudyWindow = new JFrame(\"Assign Study Material\");\n\t\ttAssignStudyWindow.setSize(assignStudyMaterialWidth, assignStudyMaterialHeight);\n\t tAssignStudyWindow.setLocationRelativeTo(null);\n\t tAssignStudyWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t \n\t\ttAddStudyModel = new DefaultListModel<>();\n\t JList classList = new JList<>(tAddStudyModel);\n\t classList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t classList.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));\n\t\tclassList.addMouseListener(this);\n\t \n\t for (Class c: teacherClasses) {\n\t \t\ttAddStudyModel.addElement(c.getName());\n\t }\n\t \n\t //Main JPanel\n\t JPanel panel = new JPanel();\n\t panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\n\t \n\t //LeftPanel JPanel\n\t JPanel leftPanel = new JPanel();\n\t leftPanel.setLayout(new BorderLayout());\n\t leftPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));\n\t leftPanel.add(new JScrollPane(classList));\n\t \n\t //RightPanel JPanel\n\t JPanel rightPanel = new JPanel();\n\t rightPanel.setLayout(new GridLayout(3,1,1,1));\n\t rightPanel.setBorder(BorderFactory.createEmptyBorder(50, 10, 50, 30));\n\n\t //Teacher: \"Assign\" JButton\n\t JButton assignB = new JButton(\"Assign\");\n\t assignB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t ListSelectionModel selmodel = classList.getSelectionModel();\n\t int index = selmodel.getMinSelectionIndex();\n\t Class selectedClass = teacherClasses.get(index);\n\t if (index >= 0 && previousClass != selectedClass) {\n\t \t \tselectedClass.addFlashCard(newFlashCard);\n\t \t \tpreviousClass = selectedClass;\n\t }\n\t }\n\t });\n\t rightPanel.add(assignB);\n\t\t\n\t //Teacher: \"Exit\" JButton\n\t JButton exitB = new JButton(\"Exit\");\n\t exitB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t tAssignStudyWindow.dispose();\n\t \ttPortalWindow.dispose();\n\t \tteacherPortalScreen();\n\t }\n\t \t});\n\t rightPanel.add(exitB);\n\t \n\t panel.add(leftPanel);\n\t panel.add(rightPanel);\n\n\t //Display the window\n\t tAssignStudyWindow.add(panel);\n\t tAssignStudyWindow.setVisible(true);\n\t}", "public void changeCanvasToDetailedStudentView(ActionEvent event) {\r\n CanvasSwitcher.loadCanvas(CanvasSwitcher.SECRETARY_STUDENTS_PROFILE);\r\n \r\n //access the controller and call a method\r\n SecretaryStudentProfileCntrl controller = \r\n (SecretaryStudentProfileCntrl)CanvasSwitcher.getController();\r\n controller.initData(tableView.getSelectionModel().getSelectedItem());\r\n }", "public SearchStudent() {\n initComponents();\n setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);\n setVisible(true);\n setLocationRelativeTo(null);\n this.database=database;\n \n }", "public ViewPaymentsEachStudent() {\n initComponents();\n try {\n fillSubjectCombo();\n } catch (SQLException ex) {\n Logger.getLogger(ViewPaymentsEachStudent.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ViewPaymentsEachStudent.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void studentExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: studentID, studentName, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a studentID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a studentID or studentName to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'ENROLL' followed by a studentID, deptID and course_Number to enroll a student\");\n\t\tSystem.out.println(\"Enter 'WITHDRAW' followed by a studentID, deptID and course_Number to withdraw a student in a course\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a studentID or studentName to list all courses student is enrolled in.\");\n\t}", "@Override\r\n\tpublic void login_student() {\n\t\trender(\"student/login.jsp\");\r\n\t}", "public void setStudentName() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// setter method initialized\r\n System.out.println(\"Name Of The Student : \"+studentName);}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel3 = new javax.swing.JPanel();\n back = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n course = new javax.swing.JTextField();\n sem = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n branch = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n studentid = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n sname = new javax.swing.JTextField();\n year = new javax.swing.JTextField();\n DOI = new javax.swing.JTextField();\n bname = new javax.swing.JTextField();\n bookid = new javax.swing.JTextField();\n publisher = new javax.swing.JTextField();\n price = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n search = new javax.swing.JButton();\n jLabel12 = new javax.swing.JLabel();\n returnbook = new javax.swing.JButton();\n DOR = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n back.setText(\"Back\");\n back.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 153)), \"Return Details\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 24), new java.awt.Color(0, 0, 102))); // NOI18N\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel3.setText(\"Course\");\n\n course.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n sem.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel6.setText(\"Semester\");\n\n branch.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel1.setText(\"Student_ID\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel7.setText(\"Book_ID\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel8.setText(\"Name\");\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel10.setText(\"Price\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel2.setText(\"Name\");\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel11.setText(\"Date Of Issue\");\n\n studentid.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel9.setText(\"Publisher\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel5.setText(\"Year\");\n\n sname.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n year.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n DOI.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n bname.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n bookid.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n bookid.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bookidActionPerformed(evt);\n }\n });\n\n publisher.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n price.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n priceActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel4.setText(\"Branch\");\n\n search.setText(\"Search\");\n search.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n searchActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(sem)\n .addComponent(year)\n .addComponent(branch)\n .addComponent(studentid, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sname)\n .addComponent(course))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bookid)\n .addComponent(bname)\n .addComponent(publisher)\n .addComponent(price)\n .addComponent(DOI, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(72, 72, 72)\n .addComponent(search)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(studentid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(bookid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(sname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(bname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(course, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9)\n .addComponent(publisher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(branch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(price, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(DOI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(sem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jLabel12.setText(\"Date Of Return\");\n\n returnbook.setText(\"Return\");\n returnbook.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n returnbookActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(261, 261, 261)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(DOR, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(279, 279, 279)\n .addComponent(returnbook)\n .addGap(18, 18, 18)\n .addComponent(back))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(DOR, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(returnbook)\n .addComponent(back))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 29, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 24, Short.MAX_VALUE))\n );\n\n pack();\n }", "public static void studentsScreenPrompter(int choice){\n makeSpace();\n switch (choice){\n case 1:\n System.out.println(\"You have chosen to add a student\\n\" +\n \"--------------------------------\");\n StudentImplementations.addStudent();\n break;\n case 2:\n System.out.println(\"You have chosen to get a list of students\\n\" +\n \"-----------------------------------------\");\n StudentImplementations.getListOfStudents();\n break;\n case 3:\n System.out.println(\"You have chosen to get information about a student\\n\" +\n \"--------------------------------------------------\");\n StudentImplementations.getInformationAboutStudent();\n break;\n case 4:\n System.out.println(\"You have chosen to remove a student\\n\" +\n \"---------------------------------\");\n StudentImplementations.removeStudent();\n break;\n case 5:\n System.out.println(\"You have chosen to exit\\n\"+\n \"-----------------------\");\n exitToMainScreen();\n break;\n default:\n System.out.println(\"Incorrect choice\\n\" +\n \"----------------\");\n break;\n }\n pressEnter();\n makeSpace();\n System.out.println(\"------------------------\");\n GuiMessages.printStudentSelectionScreen();\n secondScreenPrompter(4);\n\n }", "public void setStudentID(String studentID){\r\n this.studentID.set(studentID);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButtonBooks = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jButtonStudents = new javax.swing.JButton();\n jButtonLending = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButtonBooks.setText(\"BOOKS\");\n jButtonBooks.setActionCommand(\"books\");\n\n jLabel1.setFont(new java.awt.Font(\"Cantarell\", 0, 36)); // NOI18N\n jLabel1.setText(\"APPLICATION TESTING MVC\");\n\n jButtonStudents.setText(\"STUDENTS\");\n jButtonStudents.setActionCommand(\"students\");\n\n jButtonLending.setText(\"LENDING\");\n jButtonLending.setActionCommand(\"lending\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(132, 132, 132)\n .addComponent(jButtonBooks, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(147, 147, 147)\n .addComponent(jButtonStudents, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(204, 204, 204)\n .addComponent(jButtonLending, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(248, 248, 248)\n .addComponent(jLabel1)))\n .addContainerGap(158, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(79, 79, 79)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 227, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButtonLending, javax.swing.GroupLayout.DEFAULT_SIZE, 69, Short.MAX_VALUE)\n .addComponent(jButtonStudents, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonBooks, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(89, 89, 89))\n );\n\n jButtonBooks.getAccessibleContext().setAccessibleName(\"libros\");\n\n pack();\n }", "public void setStudent(Student s) {\r\n student = s;\r\n }", "private void initialize() {\n\t\tfrmAddStudentGroup = new JFrame();\n\t\tfrmAddStudentGroup.getContentPane().setBackground(SystemColor.inactiveCaptionBorder);\n\t\tfrmAddStudentGroup.setBackground(Color.YELLOW);\n\t\tfrmAddStudentGroup.setResizable(false);\n\t\tfrmAddStudentGroup.setTitle(\" Time Table Management System\");\n\t\tfrmAddStudentGroup.setSize(1350, 728);\n\t\tfrmAddStudentGroup.setBounds(0, 0, 1350, 700);\n\t\tfrmAddStudentGroup.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddStudentGroup.getContentPane().setLayout(null);\n\t\t\n\t\tfrmAddStudentGroup.setIconImage(logo);\n\t\tfrmAddStudentGroup.setLocationRelativeTo(null); // this method display the JFrame to center position of a screen\n\t\tfrmAddStudentGroup.setVisible(true);\n\t\t\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 0, 1344, 65);\n\t\tpanel.setBackground(new Color(0, 139, 139));\n\t\tfrmAddStudentGroup.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_10 = new JLabel(\"Advanced\");\n\t\tlblNewLabel_10.setForeground(Color.WHITE);\n\t\tlblNewLabel_10.setFont(new Font(\"Times New Roman\", Font.BOLD, 27));\n\t\tlblNewLabel_10.setBackground(Color.WHITE);\n\t\tlblNewLabel_10.setBounds(753, 13, 179, 29);\n\t\tpanel.add(lblNewLabel_10);\n\t\t/*\n\t\t * //JLabel lblNewLabel = new JLabel(\"Time Table Management System\");\n\t\t * lblNewLabel.setBounds(261, 5, 822, 61); panel.add(lblNewLabel);\n\t\t * lblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 50));\n\t\t * lblNewLabel.setForeground(Color.WHITE);\n\t\t */\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(0, 62, 262, 609);\n\t\tpanel_1.setBackground(new Color(230, 230, 250));\n\t\tfrmAddStudentGroup.getContentPane().add(panel_1);\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\t\n\t\t\n\t\t//home button\n\t\tJButton btnHome = new JButton(\"Home\");\n\t\tbtnHome.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnHome.setIcon(new ImageIcon(home_logo));\n\t\tbtnHome.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Home home = new Home();\n\t\t\t\t//home.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Home();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnHome.setBounds(0, 13, 262, 33);\n\t\tpanel_1.add(btnHome);\n\t\tbtnHome.setForeground(new Color(255, 255, 255));\n\t\tbtnHome.setBackground(new Color(0, 139, 139));\n\t\tbtnHome.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\t\n\t\t\n\t\t//lecture button\n\t\tJButton btnLecturers = new JButton(\"Lecturers\");\n\t\tbtnLecturers.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnLecturers.setIcon(new ImageIcon(lec_logo));\n\t\tbtnLecturers.addActionListener(new ActionListener() {\n\t\t\t\t\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\t//Add_Lecturer add_lecture = new Add_Lecturer();\n\t\t\t\t\t//add_lecture.main(null);\n\t\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\t\tnew Add_Lecturer();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\n\t\tbtnLecturers.setForeground(Color.WHITE);\n\t\tbtnLecturers.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnLecturers.setBackground(new Color(0, 139, 139));\n\t\tbtnLecturers.setBounds(0, 59, 264, 38);\n\t\tpanel_1.add(btnLecturers);\n\t\t\n\t\t\n\t\t//student button\n\t\tJButton btnStudents = new JButton(\"Students\");\n\t\tbtnStudents.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnStudents.setIcon(new ImageIcon(stu_logo));\n btnStudents.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Add_StudentGroup add_st= new Add_StudentGroup();\n\t\t\t\t//add_st.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Add_StudentGroup();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\n\t\t\n\t\tbtnStudents.setForeground(Color.WHITE);\n\t\tbtnStudents.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnStudents.setBackground(new Color(0, 139, 139));\n\t\tbtnStudents.setBounds(0, 108, 264, 38);\n\t\tpanel_1.add(btnStudents);\n\t\t\n\t\t\n\t\t//subject button\n\t\tJButton btnSubjects = new JButton(\"Subjects\");\n\t\tbtnSubjects.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnSubjects.setIcon(new ImageIcon(sub_logo));\n\t\tbtnSubjects.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Add_Subjects add_sub= new Add_Subjects();\n\t\t\t\t//add_sub.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Add_Subjects();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSubjects.setForeground(Color.WHITE);\n\t\tbtnSubjects.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnSubjects.setBackground(new Color(0, 139, 139));\n\t\tbtnSubjects.setBounds(0, 157, 264, 38);\n\t\tpanel_1.add(btnSubjects);\n\t\t\n\t\t//session button\n\t\tJButton btnSessions = new JButton(\"Sessions\");\n\t\tbtnSessions.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnSessions.setIcon(new ImageIcon(session_logo));\n\t\tbtnSessions.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Add_Session add_session= new Add_Session();\n\t\t\t\t//add_session.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Add_Session();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSessions.setForeground(Color.WHITE);\n\t\tbtnSessions.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnSessions.setBackground(new Color(0, 139, 139));\n\t\tbtnSessions.setBounds(0, 206, 264, 38);\n\t\tpanel_1.add(btnSessions);\n\t\t\n\t\t\n\t\t//Tags button\n\t\tJButton btnTags = new JButton(\"Tags\");\n\t\tbtnTags.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnTags.setIcon(new ImageIcon(tag_logo));\n\t\tbtnTags.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Add_Tags add_tag= new Add_Tags();\n\t\t\t\t//add_tag.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Add_Tags();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnTags.setForeground(Color.WHITE);\n\t\tbtnTags.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnTags.setBackground(new Color(0, 139, 139));\n\t\tbtnTags.setBounds(0, 255, 264, 38);\n\t\tpanel_1.add(btnTags);\n\t\t\n\t\t\n\t\t//room button\n\t\tJButton btnRooms = new JButton(\"Rooms\");\n\t\tbtnRooms.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnRooms.setIcon(new ImageIcon(room_logo));\n\t\tbtnRooms.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//ManageSessionsRooms m_rooms= new ManageSessionsRooms ();\n\t\t\t\t//m_rooms.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew ManageSessionsRooms();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnRooms.setForeground(Color.WHITE);\n\t\tbtnRooms.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnRooms.setBackground(new Color(0, 139, 139));\n\t\tbtnRooms.setBounds(0, 304, 264, 38);\n\t\tpanel_1.add(btnRooms);\n\t\t\n\t\t\n\t\t//working days and hours button\n\t\tJButton btnWorkingDays = new JButton(\"Working days & Hours\");\n\t\tbtnWorkingDays.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnWorkingDays.setIcon(new ImageIcon(days_logo));\n\t\tbtnWorkingDays.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//AddWorkingdays w_days= new \tAddWorkingdays();\n\t\t\t\t//w_days.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew AddWorkingdays();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnWorkingDays.setForeground(Color.WHITE);\n\t\tbtnWorkingDays.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnWorkingDays.setBackground(new Color(0, 139, 139));\n\t\tbtnWorkingDays.setBounds(0, 353, 264, 38);\n\t\tpanel_1.add(btnWorkingDays);\n\t\t\n\t\t//location button\n\t\tJButton btnLocations = new JButton(\"Locations\");\n\t\tbtnLocations.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnLocations.setIcon(new ImageIcon(location_logo));\n\t\tbtnLocations.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//ManageLocations m_locations= new ManageLocations();\n\t\t\t\t//m_locations.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew ManageLocations();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnLocations.setForeground(Color.WHITE);\n\t\tbtnLocations.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnLocations.setBackground(new Color(0, 139, 139));\n\t\tbtnLocations.setBounds(0, 402, 264, 38);\n\t\tpanel_1.add(btnLocations);\n\t\t\n\t\t//statics button\n\t\tJButton btnStatistics = new JButton(\"Statistics\");\n\t\tbtnStatistics.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnStatistics.setIcon(new ImageIcon(st_logo));\n\t\tbtnStatistics.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Statistics stat= new Statistics ();\n\t\t\t\t//stat.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Statistics();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnStatistics.setForeground(Color.WHITE);\n\t\tbtnStatistics.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnStatistics.setBackground(new Color(0, 139, 139));\n\t\tbtnStatistics.setBounds(0, 451, 264, 38);\n\t\tpanel_1.add(btnStatistics);\n\t\t\n\t\t//advanced button\n\t\tJButton btnAdvanced = new JButton(\"Advanced\");\n\t\tbtnAdvanced.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnAdvanced.setIcon(new ImageIcon(adv_logo));\n\t\tbtnAdvanced.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Consecutive_sessions a_session= new Consecutive_sessions ();\n\t\t\t\t//a_session.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Consecutive_sessions();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnAdvanced.setForeground(Color.WHITE);\n\t\tbtnAdvanced.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnAdvanced.setBackground(new Color(0, 139, 139));\n\t\tbtnAdvanced.setBounds(0, 500, 264, 38);\n\t\tpanel_1.add(btnAdvanced);\n\t\t\n\t\t//generate button\n\t\tJButton btnTimetableGenerate = new JButton(\"Timetable Generate\");\n\t\tbtnTimetableGenerate.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnTimetableGenerate.setIcon(new ImageIcon(time_logo));\n\t\tbtnTimetableGenerate.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Consecutive_sessions a_session= new Consecutive_sessions ();\n\t\t\t\t//a_session.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Lecturer();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnTimetableGenerate.setForeground(Color.WHITE);\n\t\tbtnTimetableGenerate.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tbtnTimetableGenerate.setBackground(new Color(0, 139, 139));\n\t\tbtnTimetableGenerate.setBounds(0, 549, 264, 38);\n\t\tpanel_1.add(btnTimetableGenerate);\n\t\t\n\t\t\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setLayout(null);\n\t\tpanel_6.setBackground(new Color(230, 230, 250));\n\t\tpanel_6.setBounds(263, 62, 1081, 603);\n\t\tfrmAddStudentGroup.getContentPane().add(panel_6);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tJPanel panel_6_1_1 = new JPanel();\n\t\tpanel_6_1_1.setLayout(null);\n\t\tpanel_6_1_1.setBounds(0, 40, 1081, 38);\n\t\tpanel_6.add(panel_6_1_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Non overlapping Sessions\");\n\t\tlblNewLabel_1_1.setForeground(new Color(0, 128, 128));\n\t\tlblNewLabel_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\n\t\tlblNewLabel_1_1.setBounds(494, 0, 278, 31);\n\t\tpanel_6_1_1.add(lblNewLabel_1_1);\n\t\t\n\t\tJButton btnNewButton_2_1 = new JButton(\"Conseccutive Sessions\");\n\t\tbtnNewButton_2_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n btnNewButton_2_1 .addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Consecutive_sessions();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnNewButton_2_1.setBounds(0, 0, 268, 37);\n\t\tpanel_6.add(btnNewButton_2_1);\n\t\t\n\t\tJButton btnNewButton_2_1_1 = new JButton(\"Parallel Sessions\");\n\t\tbtnNewButton_2_1_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tbtnNewButton_2_1_1 .addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Parallel_sessions();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnNewButton_2_1_1.setBounds(269, 0, 275, 37);\n\t\tpanel_6.add(btnNewButton_2_1_1);\n\t\t\n\t\tJButton btnNewButton_2_1_2 = new JButton(\"Non Overlapping Sessions\");\n\t\tbtnNewButton_2_1_2.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tbtnNewButton_2_1_2 .addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Non_overlappingSessions();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2_1_2.setBounds(540, 0, 275, 37);\n\t\tpanel_6.add(btnNewButton_2_1_2);\n\t\t\n\t\tJButton btnNewButton_2_1_3 = new JButton(\"Not Available Times\");\n\t\tbtnNewButton_2_1_3.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t btnNewButton_2_1_3.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//NotAvailableTime not= new NotAvailableTime();\n\t\t\t\t//not.main(null);\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew NotAvailableTime();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2_1_3.setBounds(813, 0, 268, 37);\n\t\tpanel_6.add(btnNewButton_2_1_3);\n\t\t\n\t\tJSeparator separator_1 = new JSeparator();\n\t\tseparator_1.setBounds(0, 37, 1094, 19);\n\t\tpanel_6.add(separator_1);\n\t\tseparator_1.setForeground(new Color(32, 178, 170));\n\t\tseparator_1.setBackground(new Color(0, 139, 139));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setLayout(null);\n\t\tpanel_7.setBounds(88, 110, 928, 456);\n\t\tpanel_6.add(panel_7);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tJLabel lblNewLabel_4 = new JLabel(\"Session 1\");\n\t\tlblNewLabel_4.setFont(new Font(\"Times New Roman\", Font.BOLD, 15));\n\t\tlblNewLabel_4.setBounds(52, 29, 80, 21);\n\t\tpanel_7.add(lblNewLabel_4);\n\t\t\n\t\tcomboBox_ps = new JComboBox();\n\t\tcomboBox_ps.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tcomboBox_ps.setModel(new DefaultComboBoxModel(new String[] {\"------------select session_---------------\"}));\n\t\tcomboBox_ps.setBounds(156, 29, 723, 33);\n\t\tpanel_7.add(comboBox_ps);\n\t\t\n\t\tfillsesions();\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//Add non overlapping sessions\n\t\tJButton btnNewButton_2 = new JButton(\"ADD\");\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tString session=comboBox_ps.getSelectedItem().toString();\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 try {\n\t\t\t\t\t Connection con = DbConnection.connect();\n\n\t String query = \"INSERT INTO nonOverlapping values(null, '\" + session + \"')\";\n\n\t Statement sta = con.createStatement();\n\t int x = sta.executeUpdate(query);\n\t if (x == 0) {\n\t \tJOptionPane.showMessageDialog(null, \" This is alredy exist\",\"Alert\",JOptionPane.WARNING_MESSAGE);\n\t\t \n\t } else {\n\t \t\n\t \tJLabel label = new JLabel(\"Non overlapping Sessions added Sucessfully!\");\n\t \t\t\t\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t \t\t\t\t\tJOptionPane.showMessageDialog(null, label);\n\t \t\t\t\t\t\n\t \t\t\t\t\trefreshTable();\n\t }\n\t con.close();\n\t } catch (Exception exception) {\n\t \t\n\t \t System.out.println(\"xxxxxxxxxxxxxxxxxxxxxxx\");\n\t \t\n\t }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnNewButton_2.setForeground(Color.WHITE);\n\t\tbtnNewButton_2.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\n\t\tbtnNewButton_2.setBackground(new Color(0,139,139));\n\t\tbtnNewButton_2.setBounds(520, 122, 167, 40);\n\t\tpanel_7.add(btnNewButton_2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//clear input feilds\n\t\tJButton btnNewButton_3 = new JButton(\"CLEAR\");\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tcomboBox_ps.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tbtnNewButton_3.setForeground(Color.WHITE);\n\t\tbtnNewButton_3.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\n\t\tbtnNewButton_3.setBackground(new Color(0, 139, 139));\n\t\tbtnNewButton_3.setBounds(715, 122, 164, 40);\n\t\tpanel_7.add(btnNewButton_3);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//table view\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(52, 244, 827, 151);\n\t\tpanel_7.add(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setRowHeight(30);\n\t\t\n\t\t\n\t\t//table header\n\t\tJTableHeader h = table.getTableHeader();\n\t\th.setBackground(new Color(153,153,153));\n\t\th.setForeground(Color.WHITE);\n\t\th.setFont(new Font(\"Times New Roman\", Font.BOLD, 17));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\ttable.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\ttable.setModel(new DefaultTableModel(\n\t\t\tnew Object[][] {\n\t\t\t},\n\t\t\tnew String[] {\n\t\t\t}\n\t\t));\n\t\tscrollPane.setViewportView(table);\n\t\ttry {\n\t\t\tConnection con = DbConnection.connect();\n\t\t\t\n\t\t\tString query=\"select * from nonOverlapping \";\n\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\tResultSet rs=pst.executeQuery();\n\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tTableColumnModel columnModel = table.getColumnModel();\n\t\t\tcolumnModel.getColumn(0).setPreferredWidth(6);\n\t\t\tcolumnModel.getColumn(1).setPreferredWidth(700);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//refreshTable();\n\t\t\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\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\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 Secondpage6() {\n initComponents();\n }", "public StudentOptionsFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n lblUsername.setText(\"Hello \"+UserProfile.getUsername());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n register = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n newadmin = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n qualification = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n address = new javax.swing.JTextArea();\n studentid = new javax.swing.JTextField();\n contactno = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n intake = new javax.swing.JComboBox();\n jLabel9 = new javax.swing.JLabel();\n year = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n zscore = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n gender = new javax.swing.JComboBox();\n fullname = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n stream = new javax.swing.JComboBox();\n jLabel14 = new javax.swing.JLabel();\n islandrank = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n faculty = new javax.swing.JComboBox();\n jLabel22 = new javax.swing.JLabel();\n email = new javax.swing.JTextField();\n jLabel23 = new javax.swing.JLabel();\n institute = new javax.swing.JTextField();\n passedyear = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n course = new javax.swing.JComboBox();\n mainmenu = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n indexno = new javax.swing.JTextField();\n birthdate = new org.jdesktop.swingx.JXDatePicker();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(0, 204, 204));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Intake\");\n\n register.setBackground(new java.awt.Color(0, 0, 255));\n register.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n register.setText(\"Register\");\n register.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n register.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registerActionPerformed(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(153, 153, 153));\n\n newadmin.setFont(new java.awt.Font(\"Rockwell\", 1, 24)); // NOI18N\n newadmin.setForeground(new java.awt.Color(0, 0, 102));\n newadmin.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n newadmin.setText(\"New Postgraduate Student intake\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(80, 80, 80)\n .addComponent(newadmin, javax.swing.GroupLayout.PREFERRED_SIZE, 690, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(172, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(newadmin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setText(\"Contact No\");\n\n qualification.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n qualificationActionPerformed(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel7.setText(\"Address\");\n\n address.setColumns(20);\n address.setRows(5);\n jScrollPane1.setViewportView(address);\n\n studentid.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n studentidActionPerformed(evt);\n }\n });\n\n contactno.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n contactnoActionPerformed(evt);\n }\n });\n contactno.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n contactnoKeyTyped(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel8.setText(\"E-mail \");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setText(\"Full Name\");\n\n intake.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n intake.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"February\", \"July\" }));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel9.setText(\"A/L Stream\");\n\n year.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n yearActionPerformed(evt);\n }\n });\n year.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n yearKeyTyped(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel10.setText(\"Student_ID\");\n\n zscore.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n zscoreActionPerformed(evt);\n }\n });\n zscore.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n zscoreKeyTyped(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel11.setText(\"Birth Date\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel12.setText(\"Year\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel6.setText(\"Gender\");\n\n gender.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n gender.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Male\", \"Female\" }));\n gender.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n genderActionPerformed(evt);\n }\n });\n\n fullname.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n fullnameActionPerformed(evt);\n }\n });\n fullname.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n fullnameKeyTyped(evt);\n }\n });\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel13.setText(\"Z-Score\");\n\n stream.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n stream.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Maths Stream\", \"Bio Stream\", \"Commerce Stream\", \"technology Stream\", \" \", \" \" }));\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel14.setText(\"Island Rank\");\n\n islandrank.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n islandrankActionPerformed(evt);\n }\n });\n islandrank.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n islandrankKeyTyped(evt);\n }\n });\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel21.setText(\"Faculty\");\n\n faculty.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n faculty.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"School of Business\", \"School of Computing\", \" \" }));\n faculty.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n facultyItemStateChanged(evt);\n }\n });\n faculty.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n facultyActionPerformed(evt);\n }\n });\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel22.setText(\"Qualification\");\n\n email.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emailActionPerformed(evt);\n }\n });\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel23.setText(\"Institute\");\n\n institute.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n instituteActionPerformed(evt);\n }\n });\n\n passedyear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n passedyearActionPerformed(evt);\n }\n });\n passedyear.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n passedyearKeyTyped(evt);\n }\n });\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel24.setText(\"Year\");\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel25.setText(\"Course\");\n\n course.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n course.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"MSc in Marketing\", \"MSc in Management\" }));\n course.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n courseActionPerformed(evt);\n }\n });\n\n mainmenu.setBackground(new java.awt.Color(0, 0, 255));\n mainmenu.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n mainmenu.setText(\"MainMenu\");\n mainmenu.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n mainmenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mainmenuActionPerformed(evt);\n }\n });\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel15.setText(\"Index No\");\n\n indexno.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n indexnoActionPerformed(evt);\n }\n });\n indexno.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n indexnoKeyTyped(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(qualification, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(institute, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)\n .addComponent(email)\n .addComponent(studentid)\n .addComponent(fullname)\n .addComponent(indexno)\n .addComponent(birthdate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(104, 104, 104)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(contactno)\n .addComponent(gender, 0, 152, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(passedyear, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(stream, 0, 173, Short.MAX_VALUE)\n .addComponent(zscore)\n .addComponent(islandrank))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(faculty, javax.swing.GroupLayout.Alignment.LEADING, 0, 214, Short.MAX_VALUE)\n .addComponent(course, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(register)\n .addGap(44, 44, 44)\n .addComponent(mainmenu)\n .addGap(53, 53, 53))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(173, 173, 173)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(intake, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(year, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(intake, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(fullname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(contactno, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(studentid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(gender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(birthdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(jLabel15))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(indexno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(15, 15, 15))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(zscore, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(stream, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(islandrank, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(faculty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(course, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel22)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(qualification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel23)\n .addComponent(institute, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24)\n .addComponent(passedyear, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(register)\n .addComponent(mainmenu))\n .addContainerGap())\n );\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 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 942, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public academic() {\n initComponents();\n }", "private StudentController() {\n\t\tstudents = new ArrayList<Student>();\n\t\tinflateFromFile();\n\t}", "public StudentInteraction() {\n//\t\tsuper();\n\t\tsfCon = new StudentFunctionalityController();\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Home();\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void setStudentPassword() {\n\t\tnew AbstractStudentPasswordSetDialgoTest().setVisible(true);\n\t\t\n\t}", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtStudentName = new javax.swing.JTextField();\n txtBatch = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblStudents = new javax.swing.JTable();\n btnClear = new javax.swing.JButton();\n btnSave = new javax.swing.JButton();\n btnDelete = new javax.swing.JButton();\n btnDashboard = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Student Name:\");\n\n jLabel2.setText(\"Batch:\");\n\n tblStudents.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][]\n {\n\n },\n new String []\n {\n \"ID\", \"Name\", \"Batch\"\n }\n ));\n tblStudents.addMouseListener(new java.awt.event.MouseAdapter()\n {\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n tblStudentsMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tblStudents);\n\n btnClear.setText(\"Clear\");\n btnClear.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnClearActionPerformed(evt);\n }\n });\n\n btnSave.setText(\"Save\");\n btnSave.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnSaveActionPerformed(evt);\n }\n });\n\n btnDelete.setText(\"Delete\");\n btnDelete.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnDeleteActionPerformed(evt);\n }\n });\n\n btnDashboard.setText(\"Dashboard\");\n btnDashboard.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnDashboardActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel3.setText(\"Register Students\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(txtBatch)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnDashboard, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnClear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(txtStudentName, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnSave, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnDelete, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 85, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 541, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtStudentName, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtBatch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSave, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnDashboard, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnClear, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(30, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "private void onCreateSuccessStudent(){\n\n // check for if student or teacher\n Intent intent = new Intent(this, ClubHubStudentActivity.class);\n startActivity(intent);\n }", "public void setStudentID(String studentID) {\r\n\t\tthis.studentID = studentID;\r\n\t}", "public void newStudentButtonPushed() {\r\n String firstName = firstNameTextField.getText();\r\n String lastName = lastNameTextField.getText();\r\n LocalDate birthdayDate = birthdayDatePicker.getValue();\r\n \r\n // Firts Name Validation\r\n if (firstName != null && (firstName.length() < MIN_CHARS)) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"First Name is not correct \"\r\n + \"(empty name or shorter that three characters)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Last Name Validation\r\n if (lastName != null && (lastName.length() < MIN_CHARS)) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"Last Name is not correct \"\r\n + \"(empty name or shorter that three characters)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Date Validation\r\n if (birthdayDate == null || birthdayDate.isAfter(\r\n LocalDate.now().minusYears(MIN_YEARS_OLD))) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"Date is not correct \"\r\n + \"(empty date or student < 17 years old)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Construct new student\r\n Student newStudent = new Student(firstName, lastName, birthdayDate);\r\n \r\n try {\r\n newStudent = covidMngrService.addStudent(newStudent);\r\n \r\n // Get all the items from the table as a list, then add the \r\n // new student to the list\r\n tableView.getItems().add(newStudent);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(StudentMainCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }", "protected void do_mntmStudentIHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRStudentHelpFrame studentHelpFrame = new DelVecchioMCSRStudentHelpFrame();\n\t\tstudentHelpFrame.setVisible(true);\n\t\t\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tGeneralFrame.GFrame.changePanel(new MainScreenTeacher(), true);\r\n\t}", "public StartScreen() {\n initComponents();\n }", "public void setStudentId(int studentId) {\n\t\tStudentId = studentId;\n\t}", "public void viewStudent(ActionEvent actionEvent) throws IOException {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"StudentCard.fxml\"));\n Parent activitiesView = loader.load();\n Scene activitiesScene = new Scene(activitiesView);\n StudentCardController controller = loader.getController();\n controller.intDatas(newStudent);\n controller.intData(studentList);\n Stage window = (Stage)((Node)actionEvent.getSource()).getScene().getWindow();\n window.setScene(activitiesScene);\n window.setTitle(\"View Student\");\n window.show();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//runs when clicking open\n\t\tif(e.getSource() == item)\n\t\t{\n\t\t\t//empties the jlist\n\t\t\tstudentList.removeAll();\n\t\t\tfile.showOpenDialog(null);\n\t\t\t\n\t\t\t\n\t\t\tScanner inputScanner = null;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//selects file\n\t\t\ttry {\n\t\t\t\tinputScanner = new Scanner(new FileReader(file.getSelectedFile()));\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//reads file\n\t\t\tmyStudent.Read(inputScanner);\n\t\t\t\n\t\t\t//sets the jframe variables\n\t\t\tsFirstName.setText(myStudent.getFirstName());\n\t\t\tsLastName.setText(myStudent.getLastName());\n\t\t\tsCredits.setText(Integer.toString(myStudent.getCredits()));\n\t\t\t\n\t\t\t//loop to add items into jlist\n\t\t\tfor(int i = 0; i < myStudent.GetActivityCount(); i++)\n\t\t\t{\n\t\t\t\tString enumS, hourS, minuteS, full;\n\t\t\t\tActivity a = new Activity();\n\t\t\t\t\n\t\t\t\ta = myStudent.GetActivity(i);\n\t\t\t\t\n\t\t\t\tenumS = a.getType().name();\n\t\t\t\thourS = Integer.toString(a.getTime().getHours());\n\t\t\t\tminuteS = Integer.toString(a.getTime().getMinutes());\n\t\t\t\tfull = enumS + \",\" + hourS + \",\" + minuteS;\n\t\t\t\t\n\t\t\t\tlistModel.addElement(full);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\tmyStudent.Show();\t\n\t\t\t\n\t\t} \n\t\t//runs when clicking save\n\t\telse if(e.getSource() == item2)\n\t\t{\n\t\t\t\n\t\t\t //System.out.println(\"firstname:\" + myStudent.getFirstName());\n\t\t\t\n\t\t\t\tfile.showSaveDialog(null);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//selects file you want to print to\n\t\t\t\tPrintStream outputStudent = null;\n\t\t\t\ttry {\n\t\t\t\t\toutputStudent = new PrintStream(file.getSelectedFile());\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//writes to file\n\t\t\t\t\n\t\t\t\tmyStudent.Write(outputStudent);\n\t\t\t\t\n\t\t} \n\t\t//exits program\n\t\telse if(e.getSource() == item3)\n\t\t{\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t//used to add an activity\n\t\telse if(e.getSource() == addActivityButton)\n\t\t{\n\t\t\t//local variables\n\t\t\tString type;\n\t\t\tString enumS, hourS, minuteS, full;\n\t\t\tActivity a = new Activity();\n\t\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//selects new enum type\n\t\t\ttype = (String) activityCombo.getSelectedItem();\n\t\t\ta.setType(ActivityEnum.valueOf(type));\n\t\t\t\n\t\t\t\n\t\t\tTimeSpent time = new TimeSpent();\n\t\t\t\n\t\t\t//sets hours and minutes\n\t\t\ttime.setHours(Integer.parseInt(aHours.getText()));\n\t\t\ttime.setMinutes(Integer.parseInt(aMinutes.getText()));\n\t\t\t\n\t\t\ta.setTime(time);\n\t\t\t\n\t\t\t\n\t\t\t//adds the activity\n\t\t\tmyStudent.addActivity(a);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tenumS = a.getType().name();\n\t\t\thourS = Integer.toString(a.getTime().getHours());\n\t\t\tminuteS = Integer.toString(a.getTime().getMinutes());\n\t\t\tfull = enumS + \",\" + hourS + \",\" + minuteS;\n\t\t\t//adds to jlist\n\t\t\tlistModel.addElement(full);\n\t\t\t\n\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void StudentMenu(Student me) throws Exception {\n\n\t\tint choice = 0;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nStudent Menu:\");\n\t\t\tSystem.out.println(\"1. Add course\");\n\t\t\tSystem.out.println(\"2. Drop course\");\n\t\t\tSystem.out.println(\"3. Swap index\");\n\t\t\tSystem.out.println(\"4. Change index\");\n\t\t\tSystem.out.println(\"5. Check vacancy\");\n\t\t\tSystem.out.println(\"6. Print enrolled courses\");\n\t\t\tSystem.out.println(\"7. Print timetable\");\n\t\t\tSystem.out.println(\"8. Reset Password\");\n\t\t\tSystem.out.println(\"9. Log out\");\n\t\t\tSystem.out.println(\"Enter choice: \");\n\t\t\t\t\n\t\t\tchoice = sc.nextInt();\n\t\t\tsc.nextLine();\n\n\t\t\tswitch (choice) {\n\t\t\t\tcase 1:\n\t\t\t\t\tme.askAddModule();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tme.askDropModule(true);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tme.swapIndex();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tme.changeIndex();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tErrorHandling.checkVacancy();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tme.printModules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7: \n\t\t\t\t\tme.printTimetable(); \n\t\t\t\t\tbreak;\n\t\t\t\tcase 8: \n\t\t\t\t\tme.resetPassword(); \n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDataBase.save(\"index\");\n\t\t\tDataBase.save(\"student\");\n\t\t} while (choice < 9);\n\tSystem.out.println(\"Logging out of student\");\n\t}" ]
[ "0.676296", "0.672989", "0.66696453", "0.666433", "0.6645715", "0.6645183", "0.659363", "0.6593212", "0.64841765", "0.6467939", "0.6462454", "0.64414215", "0.64192086", "0.6397061", "0.6373996", "0.63536084", "0.6271817", "0.6255798", "0.62250364", "0.6216007", "0.6210321", "0.62076044", "0.6177397", "0.6170282", "0.6169441", "0.61475116", "0.6137292", "0.6131283", "0.6104238", "0.6096243", "0.60850424", "0.60780644", "0.60761416", "0.60561216", "0.60532993", "0.60487956", "0.60468495", "0.60403204", "0.6030868", "0.60293525", "0.60176635", "0.6009621", "0.6009202", "0.60038084", "0.5993263", "0.59929776", "0.5970215", "0.5938481", "0.59216595", "0.5920318", "0.59002924", "0.58806336", "0.58778626", "0.58597946", "0.58565253", "0.5855121", "0.58550173", "0.58440685", "0.583512", "0.58265966", "0.58016795", "0.58016217", "0.5794478", "0.5791508", "0.5781282", "0.5772767", "0.5771129", "0.57648224", "0.57634515", "0.57460624", "0.5743181", "0.5739791", "0.5722539", "0.57213664", "0.5715249", "0.5708636", "0.5705507", "0.5698326", "0.56979626", "0.56978816", "0.5686906", "0.56859785", "0.56706506", "0.5670545", "0.56615716", "0.5658409", "0.56582284", "0.56559193", "0.56533915", "0.5650942", "0.56423646", "0.5640777", "0.5639501", "0.5636807", "0.56362784", "0.5633562", "0.56302106", "0.562614", "0.56149185", "0.56082815" ]
0.7299105
0
GENLAST:event_btn_BackActionPerformed Opend the Help Screen
private void btn_HelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_HelpActionPerformed // go to help screen SIHS = new HelpScreen(value); SIHS.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void HelpActionPerformed(ActionEvent e) {\n\t\tthis.setVisible(false);\n\t\tHelp frame = new Help();\n\t\tframe.UpFrame=this;\n\t\tframe.setVisible(true);\n\t}", "JButton backButton() {\r\n JButton button = new JButton(\"Back\");\r\n Font buttonsFront = new Font(\"Serif\", Font.PLAIN, 17);\r\n\r\n button.setFont(buttonsFront);\r\n button.setPreferredSize(new Dimension(80,30));\r\n\r\n button.setToolTipText(\"return formal page\");\r\n\r\n button.addActionListener(new ActionListener(){\r\n public void actionPerformed(ActionEvent e) {\r\n // Get text and check input.\r\n Object[] options ={ \"Yes\", \"No\" };\r\n //yes = 0 no = 1\r\n int m = JOptionPane.showOptionDialog(null, \"Go Back?\", \"tips\",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\r\n\r\n if (m == 0)\r\n {\r\n frame.dispose();\r\n new init();\r\n }\r\n }\r\n });\r\n return button;\r\n }", "private void setupBackButton(){\n\t\tImageIcon back_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"back.png\");\n\t\tJButton back_button = new JButton(\"\", back_button_image);\n\t\tback_button.setBorderPainted(false);\n\t\tback_button.setContentAreaFilled(false);\n\t\tback_button.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tboolean leave_result = askToLeave();\n\t\t\t\tif (leave_result){\n\t\t\t\t\t//no point speaking any more words if exiting\n\t\t\t\t\tparent_frame.getFestival().emptyWorkerQueue();\n\t\t\t\t\tparent_frame.changePanel(PanelID.MainMenu);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tback_button.addMouseListener(new VoxMouseAdapter(back_button,null));\n\t\tadd(back_button);\n\t\tback_button.setBounds(1216, 598, 100, 100);\n\t}", "private void jMenu_HelpTabMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu_HelpTabMouseClicked\n DigPopGUIUtilityClass.loadDefaultHelpGUIByScreenName(SCREEN_NAME);\n }", "private void backActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backActionPerformed\n // TODO add your handling code here:\n MainMenu m = new MainMenu();\n this.setVisible(false);\n m.setVisible(true);\n m.setLocationRelativeTo(null);\n }", "private void btn_BackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_BackActionPerformed\n // go back to database access screen\n SS.StudentScreenPopulate();\n SS.setVisible(true);\n this.setVisible(false);\n\n }", "@Override\n\tpublic void goToBack() {\n\t\tif(uiHomePrestamo!=null){\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(constants.prestamos());\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\n\t\t}else if(uiHomeCobrador!=null){\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tuiHomeCobrador.getContainer().showWidget(2);\n\t\t\tuiHomeCobrador.getUiClienteImpl().cargarClientesAsignados();\n\t\t\tuiHomeCobrador.getUiClienteImpl().reloadTitleCobrador();\n\t\t}\n\t}", "private void setupHelpButton() {\n\t\tImageIcon help_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"help.png\");\n\t\tJButton help_button = new JButton(\"\",help_button_image);\n\t\thelp_button.setBorderPainted(false);\n\t\thelp_button.setBounds(1216, 24, 100, 100);\n\t\thelp_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tHelp help_frame=new Help(PanelID.Quiz);\n\t\t\t\thelp_frame.setVisible(true);\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\thelp_button.addMouseListener(new VoxMouseAdapter(help_button,null));\n\t\tadd(help_button);\n\t}", "private void backActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backActionPerformed\n this.setVisible(false);\n MainMenu.adminMainMenu.setVisible(true);\n}", "private void mnHelpActionPerformed(java.awt.event.ActionEvent evt) {\n\n }", "public void helpAboutAction() {\n new HelpAbout(this.parentFrame);\n }", "@Override\n\tprotected void handleHelp(ClickEvent event) {\n\t\t\n\t}", "public void GoBack(){\n if (prev_hostgui != null){\n this.setVisible(false);\n prev_hostgui.setVisible(true);\n } else{\n this.setVisible(false);\n prev_guestgui.setVisible(true);\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "void setActionBtnBack(LinkActionGUI mainAction, LinkActionGUI linkAction);", "private void backActionPerformed(ActionEvent e) {\r\n ctr_pres.principal();\r\n setVisible(false);\r\n }", "protected void handleHelp(ActionEvent event) {\n\t}", "public void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt) {\n\n HelpWindow helpWindow = new HelpWindow(this);\n helpWindow.setVisible(true);\n\n\n // HTMLDisplay helpdisplay = new HTMLDisplay( str, \"TerpPaint Help\" );\n //\t helpdisplay.setVisible( true );\n // System.out.println(\"help topics\");\n }", "public void backMenu() {\n openWindowGeneral(\"/gui/administrator/fxml/FXMLMenuAdministrator.fxml\", btnCancel);\n }", "public void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tMainMenu frame = new MainMenu();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton to go back\");\r\n\r\n\t\t\t}", "public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n \"\\n\\n- Double clicks on a row to see the detailed information\", mainStage);\n }", "@Override\n\tpublic void backButton() {\n\n\t}", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n }", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "@Override\n public void onBackPressed() {\n \tshowDialog(DLG_BUTTONS);\n }", "private void backBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_backBtnMouseClicked\n Stock_Menu obj = new Stock_Menu();\n obj.setVisible(true);\n this.dispose();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent ae) {\n\t\tString ActionPerformed = ae.getActionCommand();\n\t\tif(ActionPerformed.equals(\"BACK\"))\n\t\t{\n\t\t\tdispose();\n\t\t\tnew mainframe(pna,ppwsd);\n\t\t}\n\t}", "private void addBackButton() {\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlayer.show(userViewPort, \"WebBrowser\");\n\t\t\t\tmenuBar.remove(backButton);\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t});\n\t\tmenuBar.add(backButton);\n\t\tmenuBar.revalidate();\n\t}", "@Override\n\tprotected void titleBtnBack() {\n\t\tsuper.titleBtnBack();\n\t}", "protected void do_mntmParentHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRParentHelpFrame ParentHelpFrame = new DelVecchioMCSRParentHelpFrame();\n\t\tParentHelpFrame.setVisible(true);\n\t}", "private void showBack() {\n Drawable buttonDrawableBack = new TextureRegionDrawable(new TextureRegion((Texture)game.getAssetManager().get(\"buttonBack.png\")));\n BackButton = new ImageButton(buttonDrawableBack);\n BackButton.setSize(MENU_WIDTH/7,MENU_HEIGHT/7);\n BackButton.setPosition(7*MENU_WIDTH/8 - BackButton.getWidth()/2, MENU_HEIGHT/7 -DELTA_Y_MENU);\n stage.addActor(BackButton);\n }", "public void goBack() {\n goBackBtn();\n }", "private void configureBackButton() {\n LinearLayout layoutTop = (LinearLayout) findViewById(R.id.title);\n layoutTop.bringToFront();\n\n Button button = (Button) findViewById(R.id.backButton);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n finish();\n }\n });\n }", "private void setupBack() {\n\t\tmakeButton(\"Back\", (ActionEvent e) -> {\n\t\t\tchangeView(\"login\");\n\t\t});\n\t}", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "public InstructionPanel(){ //initializes the instructionpanel variables\n\t\t\tsetLayout(null);\n\t\t\tJButton b = new JButton (\"back\");\n\t\t\tb.setBounds(350,550,80, 30);\n\t\t\tadd(b);\n\t\t\tb.addActionListener(new Quitter());\n\t\t\t\n\t\t}", "void actionBack();", "public void backbutton(ActionEvent event) throws Exception{\n\t\t\n\t\tcustomermainpage main = new customermainpage();\n\t\tmain.setgui();\n\t}", "private void jButton_BackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_BackActionPerformed\n saveToFile();\n new StepThree(this.digPopGUIInformation).setVisible(true);\n dispose();\n }", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }", "protected void do_mntmStudentIHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRStudentHelpFrame studentHelpFrame = new DelVecchioMCSRStudentHelpFrame();\n\t\tstudentHelpFrame.setVisible(true);\n\t\t\n\t}", "protected void backButtonMouseClicked(java.awt.event.MouseEvent evt) {\r\n\tConnect c = new Connect(currentFile);\r\n\tc.setLocationRelativeTo( this );\r\n\tc.setVisible(true);\r\n\tthis.setVisible(false);\r\n\tthis.dispose();\r\n }", "public void actionPerformed(ActionEvent e) {\n Object[] options ={ \"Yes\", \"No\" };\r\n //yes = 0 no = 1\r\n int m = JOptionPane.showOptionDialog(null, \"Go Back?\", \"tips\",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\r\n\r\n if (m == 0)\r\n {\r\n frame.dispose();\r\n new init();\r\n }\r\n }", "public void actionPerformed (ActionEvent e) {\n if(e.getActionCommand().equals(\"Back\")) {\r\n OptionsPage f1 = new OptionsPage(strUser);\r\n f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f1.setSize(500, 500 ); \r\n f1.setVisible(true); \r\n this.dispose(); \r\n }\r\n //open the main page\r\n\tif(e.getActionCommand().equals(\"Log Out\")) {\r\n MainPage f1 = new MainPage();\r\n f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f1.setSize(500, 500 ); \r\n f1.setVisible(true); \r\n this.dispose(); \r\n }\r\n }", "protected void ACTION_B_BACK(ActionEvent arg0) {\n\t\tthis.setVisible(false);\r\n\t\tnew SnifferWindow().setVisible(true);\r\n\t}", "public void actionPerformedBack(ActionListener back) {\n btnBack.addActionListener(back);\n }", "private JButton getJButton_back() {\r\n\t\tif (jButton_back == null) {\r\n\t\t\tjButton_back = new JButton();\r\n\t\t\tjButton_back.setLocation(new Point(94, 480));\r\n\t\t\tjButton_back.setText(\"Back\");\r\n\t\t\tjButton_back.setSize(new Dimension(208, 34));\r\n\t\t\tjButton_back.addActionListener(this);\r\n\t\t}\r\n\t\treturn jButton_back;\r\n\t}", "@Override\n public void onBackPressed() {\n showEndShiftDialog();\n }", "public void onBackPressed() {\n AlertDialog.Builder ald=new AlertDialog.Builder(Home.this);\r\n ald.setTitle(\"Do you want to Exit\")\r\n .setPositiveButton(\" YES \", new DialogInterface.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface arg0, int arg1) {\r\n Intent in=new Intent(Intent.ACTION_MAIN);\r\n in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n in.addCategory(Intent.CATEGORY_HOME);\r\n startActivity(in);\r\n }\r\n })\r\n .setNegativeButton(\" NO \", new DialogInterface.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface arg0, int arg1) {\r\n\r\n }\r\n });\r\n\r\n AlertDialog al=ald.create();\r\n al.show();\r\n\r\n }", "private void backPageActionPerformed(java.awt.event.ActionEvent evt) {\n studentsEntry panel = new studentsEntry();\n panel.setVisible(true);\n this.setVisible(false);\n }", "public void back() {\n Views.goBack();\n }", "private void actionOnClicHelp() {\r\n\t\ttry {\r\n\t\t\tGUIGeneralMethods.openWebPage(new URL(Constants.C_HELPING_URL));\r\n\t\t} catch (URISyntaxException | IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(frame, Constants.C_ERROR_WHILE_BROWSING_HELP, Constants.C_ERROR_DIALOG_TITLE,\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE); \r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "public void handleHelp() {\n if (!helpWindow.isShowing()) {\n helpWindow.show();\n } else {\n helpWindow.focus();\n }\n }", "@Override\n public void backButton() {\n\n\n }", "public void onBackPressed() {\n if(about_vf.getDisplayedChild() == 0) {\n AlertDialog.Builder builder = new AlertDialog.Builder(PreCameraAboutActivity.this);\n builder.setMessage(\"All changes on this page will be lost, would you still like to go back to the home page?\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(PreCameraAboutActivity.this, PreCameraActivity.class));\n finish();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n builder.create();\n builder.show();\n }\n else {\n about_vf.setInAnimation(getApplicationContext(), R.anim.slide_in_from_left);\n about_vf.setOutAnimation(getApplicationContext(), R.anim.slide_out_to_right);\n if(about_vf.getDisplayedChild() == 1) {\n direction.setText(\"From\");\n who.setText(\"Homeless individual\");\n }\n else {\n direction.setText(\"To\");\n who.setText(\"Loved one\");\n next.setText(\"Next\");\n }\n about_vf.showPrevious();\n }\n }", "public void BackBtn(MouseEvent event) {\n\t}", "public static void goBack() {\n\t\tif (touchGUI.getTouchModel().getGuiModel().isDialogShown()) {\n\t\t\ttouchGUI.getTouchModel().getGuiModel().closeActiveDialog();\n\t\t} else {\n\t\t\t// else go to last view in history\n\t\t\tif (!appWidget.goBack()) {\n\t\t\t\t// if history is empty -> close app\n\t\t\t\tphoneGap.exitApp();\n\t\t\t}\n\t\t}\n\n\t\tlaf.updateUndoSaveButtons();\n\t\ttouchGUI.updateViewSizes();\n\t}", "private void exitDiaButActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitDiaButActionPerformed\n helpBox.setVisible(false);\n }", "public void back(){\n\t\tswitch(state){\n\t\tcase LOGINID:\n\t\t\tbreak; //do nothing, already at top menu\n\t\tcase LOGINPIN:\n\t\t\tloginMenu();\n\t\t\tbreak;\n\t\tcase TRANSACTION:\n\t\t\tbreak; //do nothing, user must enter the choice to log out\n\t\tcase DEPOSIT:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase DEPOSITNOTIFICATION:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAW:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase BALANCE:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAWALNOTIFICATION:\n\t\t\tbreak; //do onthing, user must press ok\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}", "public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}", "public void click_defineSetupPage_backBtn() throws InterruptedException {\r\n\t\tclickOn(DefineSetup_backBtn);\r\n\t\tThread.sleep(1000);\r\n\t}", "private JMenuItem getMniBack() {\r\n\t\tif (mniBack == null) {\r\n\t\t\tmniBack = new JMenuItem();\r\n\t\t\tmniBack.setText(\"Back\");\r\n\t\t\tmniBack.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tbtnBack.doClick();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn mniBack;\r\n\t}", "@FXML\r\n private void handleBackButton() {\r\n\r\n CommonFunctions.showAdminMenu(backButton);\r\n\r\n }", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n showQuitDialog();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tg.printHelp(\"OthelloHelp.txt\");\n\t}", "private void backBtnActionPerformed(java.awt.event.ActionEvent evt) {\n backButtonFunction();\n }", "@FXML\r\n\tprivate void backButton(ActionEvent event) throws Exception {\r\n\t\tconnectionmain.showTch_ManMain();\r\n\t}", "private void backToMenu()\n\t{\n\t\t//switch to menu screen\n\t\tgame.setScreen(new MenuScreen(game));\n\t}", "@Override\n public void onBackPressed() {\n \t\n \tif(this.backIndex==0)\n \t{\n \t\tif(this.presentFeatureCode.equals(\"MAINMENU\"))\n \t\t{\n \t\t\tAlertDialog.Builder adb_4=new AlertDialog.Builder(Home.this);\n \t Log.v(\"Track21\", \"Clicked1\");\n \t adb_4.setTitle(\"Exit\");\n \t Log.v(\"Track31\", \"Clicked2\");\n \t adb_4.setMessage(\"Log Out?\");\n \t adb_4.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n \t {\n \t public void onClick(DialogInterface paramDialogInterface, int paramInt)\n \t {\n \t \t Intent myIntent = new Intent(Home.this, SignIn.class);\n \t startActivity(myIntent);\n \t finish();\n \t }\n \t });\n \t adb_4.setNegativeButton(\"No\", new DialogInterface.OnClickListener()\n \t {\n \t public void onClick(DialogInterface paramDialogInterface, int paramInt)\n \t {\n \t \t /*Intent myIntent = new Intent(SetUp.this, SetUp.class);\n \t SetUp.this.startActivity(myIntent);\n \t finish();*/\n \t paramDialogInterface.dismiss();\n \t Log.v(\"backIndex in Home cancelled Going Back =\", \"\" + backIndex);\n \t }\n \t });\n \t \n \t adb_4.show();\n \t\t}\n \t\telse\n \t\t{\n\t \t\tIntent intent_=new Intent(Home.this, Home.class);\n\t \t intent_.putExtra(\"keyy\", Home.this.keyy);\n\t\t startActivity(intent_);\n\t\t finish();\n \t\t}\n \t}\n \telse\n \t{\n \t\tIntent intent_=new Intent(Home.this, Home.class);\n \t intent_.putExtra(\"keyy\", Home.this.keyy);\n \t\t\n\t startActivity(intent_);\n\t finish();\n \t}\n }", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n\t\tMainFrame_AboutBox dlg = new MainFrame_AboutBox(this);\n\t\tDimension dlgSize = dlg.getPreferredSize();\n\t\tDimension frmSize = getSize();\n\t\tPoint loc = getLocation();\n\t\tdlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);\n\t\tdlg.setModal(true);\n\t\tdlg.show();\n\t}", "private void escActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_escActionPerformed\n back();\n dispose();\n }", "@Override\n public void actionPerformed( ActionEvent e ) {\n setContentPanel( about2 );\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(action.recover()) {\r\n\t\t\tSystem.out.println(\"backButton\");\r\n\t\t\tui.closeBackButton();//backButton设置为不可用\r\n\t\t\tui.paint(ui.getGraphics());\r\n\t\t\tui.upgradeScore();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"can't back\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAskHelpAdd.this.finish();\n\t\t\t}", "protected void ACTION_B_HELP(ActionEvent arg0) {\n\t\t\r\n\t\tString msg = \"Network Packet Sniffer is JAva packet capturing and traffic analysis application\"\r\n\t\t\t\t+ \"\\n CAPTURE : Start capturing packets on the interface\"\r\n\t\t\t\t+ \"\\nSTOP : Stop capturing packets on the interface\"\r\n\t\t\t\t+ \"\\n LIST : List Network Interfaces on the host\"\r\n\t\t\t\t+ \"\\n SELECT : Select Interface to capture Packets with\"\r\n\t\t\t\t+ \"\\n FILTER : Filter on the selected port when filtering is enabled\"\r\n\t\t\t\t+ \"\\n ENABLE : Enable Port Filtering\"\r\n\t\t\t\t+ \"\\n HELP : Displays the help screen\"\r\n\t\t\t\t+ \"\\n SAVE : Save the information about the packet\"\r\n\t\t\t\t+ \"\\n LOAD : Load the saved data on the interface \"\r\n\t\t\t\t+ \"\\n \";\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, msg);\r\n\t}", "public void onBackPressed() {\n C0486WU wu = this.f2780c;\n if (wu != null) {\n wu.mo1418b();\n }\n finish();\n Share_IP.super.onBackPressed();\n setResult(0, new Intent());\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "@Override\n \t\t\t\tpublic void doHelp() {\n \n \t\t\t\t}", "public static void ShowHelpScreen() {\n ToggleVisibility(HelpPage.window);\n }", "private void helpDocItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpDocItemActionPerformed\n helpBox.setVisible(true);\n }", "public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}", "public void onBackButton() {\n WindowLoader wl = new WindowLoader(backButton);\n wl.load(\"MenuScreen\", getInitData());\n RETURN_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }", "protected void drawBackButton() {\n backButton = new TextButton(\"Back\", skin);\n stage.addActor(backButton);\n\n setPrevious();\n }", "private void navBack() {\n Intent intent = new Intent(this, standard_home.class);\n startActivity(intent);\n }", "void onGoBackButtonClick();", "private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }", "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "protected void handleBack(ActionEvent event) {\n\t}", "public void aboutMenu(ActionEvent actionEvent) {\n anchorHelp.setVisible(true);\n paneNotation.setVisible(false);\n paneAbout.setVisible(true);\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}", "private JButton getBtnBack() {\r\n\t\tif (btnBack == null) {\r\n\t\t\tbtnBack = new JButton();\r\n\t\t\tbtnBack.setText(\"<\");\r\n\t\t\tbtnBack.setToolTipText(\"Back\");\r\n\t\t\tbtnBack.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tif(historyIndex > 0) {\r\n\t\t\t\t\t\thistoryIndex --;\r\n\t\t\t\t\t\tgoTo(history.get(historyIndex), HistoryManagement.NAVIGATE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn btnBack;\r\n\t}", "@Override\n public void onBackPressed() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.backPressed))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.yes), (dialogInterface, i) -> finish())\n .setNegativeButton(getResources().getString(R.string.no), null)\n .show();\n }", "public void GoBack(ActionEvent actionEvent) throws IOException\n {\n Main.backToMain();\n }", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "@Override\n\tpublic void onBackPressed() {\n\t\t//super.onBackPressed();\n \t\n \tSharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n\t\tif(settings.getInt(OPEN_FROM_WIDGET, 0)==0)\n\t\t{\n\t \tAlertDialog.Builder builder = new AlertDialog.Builder(RakutenHomeController.this);\n\t \tbuilder.setMessage(R.string.dialogBody)\n\t .setCancelable(false)\n\t .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tItemInfoCacheFile.deleteCacheFile(CreatePath.filePath(RakutenHomeController.this,\n\t\t\t\t\t\t\tHOME_SUGGESTIONS_CACHE_FILE));\n\t \tRakutenHomeController.this.finish();\n\t }\n\t })\n\t .setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t dialog.cancel();\n\t }\n\t });\n\t \tAlertDialog alert = builder.create();\n\t \talert.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinish();\n\t\t}\n }", "@Override\r\n public void doHelpAction() {\n BIReportService.getInstance().traceHelpClick(project.getBasePath(), ConversionHelpEnum.PATH_SETTING);\r\n\r\n ApplicationManager.getApplication().invokeLater(() -> {\r\n BrowserUtil.browse(allianceDomain + HmsConvertorBundle.message(\"directory_url\"));\r\n }, ModalityState.any());\r\n }" ]
[ "0.7470111", "0.7209149", "0.70401067", "0.70060396", "0.69866747", "0.6978259", "0.69660884", "0.6905311", "0.6898482", "0.68921006", "0.688636", "0.6878447", "0.6867282", "0.68415743", "0.6793526", "0.67747015", "0.6761873", "0.6759953", "0.6759456", "0.6753248", "0.6738967", "0.66704446", "0.6658768", "0.663551", "0.66199183", "0.66060835", "0.6597829", "0.6592971", "0.6588043", "0.65814185", "0.6579549", "0.65618706", "0.6544144", "0.6543252", "0.6520888", "0.6485588", "0.6471332", "0.6466332", "0.64497346", "0.6449206", "0.64465433", "0.6433673", "0.64268667", "0.6418396", "0.64150834", "0.6408358", "0.63796055", "0.6377978", "0.6372042", "0.6352365", "0.632767", "0.6322569", "0.63147396", "0.63043606", "0.62877715", "0.62560225", "0.62438154", "0.6230349", "0.622807", "0.6227433", "0.6224649", "0.622295", "0.6222396", "0.621456", "0.62121433", "0.62104356", "0.6206164", "0.62038225", "0.6203278", "0.61999834", "0.6190493", "0.61753505", "0.61745805", "0.6172216", "0.6161843", "0.616022", "0.6155452", "0.6153937", "0.6147134", "0.6146644", "0.614656", "0.61436725", "0.6139352", "0.61229765", "0.61168605", "0.61162984", "0.6113217", "0.6112621", "0.61033076", "0.6098813", "0.6097048", "0.60912365", "0.6090952", "0.6089747", "0.6086199", "0.60792154", "0.6075167", "0.60709214", "0.60636365", "0.60622114" ]
0.7457453
1
/ For use by factory methods.
SessionManagerImpl() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "private StickFactory() {\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "For createFor();", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "protected abstract void construct();", "@Override\r\n\tpublic void create() {\n\r\n\t}", "public abstract void create();", "private PerksFactory() {\n\n\t}", "private ObjectFactory() { }", "private ErrorFactory() {\r\n\t}", "public void create(){}", "private ResourceFactory() {\r\n\t}", "@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}", "public Factory() {\n\t\tsuper();\n\t}", "private DTOFactory() {\r\n \t}", "private ConcreteFactory() {}", "protected abstract S createDefault();", "private stendhal() {\n\t}", "public borFactoryImpl() {\n\t\tsuper();\n\t}", "private XmlFactory() {\r\n /* no-op */\r\n }", "private UnitFactory() {\n\t}", "private void __sep__Constructors__() {}", "public CommonsFactoryImpl() {\n\t\tsuper();\n\t}", "private VerifierFactory() {\n }", "public interface Factory {\r\n}", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "private EntityFactory() {}", "private TMCourse() {\n\t}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public FactoryValue( ) \r\n {\r\n }", "private VegetableFactory() {\n }", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private CreateDateUtils()\r\n\t{\r\n\t}", "private LocatorFactory() {\n }", "private Rekenhulp()\n\t{\n\t}", "public ObjectFactory() {\n\t}", "public ObjectFactory() {\r\n\t}", "protected MoneyFactory() {\n\t}", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "private HierarchyFactory ()\n {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "private CloneFactory() {\n }", "private WriterFactory() {\n }", "private PropertySetFactory() {}", "protected Doodler() {\n\t}", "Traditional createTraditional();", "private Instantiation(){}", "OBJECT createOBJECT();", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public abstract String construct();", "public abstract String getCreator();", "private Infer() {\n\n }", "T create();", "T create();", "private MultibinderFactory() { }", "abstract Object build();", "private XSLTTransformerFactory() {\r\n\t}", "private SerializerFactory() {\n // do nothing\n }", "private BuilderUtils() {}", "Oracion createOracion();", "protected abstract Object makeNew(final String prefix, final int seqno);", "interface Create {}", "CreationData creationData();", "Thing createThing();", "private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private MetallicityUtils() {\n\t\t\n\t}", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "Simple createSimple();", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public ResultFactoryImpl() {\n\t\tsuper();\n\t}", "private ServiceFactory() {}", "public interface Factory {\n LeiFeng createLeiFeng();\n}", "Information createInformation();", "private Util() { }", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "@Override\n protected void init() {\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "public VariabilityFactoryImpl() {\n\t\tsuper();\n\t}", "public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}", "public InternalFloaterFactory() {\n super();\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private PerfectoDriverFactory() {\n\n\t}", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "@Override\r\n\tpublic void init() {}", "public MystFactoryImpl()\r\n {\r\n super();\r\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.7177441", "0.70360947", "0.6968676", "0.69283557", "0.68626577", "0.6844481", "0.6843405", "0.6833377", "0.6804175", "0.67810273", "0.6725514", "0.6681268", "0.66670763", "0.66550064", "0.66541445", "0.66136134", "0.66094714", "0.6589518", "0.6578883", "0.654079", "0.6499495", "0.642003", "0.63635856", "0.6338106", "0.63374186", "0.63347095", "0.63318056", "0.6331004", "0.63172513", "0.62973803", "0.62958986", "0.62908304", "0.6290648", "0.6290648", "0.6290648", "0.62830794", "0.6282712", "0.62744635", "0.6265604", "0.6232856", "0.62315184", "0.6230559", "0.62208164", "0.6211735", "0.62092847", "0.62075865", "0.619175", "0.61903924", "0.618434", "0.6182359", "0.6168921", "0.616702", "0.6164532", "0.6148927", "0.6131328", "0.6125295", "0.6120046", "0.61190957", "0.61140585", "0.61140585", "0.61136305", "0.61050206", "0.6099617", "0.60990345", "0.6098218", "0.60921735", "0.6084675", "0.608086", "0.6078341", "0.6078085", "0.6074515", "0.6069485", "0.6064109", "0.60527813", "0.6048931", "0.6039491", "0.6038766", "0.6033492", "0.60307825", "0.6030357", "0.6012761", "0.60086095", "0.6004497", "0.59951574", "0.59934", "0.59862226", "0.5985922", "0.5982864", "0.5979786", "0.59747165", "0.59745765", "0.5970722", "0.5969821", "0.5965956", "0.5965956", "0.5965956", "0.5965956", "0.5965956", "0.5965956", "0.5965956", "0.5965956" ]
0.0
-1
Get the service discovery information embodied in the most recent Greeting received from the EPP server.
@Override public Greeting getLastGreeting() throws SessionConfigurationException, SessionOpenException { try { return sessionPool.getLastGreeting(); } catch (InterruptedException ie) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.rajni.grpc.greeting.Greeting getGreeting();", "public String greeting() {\n ServiceInstance serviceInstance = loadBalancerClient.choose(EUREKA_AWARE_CLIENT_SERVICE_ID);\n LOGGER.info(\"Service instance picked up by load balancer: \");\n printServiceInstance(serviceInstance);\n String result = restTemplate.exchange(serviceInstance.getUri() + \"/greeting\", HttpMethod.GET, null, String.class).getBody();\n\n LOGGER.info(\"Service returns: \" + result);\n return result;\n }", "@GetMapping(value = \"/getInfo\")\n @ResponseBody\n public String getInfo() {\n System.out.println(\"discoveryClient.getServices().size() = \" + discoveryClient.getServices().size());\n\n StringBuffer stringBuffer = new StringBuffer();\n for( String s : discoveryClient.getServices()){\n System.out.println(\"services \" + s);\n List<ServiceInstance> serviceInstances = discoveryClient.getInstances(s);\n for(ServiceInstance si : serviceInstances){\n stringBuffer.append(\" services:\" + s + \":getHost()=\" + si.getHost());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getPort()=\" + si.getPort());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getServiceId()=\" + si.getServiceId());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getUri()=\" + si.getUri());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getMetadata()=\" + si.getMetadata());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getScheme()=\" + si.getScheme());\n stringBuffer.append(\"\\n\");\n\n System.out.println(\" services:\" + s + \":getHost()=\" + si.getHost());\n System.out.println(\" services:\" + s + \":getPort()=\" + si.getPort());\n System.out.println(\" services:\" + s + \":getServiceId()=\" + si.getServiceId());\n System.out.println(\" services:\" + s + \":getUri()=\" + si.getUri());\n System.out.println(\" services:\" + s + \":getMetadata()=\" + si.getMetadata());\n System.out.println(\" services:\" + s + \":getScheme()=\" + si.getScheme());\n System.out.println();\n }\n }\n return \"ok\";\n }", "com.rajni.grpc.greeting.GreetingOrBuilder getGreetingOrBuilder();", "@GetMapping(value = \"/getGreetingDetails\")\n\tpublic ResponseEntity<List<NewGreeting>> getGreeting() {\n\t return new ResponseEntity<>(greetingService.getGreeting(), HttpStatus.OK);\n\t}", "public java.lang.String getGreeting() {\n return instance.getGreeting();\n }", "public static String getGreeting() {\n return dayHourGreeting;\n }", "public java.lang.String getGreeting() {\n return greeting_;\n }", "public https.LnpSdStructure[] getService_details() {\n return service_details;\n }", "public com.google.protobuf.ByteString\n getGreetingBytes() {\n return instance.getGreetingBytes();\n }", "public String getDiscoveryEndpoint() {\n return discoveryEndpoint;\n }", "public com.google.protobuf.ByteString\n getGreetingBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(greeting_);\n }", "public String discoveryStatus() {\n return this.discoveryStatus;\n }", "@Override\n\tpublic Map<String, Object> getGreeting(String name) {\n\t\treturn null;\n\t}", "@Override\n public void onApplicationEvent(HeartbeatEvent event) {\n\n final Collection<String> discoveryUrls = config.getServiceUrl().values();\n\n logger.info(\"discovery URLS\" + discoveryUrls);\n\n int serverCount = 0;\n String defaultZone = \"\";\n\n for (final String discoveryUrl : discoveryUrls) {\n defaultZone += (serverCount > 0 ? (\",\" + discoveryUrl) : discoveryUrl);\n serverCount++;\n if (serverCount == DISCOVERY_SERVER_URL_MAX_COUNT) {\n break;\n }\n }\n\n config.getServiceUrl().put(DISCOVERY_CLIENT_ZONE, defaultZone);\n\n }", "public String getGreeting() {\n\t\treturn \"Hello, let's talk.\";\n\t}", "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService {\n\tString greetServer(String name) throws IllegalArgumentException;\n\tString registrazione(String nome, String nick, String password, String mail) throws IllegalArgumentException;\n\tString login(String nick, String passw) throws IllegalArgumentException;\n\tString caricaevento(String nome, String luogo, String descs,String dal,String al,String idKey, int check, String cause) throws IllegalArgumentException;\n\tString cancellaevento(String id,String idKey) throws IllegalArgumentException;\n\tString chiudievento(String id,String idKey) throws IllegalArgumentException;\n\tString insertJoin(String idEvento, String nome, String nick, String commento,int disp) throws IllegalArgumentException;\n\tLinkedList<Partecipa> getAllUsersJoin(String idEvento) throws IllegalArgumentException;\n\tLinkedList<Evento> getAllUserEvents(String id) throws IllegalArgumentException;\n\tLinkedList<Evento> getAllEvents() throws IllegalArgumentException;\n}", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo getGoogleService() {\n if (googleServiceBuilder_ == null) {\n if (stepInfoCase_ == 24) {\n return (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 24) {\n return googleServiceBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();\n }\n }", "public HelloGreeting getGreeting(@Named(\"id\") Integer id) throws NotFoundException {\n try {\n return greetings.get(id);\n } catch (IndexOutOfBoundsException e) {\n throw new NotFoundException(\"Greeting not found with an index: \" + id);\n }\n }", "@Override\n\tpublic String printServiceInfo() {\n\t\treturn serviceName;\n\t}", "grpc.messages.Messages.Employee getEmployee();", "grpc.messages.Messages.Employee getEmployee();", "public static void discovery( int port ) throws Exception {\r\n\tSystem.out.println(\"discovery started\");\r\n\tCoapClient client = new CoapClient(\"coap://FF05::FD:\"+port+\"/.well-known/core\"); //base URI coap://FF05::FD:5683\r\n \tclient.useNONs(); //the request needs to be a NON GET request\r\n\t\t\tCoapResponse response = client.get();\r\n\t\t\tif ( response != null ) {\r\n\t\t\t System.out.println(\"discovery Response code: \" + response.getCode());\r\n\t\t\t System.out.println(\"discovery Resources: \" + response.getResponseText());\r\n\t\t\t System.out.println(\"discovery Options: \" + response.getOptions());\r\n\r\n\t\t\t // get serverís IP address\r\n\t\t\t InetAddress addr = response.advanced().getSource();\r\n\t\t\t int servport = response.advanced().getSourcePort();\r\n\t\t\t System.out.println(\"discovery Source address: \" + addr + \":\" + servport);\r\n\t\t\t} \t\t\r\n\t}", "public String getServiceDescription()\n {\n return serviceDescription;\n }", "private String displayGreeting() {\n return Duke.getGreeting();\n }", "public DiscoveryAgent getDiscoveryAgent() {\n return discoveryAgent;\n }", "public String getService() {\n\t\treturn service.get();\n\t}", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public String getGreetingMessage() {\n return ui.printAndReturnGreetingsString();\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo getGoogleService() {\n if (stepInfoCase_ == 24) {\n return (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();\n }", "public EPPService getService() {\n\t\treturn service;\n\t}", "public Map<String, List<String>> getServices();", "public String serviceInfo(){\n String msj = \"\";\n\n msj = \"Nombre del servicio: \" + serviceName;\n msj = \"Costo: \" + cost;\n msj = \"Fecha de realizacion: \" + date;\n msj = \"La ID de la mascota es: \" + petID;\n msj = \"La ID del cliente es: \" + clientID;\n\n return msj;\n }", "public ServiceDiscoverer getServiceDiscoverer() {\n return serviceDiscoverer;\n }", "java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();", "private Future<List<Record>> getAllEndpoints() {\n Future<List<Record>> future = Future.future();\n discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE),\n future.completer());\n return future;\n }", "public String getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "public String toString() {\n return getServiceId();\n }", "public interface DiscoveryService {\n boolean saveDiscovery(Discovery discovery);\n\n boolean updateDiscovery(Discovery discovery);\n\n Discovery getDiscoveryById(int id);\n\n boolean deleteDiscovery(int id);\n\n boolean deleteDiscoveryByIdList(int[] idList);\n\n List<Discovery> getDiscoveryByRandomPage(int offset, int limit, int[] excludeIdList);\n\n List<Discovery> getDiscoveryByCreateTimeDescPage(int offset, int limit);\n\n int getDiscoveryCount();\n}", "@Override\n\tpublic String getAnotherFortuneService() {\n\t\treturn null;\n\t}", "public ReferencedGreetingElements getReferencedGreetingAccess() {\n\t\treturn pReferencedGreeting;\n\t}", "Collection<? extends Service> getHost();", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder\n getGoogleServiceOrBuilder() {\n if ((stepInfoCase_ == 24) && (googleServiceBuilder_ != null)) {\n return googleServiceBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 24) {\n return (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();\n }\n }", "public ArrayList<String> DFGetServiceList() {\n return DFGetAllServicesProvidedBy(\"\");\n }", "@RequestMapping(value = \"/discovery-client/instances\", method = RequestMethod.GET)\n public Map<String, Integer> getAllInstances() {\n final Map<String, Integer> response = new HashMap<>();\n\n final Applications applications = discoveryClient.getApplications();\n final List<Application> applicationList = applications.getRegisteredApplications();\n\n //TODO Java 8 Stream\n // Get instances from eureka\n for (final Application app : applicationList) {\n response.put(app.getName(), app.getInstances().size());\n }\n\n return response;\n }", "@Override\n\t\t\tpublic void onNext(GreetingRequest request) {\n\t\t\t\tSystem.out.println(\"GreetingsServiceImpl.greetForLong : greet requested by \"+request);\n\t\t\t\tif(responseMessages == null)\n\t\t\t\t\tresponseMessages = new ArrayList<>();\n\t\t\t\tHuman human = request.getHuman();\n\t\t\t\tresponseMessages.add(\"jai shree ram says \"+human.getFirstName()+\" \"+human.getLastName());\n\t\t\t}", "public List<PostalAddress> newServiceProvidingRequest() {\n UserSession session = app.getCurrentSession();\n String email = session.getEmailUser();\n ClientRecords rc = company.getClientRecords();\n cli = rc.getClientByEmail(email);\n List<PostalAddress> led = cli.getPostalAddresses();\n return led;\n }", "public ServiceInfo getInfo(String language){\n\t\treturn new ServiceInfo(Type.program, Content.data, true);\n\t}", "public interface IRegisteredDiscoveryServer extends IDiscoveryServer {\r\n\t\r\n \r\n\t\r\n\t/**\r\n\t * Get the local end point associated with this IRegisteredDiscoveryServer\r\n\t * @return an IEndPointData instance made from the registration information used to generate this IRegisteredDiscoveryServer.\r\n\t */\r\n\tpublic IEndPointData getLocalEndPoint();\r\n\t\r\n\t/**\r\n\t * In addition to disconnecting from the remote discovery server machine, \r\n\t * de-registers the associated end point (name/category/boundName) and\r\n\t * terminates the associated heart beat.\t \r\n\t * This method should be called when the system exists to properly de-register the end point.\r\n\t */\r\n\t@Override\r\n\tpublic void disconnect(); \t\r\n}", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList getServiceConfigurationList();", "@JsonIgnore public Collection<String> getMealServices() {\n final Object current = myData.get(\"mealService\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<String>) current;\n }\n return Arrays.asList((String) current);\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder\n getGoogleServiceOrBuilder() {\n if (stepInfoCase_ == 24) {\n return (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();\n }", "public FamilyInfo[] getFamilyInfo() {\n return familyInfo;\n }", "public String getServiceDescription()\n {\n String language = (lsData == null) ? null : lsData.language;\n return (data.serviceDescription == null) ? \"\" : data.serviceDescription.getValue(language);\n }", "public DayHourGreeting () {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n setGreeting(hourOfDay);\n }", "public MultiString getServiceDescriptionAsMultiString()\n {\n return data.serviceDescription;\n }", "io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList();", "default Map<String, String> get() {\n Map<String, String> tags = new HashMap<>();\n tags.put(\"application\", serviceInfo().getServiceName());\n tags.put(\"host\", serviceInfo().getHost());\n tags.put(\"environment\", serviceInfo().getEnvironment());\n return tags;\n }", "AGServiceManagerDescription getDescription()\n throws IOException, SoapException;", "public String getServiceSn() {\n return serviceSn;\n }", "@JsonIgnore public String getMealService() {\n return (String) getValue(\"mealService\");\n }", "public ServiceDetails getServiceDetails()\n {\n return data.serviceDetails;\n }", "public ArrayList<Integer> getReceivedHelloFrom() {\n return receivedHelloFrom;\n }", "@java.lang.Override\n public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList() {\n if (serviceListBuilder_ == null) {\n if (endpointConfigCase_ == 3) {\n return (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_;\n }\n return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();\n } else {\n if (endpointConfigCase_ == 3) {\n return serviceListBuilder_.getMessage();\n }\n return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();\n }\n }", "public String getGreeting() {\n\t\t\n\t\treturn new String(\"Welcome to Java\");\n\t\t//System.out.println(\"Hi welcome to java training\");\n\t\t\n\t}", "com.ljzn.grpc.personinfo.PersoninfoMessage getPersonInfo(int index);", "public String[] getEssentialServiceNames() {\n return new String[]{\"SocialService\"};\n }", "public String getService(){\n\t\t return service;\n\t}", "@RabbitListener(bindings = @QueueBinding(exchange = @Exchange(value = \"service.discovery.request\", type = ExchangeTypes.TOPIC), value = @org.springframework.amqp.rabbit.annotation.Queue))\n\tpublic ServiceDiscoveryResponse handleServiceDiscoveryRequest(ServiceDiscoveryRequest request,\n\t\t\t@Headers Map<String, Object> headers) {\n\n\t\tServiceDiscoveryResponse responseBean = new ServiceDiscoveryResponse();\n\t\tresponseBean.service = getServiceName();\n\t\tresponseBean.type = getServiceType();\n\t\ttry {\n\t\t\tresponseBean.requestSchema = generator.generateSchema(getRequestMessageClass());\n\t\t\tresponseBean.requestSchema.setDescription(getRequestMessageDescription());\n\t\t\tif (getResponseMessageClass() != null) {\n\t\t\t\tresponseBean.responseSchema = generator.generateSchema(getResponseMessageClass());\n\t\t\t\tresponseBean.responseSchema.setDescription(getResponseMessageDescription());\n\t\t\t}\n\t\t} catch (JsonMappingException e) {\n\t\t\tlog.warn(\"failed to generate json schema for hello message bean:\", e);\n\t\t}\n\t\treturn responseBean;\n\t}", "public List<Service> getService() {\n\t\treturn ServiceInfo.listService;\n\t}", "public String detectServiceType(){\n NamedEntityRecognition ner=new NamedEntityRecognition(query);\n String query_words=ner.getEnglishEntity();\n Intents i=LocalApi.searchIntent(query_words);\n if(i==null){\n try {\n return pa.processQuery();\n } catch (IOException ex) {\n return \"Server Error\";\n }\n }\n else if(i.getCategory().equals(\"browserservice\")){\n return ba.openBrowser();\n }\n else{\n return null;\n }\n }", "@RequestMapping(value = \"/info\", method = RequestMethod.GET)\n public String info() {\n return serviceName;\n }", "@Override\n\tpublic String getGreeting() {\n\t\treturn \"Welcome VietNam!\";\n\t}", "public Nhosts gethostdetail(HttpSession session, Integer id) {\r\n\t\tString urlReq = \"https://localhost/Demo/clientAPI/dc_hosts/_id/\"+id;\r\n\t\tNhosts[] hosts = HttpClient.doGetServer_withclass(session, urlReq, Nhosts[].class);\r\n\t\treturn hosts[0];\r\n\t\t\r\n\t}", "private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }", "public String getService() {\n return this.service;\n }", "public String getService() {\n return this.service;\n }", "public String getService() {\n return this.service;\n }", "java.util.List<com.example.grpc.SimpleServiceOuterClass.Aois> \n getAoisList();", "@Override\n\t\t\tpublic void onNext(GreetingRequest request) {\n\t\t\t\tSystem.out.println(\"GreetingsServiceImpl.greetAll greet rqeuested by \"+request);\n\t\t\t\t\n\t\t\t\t//mimicking delay\n\t\t\t\tThreadUtils.sleep(2000);\n\t\t\t\t\n\t\t\t\t//lets respond back for every request\n\t\t\t\tHuman human = request.getHuman();\n\t\t\t\tresponseObserver.onNext(GreetingResponse.newBuilder().setMessage(\"jai shree ram says \"+human.getFirstName()+\" \"+human.getLastName()).build());\n\t\t\t}", "public String getLastPingAddress()\n {\n return lastPingAddress;\n }", "@Override\n public void onServicesDiscovered(BluetoothGatt gatt, int status) {\n Log.i(\"onServicesDiscovered\", \"Obtaining device service information ......\");\n if (status == BluetoothGatt.GATT_SUCCESS) {\n try{\n String messages = \"-------------- (\"+Periphery.getAddress()+\")Service Services information : --------------------\\n\";\n List<BluetoothGattService> serviceList = gatt.getServices();\n messages += \"Total:\"+serviceList.size()+\"\\n\";\n for (int i = 0; i < serviceList.size(); i++) {\n BluetoothGattService theService = serviceList.get(i);\n BLEGattServiceList.add(new BLEGattService(theService));\n\n String serviceName = theService.getUuid().toString();\n String msg = \"---- Service UUID:\"+serviceName+\" -----\\n\";\n // Each Service contains multiple features\n List<BluetoothGattCharacteristic> characterList = theService.getCharacteristics();\n msg += \"Characteristic UUID List:\\n\";\n for (int j = 0; j < characterList.size(); j++) {\n BluetoothGattCharacteristic theCharacter = characterList.get(j);\n msg += \"(\"+(j+1)+\"):\"+theCharacter.getUuid()+\"\\n\";\n //msg += \" --> Value:\"+ StringConvertUtil.bytesToHexString(theCharacter.getValue())+\"\\n\";\n }\n msg += \"\\n\\n\";\n messages += msg;\n }\n messages += \"-------------- (\"+Periphery.getAddress()+\")--------------------\\n\";\n Log.i(\"onServicesDiscovered\", messages);\n }catch (Exception ex){\n Log.e(\"onServicesDiscovered\", \"Exception:\" + ex.toString());\n }\n }\n if (_PeripheryBluetoothServiceCallBack!=null){\n _PeripheryBluetoothServiceCallBack.OnServicesed(BLEGattServiceList);\n }\n super.onServicesDiscovered(gatt, status);\n }", "public HdfsLeDescriptors findEndpoint() {\n try {\n// return em.createNamedQuery(\"HdfsLeDescriptors.findEndpoint\", HdfsLeDescriptors.class).getSingleResult();\n List<HdfsLeDescriptors> res = em.createNamedQuery(\n \"HdfsLeDescriptors.findEndpoint\", HdfsLeDescriptors.class).\n getResultList();\n if (res.isEmpty()) {\n return null;\n } else {\n return res.get(0);\n }\n } catch (NoResultException e) {\n return null;\n }\n }", "net.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;", "private String greeting() {\n\t\tanswerUser = null;\n\t\tquestionBot.put(owner.id(), WELCOME);\n\n\t\treturn buildMessage(\"Olá, \" + owner.firstName() + \"! \" + WELCOME);\n\t}", "public messages.Serverhello.ServerHelloOrBuilder getServerHelloOrBuilder() {\n if (serverHelloBuilder_ != null) {\n return serverHelloBuilder_.getMessageOrBuilder();\n } else {\n return serverHello_;\n }\n }", "protected String getServiceId(){\n return \"com.google.android.gms.nearby.messages.samples.nearbydevices\";\n }", "@DISPID(1003) //= 0x3eb. The runtime will prefer the VTID if present\r\n @VTID(13)\r\n java.lang.String favoriteService();", "@Override\n\tpublic List<DiscoveredMember> list() throws DiscoveryException {\n\t\tif(this.myself == null) {\n\t\t\tthrow new DiscoveryException(\"Jmdns not yet registered!!!\");\n\t\t}\n\t\t\n\t\tServiceInfo[] list = this.jmDns.list(this.type);\n\t\tList<DiscoveredMember> members = new ArrayList<DiscoveredMember>();\n\n\t\tfor (ServiceInfo info : list) {\n\t\t\tif (!info.getName().equals(this.myself.getName())\n\t\t\t\t\t&& info.getName().startsWith(this.cloudName)) {\n\t\t\t\t//todo-discovery: it could lead to problems if it retunrs multiple inetAdresses\n\t\t\t\tfor (InetAddress ad : info.getInetAddresses()) {\n\t\t\t\t\tDiscoveredMember member = discoveredMemberProvider.get();\n\t\t\t\t\tmember.setInetAdresses(ad);\n\t\t\t\t\tmember.setPort(info.getPort());\n\t\t\t\t\tmember.setName(info.getName());\n\t\t\t\t\tmembers.add(member);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tPieLogger.trace(this.getClass(), \"We discovered {} members!\", members.size());\n\n\t\treturn members;\n\t}", "private Map<String, String> getOnServiceMetadata(ESDriver es) {\n\n String indexName = props.getProperty(\"indexName\");\n String metadataType = props.getProperty(\"recom_metadataType\");\n\n Map<String, String> shortnameMap = new HashMap<String, String>();\n SearchResponse scrollResp = es.getClient().prepareSearch(indexName).setTypes(metadataType).setScroll(new TimeValue(60000)).setQuery(QueryBuilders.matchAllQuery()).setSize(100).execute()\n .actionGet();\n while (true) {\n for (SearchHit hit : scrollResp.getHits().getHits()) {\n Map<String, Object> metadata = hit.getSource();\n String shortName = (String) metadata.get(\"Dataset-ShortName\");\n shortnameMap.put(shortName.toLowerCase(), shortName);\n }\n\n scrollResp = es.getClient().prepareSearchScroll(scrollResp.getScrollId()).setScroll(new TimeValue(600000)).execute().actionGet();\n if (scrollResp.getHits().getHits().length == 0) {\n break;\n }\n }\n\n return shortnameMap;\n }", "private static void listInstances(ServiceDiscovery<InstanceDetails> serviceDiscovery) throws\n Exception {\n \n try {\n Collection<String> serviceNames = serviceDiscovery.queryForNames();\n System.out.println(serviceNames.size() + \" type(s)\");\n for (String serviceName : serviceNames) {\n Collection<ServiceInstance<InstanceDetails>> instances = serviceDiscovery\n .queryForInstances(serviceName);\n System.out.println(serviceName);\n for (ServiceInstance<InstanceDetails> instance : instances) {\n outputInstance(instance);\n }\n }\n } finally {\n CloseableUtils.closeQuietly(serviceDiscovery);\n }\n }", "@GetMapping(\"/api/info\")\n\tpublic InfoResponse info() {\n\t\tGoogle google = Core.instance.google;\n\t\treturn new InfoResponse(google.login.getLoginUrl(), google.getServerGoogleClientID(), google.getAPIKey());\n\t}", "public ID getMainService() { \r\n\t\tID retVal = this.getTypedField(46, 0);\r\n\t\treturn retVal;\r\n }", "public java.util.List<? extends go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder> \n getServicesOrBuilderList() {\n if (servicesBuilder_ != null) {\n return servicesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(services_);\n }\n }", "public java.util.List<? extends go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder> \n getServicesOrBuilderList() {\n if (servicesBuilder_ != null) {\n return servicesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(services_);\n }\n }", "public String getCorrespondenceServiceSessionStatistics() {\n return correspondenceServiceSessionStatistics;\n }" ]
[ "0.6009118", "0.59830946", "0.5902026", "0.5859605", "0.5839417", "0.57021135", "0.5655486", "0.5564247", "0.53926253", "0.537201", "0.5313157", "0.52897334", "0.5238554", "0.5226571", "0.51561886", "0.51404697", "0.5126258", "0.50637704", "0.5052396", "0.505049", "0.5040447", "0.5040447", "0.4988449", "0.49575743", "0.4952393", "0.49387667", "0.4933985", "0.48980856", "0.48980856", "0.48980856", "0.48937458", "0.48935315", "0.48849505", "0.48826885", "0.4873488", "0.48732644", "0.48522815", "0.48507944", "0.48507214", "0.48507214", "0.48507214", "0.4843707", "0.48289025", "0.48236167", "0.48233876", "0.48232102", "0.48173767", "0.4803637", "0.47888345", "0.47886038", "0.478052", "0.4778928", "0.477406", "0.4751765", "0.47510266", "0.47449625", "0.47370338", "0.47357136", "0.47293687", "0.47257233", "0.47215742", "0.47198406", "0.4713196", "0.47003102", "0.4699091", "0.46960717", "0.46933967", "0.46913803", "0.46912843", "0.4689103", "0.46820614", "0.46819627", "0.46682742", "0.46676832", "0.46655962", "0.4664856", "0.46546078", "0.4651453", "0.46486992", "0.46362787", "0.46362787", "0.46362787", "0.46308792", "0.46276876", "0.46140656", "0.4612452", "0.4611964", "0.46084327", "0.45990086", "0.45975798", "0.45928797", "0.4588736", "0.45884445", "0.45870432", "0.45828673", "0.45818546", "0.45799878", "0.45735386", "0.45735386", "0.45724386" ]
0.53306204
10
Shutdown the SessionManager, making it unavailable for further transaction processing.
@Override public void shutdown() { debugLogger.finest("enter"); userLogger.info("Initiating shutdown"); if (state == SMState.RUNNING) { debugLogger.info("state == RUNNING"); state = SMState.STARTED; interruptThread(runThread); } if (state == SMState.STARTED) { debugLogger.info("state == STARTED"); sessionPool.empty(); state = SMState.STOPPED; } debugLogger.info("state == STOPPED"); userLogger.info("Shutdown complete"); debugLogger.finest("exit"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void shutdown() {\n\t\tgetSessionFactory().close();\n\t}", "public static void shutdown() {\n getSessionFactory().close();\n }", "public static synchronized void destroy()\n {\n try\n {\n if (sessionFactory != null)\n {\n sessionFactory.close();\n System.out.println(\"Hibernate could destroy SessionFactory\");\n }\n } catch (Throwable t)\n {\n System.out.println(\"Hibernate could not destroy SessionFactory\");\n t.printStackTrace();\n }\n sessionFactory = null;\n }", "@PreDestroy\n protected void destroy() {\n sessionFactory.getCurrentSession().close();\n }", "@AfterClass\n public static void tearDownClass() {\n ApplicationSessionManager.getInstance().stopSession();\n }", "public static void closeSession() {\n Session session = (Session) sessionThreadLocal.get();\n sessionThreadLocal.set(null);\n try {\n if (session != null)\n session.close();\n } catch (HibernateException e) {\n logger.error(\"Close current session error: \" + e.getMessage());\n }\n }", "@Override\n public void closeSession() throws HibernateException {\n Session session = threadLocal.get();\n threadLocal.set(null);\n\n if (session != null) {\n session.close();\n }\n }", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n sessionFactory = null;\r\n }", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n sessionFactory = null;\r\n }", "private void doCloseSession()\n {\n if (session != null)\n {\n try\n {\n database.closeHibernateSession(session);\n }\n finally\n {\n session = null;\n }\n }\n }", "public static void closeSession() throws HibernateException {\n\t\tSession session = (Session) threadLocal.get();\n threadLocal.set(null);\n\n if (session != null && session.isOpen()) {\n session.close();\n }\n }", "public static void close() {\r\n\t\tif (sessionFactory != null)\r\n\t\t\tsessionFactory.close();\r\n\t\tsessionFactory = null;\r\n\r\n\t}", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n LOG.debug(MODULE + \"SessionFactory Close\");\r\n sessionFactory = null;\r\n }", "public /*static*/ void close() {\n sessionFactory.close();\n }", "public void endSession() {\n if (sqlMngr != null) {\n sqlMngr.disconnect();\n }\n if (sc != null) {\n sc.close();\n }\n sqlMngr = null;\n sc = null;\n }", "public void close() {\n\t\tif (this.session instanceof DatabaseSession) {\n\t\t\t((DatabaseSession) this.session).logout();\n\t\t}\n\t\tthis.session.release();\n\t}", "public void destroy() throws HibernateException {\n\t\tlogger.info(\"Closing Hibernate SessionFactory\");\n\t\ttry {\n\t\t\tbeforeSessionFactoryDestruction();\n\t\t}\n\t\tfinally {\n\t\t\tthis.sessionFactory.close();\n\t\t}\n\t}", "public synchronized void close() {\n if (session != null) {\n if (!suspended) {\n try {\n if (transacted == Transacted.Jms) {\n if (rollbackOnly) {\n session.rollback();\n } else {\n session.commit();\n }\n afterClose();\n } else if (transacted == Transacted.Xa) {\n destroy();\n try {\n if (rollbackOnly) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Rolling back XA transaction\");\n }\n transactionManager.rollback();\n } else {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Committing XA transaction\");\n }\n transactionManager.commit();\n }\n } catch (Exception e) {\n throw new TransactionException(e);\n }\n } else if (transacted == Transacted.ClientAck) {\n if (message != null) {\n if (!rollbackOnly) {\n message.acknowledge();\n } else {\n destroyConsumer();\n }\n }\n afterClose();\n } else {\n afterClose();\n }\n } catch (JMSException e) {\n destroy();\n throw convertJmsAccessException(e);\n }\n }\n }\n }", "public void stop() {\n session.close(false);\n }", "synchronized void close() {\n\n closeAllSessions();\n sysSession.close();\n sysLobSession.close();\n }", "@Override\n protected void tearDown() throws Exception {\n mSession.release();\n super.tearDown();\n }", "public void close() {\n\n try {\n try {\n try {\n if (exception == null) {\n flushSessions();\n }\n\n } catch (Throwable exception) {\n exception(exception);\n } finally {\n\n try {\n if (exception == null) {\n transactionContext.commit();\n }\n } catch (Throwable exception) {\n exception(exception);\n }\n transactionContext.rollback();\n }\n } catch (Throwable exception) {\n exception(exception);\n } finally {\n closeSessions();\n\n }\n } catch (Throwable exception) {\n exception(exception);\n } \n\n // rethrow the original exception if there was one\n if (exception != null) {\n if (exception instanceof Error) {\n throw (Error) exception;\n } else if (exception instanceof RuntimeException) {\n throw (RuntimeException) exception;\n }\n }\n }", "public static void closeEntityManager() {\n EntityManager em = tl.get();\n if (em != null) {\n em.close();\n tl.set(null);\n }\n }", "public void closeSession() {\n if (session != null) {\n session.close();\n session = null;\n }\n }", "private static void closeSession() {\n isSessionOpen = false;\n }", "public void stopFactory() {\n if (isStarted) {\n logger.info(\"Stopping SessionListenerFactory.\");\n APIEventBus.getInstance().unsubscribe(this);\n isStarted = false;\n }\n }", "protected final void closeSession() {\n Session currentSession = sessionTracker.getOpenSession();\n if (currentSession != null) {\n currentSession.close();\n }\n }", "public static void closeSession() {\n \tif (singleSessionMode) {\n \t\tif (singleSession != null) {\n \t\t\tsingleSession.close();\n \t\t\tsingleSession = null;\n \t\t}\n \t} else {\n\t Session s = session.get();\n\t if (s != null && s.isOpen()) {\n\t try {\n\t \ts.close();\n\t } finally {\n\t \tsession.set(null); \t\n\t }\n\t }\n\t \n \t}\n }", "@After\r\n\tpublic void tearDown() throws Exception {\n\t\tSessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.unbindResource(sessionFactory);\r\n\t\tSessionFactoryUtils.closeSession(sessionHolder.getSession());\r\n\r\n\t\t// seulement dans le cas d'utilisation de spring security //\r\n\t\tSecurityContextHolder.getContext().setAuthentication(null);\r\n\t}", "@Override\n protected void tearDown() throws Exception\n {\n if (session != null)\n {\n session.close();\n }\n \n super.tearDown();\n }", "public void dispose() {\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.shutdown();\n }\n\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().unregisterLifecycleListener(this);\n }\n }\n\n Orient.instance().removeDbLifecycleListener(this);\n\n if (globalHook != null) {\n globalHook.shutdown(false);\n globalHook = null;\n }\n\n if (retainTask != null) {\n retainTask.cancel();\n }\n\n if (timer != null) {\n timer.cancel();\n }\n }", "void closeSessionFactory();", "public static void closeSession() throws HException {\r\n\t\ttry {\r\n\t\t\tcommitTransaction();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\trollbackTransaction();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tSession s = (Session) threadSession.get();\r\n\t\t\tthreadSession.set(null);\r\n\t\t\tthreadTransaction.set(null);\r\n\t\t\tif (s != null && s.isOpen()) {\r\n\t\t\t\ts.close();\r\n\t\t\t\tsetConnections(-1);\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void closePrivateSession(){\n if(sqlSession != null){\n sqlSession.close();\n }\n }", "static void cerrarGestion(){\r\n manager.close();\r\n factory.close();\r\n }", "@AfterClass\n\tpublic static void closeSessionFactory() {\n sessionFactory.close();\n\t}", "protected void destroy() {\n JmsUtils.closeSession(session);\n JmsUtils.closeConnection(connection);\n session = null;\n connection = null;\n }", "public void closeAllEntityManagers() {\n entityManagerFactory.close();\n }", "@PreDestroy\n public void close() {\n connectionManagers.values().forEach(ConnectionManager::close);\n }", "void closeSession();", "void closeSession();", "public void destroySession() {\n existingSession().ifPresent(session -> {\n session.clear();\n context().session().clear();\n });\n }", "public static void close() {\n HashMap<String, Transaction> map = instance.getTransactions();\n for (Transaction transaction : map.values()) {\n transaction.destroy();\n }\n map.clear();\n instance.transactions.remove();\n }", "@Override\r\n\tpublic void stop() {\r\n\t\tlogger.trace(\"JPA: transactional handler for [{}] stopped.\", pojoClassName);\r\n\r\n\t\tif (jpaService != null) {\r\n\t\t\tjpaService.removeEntityManagerFactoryListener(this);\r\n\t\t}\r\n\t}", "public void cleanUp() {\r\n\t\temfactory.close();\r\n\t}", "public void shutdown()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsave();\n\t\t\tgetPreparedStatement(\"SHUTDOWN\").executeUpdate();\n\t\t\tgetConnection().close();\n\t\t} \n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly shutdown.\", e);\n\t\t}\n\t}", "@AfterClass\n public static void cleanup() {\n if (em != null) {\n em.close();\n }\n }", "public void shutdown() {\n\t\tinternalShutdown();\n\t\tC4JPluginLogging.getDefault().removeLogManager(this); \n\t}", "public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }", "@Override\n\tpublic void exitSessionUser() {\n\t\tgetThreadLocalRequest().getSession().invalidate();\n\t\t\n\t}", "@OnClose\n\tpublic void close(Session session) {\n\t\tsessionHandler.removeSession(session);\n\t}", "public void disconnect() {\n DatabaseGlobalAccess.getInstance().getEm().close();\n DatabaseGlobalAccess.getInstance().getEmf().close();\n }", "public static void unjoinAndClose(){\n Session s = (Session)_sessionRef.get();\n if(s != null){\n s.close();\n }\n }", "static void closeCurrentTransactionManager() {\n ExecutorDataMap.getDataMap().put(TRANSACTION, null);\n ExecutorDataMap.getDataMap().put(TRANSACTION_CONFIG, null);\n }", "@AfterClass\n public static void tearDown() {\n em.clear();\n em.close();\n emf.close();\n }", "public void shutdown() {\r\n //shut down MbModule\r\n super.shutdown();\r\n }", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "public void doLogout() {\r\n\t\tdestroy();\r\n\r\n\t\t/* ++++++ Kills the Http session ++++++ */\r\n\t\t// HttpSession s = (HttpSession)\r\n\t\t// Sessions.getCurrent().getNativeSession();\r\n\t\t// s.invalidate();\r\n\t\t/* ++++++ Kills the zk session +++++ */\r\n\t\t// Sessions.getCurrent().invalidate();\r\n\t\tExecutions.sendRedirect(\"/j_spring_logout\");\r\n\r\n\t}", "public void shutdown() {\n shutdown(false);\n }", "public void shutdown() {\n if (configurations.isRegisterMXBeans()) {\n JmxConfigurator.get().removeMXBean(this);\n }\n configurations.shutdown();\n }", "public void shutdown() {\n // From this point forward, only return a poison pill for this retrieval\n // manager, which will cause threads attempting to receive bandwidth\n // allocations to die\n this.shutdown = true;\n }", "@Override\n public void shutdown() {\n\n // Since we have nothing to do, override base shutdown so don't\n // get extraneous UserTransactions.\n }", "public void shutDown(){\n sequence128db.shutDown();\n }", "public void closeSessionForThread() {\n Session session = THREADED_SESSION.get();\n THREADED_SESSION.set(null);\n THREADED_TRANSACTION.set(null);\n if (session != null) {\n if (session.isOpen()) {\n session.close();\n }\n }\n }", "public void close() {\n\t\tif (this.luaState != 0) {\n\t\t\tLuaStateManager.removeState(stateId);\n\t\t\t_close(luaState);\n\t\t\tthis.luaState = 0;\n\t\t}\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\tydelseService.setEntityManager(null);\n\t}", "private void destroySession(Session session) {\n\r\n\t}", "public void onDestroy() {\n super.onDestroy();\n Object object = this.mLock;\n synchronized (object) {\n Iterator<MediaSession2> iterator = this.getSessions().iterator();\n do {\n if (!iterator.hasNext()) {\n this.mSessions.clear();\n this.mNotifications.clear();\n // MONITOREXIT [2, 3, 4] lbl9 : MonitorExitStatement: MONITOREXIT : var1_1\n this.mStub.close();\n return;\n }\n this.removeSession(iterator.next());\n } while (true);\n }\n }", "public void shutdown() {\r\n \t\tMsg.debugMsg(DB_REGULAR.class, \"Database is shutting down\");\r\n \t\tStatement st;\r\n \t\ttry {\r\n \t\t\tst = conn.createStatement();\r\n \t\t\tst.execute(\"SHUTDOWN\");\r\n \t\t} catch (SQLException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t} finally {\r\n \t\t\tif (conn != null) {\r\n \t\t\t\ttry {\r\n \t\t\t\t\tconn.close();\r\n \t\t\t\t} catch (SQLException e) {\r\n \t\t\t\t\te.printStackTrace();\r\n \t\t\t\t} // if there are no other open connection\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public synchronized void shutDown() {\n\t state.shutDown();\n\t}", "protected final void closeSessionAndClearTokenInformation() {\n Session currentSession = sessionTracker.getOpenSession();\n if (currentSession != null) {\n currentSession.closeAndClearTokenInformation();\n }\n }", "protected void closeSession(SessionImpl session) {\n sessions.remove(session);\n sessionCount.dec();\n }", "public void destroy()\n {\n if ( cacheManager == null )\n {\n return;\n }\n\n LOG.info( \"clearing all the caches\" );\n\n cacheManager.close();\n cacheManager = null;\n //cacheManager.clearAll();\n //cacheManager.shutdown();\n }", "@AfterClass\n public static void closeTestFixture() {\n entityManager.close();\n entityManagerFactory.close();\n }", "public void logout() throws SessionException{\n\t\t\n\t\tLog.getLogger().info(\"Logging out of session\");\n\t\tRestAPIDelete logout = new RestAPIDelete(\"/session\");\n\t\tlogout.execute(this);\n\t}", "public void closeAllSessions() {\n\n // don't disconnect system user; need it to save database\n Session[] sessions = getAllSessions();\n\n for (int i = 0; i < sessions.length; i++) {\n sessions[i].close();\n }\n\n synchronized(this) {\n sessionMap.clear();\n }\n }", "public void finSession(Session session){\n obtenerConexion().closeSession(session);\n }", "@After\n public void destroyDatabase() {\n dbService.closeCurrentSession();\n dbService.getDdlInitializer()\n .cleanDB();\n }", "protected abstract void doShutdown() throws JMSException;", "public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }", "public final void closeSession() {\n\t\t// Call the base class\n\t\tSystem.out.print(\"Session Closed\");\n\t\tsuper.closeSession();\n\n\t\tif ( m_sock != null) {\n\t\t\ttry {\n\t\t\t\tm_sock.close();\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t}\n\t\t\tm_sock = null;\n\t\t}\n\n\t\tif ( m_in != null) {\n\t\t\ttry {\n\t\t\t\tm_in.close();\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t}\n\t\t\tm_in = null;\n\t\t}\n\n\t\tif ( m_out != null) {\n\t\t\ttry {\n\t\t\t\tm_out.close();\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t}\n\t\t\tm_out = null;\n\t\t}\n\n\n\t}", "private void cleanup(OpenJPAEntityManagerFactorySPI emf) {\n clear(emf);\n closeEMF(emf);\n }", "public void tearDown() throws PersistenceException, SQLException {\n if (_db.isActive()) { _db.rollback(); }\n _db.close();\n _conn.close();\n }", "public static void disconnect(){\n Session session = (Session)_sessionRef.get();\n if(session != null && session.isConnected()){\n session.disconnect();\n _sessionRef.set(null);\n }\n }", "public static void close() {\n\t\tif (em != null) {\n\t\t\tem.close();\n\t\t}\n\t\tif (factory != null) {\n\t\t\tfactory.close();\n\t\t}\n\t}", "public void teardown() {\n LOGGER.info(\"Shutting down driver\");\n driver.quit();\n }", "public void shutdown() {\n logger.info(\"Shutting down modules.\");\n for (Module module : modules) {\n module.stop();\n }\n logger.info(\"Shutting down reporters.\");\n for (Reporter reporter : reporters.values()) {\n reporter.stop();\n }\n }", "void exitSession()\n\t{\n\t\t// clear out our watchpoint list and displays\n\t\t// keep breakpoints around so that we can try to reapply them if we reconnect\n\t\tm_displays.clear();\n\t\tm_watchpoints.clear();\n\n\t\tif (m_fileInfo != null)\n\t\t\tm_fileInfo.unbind();\n\n\t\tif (m_session != null)\n\t\t\tm_session.terminate();\n\n\t\tm_session = null;\n\t\tm_fileInfo = null;\n\t}", "protected void beforeSessionFactoryDestruction() {\n\t}", "public void shutDown ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"shutDown\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n shutDown ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void destroy() {\n try {\n service.shutdown();\n } catch (Exception e) {Log.v(\"HierarchyDumpManager\", \"Could not destroy: \" + e.getMessage());}\n }", "public void auditManager(@Disposes IAuditManager auditManager) {\n AuditManager.shutdown();\n }", "public void shutDown() {\n collector.removePool(this);\n factory.poolClosing(this);\n\n // close all objects\n synchronized (objects) {\n for (Iterator it = objects.values().iterator(); it.hasNext();) {\n ObjectRecord rec = (ObjectRecord) it.next();\n if (null != rec) {\n if (rec.isInUse())\n factory.returnObject(rec.getClientObject());\n factory.deleteObject(rec.getObject());\n rec.close();\n }\n }\n objects.clear();\n deadObjects.clear();\n }//end of synch\n\n factory = null;\n poolName = null;\n initialized = false;\n }", "@OnClose\n public void onClose(Session session) {\n }", "@Override\n public void destroy() {\n // destroy any persistent resources\n // such as thread pools or persistent connections\n }", "public void forceLogout()\n\t{\n\t\tif(getSession() != null && getSession().getLoggedIn())\n\t\t\tgetSession().close();\n\t\telse\n\t\t\tGameServer.getServiceManager().getNetworkService().getLogoutManager().queuePlayer(this);\n\t}", "public void close()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.deactivateParticipant(ourKey);\r\n }", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "public void closeConnection() {\n this.session.close();\n }", "public void close() {\n if (adminPool != null) {\n try {\n adminPool.close();\n } catch (Exception e) {\n log.warn(\"Error while closing LDAP connection pool\", e);\n }\n adminPool = null;\n }\n if (userPool != null) {\n try {\n userPool.close();\n } catch (Exception e) {\n log.warn(\"Error while closing LDAP connection pool\", e);\n }\n userPool = null;\n }\n }" ]
[ "0.71626085", "0.6721608", "0.6668118", "0.66630256", "0.6652893", "0.6585096", "0.65650845", "0.6546379", "0.6534283", "0.65192544", "0.6512234", "0.6503477", "0.6459756", "0.6400361", "0.63891685", "0.63644916", "0.6243079", "0.6203899", "0.6173501", "0.6133875", "0.6132267", "0.61292344", "0.61261237", "0.6036849", "0.6027692", "0.60087895", "0.5961721", "0.59398675", "0.5907818", "0.5845384", "0.5830687", "0.58265156", "0.5808039", "0.5747638", "0.57419777", "0.5739397", "0.57332695", "0.56997097", "0.56845474", "0.56823945", "0.56823945", "0.5667785", "0.56584567", "0.5650927", "0.56305695", "0.5629709", "0.56081325", "0.560625", "0.5604115", "0.55970144", "0.55958766", "0.55730265", "0.5564067", "0.5547791", "0.5523281", "0.55174583", "0.55169046", "0.5510054", "0.55049765", "0.55037725", "0.5493885", "0.54918855", "0.54863614", "0.54743844", "0.54631644", "0.5462723", "0.5460311", "0.54475784", "0.5442197", "0.54299265", "0.54259807", "0.54159355", "0.54131377", "0.5409818", "0.5408549", "0.5407793", "0.54062384", "0.54025185", "0.5402375", "0.5396394", "0.53961957", "0.53873116", "0.53825766", "0.5381103", "0.5375416", "0.536804", "0.536636", "0.5364077", "0.5357406", "0.5355889", "0.535012", "0.5339227", "0.53383094", "0.5330832", "0.5329531", "0.53225106", "0.5321741", "0.5317396", "0.5312494", "0.53100765" ]
0.53561527
89
Initiate the SessionPool's keepalive system. This will run until shutdown is invoked on the SessionManager.
@Override public void run() { debugLogger.finest("enter"); if (state != SMState.STARTED) { return; } runThread = Thread.currentThread(); state = SMState.RUNNING; try { while (state == SMState.RUNNING) { long sleepInterval = sessionPool.keepAlive(); boolean interrupted = false; int retry = 0; int maxRetries = MAX_SLEEP_INTERRUPTS_TO_FAIL; long sleepTime, awakenTime; do { sleepTime = Timer.now(); try { retry++; if (sleepInterval > 0) { Thread.sleep(sleepInterval); } interrupted = false; } catch (InterruptedException ie) { // reduce the remaining sleep interval awakenTime = Timer.now(); sleepInterval += sleepTime - awakenTime; interrupted = true; } } while (interrupted && retry < maxRetries && state == SMState.RUNNING); } } catch (IOException ioe) { userLogger.severe(ioe.getMessage()); userLogger.severe(ioe.getCause().getMessage()); userLogger.severe(ErrorPkg.getMessage("epp.session.poll.cfg.fail")); } debugLogger.finest("exit"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Scheduled(fixedRate = 30000)\n public void keepAlive() {\n if (needToRunStartupMethod) {\n runOnceOnlyOnStartup();\n needToRunStartupMethod = false;\n }\n }", "public boolean keepAliveEnabled();", "public SessionManager ()\r\n\t{\r\n\t\tactiveSessions = new ArrayList<Session>();\r\n\t}", "void keepAlive();", "private void sendKeepAlive() {\n\t\tlong now = new java.util.Date().getTime() / 1000;\n\t\tif (now - lastKeepAlive > properties.getInt(\"keepAliveInterval\")) {\n\t\t\tfsmTeacher.handleAction(\"tap%\" + properties.get(\"keepAliveX\") + \"#\" + properties.get(\"keepAliveY\"));\n\t\t\tlastKeepAlive = now;\n\t\t\tSystem.out.println(\"Kept alive.\");\n\t\t}\n\t}", "SessionManagerImpl() {\n }", "public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n mysqlUseUnicode);\n }\n catch (IOException e) {\n Log.error(e);\n }\n }\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "public void setSessionMaxAliveTime(int sessionMaxAliveTime);", "public boolean keepAliveEnabled(){\n return false; //TODO codavaj!!\n }", "public void setPoolKeepAlive(boolean poolKeepAlive) {\n this.poolKeepAlive = poolKeepAlive;\n }", "public static boolean keepAlive(){\n return keepAlive;\n }", "private void startActiveHeartbeatTimer() {\n\t\tTimerTask timerTask = new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (currentActive == null) {\n\t\t\t\t\t// No active was present - elevate own state.\n\t\t\t\t\tComponentLogger.getInstance().log(LogMessageType.LOAD_BALANCER_NO_ACTIVE_DETECTED);\n\t\t\t\t\tSystem.out.println(\"Detected absence of an active node.\");\n\t\t\t\t\tterminateThread.set(true);\n\t\t\t\t\tnew Thread(LoadBalancer.getNewActiveLoadBalancer()).start();\n\t\t\t\t\tfor (RemoteLoadBalancer remoteLoadBalancer : remoteLoadBalancers) {\n\t\t\t\t\t\tremoteLoadBalancer.resetState();\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Suspected failure - attempt to contact active\n\t\t\t\tComponentLogger.getInstance().log(LogMessageType.LOAD_BALANCER_ACTIVE_FAILURE_DETECTED);\n\t\t\t\tSystem.out.println(\"Active load balancer failure detected.\");\n\t\t\t\tThread.currentThread().setPriority(Thread.MAX_PRIORITY);\n\n\t\t\t\tif (!currentActive.connect(activeTimeoutMillis / 100)) {\n\t\t\t\t\t// activeFailureDetected = true;\n\t\t\t\t\thandleActiveFailure();\n\t\t\t\t} else {\n\t\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(1);\n\t\t\t\t\tbuffer.put((byte) MessageType.ALIVE_REQUEST.getValue());\n\t\t\t\t\tbuffer.flip();\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile (buffer.hasRemaining()) {\n\t\t\t\t\t\t\tcurrentActive.getSocketChannel().write(buffer);\n\t\t\t\t\t\t}\n\t\t\t\t\t\texpectingAliveConfirmation = true;\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tnew Timer().schedule(new TimerTask() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tif (!receivedAliveConfirmation) {\n\t\t\t\t\t\t\t\thandleActiveFailure();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tresetActiveHeartbeatTimer();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\texpectingAliveConfirmation = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}, activeTimeoutMillis);\n\t\t\t\t}\n\t\t\t}\n\n\t\t};\n\t\tactiveHeartbeatTimer = new Timer();\n\t\tactiveHeartbeatTimer.schedule(timerTask, activeTimeoutMillis);\n\t}", "public static void keepAlive(boolean bool){\n catalogue.keepAlive = bool;\n }", "private ConnectionPool() {\n connections = new LinkedBlockingQueue<>(DEFAULT_POOL_SIZE);\n this.init();\n }", "public IdleTimer() {\r\n\t\t\tinActivitySession = false;\r\n\t\t}", "default void stayAlive() {\n\t\tSystem.out.println(\"Stayin alive\");\n\t}", "public void sessionCreated(IoSession session) {\r\n\t\tServerLogger.log(\"Session created...\" + session, Constants.DEBUG);\r\n\t\tsession.getConfig().setIdleTime(IdleStatus.BOTH_IDLE, 5);\r\n\t}", "static void beginNewSession() {\n SESSION_ID = null;\n Prefs.INSTANCE.setEventPlatformSessionId(null);\n\n // A session refresh implies a pageview refresh, so clear runtime value of PAGEVIEW_ID.\n PAGEVIEW_ID = null;\n }", "ObjectPool() {\n deadTime = DEFAULT_DEADTIME;\n lock = new Hashtable<T, Long>();\n unlock = new Hashtable<T, Long>();\n }", "public void setKeepAliveEnabled(boolean keepAlive){\n return; //TODO codavaj!!\n }", "private void init() {\n DatabaseInitializer databaseInitializer = new DatabaseInitializer();\n try {\n for (int i = 0; i < DEFAULT_POOL_SIZE; i++) {\n ProxyConnection connection = new ProxyConnection(databaseInitializer.getConnection());\n connections.put(connection);\n }\n } catch (InterruptedException e) {\n logger.log(Level.ERROR, e);\n }\n }", "static IdleStrategy pollIdleStrategy()\n {\n return new BackoffIdleStrategy(IDLE_MAX_SPINS, IDLE_MAX_YIELDS, IDLE_MIN_PARK_NS, IDLE_MAX_PARK_NS);\n }", "void onKeepAlive() {}", "public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}", "public static void start(){\n int size = 1024;\n int max = 32;\n GenericObjectPoolConfig genericObjectPoolConfig = new GenericObjectPoolConfig();\n genericObjectPoolConfig.setMaxTotal(size * max);\n genericObjectPoolConfig.setMaxIdle(size * max);\n genericObjectPoolConfig.setMinIdle(size);\n long time = 1000 * 30;\n genericObjectPoolConfig.setMaxWaitMillis(time);\n genericObjectPoolConfig.setSoftMinEvictableIdleTimeMillis(time);\n\n updateEventCacheFactory = new UpdateEventCacheFactory(new UpdateEventPoolFactory(), genericObjectPoolConfig);\n }", "private void init() {\n\t\tJedisPoolConfig config = new JedisPoolConfig();\r\n\t\tconfig.setMaxTotal(1024);\r\n\t\tconfig.setMaxIdle(200);\r\n\t\tconfig.setMaxWaitMillis(1000);\r\n\t\tconfig.setTestOnBorrow(false);\r\n\t\tconfig.setTestOnReturn(true);\r\n\t\tString ip = \"sg-redis-new.jo1mjq.0001.apse1.cache.amazonaws.com\";\r\n\t\tint port = 6379;\r\n\t\tjedisPool = new JedisPool(config, ip, port);\r\n\t\tlog.info(\"init redis pool[ip:\" + ip + \",port:\" + port + \"]\");\r\n\t}", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "public void setKeepalive (boolean keepalive) {\n\tthis.keepalive = (this.keepalive && keepalive);\n }", "public Server()\n {\n clientSessions = new ArrayList();\n }", "public void enableKeepAlive(boolean enable);", "private void setAutoSelfDestruct() {\n \n try{\n //Sets task to shut server down \n this.timer.schedule(new TimerTask() {\n @Override\n public void run() {\n if(clientHandlers.isEmpty()){\n System.err.println(\"Closing due to inactivity\");\n System.exit(0);\n }else{\n setAutoSelfDestruct();\n }\n }\n }, (60000*3));\n }catch( IllegalStateException e){\n System.err.println(\"Timer is being reset\");\n this.timer = new Timer();\n setAutoSelfDestruct();\n }\n }", "private void mainLoop() {\n while (!isShutdown()) {\n Runnable t = pollTask();\n if (t != null || (t = pollSubmission()) != null)\n t.run();\n else if (tryInactivate())\n pool.sync(this);\n }\n }", "@Test\n public void keepAliveMechanismCheck() {\n System.out.println(\"* Device JUnit4Test: keepAliveMechanismCheck()\");\n long waitInterval = 1000;\n\n // authenticate the device and get the initial timestamp\n authenticateSimulatedDevice();\n long preKeepAlive = mDeviceInstance.getTimestampLastKeepAlive();\n \n // sleep a delay and send the timestamp keepalive\n TestsConfig.delay(waitInterval);\n mSimulatedDevice.writeln(Config.kDeviceKeepAlive);\n TestsConfig.delay(100);\n long afterKeepAlive = mDeviceInstance.getTimestampLastKeepAlive();\n assertTrue(afterKeepAlive > preKeepAlive + waitInterval);\n }", "@Override\n @Before\n public void setUp() throws Exception {\n System.setProperty(\"org.apache.activemq.transport.AbstractInactivityMonitor.keepAliveTime\", \"2\");\n this.realStore = true;\n super.setUp();\n }", "private GroupManager() {\r\n\t\tqueueManagers = new HashMap<Integer,QueueManager>();\r\n\t\tqueueManagerDeletionTimeout = -1;\r\n\t\thousekeepingSleep = HOUSEKEEPING_SLEEP;\r\n\t\thouseKeeper = new HouseKeeper(\"GroupManager_HouseKeeper\");\r\n\t\thouseKeeper.start();\r\n\t}", "public void sessionCreated(HttpSessionEvent sessionEvent) {\n\t\tHttpSession session = sessionEvent.getSession();\n\t\tDate date = new Date();\n\t\tSystem.out.println(\">>> Created Session : [\" + session.getId() + \"] at [\" + date.toString() + \"] <<<\"); \n\t\tSystem.out.println(\">>> getMaxInactiveInterval : [\" + session.getMaxInactiveInterval() + \" ] <<<\"); \n\t}", "@Override\n\tpublic void sessionCreated(HttpSessionEvent event) {\n\n\t\tHttpSession session = event.getSession();\n\t\tServletContext application = session.getServletContext();\n\t\tInteger online = (Integer) application.getAttribute(\"online\");\n\t\tif(online != null){\n\t\t\tonline++;\n\t\t}else{\n\t\t\tonline = 1;\n\t\t}\n\t\tapplication.setAttribute(\"online\", online);\n\t}", "public void doIdleTasks();", "public PaymentSessionPool(String path, String domain,\n boolean waitIfBusy)\n throws Exception {\n\n Properties props = new Properties();\n InputStreamReader in = null;\n try {\n //in =this.getC getResourceAsStream\n in = new InputStreamReader(new FileInputStream(path + \"/\" + domain + \".properties\"), \"UTF-8\");\n props.load(in);\n this.url = props.getProperty(\"cg.url\");\n this.appId = props.getProperty(\"cg.appId\");\n this.user = props.getProperty(\"cg.user\");\n this.password = props.getProperty(\"cg.password\");\n this.rcode = props.getProperty(\"cg.rcode\");\n this.domainId = props.getProperty(\"cg.domainId\");\n\n initialConnections = Integer.parseInt(props.getProperty(\"initconnections\"));\n maxConnections = Integer.parseInt(props.getProperty(\"maxConnections\"));\n\n LOG.debug(domain + \" :pool initiallise start\" + appId + \":\" + user + \":\" + password + \":\" + rcode + \":\" + domainId);\n System.out.println(domain + \" :pool initiallise start\");\n\n } catch (FileNotFoundException e) {\n // e.printStackTrace();\n System.err.println(\n \"Check your Property file, it should be in application home dir, Error:\"\n + e.getCause() + \"Cant load APPLICATION.properties\");\n //System.exit(-1);\n } catch (IOException e) {\n System.err.println(\n \"Check your Property file, it should be in application home dir, Error:\"\n + e.getCause() + \"Cant load APPLICATION.properties\");\n //System.exit(-1);\n } finally {\n if (null != in) {\n try {\n in.close();\n } catch (IOException ex) {\n }\n }\n }\n\n this.maxConnections = maxConnections;\n this.waitIfBusy = waitIfBusy;\n if (initialConnections > maxConnections) {\n initialConnections = maxConnections;\n }\n availableConnections = new Vector(initialConnections);\n busyConnections = new Vector();\n for (int i = 0; i < initialConnections; i++) {\n availableConnections.addElement(makeNewConnection());\n }\n\n LOG.debug(domain + \" :pool initiallise completed\");\n System.out.println(domain + \" :pool initiallise completed\");\n\n }", "public boolean getKeepalive () {\n\treturn keepalive;\n }", "public SessionPoll() {\n\t\tthis(\"session_poll\", null);\n\t}", "public static void initialise()\n\t{\n\t\tServerConfigurationManager theSCM = ServerConfigurationManager.getInstance();\n\t\tString timeoutMinutes = theSCM.getProperty(theSCM.MAUI_SESSION_TIMEOUT);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tlong minutes = Long.parseLong(timeoutMinutes);\n\t\t\t\n\t\t\tHTTPSession.kDefaultSessionTimeout = minutes * 60 * 1000;\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.err.println(\"[HTTPSession] Bad value for session timeout : \" + timeoutMinutes + \" Defaulting to 5 minutes.\");\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tsessionMaximum = Integer.parseInt (theSCM.getProperty (theSCM.MAUI_SESSION_MAXIMUM));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tsessionMaximum = Integer.parseInt (theSCM.MAUI_SESSION_MAXIMUM_VALUE);\n\t\t}\n\t}", "public boolean keepAlive() {\n\t\tDate date = LocPairsServerTime.getTime();\n\t\tthis.lastLifeSign = date;\n\t\treturn true;\n\t}", "public void initializeInstance() {\n instanceLife = new Timer();\n }", "public PoolBoneCpManager() {\n pool = null;\n }", "private void init() {\n healthCheckTimer.newTimeout(\n new TimerTask() {\n @Override\n public void run(Timeout timeout) throws Exception {\n if (!isStop) {\n List<BrpcChannel> newHealthyInstances = new ArrayList<BrpcChannel>();\n Iterator<BrpcChannel> iter = unhealthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (isHealthy) {\n newHealthyInstances.add(instance);\n }\n }\n\n List<BrpcChannel> newUnhealthyInstances = new ArrayList<BrpcChannel>();\n iter = healthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (!isHealthy) {\n newUnhealthyInstances.add(instance);\n }\n }\n\n healthyInstances.addAll(newHealthyInstances);\n unhealthyInstances.removeAll(newHealthyInstances);\n\n healthyInstances.removeAll(newUnhealthyInstances);\n unhealthyInstances.addAll(newUnhealthyInstances);\n notifyInvalidInstance(newUnhealthyInstances);\n\n healthCheckTimer.newTimeout(this,\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }\n\n }\n },\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }", "void init() throws ConnectionPoolException {\r\n\t\tfreeConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\tbusyConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t\tfor(int i = 0; i < poolsize; i++){\r\n\t\t\t\tConnection connection = DriverManager.getConnection(url, user, password);\r\n\t\t\t\tfreeConnection.add(connection);\r\n\t\t\t}\r\n\t\t\tflag = true;\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_DB_DRIVER + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_DB_DRIVER);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_SQL + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_SQL);\r\n\t\t}\r\n\t}", "private void launchPongManagerThread() {\n \t\tPongManager pongManager = new PongManager(this, listenAddress);\n \t\tfinal Thread t = this.listenChannel.getThreadFactory().newThread(pongManager);\n \t\tt.setName(\"Pong Server Manager\");\n \t\tt.start();\n \t}", "@Override\n\tpublic void visit(KeepAlive ka) {\n\t\tSystem.out.println(\"peer keepAlive connection\");\n\t\tph.setAlive(true);\n\t\tthis.lastKeepAlive = System.currentTimeMillis();\n\t}", "public static void reInitialize() {\r\n\t\tThread houseKeeperTemp = theInstance.houseKeeper;\r\n\t\ttheInstance.houseKeeper = null;\t\t// shuts down the housekeeper thread\r\n\t\thouseKeeperTemp.interrupt();\r\n\t\ttheInstance = new GroupManager();\t\t\r\n\t}", "public AppManager() {\n /** have a parking lot operator */\n ParkingLotOperatorInstance = new ParkingLotOperator();\n OperatorThread = new Thread(ParkingLotOperatorInstance);\n OperatorThread.start();\n ParkingLotOperatorInstance.startParkingLot();\n\n /** graceful shutdown */\n Runtime.getRuntime().addShutdownHook(new ProcessorHook());\n }", "private void setSessionEvents(SessionManager sessionMan)\n\t// create session callback...\n {\n try {\n // session end\n sessionMan.getSessionEndEvent().addObserver( new IObserver<NullEventArgs>() {\n public void update(IObservable<NullEventArgs> observable, NullEventArgs args)\n { isRunning = false; }\n });\n }\n catch (StatusException e) {\n e.printStackTrace();\n }\n }", "@PostConstruct\n public void init() {\n threadPoolTaskScheduler.scheduleWithFixedDelay(this::process, Instant.now(), Duration.ofSeconds(30));\n }", "public void startFactory() {\n if (!isStarted) {\n logger.info(\"Starting SessionListenerFactory.\");\n APIEventBus.getInstance().subscribe(this);\n isStarted = true;\n }\n }", "protected void initialize() {\r\n\t\tsubscribeBroadcast(TerminateBroadcast.class, terminate->{\r\n\t\t\tfTimer.cancel();\r\n\t\t\tthis.terminate();\r\n\t\t});\r\n\t\ttry {\r\n\t\t\tfCount.await();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t}\r\n\t\tfTimer.schedule(new TimerTask(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tif(fTick < fDuration){\r\n\t\t\t\t\tfTick++;\r\n\t\t\t\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++ \"+\"Tick \"+fTick +\" ++++++++++++++++++++++++++++++++++++++\");\r\n\t\t\t\t\tsendBroadcast((Broadcast) new TickBroadcast(fTick));\r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tsendBroadcast((Broadcast) new TerminateBroadcast());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}, 0, fSpeed);\r\n\t}", "public int getSessionMaxAliveTime();", "private static void startCleanUp() {\n\n if (!isEventTrackerRunning) {\n var ttrcker = new EventTrackInfoHandler();\n timer = new Timer(true);\n timer.scheduleAtFixedRate(ttrcker, timerDelayTime, checkInterval);\n debugLogger.info(\"EventTrackInfoHandler begins! : {}\", new Date());\n } else {\n debugLogger.info(\"Timer is still running : {}\", new Date());\n\n }\n }", "@Override\n public ServiceExecutionResult work(Map<Class<?>, Object> ejbs) {\n if (log.isDebugEnabled()) {\n log.debug(\"Performing HSM Keepalive operation.\");\n }\n // 1. If we use Audit log integrity protection, make a test integrity protection calculation\n InternalSecurityEventsLoggerSessionLocal logSession = (InternalSecurityEventsLoggerSessionLocal) ejbs\n .get(InternalSecurityEventsLoggerSessionLocal.class);\n try {\n logSession.auditLogCryptoTest();\n } catch (DatabaseProtectionException e1) {\n log.info(\"Could not perform a test signature on the audit log.\");\n }\n\n // 2. Call testKeyPair on all active crypto tokens that has an alias named testKey\n CryptoTokenManagementSessionLocal tokenSession = (CryptoTokenManagementSessionLocal) ejbs.get(CryptoTokenManagementSessionLocal.class);\n List<CryptoTokenInfo> infos = tokenSession.getCryptoTokenInfos(admin);\n if (log.isDebugEnabled()) {\n log.debug(\"Performing keepalive on all active crypto tokens (\" + infos.size() + \"), but skipping soft tokens.\");\n }\n if (infos.isEmpty()) {\n return new ServiceExecutionResult(Result.NO_ACTION, \"No active crypto tokens were found.\");\n } else {\n List<String> failedCryptoTokens = new ArrayList<>();\n List<String> successfulCryptoTokens = new ArrayList<>();\n for (CryptoTokenInfo info : infos) {\n // Only test active, PKCS11, crypto tokens. no need to do keepalive on soft tokens, they will not time out\n if (info.isActive() && StringUtils.isNotEmpty(info.getP11Library())) {\n CryptoToken token = tokenSession.getCryptoToken(info.getCryptoTokenId());\n try {\n List<String> aliases = token.getAliases();\n boolean tested = false;\n for (final String alias : aliases) {\n if (StringUtils.containsIgnoreCase(alias, \"testKey\")) {\n if (log.isDebugEnabled()) {\n log.debug(\"Keepalive testing crypto token '\" + info.getName() + \"' with id \" + info.getCryptoTokenId());\n }\n token.testKeyPair(alias);\n tested = true;\n }\n }\n if (!tested) {\n log.warn(\"No testKey on crypto token '\" + info.getName() + \"' with id \" + info.getCryptoTokenId());\n } else {\n successfulCryptoTokens.add(token.getTokenName());\n }\n } catch (InvalidKeyException | CryptoTokenOfflineException | KeyStoreException e) {\n log.info(\"Error testing crypto token \" + token.getTokenName() + \" that suppposedly was active: \", e);\n failedCryptoTokens.add(token.getTokenName());\n }\n } else {\n if (log.isDebugEnabled()) {\n log.debug(\"Not testing inactive, or soft, crypto token '\" + info.getName() + \"' with id \" + info.getCryptoTokenId());\n }\n }\n }\n if (failedCryptoTokens.isEmpty()) {\n if (successfulCryptoTokens.isEmpty()) {\n return new ServiceExecutionResult(Result.NO_ACTION,\n \"HSM Keepalive Worker executed, but no active PKCS#11 crypto tokens were found.\");\n } else {\n return new ServiceExecutionResult(Result.SUCCESS,\n \"Performed successful healthcheck on \" + successfulCryptoTokens.size() + \" crypto tokens.\");\n }\n \n } else { \n return new ServiceExecutionResult(Result.FAILURE, \"Performed successful healthcheck on \" + successfulCryptoTokens.size()\n + \" crypto tokens, but the following crypto tokens failed: \" + constructNameList(failedCryptoTokens));\n }\n }\n\n }", "protected abstract void fireSessionIdle(IoSessionEx session);", "static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "private void mainLoop() {\n while (!isShutdown()) {\n ForkJoinTask<?> t = pollTask();\n if (t != null || (t = pollSubmission()) != null)\n t.quietlyExec();\n else if (tryInactivate())\n pool.sync(this);\n }\n }", "public void setKeepAlive (boolean aKeepAlive)\n\t{\n\t\tkeepAlive = aKeepAlive;\n\t}", "public abstract Thread startSession();", "public void runServer() {\n\t\tint i = 0;\n\n\t\tclientList = new ArrayList<>();\n\t\ttry {\n\t\t\tServerSocket listener = new ServerSocket(port);\n\n\t\t\tSocket server;\n\n\t\t\tprintDetails();\n\n\t\t\twhile ((i++ < maxConnections) || (maxConnections == 0)) {\n\n\t\t\t\tserver = listener.accept();\n\t\t\t\tSession session = new Session(server, this.storageLocation );\n\n\t\t\t\tnew Thread(session).start();\n\n\t\t\t\tString name = session.getName();\n\t\t\t\tSystem.out.printf(\"%s STARTED\\r\\n\", name );\n\t\t\t\tclientList.add( session );\n\t\t\t\tdoGC();\n\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"IOException on socket listen: \" + ioe);\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "public void setAlive() {\n\t\tif (this.alive == true) {\n\t\t\tthis.alive = false;\n\t\t} else {\n\t\t\tthis.alive = true;\n\t\t}\n\t}", "public IPConnection() {\n\t\tbrickd = new BrickDaemon(\"2\", this);\n\t}", "public void setAlive() {\n\t\tif(alive)\n\t\t\talive = false;\n\t\telse\n\t\t\talive = true;\n\t}", "public static void startStateGC() {\n synchronized (stateGC) {\n if(!stateGC.isAlive()) {\n stateGC.setDaemon(true);\n stateGC.start();\n }\n }\n }", "public int getKeepAlive() {\n return keepAlive_;\n }", "default public int getAliveInterval() \t\t\t\t\t{ return 1000; }", "public void initialize() {\n service = Executors.newCachedThreadPool();\n }", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\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\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "public int getKeepAlive() {\n return keepAlive_;\n }", "public void startTimerAvoidSessionTimeout() {\n\t\tif(timer == null) {\n\t\t\ttimer = new Timer() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcommonService.getJobMonitor(String.valueOf(JobMonitorModel.JOBTYPE_BACKUP),-1L, \n\t\t\t\t\t\t\tnew BaseAsyncCallback<JobMonitorModel>(){\n\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\tif (caught instanceof SessionTimeoutException){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString msg =\"Cannot connect to backend. Please try again\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tMessageBox messageBox = new MessageBox();\n\t\t\t\t\t\t\t\tmessageBox.setButtons(MessageBox.OK);\n\t\t\t\t\t\t\t\tmessageBox.addCallback(new Listener<MessageBoxEvent>()\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tpublic void handleEvent(MessageBoxEvent be)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (be.getButtonClicked().getItemId().equals(Dialog.OK))\n\t\t\t\t\t\t\t\t\t\t\t\t\tcom.google.gwt.user.client.Window.Location.reload();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\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\tmessageBox.setMinWidth(200);\n\t\t\t\t\t\t\t\tmessageBox.setType(MessageBoxType.ALERT);\n\t\t\t\t\t\t\t\tmessageBox.setIcon(MessageBox.ERROR);\n\t\t\t\t\t\t\t\tmessageBox.setTitleHtml(UIContext.Constants.failed());\n\t\t\t\t\t\t\t\tmessageBox.setMessage(msg);\n\t\t\t\t\t\t\t\tmessageBox.setModal(true);\n\t\t\t\t\t\t\t\tmessageBox.show();\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\tpublic void onSuccess(JobMonitorModel result) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\ttimer.schedule(3000);\n\t\t\ttimer.scheduleRepeating(3000);\n\t\t}\n\t}", "public Server() {\n\t\tsession = new WelcomeSession();\n\t\tmPort = DEFAULT_PORT;\n\t\texecutor = Executors.newCachedThreadPool();\n\t}", "public WebConnectorRequestHandler () {\t\t\n\t\t_userSessions = new Hashtable<Long, UserSession>(); //manage all active sessions\n\t\t\n\t scheduledExecutorService.scheduleWithFixedDelay( //thread looping and checking for timeouts\n\t \t\tnew Runnable() {\t\t\t\t\t\t//if the user is logged in for too long without sending any requests-> logout\n\t\t\t public void run() {\t\t\t\t\t\n\t\t\t \tcheckforLogout(false);\n\t\t\t \n\t\t\t }\n\t\t\t }\n\t \t\t, LOGOUT_INTERVAL, LOGOUT_INTERVAL, TimeUnit.SECONDS);\n\t\t\t \n\n\n\t}", "public boolean isPoolKeepAlive() {\n return poolKeepAlive;\n }", "public synchronized void emptyPool(){\n // Iterate over the entire pool closing the JDBC connections\n for(int x=0; x<pool.size();x++){\n PooledConnection pcon = (PooledConnection)pool.elementAt(x);\n //If the PooledConnection is not in use, close it.\n if(pcon.inUse() == false){\n pcon.close();\n }\n else{\n // If it's still in use, sleep 30 secs and force close\n try{\n java.lang.Thread.sleep(30000);\n pcon.close();\n }catch(InterruptedException ie){\n System.err.println(ie.getMessage() + \" in ConnectionPool.emptyPool()\");\n }\n }\n }\n }", "public SessionPanel() {\n initComponents();\n initProcess();\n }", "public interface SessionHandler extends Component {\n\n String getWorkerName();\n\n Scheduler getScheduler();\n\n SessionIdGenerator getSessionIdGenerator();\n\n SessionCache getSessionCache();\n\n int getDefaultMaxIdleSecs();\n\n void setDefaultMaxIdleSecs(int defaultMaxIdleSecs);\n\n /**\n * Get a known existing session.\n * @param id the session id\n * @return a Session or null if none exists\n */\n DefaultSession getSession(String id);\n\n /**\n * Create an entirely new Session.\n * @param id identity of session to create\n * @return the new session object\n */\n DefaultSession createSession(String id);\n\n void releaseSession(DefaultSession session);\n\n /**\n * Create a new Session ID.\n * @param seedTerm the seed for RNG\n * @return the new session id\n */\n String createSessionId(long seedTerm);\n\n /**\n * Change the id of a Session.\n * @param oldId the current session id\n * @param newId the new session id\n * @return the Session after changing its id\n */\n String renewSessionId(String oldId, String newId);\n\n /**\n * Remove session from manager.\n * @param id the session to remove\n * @param invalidate if false, only remove from cache\n * @return if the session was removed\n */\n DefaultSession removeSession(String id, boolean invalidate);\n\n DefaultSession removeSession(String id, boolean invalidate, Session.DestroyedReason reason);\n\n /**\n * Called when a session has expired.\n * @param id the id to invalidate\n */\n void invalidate(String id);\n\n void invalidate(String id, Session.DestroyedReason reason);\n\n /**\n * Each session has a timer that is configured to go off\n * when either the session has not been accessed for a\n * configurable amount of time, or the session itself\n * has passed its expiry.\n *\n * If it has passed its expiry, then we will mark it for\n * scavenging by next run of the HouseKeeper; if it has\n * been idle longer than the configured eviction period,\n * we evict from the cache.\n *\n * If none of the above are true, then the System timer\n * is inconsistent and the caller of this method will\n * need to reset the timer.\n * @param session the default session\n * @param now the time at which to check for expiry\n */\n void sessionInactivityTimerExpired(DefaultSession session, long now);\n\n /**\n * Called periodically by the HouseKeeper to handle the list of\n * sessions that have expired since the last call to scavenge.\n */\n void scavenge();\n\n /**\n * Adds an event listener for session-related events.\n * @param listener the session listener\n * @see #removeSessionListener(SessionListener)\n */\n void addSessionListener(SessionListener listener);\n\n /**\n * Removes an event listener for session-related events.\n * @param listener the session listener to remove\n * @see #addSessionListener(SessionListener)\n */\n void removeSessionListener(SessionListener listener);\n\n /**\n * Removes all event listeners for session-related events.\n *\n * @see #removeSessionListener(SessionListener)\n */\n void clearSessionListeners();\n\n /**\n * Call binding and attribute listeners based on the new and old values of\n * the attribute.\n * @param name name of the attribute\n * @param newValue new value of the attribute\n * @param oldValue previous value of the attribute\n * @throws IllegalStateException if no session manager can be find\n */\n void fireSessionAttributeListeners(Session session, String name, Object oldValue, Object newValue);\n\n /**\n * Call the session lifecycle listeners.\n * @param session the session on which to call the lifecycle listeners\n */\n void fireSessionDestroyedListeners(Session session);\n\n /**\n * Record length of time session has been active. Called when the\n * session is about to be invalidated.\n * @param session the session whose time to record\n */\n void recordSessionTime(DefaultSession session);\n\n /**\n * @return the maximum amount of time session remained valid\n */\n long getSessionTimeMax();\n\n /**\n * @return the total amount of time all sessions remained valid\n */\n long getSessionTimeTotal();\n\n /**\n * @return the mean amount of time session remained valid\n */\n long getSessionTimeMean();\n\n /**\n * @return the standard deviation of amount of time session remained valid\n */\n double getSessionTimeStdDev();\n\n /**\n * Resets the session usage statistics.\n */\n void statsReset();\n\n}", "@Override\n public boolean isSessionAlive() {\n return sessionFactory.getCurrentSession() != null && sessionFactory.getCurrentSession().isOpen();\n }", "public void setKeepAliveTimeout(int keepAliveTimeout) {\r\n\t\tthis.keepAliveTimeout = keepAliveTimeout;\r\n\t}", "public void setKeepAliveTime(Duration keepAliveTime) {\n this.keepAliveTime = keepAliveTime;\n }", "public void setIdleTimeout(int idleTimeout)\n {\n _executor.setKeepAliveTime(idleTimeout, TimeUnit.MILLISECONDS);\n }", "private static void exKeepingAppAliveOne() {\n\n Observable.interval(1, TimeUnit.SECONDS)\n .subscribe(System.out::println);\n\n Take.sleep(Long.MAX_VALUE); //Calls Thread.sleep(long milli)\n\n /* OUTPUT :\n\n */\n }", "public void setKeepAliveTimeout(Duration keepAliveTimeout) {\n this.keepAliveTimeout = keepAliveTimeout;\n }", "public void active() {\n createClassIfNotExists();\n\n globalHook = new OAuditingHook(security);\n\n retainTask =\n new TimerTask() {\n public void run() {\n retainLogs();\n }\n };\n\n long delay = 1000L;\n long period = 1000L * 60L * 60L * 24L;\n\n timer.scheduleAtFixedRate(retainTask, delay, period);\n\n Orient.instance().addDbLifecycleListener(this);\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().registerLifecycleListener(this);\n }\n }\n\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.start();\n }\n }", "int getKeepAlive();", "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n checkSession();\n\n }", "@GuardedBy(\"mLock\")\n @VisibleForTesting\n protected void freeIfInactiveLocked() {\n mAttentionHandler.removeMessages(AttentionHandler.CHECK_CONNECTION_EXPIRATION);\n\n // Schedule resources cleanup if no one calls the API again.\n mAttentionHandler.sendEmptyMessageDelayed(AttentionHandler.CHECK_CONNECTION_EXPIRATION,\n CONNECTION_TTL_MILLIS);\n }", "@Override\n public void update() { Ping the connection to see if it is still alive. At\n // some point the ProxyClient class should centralize\n // the connection aliveness monitoring and no longer\n // rely on the custom tabs to ping the connections.\n //\n try {\n getMBeanServerConnection().getDefaultDomain();\n } catch (IOException ex) {\n vmPanel.getProxyClient().markAsDead();\n }\n }", "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\tlog.info(\"------ sessionListen-----init------\");\n\t}", "public void doProcessSession() throws Exception\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcheckInstance();\r\n\r\n\t\t\tif ((server == null) || server.isClosed())\r\n\t\t\t{\r\n\t\t\t\tserver = new ServerSocket(listenPort, backLogSize);\r\n\t\t\t}\r\n\r\n\t\t\tTCPServer callbackServer = new TCPServer(server, this);\r\n\r\n\t\t\tcallbackServer.start();\r\n\r\n\t\t\twhile (isAvailable())\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "private void refreshSession() {\n\t\ttry {\n\t\t\tAuthenticationUtils.endSession();\n\t\t\tAuthenticationUtils.startSession(endpointUser, endpointPassword);\n\t\t} catch(Throwable e) {\n\t\t\tLOG.error(\"Error refreshing session\", e);\n\t\t}\n\t}", "public GeoServerHttpSessionListenerProxy() {\n }", "@Before\n public void init() {\n pool=ShardedJedisSentinelPoolSinglton.getPool();\n }", "public void setTCPAliveTime(int keepAliveMillis) {\r\n\t\ttcp.aliveTime = keepAliveMillis;\r\n\t}" ]
[ "0.6188892", "0.59278095", "0.56960076", "0.55889416", "0.5523245", "0.54566586", "0.5392269", "0.53459567", "0.53338194", "0.53014094", "0.5251519", "0.52343285", "0.5200569", "0.5178556", "0.5171586", "0.5123774", "0.51160085", "0.5097775", "0.50916415", "0.50615716", "0.50606334", "0.50405806", "0.5019534", "0.50002545", "0.4958623", "0.49503312", "0.49481466", "0.49350226", "0.49276498", "0.492435", "0.4919375", "0.49149266", "0.4903341", "0.48990998", "0.48851576", "0.48791578", "0.48760918", "0.48649803", "0.48634976", "0.4862335", "0.48537067", "0.48408777", "0.48311406", "0.48297858", "0.48132995", "0.48103943", "0.47732875", "0.47682407", "0.4759075", "0.47524574", "0.4752077", "0.4743332", "0.47402042", "0.47324634", "0.4731051", "0.47254953", "0.47171208", "0.4716416", "0.47137958", "0.47127205", "0.4709729", "0.47091937", "0.4707457", "0.47071546", "0.4697622", "0.46971324", "0.46952567", "0.46846497", "0.46807975", "0.46781713", "0.46765056", "0.46738467", "0.46722573", "0.46667138", "0.46578464", "0.46536922", "0.46535823", "0.46522063", "0.4651865", "0.46515086", "0.46457916", "0.46428847", "0.46424088", "0.46350121", "0.46304056", "0.4629104", "0.46284592", "0.46263534", "0.46231684", "0.46155104", "0.46144155", "0.46141633", "0.46125558", "0.46052092", "0.4597799", "0.45872915", "0.45824078", "0.45817384", "0.45650208", "0.45649847" ]
0.5565913
4
Change the maximum size that the managed session pool will grow to. Note that this setting will not be saved to the configuration source.
@Override public void changeMaxPoolSize(int size) { sessionPool.setMaxSize(size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setMaxSize(int size) {\n maxSize = size;\n }", "public void setMaxSize(int maxSize) {\n this.maxSize = maxSize;\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "public void setMaxSize(int c) {\n maxSize = c;\n }", "public void setMaxSize(int size) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n maxSize = size;\n if (maxSize != 0 && minSize > maxSize) {\n minSize = maxSize;\n log.warn(\"pool min size set to \" + minSize + \" to stay <= max size\");\n }\n }", "public void setMaxBufferSize(int value) {\n this.maxBufferSize = value;\n }", "@Override\n public int getMaxCapacity() {\n return 156250000;\n }", "void setMaximumCacheSize(int maximumCacheSize);", "public void setMaxsize(int maxsize) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}", "private void setMaxCacheMemSize(long maxSize) {\n\t\tif ( maxSize < 25 * 1024 ) {\n\t\t\tthrow new IllegalAccessError(\"Cache size must be at least 25 KB (\"+(25*1024)+\" bytes)\");\n\t\t}\n\t\tlog.info(\"setCacheSize(): New cache size: \"+maxSize+\" bytes.\");\n\t\tfinal boolean shrink = this.maxSize > maxSize;\n\t\tthis.maxSize = maxSize;\n\t\tif ( shrink ) {\n\t\t\tpurgeCache(true);\n\t\t}\n\t}", "public void setMaxFileSize(int sINGLESIZE) {\n\t\t\r\n\t}", "public synchronized void updateMaxSize(int maxSize) {\n setMaxSize(maxSize);\n }", "public HttpClient setMaxPoolSize(Env env, NumberValue size) {\n client.setMaxPoolSize(size.toInt());\n return this;\n }", "public void setMaxPoolSize(int maxPoolSize) {\n this.maxPoolSize = maxPoolSize;\n }", "public void setMaxSize(int size) {\n maxSize = size;\n while (size() > maxSize) {\n remove(0);\n }\n }", "public void setMaxConnections(int maxConnections)\n {\n _maxConnections = maxConnections;\n }", "public void setMaxConcurrentConnection(Long MaxConcurrentConnection) {\n this.MaxConcurrentConnection = MaxConcurrentConnection;\n }", "public void setMaxCapacity(int max) {\n\t\tbuffer = new Object[max];\n\t\tbufferSize = 0;\n\t}", "public void setMaximumPoolSize(int maximumPoolSize) {\n this.maximumPoolSize = maximumPoolSize;\n }", "public void setMaxBufferSize(int maxBufferSize) {\r\n this.maxBufferSize = maxBufferSize;\r\n }", "public void setMaxConnections(int maxConnections) {\n this.maxConnections = maxConnections;\n saveProperties();\n }", "public void setMaxCacheEntrySize(int val) {\n this.mMaxCacheEntrySize = val;\n }", "public Builder setMaxSize(int value) {\n \n maxSize_ = value;\n onChanged();\n return this;\n }", "public void setSessionMaxAliveTime(int sessionMaxAliveTime);", "public int getMaxSize() {\n return maxSize_;\n }", "public void setMaxSpringSize(float maxSpringSize) {\r\n\t\tthis.maxSpringSize = maxSpringSize;\r\n\t\tspringSize = springSize > maxSpringSize ? maxSpringSize : springSize;\r\n\t}", "public int getMaxSize(){\n return maxSize;\n }", "public void setMaxmemory(String max) {\r\n getCommandLine().setMaxmemory(max);\r\n }", "public Builder setMaximumCapacity(int value) {\n \n maximumCapacity_ = value;\n onChanged();\n return this;\n }", "@Override\n public void setMaxWriteSize(int maxWriteSize) {\n mMaxWriteSize = maxWriteSize;\n }", "public void setMaxMemoryCacheSize(int val) {\n this.mMaxMemoryCacheSize = val;\n }", "public long maxSize() {\n\t\treturn maxSize;\n\t}", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public Builder setMaxSize(int value) {\n bitField0_ |= 0x00000001;\n maxSize_ = value;\n onChanged();\n return this;\n }", "public void setMaxInboundMessageSize(Integer maxInboundMessageSize) {\n this.maxInboundMessageSize = maxInboundMessageSize;\n }", "public int getMaximumSize() {\n return maximumSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public void setMaxOverflowConnections(int maxOverflowConnections)\n {\n _maxOverflowConnections = maxOverflowConnections;\n }", "public void setMaxConcurrentAccessCount(String newValue);", "public int getMaxSize() {\n return maxSize_;\n }", "public int getSizeLimit() {\n\t\treturn sizeLimit;\n\t}", "public void setMemMax(long memMax) {\n this.memMax = memMax;\n }", "@Override\n\tpublic void setWriteQueueMaxSize(int maxSize) {\n\t\t\n\t}", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "public int maxSize()\n {\n return maxSize;\n }", "public void setLogCollectionMaxFileSize(int size);", "public String getDatabaseConnectionPoolMaxNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.max.number.connections\");\n \t}", "public void setMaxLogSize(int size) {\n mEditLog.setMaxLogSize(size);\n }", "public void setMaximumPlayerSessionCount(Long MaximumPlayerSessionCount) {\n this.MaximumPlayerSessionCount = MaximumPlayerSessionCount;\n }", "public void setMaxFileSize(String value)\r\n\t{\r\n\t\tmaxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);\r\n\t}", "public static native void setMaxCache(int max);", "public void setPoolSize(final int poolSize) {\n this.poolSize = poolSize;\n }", "public void setMaximumCapacity(int maximumCapacity) { // set the max\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// capacity\n\t\tthis.maximumCapacity = maximumCapacity;\n\t}", "public void setMaxLength(int value) {\n this.maxLength = value;\n }", "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "@Override\n public void setMaxFieldSize(int max) throws SQLException {\n max_field_size = max;\n }", "private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }", "public int getMaxPoolSize() {\n return maxPoolSize;\n }", "static public void setMaxLogStoreSize(final int bytes) {\n // TODO: also check if bytes is bigger than remaining disk space?\n if (bytes >= 10000) {\n logFileMaxSize = bytes;\n }\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n prefs.edit ().putInt (SHARED_PREF_KEY_logFileMaxSize, logFileMaxSize).commit();\n }\n }", "public int getMaxBufferSize() {\r\n return maxBufferSize;\r\n }", "public void setMaxImageSize(final int maxSize) {\r\n\t\tgetState().maxSize = maxSize;\r\n\t}", "public static native void setMaxCacheMem(int max_mem);", "public void setSize(long value) {\n this.size = value;\n }", "@ManagedAttribute(description = \"The maximum file size for the file store in bytes\")\n public void setMaxFileStoreSize(long maxFileStoreSize) {\n this.maxFileStoreSize = maxFileStoreSize;\n }", "@Override\n public void setMaxSize(int maxSize){\n if (maxSize < 0){\n throw new IllegalArgumentException(\"Memory cache size must not be negative\");\n }\n\n this.maxSize = maxSize;\n\n if (maxSize == 0){\n // unlimited cache size\n return;\n }\n\n int cacheSize = this.size();\n if (cacheSize > maxSize){\n // max cache size is less than current cache size\n // delete all object that are out of bound\n ArrayList<K> cacheObjects = new ArrayList<>(this.cache.keySet());\n for (int i = maxSize; i < cacheSize; i++){\n this.delete(cacheObjects.get(i));\n }\n }\n }", "public void setCacheMaxSizeKB(int maxSizeKB) {\n cacheHandler.setMaxCacheSizeKB(maxSizeKB);\n resetChain();\n }", "public void setMaxFieldSize(int max) throws SQLException {\n\r\n }", "public Builder setMaxEnvelopeQueueSize(long value) {\n \n maxEnvelopeQueueSize_ = value;\n onChanged();\n return this;\n }", "public abstract void setMaxExponentSize(byte maxExponentSize);", "public Dimension getMaximumSize()\n {\n return new Dimension(32767, 32767);\n }", "public int getMaxPoolSize(Env env) {\n return client.getMaxPoolSize();\n }", "public SizeLimitRowMapper(long maxSize){\r\n\t\tthis.maxBytes = maxSize;\r\n\t}", "public int getMaxBufferSize() {\n return maxBufferSize;\n }", "@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }", "public Builder setFlushMaxSize(int flushMaxSize) {\n this.flushMaxSize = flushMaxSize;\n return this;\n }", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "public void setMaximumCacheSize(int i) {\n this.maximumCacheSize = i;\n shrinkCacheToMaximumSize();\n }", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "public void setMaxThreads(int maxThreads)\r\n {\r\n this.maxThreads = maxThreads;\r\n }", "public void setMaxLength(int maxLength) {\r\n _maxLength = maxLength;\r\n }", "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "public void setMaxPoolTime(Period maxPoolTime)\n {\n long period = maxPoolTime.getPeriod();\n \n if (period < 0)\n _maxPoolTime = Long.MAX_VALUE / 2;\n else if (period == 0)\n _maxPoolTime = 1000L;\n else\n _maxPoolTime = period;\n }", "private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }", "public void setMaxEntries(int maxEntries) {\n this.maxEntries = maxEntries;\n }", "private void setMemorySize() { }", "public Builder setMaxUploadSizeInBytes(long value) {\n \n maxUploadSizeInBytes_ = value;\n onChanged();\n return this;\n }", "public abstract long getMaxSize();", "public void setMaxEvictionQueueEntries(int val) {\n this.mMaxEvictionQueueEntries = val;\n }", "void setTransactionLogMaxSize(int maxSize) {\n\t\ttransactionLog.setMaxSize(maxSize);\n\t\t\n\t\tif (maxSize == 0) {\n\t\t\ttransactionMonitor = null;\n\t\t} else {\n\t\t\ttransactionMonitor = new TransactionMonitor(transactionLog);\n\t\t}\n\t}", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public void setMaxFieldSize(int max) throws SQLException {\n currentPreparedStatement.setMaxFieldSize(max);\n }", "public void setMaxLoadFactor(double loadFactor)\n {\n MAX_LOAD_FACTOR = loadFactor;\n }", "protected abstract int getMaxDesiredSize();", "private void setConfigNumMaxBgJobs(int value) {\n this.bitField0_ |= 2;\n this.configNumMaxBgJobs_ = value;\n }", "public int getMaxSize()\n {\n return m_MaxSize;\n }", "public void setMaxQuota(Integer value) {\n setAttributeInternal(MAXQUOTA, value);\n }", "public int maximumSizeInBytes() {\n return maximumSizeInBytes;\n }" ]
[ "0.6931856", "0.69161016", "0.6818288", "0.6803326", "0.6785789", "0.67633253", "0.67019683", "0.6690696", "0.66020614", "0.64861137", "0.6483629", "0.64790046", "0.6473091", "0.6392125", "0.6385808", "0.6374647", "0.63617516", "0.6341929", "0.6340583", "0.632397", "0.6311694", "0.6242888", "0.61796993", "0.6150918", "0.6138737", "0.6109369", "0.61009467", "0.60846657", "0.60640275", "0.6056519", "0.60553044", "0.6054183", "0.6048662", "0.6048662", "0.60441", "0.60340726", "0.6021944", "0.5992254", "0.5992254", "0.5992254", "0.59901285", "0.5985677", "0.59718394", "0.596656", "0.59639364", "0.59573454", "0.5950279", "0.59467477", "0.59362245", "0.5931933", "0.59220695", "0.59129316", "0.59062356", "0.5903226", "0.58970445", "0.58496994", "0.58389634", "0.5829364", "0.5829241", "0.58268446", "0.58258706", "0.5815855", "0.58071667", "0.5800432", "0.580012", "0.5797459", "0.5796026", "0.57868886", "0.5782934", "0.5782578", "0.5768148", "0.57634234", "0.5763131", "0.5749357", "0.5749062", "0.5747352", "0.5743567", "0.57378304", "0.57305956", "0.5718907", "0.5713512", "0.57128733", "0.5711821", "0.5710664", "0.5707354", "0.57037157", "0.56967604", "0.56935436", "0.568075", "0.56801033", "0.5663985", "0.56550324", "0.5653223", "0.56509095", "0.56433004", "0.56368965", "0.56316686", "0.5629714", "0.5626922", "0.5616686" ]
0.82510704
0
Change the EPP client password from oldPassword to newPassword. Note that this does not update the configuration source to reflect the change that must be done separately before any future attempts to (re)configure the system.
@Override public void changePassword(String oldPassword, String newPassword) { debugLogger.finest("enter"); userLogger.info(ErrorPkg.getMessage("reconfigure.pw.change.init", new String[] {"<<old>>", "<<new>>"}, new String[] {oldPassword, newPassword})); sessionPool.empty(); try { Session session = SessionFactory.newInstance(properties.getSessionProperties()); session.changePassword(newPassword); // Attempts to get a session between changePassword and setClientPW // will fail if the password was successfully changed. It is the // application's responsibility to handle transaction failures // during a change of password. This is expected to occur very // infrequently. properties.getSessionProperties().setClientPW(newPassword); } catch (Exception ex) { userLogger.severe(ex.getMessage()); userLogger.severe(ErrorPkg.getMessage("reconfigure.pw.change.fail")); } debugLogger.finest("exit"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void changePassword(String old, String newpswd)\n\t\t\tthrows HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"changePassword\");\n\t\tif (!this.isCloudChannelLive()) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n\t\t\t\t\t\"User is not online\");\n\t\t}\n\n\t\ttry {\n\t\t\tJSONObject joReq = new JSONObject();\n\t\t\tJSONObject pl = new JSONObject();\n\t\t\tjoReq.put(\"CID\", 10241);\n\t\t\tjoReq.put(\"SID\", getsid());\n\t\t\tpl.put(\"oldPwd\", old);\n\t\t\tpl.put(\"newPwd\", newpswd);\n\t\t\tjoReq.put(\"PL\", pl);\n\n\t\t\tString req = joReq.toString();\n\n\t\t\tString rsp = HttpProxy.reqByHttpPost(req);\n\t\t\tJSONObject jo = new JSONObject(rsp);\n\n\t\t\tif (jo.isNull(\"RC\")) {\n\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_CHANGE_PSWD,\n\t\t\t\t\t\t\"can not change passwd\");\n\t\t\t}\n\t\t\tif (jo.getInt(\"RC\") != 1) {\n\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_CHANGE_PSWD,\n\t\t\t\t\t\t\"can not change passwd\");\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_CHANGE_PSWD,\n\t\t\t\t\t\"can not change passwd\");\n\t\t}\n\t}", "public void changePassword(String username, String newPassword, String oldPassword) {\n\t\tm_tcpSession.write(\"c\" + username + \",\" + (getPasswordHash(username, newPassword)) + \",\" + (getPasswordHash(username, oldPassword)));\n\t}", "public void changePassword(String newPassword, String oldPassword) throws InvalidPasswordException {\n try {\n if (this.password.equals(oldPassword))\n this.password = newPassword;\n else\n throw new InvalidPasswordException();\n }\n catch(InvalidPasswordException e) {\n System.out.println(\"invalid password\"); //mainly for testing purposes\n }\n }", "public void setOldPassword(String oldPassword) {\n this.oldPassword = oldPassword;\n }", "public void changePassword(String oldPassword, String newPassword1, String newPassword2) throws Exception {\n /*if (!Controller.getInstance().getActiveClient().getPassword().equals(oldPassword)) {\n throw new Exception(\"Sifra se ne poklapa sa prethodnom\");\n }*/\n if (!newPassword1.equals(newPassword2)) {\n throw new Exception(\"Sifre nisu iste\");\n }\n if (!password(newPassword2)) {\n throw new Exception(\"Sifra mora imati bar 8 karaktera\");\n }\n }", "@Override\r\n\tpublic void modifyPassword(String username, String password, String confirmPassword, String oldPassword) {\n\t}", "public void setPassword(java.lang.String newPassword);", "public void changePassword(String passwordChange){\n\t this.password = passwordChange;\n\t}", "public void setUserPassword(String login, String oldPassword, String newPassword) throws EOSForbiddenException,\n\t\t\tEOSUnauthorizedException, EOSValidationException;", "public void setPassword(String newPassword) {\n this.password = newPassword;\n \n //make the changes in the database\n db.updateUserProperty(username, Property.PASSWORD, newPassword);\n }", "public void changePassword(final String oldPassword,\n final String newPassword,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n // Create request headers.\n final HashMap<String, String> headers = new HashMap<String, String>(2);\n headers.put(\"Authorization\", AUTHORIZATION_HEADER);\n headers.put(\"Content-Type\", \"application/json\");\n\n // Create request parameters.\n final HashMap<String, String> parameters =\n new HashMap<String, String>(2);\n parameters.put(\"grant_type\", \"bearer\");\n parameters.put(\"access_token\", mSharecareToken.accessToken);\n\n // Create request body.\n final HashMap<String, String> body = new HashMap<String, String>(2);\n body.put(OLD_PASSWORD, oldPassword);\n body.put(NEW_PASSWORD, newPassword);\n\n final Gson gson = new GsonBuilder().create();\n final String bodyJson = gson.toJson(body);\n\n // Create endpoint.\n final String endPoint =\n String.format(CHANGE_PASSWORD_ENDPOINT, mSharecareToken.accountID);\n\n this.beginRequest(endPoint, ServiceMethod.POST, headers, parameters,\n bodyJson, ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n LogError(\"changePassword\", result);\n return result;\n }\n }, completion);\n }", "public void changePassword(String userid, String oldPassword, String newPassword) {\n\tif(decrypt(pwds.get(userid),salts.get(userid)).equals(oldPassword)){\n\t\tcreatePassword(userid,newPassword);\n\t}\n\t}", "public void setPassword(String new_password) throws DataFault {\n\t\t\t\t setPassword(Hash.getDefault(getContext()), new_password);\n\t\t\t }", "public String changePassword()\n \t{\n \t\tUser u = getSessionUser();\n \n \t\ttry {\n \t\t\tu.changePassword(getParam(\"oldPassword\"), getParam(\"newPassword\"));\n \t\t\treturn Action.SUCCESS;\n \t\t}\n \t\tcatch (InvalidPasswordException e) {\n \t\t\taddActionError(getText(\"error.invalid.password\"));\n \t\t\treturn Action.ERROR;\n \t\t}\n \t\tcatch (Exception e) {\n \t\t\taddActionError(getText(\"internal.app.error\"));\n \t\t\t_log.error(\"Exception changing password!\", e);\n \t\t\treturn \"internal.app.error\";\n \t\t}\n \t}", "void changePassword(String userName, @Nullable String oldPassword, @Nullable String newPassword) throws PasswordNotMatchException;", "public void setUserPassword(String newPassword) {\n profile.setPassword(currentUser, newPassword);\n }", "public void changePasswort(String newpassword) {\n\n\t\ttry {\n\t\t\tchatConnection.changePassword(newpassword);\n\t\t\tconnectionconfig.setPasswd(newpassword);\n\t\t\t\n\t\t} catch (Exception e) {\n\n\t\t\t//System.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\t\n\t}", "public void updatePassword(String newPassword) throws SQLException {\n updatePassword(digestPassword(newPassword));\n }", "public boolean setPassword(String oldPass, String newPass){\r\n if (oldPass.equals(this.password)){\r\n this.password = newPass;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean changePassword(String username, byte[] oldPassword, byte[] newPassword, byte[] confirmPassword)\n\t\tthrows UnknownHostException, IOException, VotingSecurityException {\n\t\t\n\t\t//Client-side checks\n\t\tif(!Arrays.equals(newPassword,confirmPassword)){\n\t\t\tSystem.out.println(\"Passwords do not match!\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//\n\t\tMessage send = new Message(Operation.CHANGE_PASSWORD);\n\t\tsend.password = oldPassword;\n\t\tsend.newPassword = newPassword;\n\t\tsend.confirmPassword = confirmPassword;\n\t\tsend.voter = username;\n\t\t\n\t\tMessage response = prepareMessage(send);\n\t\t\n\t\treturn response.passwordChanged;\n\t}", "public final void setPwd(final String pwdNew) {\n this.pwd = pwdNew;\n }", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;", "public ChangePasswordOperation(String username, String newPassword) throws LDAPException {\r\n super(\"1.3.6.1.4.1.4203.1.11.1\", null);\r\n setValue(getEncodedValue(username, newPassword));\r\n }", "@Override\n\tpublic ResultMessage changePassword(String ID, String oldPassword, String newPassword) {\n\t\tif(ID==\"0000000000\"){\n\t\t\tWebManager manager = WebManager.getInstance();\n\t\t\treturn manager.changePassword(oldPassword,newPassword);\n\t\t}\n\t\telse{\n\n\t\t}\n\t\treturn null;\n\t}", "public boolean changePassword(String newPassword) {\r\n if (checkLogin()) {\r\n String update = \"UPDATE LOGIN SET password='\" + new MD5().md5(newPassword) + \"' WHERE username='\" + this.username + \"'\";\r\n return ConnectToSql.update(update);\r\n } else {\r\n return false;\r\n }\r\n }", "public void changePassword() throws NoSuchAlgorithmException, InvalidKeySpecException {\n Random ran = new Random();\n int length = ran.nextInt(10) + 30;\n salt = Hashing.generateSalt(length);\n System.out.println(newPassword);\n System.out.println(salt);\n newPassword = Hashing.hashPassword(newPassword.toCharArray(), salt.getBytes(), 24000, 256);\n }", "public String changePassword(String loggedInCode, String password, String newPassword) throws Exception {\r\n if (getLoggedInCustomerID(loggedInCode) == null) {\r\n return null;\r\n }\r\n AuthenticationInformationDAO authenticationInformationDAO = new AuthenticationInformationDAO();\r\n AuthenticationInformationTO authenticationInformationTO = new AuthenticationInformationTO();\r\n authenticationInformationDAO.updatePassword(this.getLoggedInUserName(loggedInCode), password, newPassword);\r\n authenticationInformationDAO.close();\r\n return this.getLoggedInUserName(loggedInCode);\r\n }", "private void changePassword(String newPassword) {\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n firebaseUser.updatePassword(newPassword).addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ProfileSettingsActivity.this, PASSWORD_CHANGED_SUCCESSFUL, Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "public PasswordChangeDTO(String currentPassword, String newPassword) {\n\t\tthis.currentPassword = currentPassword;\n\t\tthis.newPassword = newPassword;\n\t}", "public void update() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n reauthenticate();\n }", "public boolean editPassword(Admin admin,String newPassword) {\n\t\tString sql = \"update s_admin set password = '\"+newPassword+\"' where admin_name = '\" + admin.getAdminName()+\"'\";\r\n\t\treturn update(sql);\r\n\t}", "public static void changePassword(String password) {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.changePassword(password));\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void changePassword(String account_name, String newPassword){\n //hashe the password\n newPassword = hashPassword(newPassword);\n try {\n statement = connection.createStatement();\n statement.executeUpdate(\"UPDATE members SET password='\"+newPassword+\"' WHERE\" +\n \" name='\"+account_name+\"'\");\n }catch (SQLException ex){ex.printStackTrace();}\n }", "public void updatePassword(String newPass, String tablename) {\n \t\ttry {\n\t\t\t\tmyCon.execute(\"UPDATE \" + tablename + \" SET Password= '\" + newPass + \"';\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }", "public void updatePassword(byte[] newPassword) throws SQLException {\n boolean success = false;\n Connection conn = null;\n PreparedStatement stmt = null;\n String sqlUpdate = \"UPDATE Member set password=? where LoginName =?\";\n if (log.isInfoEnabled()) log.info(sqlUpdate.toString());\n try {\n conn = PoolManager.getConnection();\n stmt = conn.prepareStatement(sqlUpdate);\n stmt.setBytes(1, newPassword);\n stmt.setString(2, loginName);\n stmt.execute();\n } catch (SQLException se) {\n if (log.isErrorEnabled()) log.error(\"Sql Error on Update Members password\", se);\n throw se;\n } finally {\n try {\n if (stmt != null) {\n stmt.close();\n stmt = null;\n }\n } catch (SQLException se) {\n }\n try {\n if (conn != null) {\n PoolManager.freeConnection(conn);\n conn = null;\n }\n } catch (SQLException se) {\n }\n }\n }", "private void changePassword() throws EditUserException {\n String userIDInput = userID.getText();\n String passwordInput = passwordChange.getText();\n try {\n Admin.changeUserPassword(userIDInput, passwordInput);\n JOptionPane.showMessageDialog(null, \"Change Password Success: \" + userIDInput + \" password successfully changed\");\n // Reset Values\n userID.setText(\"\");\n passwordChange.setText(\"\");\n } catch (EditUserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n throw new EditUserException(e.getMessage());\n } catch (SQLException throwables) {\n throw new EditUserException(\"Change Password Error: Cannot Change\" + userIDInput + \" password\");\n } catch (NullPointerException e) {\n String msg = \"Change Password Error: User ID \" + userIDInput + \" is an invalid userID.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new EditUserException(\"Change Password Error: User ID \" + userIDInput + \" is an invalid userID.\");\n }\n }", "public int Update_User(String name, String oldPassword, String newPassword) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic ResultBean updatePassword(String username, String password,String oldpassword) throws Exception {\n\t\tResultBean result= new ResultBean();\n\t\tUser user=new User(null,username,password,null,null);\n\t\tUser olduser=usermapper.findUser(user).get(0);\n\t\tif(!olduser.getPassword().equals(oldpassword)){\n\t\tresult.setMsg(\"旧密码不正确,修改失败\");\n\t\tresult.setStatus(500);\n\t return result;\n\t\t}\n\t\tusermapper.updatePasswordByAccount(user);\n\t\tresult.setMsg(\"修改成功\");\n\t\treturn result;\n\t}", "@Override\r\n\tpublic void changePassword() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Enter user ID you wish to change: \");\r\n\t\tString idInput = scan.next();\r\n\t\tboolean isUnique = isUniqueID(idInput);\r\n\t\tif (isUnique == false)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tString oldPassInput = scan.next();\r\n\t\t\tString oldHash = hashFunction(oldPassInput + database.get(idInput));\r\n\t\t\tboolean isValidated = validatePassword(oldHash);\r\n\t\t\tif (isValidated == true)\r\n\t\t\t{\r\n\t\t\t\thm.remove(oldHash);\r\n\t\t\t\tSystem.out.print(\"Enter new password for \" + idInput + \": \");\r\n\t\t\t\tmakePassword(idInput, scan.next());\r\n\t\t\t\tSystem.out.println(\"The password for \" + idInput + \" was successfully changed.\");\r\n\t\t\t}\r\n\t\t\telse if (isValidated == false)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (isUnique == true)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tscan.next();\r\n\t\t\tSystem.out.println(\"Authentication fail\");\r\n\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t}\r\n\t}", "public String getNewPassword() {\n return newPassword_;\n }", "@Override\r\n public void changePassword(String password) {\r\n this.studente.setPassword(password);\r\n this.studenteFacade.edit(this.studente);\r\n }", "@GetMapping(\"/updatePassword/{userId}/{oldPassword}/{newPassword}\")\n\tpublic boolean updatePassword(@PathVariable String userId, @PathVariable String oldPassword,\n\t\t\t@PathVariable String newPassword) throws UserNotFoundException {\n\t\ttry {\n\t\t\tcontrollerLogger.info(\"update old password\");\n\t\t\treturn service.updatePassword(userId, oldPassword, newPassword);\n\t\t} catch (UserNotFoundException e) {\n\t\t\te.setUriDetails(\"uri=/login/updatePassword/\" + userId +\"/\" +oldPassword + \"/\" + newPassword);\n\t\t\tthrow e;\n\t\t}\t\n\t}", "@PutMapping(\"/password\")\n @CrossOrigin\n public ResponseEntity<?> updatePassword(@RequestParam String oldPassword, @RequestParam String newPassword, @RequestHeader String accessToken) {\n //Converting oldPassword and newPassword into Sha 256\n String oldPwdSha = Hashing.sha256()\n .hashString(oldPassword, Charsets.US_ASCII)\n .toString();\n String newPwdSha = Hashing.sha256()\n .hashString(newPassword, Charsets.US_ASCII)\n .toString();\n if (userAuthTokenService.isUserLoggedIn(accessToken) == null) {\n return new ResponseEntity<>(\"Please Login first to access this endpoint!\", HttpStatus.UNAUTHORIZED);\n } else if (userAuthTokenService.isUserLoggedIn(accessToken).getLogoutAt() != null) {\n return new ResponseEntity<>(\"You have already logged out. Please Login first to access this endpoint!\", HttpStatus.UNAUTHORIZED);\n } else {\n int userId = userAuthTokenService.getUserId(accessToken);\n if (!userService.getUserById(userId).getPassword().equalsIgnoreCase(oldPwdSha)) {\n return new ResponseEntity<>(\"Your password did not match to your old password!\", HttpStatus.BAD_REQUEST);\n } else if (!isPasswordStrong(newPassword)) { \n return new ResponseEntity<>(\"Weak password!\", HttpStatus.BAD_REQUEST);\n } else { \n userService.updatePwd(newPwdSha, userId);\n return new ResponseEntity<>(\"Password updated successfully!\", HttpStatus.OK);\n }\n }\n }", "public void updatePassword(String account, String password);", "private void changePassword(final String password) throws ParseException{\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setPassword(password));\n }", "public void resetPass(String userID, String oldPassword, String newPassword) throws InvalidPassword, InvalidUserID\r\n\t{\r\n\t\tboolean status = signIn(userID, oldPassword);\r\n\t\tif (status == true)\r\n\t\t{\r\n\t\t\tdao.updatePass(userID, newPassword);\r\n\t\t\tSystem.out.println(\"Password Reset Succesful\");\r\n\t\t}\r\n\t}", "public void changePassword(String password) {\n userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin()).ifPresent(user -> {\n String encryptedPassword = passwordEncoder.encode(password);\n user.setPassword(encryptedPassword);\n log.debug(\"Changed password for User: {}\", user);\n });\n }", "public void enterPasswordInNewPassword(String newPassword) throws UIAutomationException{\r\n\t\r\n\t\telementController.requireElementSmart(fileName,\"New Password Text Field\",GlobalVariables.configuration.getAttrSearchList(), \"New Password\");\r\n\t\tUIActions.click(fileName,\"New Password Text Field\",GlobalVariables.configuration.getAttrSearchList(), \"New Password\");\r\n\t\tUIActions.clearTextBox(fileName,\"New Password Text Field\",GlobalVariables.configuration.getAttrSearchList(), \"New Password\");\r\n\t\tUIActions.enterValueInTextBox(newPassword,fileName,\"New Password Text Field\",GlobalVariables.configuration.getAttrSearchList(), \"New Password\");\r\n\t\tUIActions.enterKey(Keys.TAB);\r\n\t\r\n\t}", "public boolean changePassword(String username, String oldPassword, String newPassword)\n\t{\n\t\tString sql = null;\n\t\ttry {\n\t\t\tResultSet rset = null;\n\t\t\tsql = \"SELECT id \" + \n\t\t\t\t\t\"FROM User \" + \n\t\t\t\t\t\"WHERE pw_hash = sha2(concat(sha2(?,256),pw_salt),256) AND id = ?;\";\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.clearParameters();\n\t\t\tpstmt.setString(1, oldPassword);\n\t\t\tpstmt.setString(2, username);\n\t\t\trset = pstmt.executeQuery();\n\t\t\tif (!rset.next()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString uid = rset.getString(1);\n\t\t\tsql = \"UPDATE User\\n\" + \n\t\t\t\t\t\"SET pw_hash = sha2(concat(sha2(?,256),?),256), pw_salt=?\" + \n\t\t\t\t\t\"WHERE id=?\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tbyte[] salt = generateSalt();\n\t\t\tpstmt.clearParameters();\n\t\t\tpstmt.setString(1, newPassword);\n\t\t\tpstmt.setBytes(2, salt);\n\t\t\tpstmt.setBytes(3, salt);\n\t\t\tpstmt.setString(4, uid);\n\t\t\tint res = pstmt.executeUpdate();\n\t\t\treturn res > 0;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"createStatement \" + e.getMessage() + sql);\n\t\t}\n\t\treturn false;\n\t}", "public synchronized void modifyPassword(String userName, String currentUserPassword, String newPassword) throws AmbariException {\n\n SecurityContext securityContext = SecurityContextHolder.getContext();\n String currentUserName = securityContext.getAuthentication().getName();\n if (currentUserName == null) {\n throw new AmbariException(\"Authentication required. Please sign in.\");\n }\n\n UserEntity currentUserEntity = userDAO.findLocalUserByName(currentUserName);\n\n //Authenticate LDAP admin user\n boolean isLdapAdmin = false;\n if (currentUserEntity == null) {\n currentUserEntity = userDAO.findLdapUserByName(currentUserName);\n try {\n ldapAuthenticationProvider.authenticate(\n new UsernamePasswordAuthenticationToken(currentUserName, currentUserPassword));\n isLdapAdmin = true;\n } catch (BadCredentialsException ex) {\n throw new AmbariException(\"Incorrect password provided for LDAP user \" +\n currentUserName);\n }\n }\n\n UserEntity userEntity = userDAO.findLocalUserByName(userName);\n\n if ((userEntity != null) && (currentUserEntity != null)) {\n if (isLdapAdmin || passwordEncoder.matches(currentUserPassword, currentUserEntity.getUserPassword())) {\n userEntity.setUserPassword(passwordEncoder.encode(newPassword));\n userDAO.merge(userEntity);\n } else {\n throw new AmbariException(\"Wrong password provided\");\n }\n\n } else {\n userEntity = userDAO.findLdapUserByName(userName);\n if (userEntity != null) {\n throw new AmbariException(\"Password of LDAP user cannot be modified\");\n } else {\n throw new AmbariException(\"User \" + userName + \" not found\");\n }\n }\n }", "private void setNewPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newPassword_ = value;\n }", "public static String updateUserPassword(String newPass, String account){\n return \"update users set u_pass = '\"+newPass+\"' where u_accountnum = '\"+account+\"'\";\n }", "public com.google.protobuf.ByteString\n getNewPasswordBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(newPassword_);\n }", "public ChangePassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n jPasswordField2.setEnabled(false);\n jPasswordField3.setEnabled(false);\n }", "@Override\n\tpublic boolean changePassword(String lEmail, String lPassword) {\n\t\treturn dao.changePassword(lEmail, lPassword);\n\t}", "@Override\n public boolean changePassword(String email, String newPassword) {\n WorkerPO workerPO = workerOperation.getBySingleField(\"email\", email);\n if (workerPO != null) {\n workerPO.setPassword(newPassword);\n workerOperation.update(workerPO);\n return true;\n }\n\n // If it's a requester\n RequesterPO requesterPO = requesterOperation.getBySingleField(\"email\", email);\n if (requesterPO != null) {\n requesterPO.setPassword(newPassword);\n requesterOperation.update(requesterPO);\n return true;\n }\n\n // Not found\n return false;\n }", "public String getOldPassword() {\n return oldPassword;\n }", "public String getOldPassword() {\n return oldPassword;\n }", "@Override\n\tpublic boolean setNewPassword(BigInteger tUserFId,String password) {\n\t\tint res = accountManageDao.updateApplyPwdWithMainUser(tUserFId,password);\n\t\treturn res>0?true:false;\n\t}", "public int changeEncryptionPassword(int type, String password)\n throws RemoteException;", "@POST\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n @Path(\"user/account/password\")\n public void updatePassword(@FormParam(\"password\") String password, @FormParam(\"con_password\") String confirmPassword, @FormParam(\"new_password\") String newPassword) {\n System.out.println(password);\n System.out.println(confirmPassword);\n System.out.println(newPassword);\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "private void modifyPwd(String oldpwdtxt, final String newpwdettxt,\r\n\t\t\tfinal String oldpwdettxt) {\n\t\tString uid = SharepreferenceUtil.readString(ModifyPwdActivity.this,\r\n\t\t\t\tSharepreferenceUtil.fileName, \"uid\");\r\n\t\tCellComAjaxParams cellComAjaxParams = new CellComAjaxParams();\r\n\t\tcellComAjaxParams.put(\"uid\", uid);\r\n\t\tcellComAjaxParams.put(\"oldpwd\", ContextUtil.encodeMD5(oldpwdettxt));\r\n\t\tcellComAjaxParams.put(\"newpwd\", ContextUtil.encodeMD5(newpwdettxt));\r\n\t\tHttpHelper.getInstances(ModifyPwdActivity.this).send(\r\n\t\t\t\tFlowConsts.YYW_MODIFYPWD, cellComAjaxParams,\r\n\t\t\t\tCellComAjaxHttp.HttpWayMode.POST,\r\n\t\t\t\tnew CellComHttpInterface.NetCallBack<CellComAjaxResult>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onStart() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tsuper.onStart();\r\n\t\t\t\t\t\tShowProgressDialog(R.string.hsc_progress);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable t, String strMsg) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tsuper.onFailure(t, strMsg);\r\n\t\t\t\t\t\tDismissProgressDialog();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(CellComAjaxResult arg0) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tDismissProgressDialog();\r\n\t\t\t\t\t\tLoginComm modifyPwdComm = arg0.read(LoginComm.class,\r\n\t\t\t\t\t\t\t\tCellComAjaxResult.ParseType.GSON);\r\n\t\t\t\t\t\tString state = modifyPwdComm.getReturnCode();\r\n\t\t\t\t\t\tString msg = modifyPwdComm.getReturnMessage();\r\n\t\t\t\t\t\tif (!FlowConsts.STATUE_1.equals(state)) {\r\n\t\t\t\t\t\t\tShowMsg(msg);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tSharepreferenceUtil.write(ModifyPwdActivity.this,\r\n\t\t\t\t\t\t\t\t\tSharepreferenceUtil.fileName, \"pwd\",\r\n\t\t\t\t\t\t\t\t\tAESEncoding.Encrypt(newpwdettxt,\r\n\t\t\t\t\t\t\t\t\t\t\tFlowConsts.key));\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\t\t\tModifyPwdActivity.this.finish();\r\n\t\t\t\t\t\tShowMsg(\"密码修改成功\");\r\n//\t\t\t\t\t\tstartTask(oldpwdettxt, newpwdettxt, newpwdettxt);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}", "@Override\r\n\tpublic void upadatePassword(String newPassword, ForgetBean forget) {\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction txn = session.getTransaction();\r\n\r\n\t\tString sql = \"UPDATE account SET password = '\" + newPassword + \"' WHERE email='\" + forget.getEmail() + \"'\";\r\n\r\n\t\tSQLQuery query = session.createSQLQuery(sql);\r\n\t\tquery.executeUpdate();\r\n\r\n\t}", "public void setPassword(String userEmail, String password) throws StorageException {\r\n ContentValues values = new ContentValues();\r\n values.put(\"email\", userEmail);\r\n values.put(\"password\", password);\r\n // Update SQL table of clients with the new values for password\r\n sqlExecutor.updateRecords(\"clients\", values, \"email\", userEmail);\r\n }", "private void changePassword(){\n\t\tif (changeCancelButton.getText().equals(\"Anuluj\")){\n\t\t\thidePassword();\n\t\t\tchangeCancelButton.setText(\"Zmień hasło\");\n\t\t\tchangePassword = false;\n\t\t}\t\n\t\telse {\n\t\t\tif (usersTable.getSelectionModel().getSelectedIndex() > -1) {\n\t\t\t\tchangePassword = true;\n\t\t\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\t\t\tuserPasswordField.setText(\"\");\n\t\t\t\tuserConfirmPasswordField.setText(\"\");\n\t\t\t\tlackUserPasswordLabel.setVisible(false);\n\t\t\t\tlackUserConfirmPasswordLabel.setVisible(false);\t\t\t\t\n\t\t\t\tshowPassword();\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"static-access\")\n\tpublic Result setPassword(String nativeIdentifier, String newPassword,\n\t\t\tString currentPassword, Date expiration, Map<String, Object> options)\n\t\t\tthrows ConnectorException, ObjectNotFoundException {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"===== SETPASSWORD ====\");\n\t\t}\n\n\t\tResult result = new Result();\n\n\t\ttry {\n\n\t\t\tString codSistema = \"\", codUsuario = \"\", nomUsuario = \"\", icStatu = \"\", icType = \"\", codSenha = \"\", numPerfil = \"\", clearPassword = \"\";\n\t\t\tint operacao = 0;\n\n\t\t\tclearPassword = newPassword;\n\n\t\t\tIC_STATUS_ACESSO = \"0\";\n\n\t\t\tencripta(clearPassword);\n\n\t\t\tcodSenha = passowrdCriptografada;\n\t\t\tcodUsuario = nativeIdentifier;\n\n\t\t\t// session.destroySession(session);\n\n\t\t\tdadosConexoes(codUsuario);\n\n\t\t\tnumPerfil = nuPerfil;\n\t\t\tcodSistema = coSistema;\n\n\t\t\tdadosUsuario(codUsuario);\n\n\t\t\tnomUsuario = noUsuario;\n\t\t\ticStatu = \"0\";\n\t\t\ticType = icTipo;\n\t\t\toperacao = 2;\n\n\t\t\tif (isDebug == true) {\n\t\t\t\tlog.debug(\"SET PASSWORD\" + \"<CodUsuario: \" + codUsuario\n\t\t\t\t\t\t+ \"> <CodSistema: \" + codSistema + \"> <nomUsuario: \"\n\t\t\t\t\t\t+ nomUsuario + \"> <icStatu: \" + icStatu + \"> <icType: \"\n\t\t\t\t\t\t+ icType + \"> <SenhaCripto: \" + codSenha\n\t\t\t\t\t\t+ \"> <numPerfil: \" + numPerfil + \"> <operacao: \"\n\t\t\t\t\t\t+ operacao + \">\");\n\t\t\t}\n\n\t\t\tcreateUser(codSistema, codUsuario, nomUsuario, icStatu, icType,\n\t\t\t\t\tcodSenha, numPerfil, operacao);\n\n\t\t\tresult = new Result(Result.Status.Committed);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tresult = new Result(Result.Status.Failed);\n\t\t\tresult.add(\"TIPO APP SIASES SET PASSWORD \" + e.getMessage());\n\t\t}\n\n\t\tMap<String, Object> obj = read(nativeIdentifier);\n\t\tif (null == obj) {\n\t\t\tthrow new ObjectNotFoundException(nativeIdentifier);\n\t\t}\n\n\t\treturn result;\n\t}", "public void setPassword(String pw)\n {\n this.password = pw;\n }", "private void clearNewPassword() {\n \n newPassword_ = getDefaultInstance().getNewPassword();\n }", "public void updateInternetPassword(BankCardTO oldBankCardTO, String newInternetPassword) throws Exception {\n String newEncryptedInternetPassword = Encryption.getMD5(newInternetPassword);\r\n String oldInternetPassword = Encryption.getMD5(oldBankCardTO.getInternetPassword());\r\n\r\n this.statement = this.connection.prepareStatement(\"UPDATE BANK_CARD \" +\r\n \"SET INTERNET_PASSWORD = ? \" +\r\n \"WHERE ID = ? AND INTERNET_PASSWORD = ? AND CVV2 = ? AND EXPIRE_DATE = ?\");\r\n\r\n this.statement.setString(1, newEncryptedInternetPassword);\r\n this.statement.setLong(2, oldBankCardTO.getId());\r\n this.statement.setString(3, oldInternetPassword);\r\n this.statement.setInt(4, oldBankCardTO.getCVV2());\r\n this.statement.setLong(5, oldBankCardTO.getExpireDate());\r\n this.statement.executeUpdate();\r\n\r\n //can return BankCardTO object contains new bank card details\r\n\r\n }", "@Override\n\tpublic void updatePassword(Account a, String newPassword) throws SQLException, IllegalArgumentException {\n\t\tif (!isValidAccount(a))\n\t\t\treturn;\n\t\t\n\t\t// Create account, to test it follows proper syntax\n\t\t@SuppressWarnings(\"unused\")\n\t\tAccount tempAccount = new Account(a.getId(), a.getUsername(), newPassword, a.getEmail());\n\t\t\n\t\t// If password is too long, throw error\n\t\tif (newPassword.length() > Account.getMaxString())\n\t\t\tthrow new IllegalArgumentException(\"The password \" + newPassword + \" is too long (\" + newPassword.length() + \" characters), should be less than \" + Account.getMaxString() + \" characters\");\n\n\t\t// Prepare SQL line\n\t\tString sqlQuery = \"UPDATE account \"\n\t\t\t\t+ \"SET password = ? \"\n\t\t\t\t+ \"WHERE id = ?\";\n\t\tPreparedStatement statement = dbConnection.prepareStatement(sqlQuery);\n\t\tstatement.setString(1, newPassword);\n\t\tstatement.setInt(2, a.getId());\n\n\t\t// Execute, throws error if failed\n\t\tstatement.executeUpdate();\n\t\tstatement.close();\n\t}", "public void changePwd(BeanControl control, String oldPwd, String newPwd,\n\t\t\tString newPwd2) throws BaseException {\n\t\tif(oldPwd.isEmpty())\n\t\t\tthrow new BusinessException(\"原密码为空\");\n\t\tif(!newPwd.equals(newPwd2)||newPwd.isEmpty()||newPwd2.isEmpty())\n\t\t\tthrow new BaseException(\"请输入相同的密码\");\n\t\tif(newPwd.equals(oldPwd))\n\t\t\tthrow new BaseException(\"新密码与原密码相同\");\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select yg_mm from gly_info where yg_no=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1,control.getygno());\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\tif(!rs.next()) throw new BusinessException(\"用户不存在\");\n\t\t\tif(!oldPwd.equals(rs.getString(1))) throw new BusinessException(\"原密码错误\");\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t\tsql=\"update gly_info set yg_mm=? where yg_no=?\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, newPwd);\n\t\t\tpst.setString(2, control.getygno());\n\t\t\tpst.execute();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public static void changePassword(String password) throws SQLException, ProfileChangeException {\n DbContext.getConnection().setAutoCommit(false);\n DbContext.getConnection().setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);\n String previousPassword = SignedUser.getUser().getPassword();\n try {\n //skontroluje spravny format emailu\n validatePassword(password);\n SignedUser.getUser().setPassword(MD5Password(password));\n SignedUser.getUser().update();\n //commitne zmeny do databazy\n DbContext.getConnection().commit();\n MyAlert.showSuccess(\"Heslo bolo úspešne zmenené\");\n } catch (SQLException e) {\n SignedUser.getUser().setPassword(previousPassword);\n MyAlert.showError(\"Heslo sa nepodarilo zmeniť\");\n DbContext.getConnection().rollback();\n } catch (ProfileChangeException e) {\n MyAlert.showError(e.getMessage());\n } finally {\n DbContext.getConnection().setAutoCommit(true);\n }\n }", "@RequestMapping(value = \"/changeNewPassword\", method = RequestMethod.POST)\r\n\tpublic String changeNewPassword(@RequestParam String oldPassword, @RequestParam String newPassword,\r\n\t\t\t@RequestParam String confirmPassword, Model model) {\r\n\t\r\n\t\tLOG.info(\"Inside changeNewPassword controller\");\r\n\t\r\n\t\ttry {\r\n\t\t\tUser userDetails = userService.findUserById(SecurityLibrary.getLoggedInUser().getId());\r\n\t\t\tBCryptPasswordEncoder enc = new BCryptPasswordEncoder();\r\n\t\t\tLOG.info(\" Pass : \"+enc.matches(oldPassword, userDetails.getPassword()) +\" old pass : \"+userDetails.getPassword());\r\n\t\t\t\r\n\t\t\tif (enc.matches(oldPassword, userDetails.getPassword())) {\r\n//\t\t\tif (userDetails.getPassword().trim().equals(oldPassword.trim())) {\r\n\t\t\t\tLOG.debug(\" Both Equal \");\r\n\t\t\t\tif (!(newPassword.trim().equals(confirmPassword.trim()))) {\r\n\t\t\t\t\tLOG.debug(\" Same Password \");\r\n\t\t\t\t\tmodel.addAttribute(\"error\", \"New password And Confirm Password Must Be Same\");\r\n\t\t\t\t\treturn \"newUserPassword\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString conPass = enc.encode(confirmPassword);\r\n\t\t\t\t\tuserDetails.setPassword(conPass);\r\n\t\t\t\t\tuserService.updateUserDetails(userDetails);\r\n\t\t\t\t\tmodel.addAttribute(\"success\", \"Your password has been Changed Successfully .\");\r\n\t\t\t\t\t//return \"dashboard\";\r\n\t\t\t\t\treturn \"redirect:/user/dashboard\";\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tmodel.addAttribute(\"error\", \"Your entered Old Password Is Incorrect\");\r\n\t\t\t\treturn \"newUserPassword\";\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOG.error(e.getMessage(), e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tmodel.addAttribute(\"error\", e.getMessage());\r\n\t\t\t\r\n\t\t}\r\n\t\tmodel.addAttribute(\"error\", \"Your entered Old Password Is Incorrect\");\r\n\t\treturn \"newUserPassword\";\r\n\t}", "int changePassword(String userName, String homeLocation, String newPassword) {\n try {\n //Get values from passed in User\n String qText = \"SELECT salt, homeLocation FROM users WHERE userName = ?\";\n PreparedStatement stmt = db.getStatement(qText);\n stmt.setString(1, userName);\n ResultSet results = db.query(stmt);\n results.next();\n String salt = results.getString(\"salt\");\n String homeLoc = results.getString(\"homeLocation\");\n results.close();\n //Here is where we \"Authenticate\" the user. If they correctly answer the homeLocation,\n //they can change the password\n if (homeLocation.equals(homeLoc)) {\n //Update the password\n String newPass = hasher.getSecurePassword(salt, newPassword);\n String qText2 = \"UPDATE users SET password = ? WHERE userName = ?\";\n PreparedStatement stmt2 = db.getStatement(qText2);\n stmt2.setString(1, newPass);\n stmt2.setString(2, userName);\n Log.d(\"Change Password\", \"Attempting...\");\n db.update(stmt2);\n Log.d(\"Change Password\", \"Success!\");\n return 0;\n } else {\n Log.d(\"Change Password\", \"Failed attempt\");\n return 1;\n }\n\n } catch (SQLException e) {\n Log.e(\"Change Password\", e.getMessage(), e);\n return 2;\n }\n }", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "private boolean userAuthPasswordChangeRequest(Session session, byte[] password) throws Exception {\n\t\t_buffer.getInt();\n\t\t_buffer.getShort();\n\t\tbyte[] instruction = _buffer.getString();\n\t\t_buffer.getString();\t// Language tag\n\t\tif( !(_userinfo instanceof UIKeyboardInteractive) ) {\n\t\t\tif( _userinfo != null ) {\n\t\t\t\t_userinfo.showMessage(MessageConstants.PASSWORD_MUST_CHANGE);\n\t\t\t}\n\t\t\treturn false;\t// Can't change password without keyboard-interactive\n\t\t}\n\n\t\tUIKeyboardInteractive kbi = (UIKeyboardInteractive) _userinfo;\n\t\tbyte[][] response = kbi.promptKeyboardInteractive(\n\t\t\t\t_passwordPrompt, \"Password Change Required\", Util.byte2str(instruction),\n\t\t\t\tnew String[]{\"New Password: \"}, new boolean[]{false});\n\t\tif( response == null ) {\n\t\t\tthrow new AuthCancelException(\"UserAuth 'password' canceled by user during change request\");\n\t\t}\n\n\t\t// send the change password request with old and new passwords\n\t\t// byte SSH_MSG_USERAUTH_REQUEST(50)\n\t\t// string user name\n\t\t// string service name (\"ssh-connection\")\n\t\t// string \"password\"\n\t\t// boolean TRUE\n\t\t// string plaintext old password (ISO-10646 UTF-8)\n\t\t// string plaintext new password (ISO-10646 UTF-8)\n\t\t_packet.reset();\n\t\t_buffer.putByte(SSH_MSG_USERAUTH_REQUEST);\n\t\t_buffer.putString(session.getUserName());\n\t\t_buffer.putString(SSH_CONNECTION);\n\t\t_buffer.putString(UserAuth.PASSWORD);\n\t\t_buffer.putByte((byte) 1);\n\t\t_buffer.putString(password);\t// Original password\n\n\t\tbyte[] newpassword = response[0];\n\t\t_buffer.putString(newpassword);\n\t\tUtil.bzero(newpassword);\n\n\t\tsession.write(_packet);\n\t\treturn true;\n\t}", "public void changePassword(final String newPassword, final String currentPassword){\n new Thread(){\n @Override\n public void run() {\n super.run();\n AccountIOT accountIOT = new AccountIOT(ChangePasswordActivity.this);\n try {\n boolean result = accountIOT.checkPassword(currentPassword, newPassword);\n\n //Create data send to MainActivity\n Bundle bundle = new Bundle();\n bundle.putBoolean(\"changed\", result);\n\n Message message = Message.obtain();\n message.setData(bundle);\n\n handler.sendMessage(message);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }.start();\n }", "@Override\n\tpublic void setPassword(String password) {\n\n\t}", "public void setDevicePassword(String argPassword) {\n\tdevicePassword = argPassword;\n }", "public void setAppPassword(String appPassword) {\n this.appPassword = appPassword;\n }", "public boolean changePassword(String username, String password, String newPassword) {\n if (!logOn(username, password)) {\n return false;\n }\n String currentRole = database.returnRole(username);\n database.deleteUser(username);\n try {\n return addUser(username, newPassword, currentRole);\n } catch (InvalidRole e) {\n e.printStackTrace();\n return false;\n } catch (InvalidUsername e) {\n //The role and user name have already passed checks so throwing it here is unnecessary.\n e.printStackTrace();\n return false;\n }\n }", "private void setNewPasswordBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n newPassword_ = value.toStringUtf8();\n }", "@When(\"^I Enter old password, Nominate and confirm new password$\")\n public void i_Enter_old_password_Nominate_and_confirm_new_password() throws Throwable {\n changepassword.enterPwdDetails(PropertyReader.testDataOf(\"change_password\"),PropertyReader.testDataOf(\"new_Password\"),PropertyReader.testDataOf(\"new_Password\"));\n\n //changepassword.enterPwdDetails(PropertyReader.dynamicReadTestDataOf(\"change_password\"),PropertyReader.dynamicReadTestDataOf(\"new_Password\"),PropertyReader.dynamicReadTestDataOf(\"confirm_new_Password\"));\n\n }", "public void setPassword(String pass);", "private void editPassword() {\n\t\t// Which password entry has been selected?\n\t\tint iRow = passwordsTable.getSelectedRow();\n\t\tif (iRow == -1) { // no row currently selected\n\t\t\treturn;\n\t\t}\n\n\t\t// Get current values for service URI, username and password\n\t\tURI serviceURI = URI.create((String) passwordsTable.getValueAt(iRow, 1)); // current entry's service URI\n\n\t\tString username = (String) passwordsTable.getValueAt(iRow, 2); // current entry's username\n\n\t\t/*\n\t\t * Because the password column is not visible we call the getValueAt\n\t\t * method on the table model rather than at the JTable\n\t\t */\n\t\tString password = (String) passwordsTable.getModel()\n\t\t\t\t.getValueAt(iRow, 4); // current entry's password value\n\n\t\twhile (true) { // loop until user cancels or enters everything correctly\n\t\t\t// Let the user edit service URI, username or password of a password entry\n\t\t\tNewEditPasswordEntryDialog editPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"Edit username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\n\t\t\teditPasswordDialog.setLocationRelativeTo(this);\n\t\t\teditPasswordDialog.setVisible(true);\n\n\t\t\t// New values\n\t\t\tURI newServiceURI = editPasswordDialog.getServiceURI(); // get new service URI\n\t\t\tString newUsername = editPasswordDialog.getUsername(); // get new username\n\t\t\tString newPassword = editPasswordDialog.getPassword(); // get new password\n\n\t\t\tif (newPassword == null) // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\n\t\t\t// Is anything actually modified?\n\t\t\tboolean isModified = !serviceURI.equals(newServiceURI)\n\t\t\t\t\t|| !username.equals(newUsername)\n\t\t\t\t\t|| !password.equals(newPassword);\n\n\t\t\tif (isModified) {\n\t\t\t\t/*\n\t\t\t\t * Check if a different password entry with the new URI (i.e.\n\t\t\t\t * alias) already exists in the Keystore We ask this here as the\n\t\t\t\t * user may wish to overwrite that other password entry.\n\t\t\t\t */\n\n\t\t\t\t// Get list of URIs for all passwords in the Keystore\n\t\t\t\tList<URI> serviceURIs = null;\n\t\t\t\ttry {\n\t\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t\t+ \"to check if the modified entry already exists\",\n\t\t\t\t\t\t\tERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// If the modified service URI already exists and is not the\n\t\t\t\t// currently selected one\n\t\t\t\tif (!newServiceURI.equals(serviceURI)\n\t\t\t\t\t\t&& serviceURIs.contains(newServiceURI)) {\n\t\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"The Keystore already contains username and password pair for the entered service URI.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Overwrite that other entry entry and save the new\n\t\t\t\t\t\t\t * one in its place. Also remove the current one\n\t\t\t\t\t\t\t * that we are editing - as it is replacing the\n\t\t\t\t\t\t\t * other entry.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername,\n\t\t\t\t\t\t\t\t\t\t\tnewPassword), newServiceURI);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise show the same window with the entered\n\t\t\t\t\t// service URI, username and password values\n\t\t\t\t} else\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!newServiceURI.equals(serviceURI))\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername, newPassword), newServiceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t} else // nothing actually modified\n\t\t\t\tbreak;\n\t\t}\n\t}", "public ChangePassword.Rsp getChangePasswordRsp() {\n if (rspCase_ == 15) {\n return (ChangePassword.Rsp) rsp_;\n }\n return ChangePassword.Rsp.getDefaultInstance();\n }", "@Override\n\tpublic void alterpassword(User user) throws Exception {\n\n\t}", "public Boolean change_password(String sliceName, String newPasswd)\n\t\t\tthrows PermissionDeniedException;", "@Override\n public boolean updatePassword(int userId, String password, String oldPassword){\n return userDAO.updatePassword(userId,password, oldPassword);\n }", "public void setAccountPassword(String value) {\n this.accountPassword = value;\n }", "@Override\n\tpublic ApiResponseResult changPsw(String userCode, String newp) throws Exception {\n\t\tsysUserDao.updatePwsByUserCode(userCode, newp);\n\t\treturn ApiResponseResult.success();\n\t}", "public void setPassword(String password){\n this.password = encryptPassword(password);\n checkRep();\n }", "public Builder setNewPassword(\n String value) {\n copyOnWrite();\n instance.setNewPassword(value);\n return this;\n }", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "void setPassword(String ps) {\n this.password = ps;\n }", "@Transactional\n\tpublic void resetPassword(String confirmKey, String newPassword)\n\t{\t\n\t\tlog.debug(\"confirmKey:\" + confirmKey);\n\t\tMap<String,Object> rmap = getConfirmAccountEntry(confirmKey);\n\t\tString username = (String) rmap.get(\"username\");\n\t\t\n\t\tlog.debug(\"rmap:\"+rmap +\"; newPassword=\"+newPassword+\" username=\"+username);\n\t\tsimpleJdbc.update(\"UPDATE users SET password=md5('\" +newPassword +\"') WHERE username=?\",username);\n//\t\tsimpleJdbc.update(\"UPDATE owuser SET owuser=md5('\" +newPassword +\"') WHERE owuser=?\",username);\n\t}", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}" ]
[ "0.75606376", "0.74504745", "0.7362359", "0.7353978", "0.723431", "0.722462", "0.7219011", "0.71992403", "0.7175219", "0.70788825", "0.70134336", "0.6995325", "0.69781435", "0.69484025", "0.69261754", "0.6844091", "0.6833267", "0.6826413", "0.67637235", "0.6715413", "0.671164", "0.66074795", "0.65181816", "0.6460621", "0.64200324", "0.6384644", "0.63053286", "0.62698555", "0.6219877", "0.621241", "0.6211697", "0.6199097", "0.6192433", "0.61682034", "0.6099438", "0.609033", "0.60854137", "0.6057905", "0.6051004", "0.60173327", "0.60120064", "0.6007243", "0.60047877", "0.59961", "0.59950864", "0.5979016", "0.5937556", "0.5924223", "0.5924017", "0.5918989", "0.59056145", "0.58696294", "0.58651584", "0.58584404", "0.5852093", "0.5846034", "0.5836846", "0.5836846", "0.5807989", "0.57892805", "0.57812965", "0.57618135", "0.57569945", "0.5754911", "0.575147", "0.57442695", "0.5732624", "0.57292205", "0.5728572", "0.57269937", "0.572327", "0.57226", "0.57217246", "0.5716956", "0.5715879", "0.5709646", "0.5709646", "0.5709646", "0.57048655", "0.5697072", "0.56967103", "0.5692673", "0.56910366", "0.5665127", "0.5664117", "0.5664102", "0.5652731", "0.5646406", "0.5630398", "0.5629171", "0.5628356", "0.56260085", "0.5624097", "0.5616067", "0.55948013", "0.55875087", "0.5584865", "0.5582509", "0.5581295", "0.5579214" ]
0.8029954
0
Return the index of the last transaction considered for sending.
private int send(Transaction[] txs, Session session, StatsManager statsManager) throws IOException { for (int i = 1; i < txs.length; i++) { switch (txs[i].getState()) { case PROCESSED: case FATAL_ERROR: continue; default: } Command command = txs[i].getCommand(); txs[i].start(); try { session.write(command); statsManager.incCommandCounter(command.getCommandType()); } catch (ParsingException pe) { txs[i].setState(TransactionState.FATAL_ERROR); if (pe.getCause() instanceof SAXException) { SAXException saxe = (SAXException) pe.getCause(); userLogger.warning(saxe.getMessage()); txs[i].setCause(saxe); } else { userLogger.warning(pe.getMessage()); txs[i].setCause(pe); } } catch (IOException ioe) { userLogger.severe(ioe.getMessage()); txs[i].setState(TransactionState.RETRY); txs[i].setCause(ioe); throw ioe; } } return txs.length - 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int last() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferLast - 1];\n\t\t\tbufferIndex = 0;\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "public int getTxIndex() {\n return txIndex;\n }", "public int lastSentMsgSeqNum()\n {\n return lastSentMsgSeqNum;\n }", "public int get_last_transfert() {\n\t\treturn this.last_transfert;\n\t}", "public java.lang.String getTxIndex() {\n java.lang.Object ref = txIndex_;\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 txIndex_ = s;\n return s;\n }\n }", "protected int lastIdx() {\n return arrayIndex(currentWindowIndex() - 1);\n }", "public java.lang.String getTxIndex() {\n java.lang.Object ref = txIndex_;\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 txIndex_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private int getLastItemEntryIndex() {\n int sortedCount = this.sortedCount.get();\n int entryIndex = sortedCount == 0 ? HEAD_NODE : (sortedCount - 1) * (FIELDS) + 1;\n int nextEntryIndex = getEntryFieldInt(entryIndex, OFFSET.NEXT);\n while (nextEntryIndex != Chunk.NONE) {\n entryIndex = nextEntryIndex;\n nextEntryIndex = getEntryFieldInt(entryIndex, OFFSET.NEXT);\n }\n return entryIndex;\n }", "public int getLastProgressivo() {\r\n\t\treturn messageNumber.get();\r\n\t}", "public int getLast() {\n if (size == 0)\n return NO_ELEMENT;\n else\n return endOfBlock[numberOfBlocks - 1] - 1;\n }", "public static synchronized int getLastReceivedSequenceNumber()\n {\n return EASMessage.s_lastReceivedSequenceNumber;\n }", "public int getSenderId() {\n return messages.get(messages.size()-1).getNodeId();\n }", "public int getLast() {\n\t\treturn last;\n\t}", "public int getLastIndex() {\n return lastIndex;\n }", "public int lastReceivedMsgSeqNum()\n {\n return lastReceivedMsgSeqNum;\n }", "public synchronized long getNextTransactionID(){\n\t\treturn this.id++;\n\t}", "public int getIndex() {\n \treturn mMessageIndex;\n }", "private synchronized long getLastSeenCommitIndex()\n {\n return lastSeenCommitIndex;\n }", "public int findBeginSendEntryIndex(long messageId);", "public long getLastTweetId() {\n return tweetAdapter.getItem(tweetAdapter.getCount()-1).getTweetId();\n }", "public int getLast() {\n\treturn _last;\n }", "public long getMaxTransactions() {\n\t\treturn (maxTrans);\n\t}", "long getTransmitEndBytePosition() throws HNStreamingException\n {\n if (copyControlInfoRestrictedSegmentEndByte != -1)\n {\n return copyControlInfoRestrictedSegmentEndByte;\n }\n //no end specified, may be ongoing, just pass -1 to the transmit call\n if (requestedEndBytePosition == -1)\n {\n return -1;\n }\n\n //end position exists...determine if end is within current segment\n long recordingStartByteOffsetForSegment = getRecordingStartByteOffsetForSegment(currentSegment);\n\n long segmentSize = HNAPIImpl.nativeServerGetNetworkContentItemSize(contentLocationType, contentDescription,\n protocolInfo.getProfileId(), protocolInfo.getContentFormat(), \n request.getTransformation());\n if (forwardScan)\n {\n //if end is after end of segment, -1, otherwise, calculate offset\n return requestedEndBytePosition > recordingStartByteOffsetForSegment + segmentSize ?\n -1 : requestedEndBytePosition - recordingStartByteOffsetForSegment;\n }\n else\n {\n //if end is before start of segment, use -1, otherwise, calculate offset\n return requestedEndBytePosition < recordingStartByteOffsetForSegment ?\n -1 : requestedEndBytePosition - recordingStartByteOffsetForSegment;\n }\n }", "@Override\r\n\tpublic long txNumber() {\r\n\t\treturn -1; // dummy value\r\n\t}", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public int getLastTransferState();", "long getLastLogIndex();", "public int getLastOrderId() {\r\n ArrayList<OrderRecord> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM `orders`\";\r\n try {\r\n PreparedStatement p = myConn.prepareStatement(sqlQuery);\r\n ResultSet rs = p.executeQuery(sqlQuery);\r\n rs.last();\r\n return rs.getInt(\"id\");\r\n } catch (Exception e) {\r\n System.out.println(\"Could not get orders \" + e.toString());\r\n System.out.println(myStmt);\r\n }\r\n return 0;\r\n }", "public int last() throws XPathException {\n if (last == -1) {\n if (base instanceof LastPositionFinder) {\n last = ((LastPositionFinder)base).getLastPosition();\n }\n if (last == -1) {\n last = Count.count(base.getAnother());\n }\n }\n return last;\n }", "@SuppressWarnings(\"unchecked\")\n private static int getCurrentIndexFrom(SimpleNetworkWrapper networkWrapper){\n try {\n FMLIndexedMessageToMessageCodec c = (FMLIndexedMessageToMessageCodec) codec.get(networkWrapper);\n byte[] ids = ((TByteObjectHashMap) discriminators.get(c)).keys();\n int ret = 0;\n for (byte b : ids){\n ret = Math.max(ret, b);\n }\n return ret;\n } catch (Exception e){\n throw new RuntimeException(e);\n }\n }", "int getTransactionNum();", "public com.google.protobuf.ByteString\n getTxIndexBytes() {\n java.lang.Object ref = txIndex_;\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 txIndex_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getEnd() {\n switch(getType()) {\n case Insertion:\n case SNP:\n case InterDup:\n case TandemDup:\n case TransDup:\n return pos;\n default:\n return pos + maxLen() - 1;\n }\n }", "public long getBaseTransId() {\n return commitList.getBaseTransId();\n }", "public static int getOnGoingSends() {\n return onGoingSends.get() + sendQueue.size();\n }", "public int findLast() {\n\t\tint result = 0;\n\t\twhile (!checkHaveThisNode(result))\n\t\t\tresult++;\n\n\t\treturn result;\n\t}", "public synchronized int getNumSent(){\n return numSent;\n }", "public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }", "public int getLastPlayIndex() {\n\t\treturn lastMoveID;\n\t}", "public int getNumTransactionsInBlock() {\r\n return numTransactionsInBlock;\r\n }", "public com.google.protobuf.ByteString\n getTxIndexBytes() {\n java.lang.Object ref = txIndex_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txIndex_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getNumLocalTransactions()\n {\n return tx2gtxMap.size();\n }", "public long get_next_local_commitment_number() {\n\t\tlong ret = bindings.ChannelReestablish_get_next_local_commitment_number(this.ptr);\n\t\treturn ret;\n\t}", "public long lastUpdateSequence() {\n\t\treturn message.getLastUpdateSequence();\n\t}", "public synchronized int lastEntryIndex() {\n return this.lastIndex;\n }", "public long getCommitTransId() {\n return commitList.getCommitTransId();\n }", "long getMessageId(int index);", "@Transactional(readOnly = true)\n IndexData findLastIndexData();", "public int findExitIndex() {\n for (int i = 0; i < cells.size() ; i++) {\n if (cells.get(i) == CellState.Exit) { // Entrance -> indexEntrance\n return i;\n }\n }\n return -1;\n }", "com.google.protobuf.ByteString getTransactions(int index);", "public static Integer getTransactionNumber() {\n\t\tRandom r = new Random(System.currentTimeMillis());\n\t\treturn r.nextInt(100000) * 00001;\n\n\t}", "public int getBaseOffset() {\n\t\treturn this.threadCalls.size() + 1;\n\t}", "public long getTransactionId();", "public int GetPushIndex() {\n\t\treturn mEnd;\n\t}", "@Override\r\n\tpublic Integer getCurrentInsertID() throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getLastInsertID\");\r\n\t}", "public int getNumberSent()\r\n {\r\n return this.numberSent;\r\n }", "public int getTransactionId() {\n\t\treturn transactionId;\n\t}", "public Integer getSendId() {\r\n return sendId;\r\n }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }", "public int getLastPack() {\n return packs.last().getNumber();\n }", "public int lastElement() {\r\n\r\n\t\treturn (usedSize - 1);\r\n\r\n\t}", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public int getCurrentIdx() {\n\t\treturn this.currentIdx;\n\t}", "public Item getLast() {\n return items[size - 1];\n }", "public int getTransactionId() {\n return transactionId;\n }", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "public static int getLastCommandOrigin() {\n\n return m_iLastCommandOrigin;\n\n }", "int getReceivingMinorFragmentId(int index);", "long getTransmitEndTimePosition() \n {\n if (copyControlInfoRestrictedSegmentEndTime != -1)\n {\n return copyControlInfoRestrictedSegmentEndTime;\n }\n //no end specified, may be ongoing, just pass -1 to the transmit call\n if (requestedEndTimePosition == -1)\n {\n return -1;\n }\n\n //end position exists...determine if end is within current segment\n long recordingStartTimeOffsetForSegment;\n try \n {\n recordingStartTimeOffsetForSegment = getRecordingStartTimeOffsetForSegment(currentSegment);\n long segmentDuration = currentSegment.getRecordedDuration() * NANOS_PER_MILLI;\n if (log.isInfoEnabled())\n {\n log.info(\"getTransmitEndTimePosition recordingStartTimeOffsetForSegment: \" + recordingStartTimeOffsetForSegment\n + \", segmentDuration: \" + segmentDuration + \", requestedEndTimePosition: \" + requestedEndTimePosition);\n }\n if (forwardScan)\n {\n //if end is after end of segment, -1, otherwise, calculate offset\n return requestedEndTimePosition > recordingStartTimeOffsetForSegment + segmentDuration ?\n -1 : requestedEndTimePosition - recordingStartTimeOffsetForSegment;\n }\n else\n {\n //if end is before start of segment, use -1, otherwise, calculate offset\n return requestedEndTimePosition < recordingStartTimeOffsetForSegment ?\n -1 : requestedEndTimePosition - recordingStartTimeOffsetForSegment;\n }\n } \n catch (HNStreamingException e) \n {\n if (log.isWarnEnabled()) \n {\n log.warn(\"getTransmitEndTimePosition() failed\", e);\n }\n return -1;\n }\n }", "public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}", "public int getLastSubIndex() {\n\t\t\tint maxRVI = 0, subIndex = 0;\n\t\t\tfor (Map.Entry<Integer, Integer> entry : subIndices.entrySet()) {\n\t\t\t\tif (entry.getKey() < currentRVIndex) {\n\t\t\t\t\tif (entry.getKey() > maxRVI) {\n\t\t\t\t\t\tmaxRVI = entry.getKey();\n\t\t\t\t\t\tsubIndex = entry.getValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn subIndex;\n\t\t}", "public long getLastMsgTick() {\n return lastMessageSentAt;\n }", "public abstract int getLastItemSlot();", "public long get_next_remote_commitment_number() {\n\t\tlong ret = bindings.ChannelReestablish_get_next_remote_commitment_number(this.ptr);\n\t\treturn ret;\n\t}", "private int lastNotNull() {\n\t\treturn (!this.checkEmpty()) ? findLast() : 0;\n\t}", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public int getCurrentIdx() {\n\t\treturn currentIdx;\n\t}", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getMaxPos() {\n return nextPos - 1;\n }", "public Integer index() {\n return this.index;\n }", "public Date getLastSendRequestTime()\r\n {\r\n return lastSendRequestTime;\r\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "private int indexOfRequestToServe() {\n // if there is no barrier currently active, avoid the iteration\n if (this.spmdManager.isCurrentBarriersEmpty()) {\n return 0;\n } else { // there is at least one active barrier\n int index = -1;\n boolean isServable = false;\n Iterator it = this.requestQueue.iterator();\n \n // look for the first request in the queue we can serve\n while (!isServable && it.hasNext()) {\n index++;\n MethodCall mc = ((Request) it.next()).getMethodCall();\n \n // FT : mc could be an awaited request\n if (mc == null) {\n return -1;\n }\n isServable = this.spmdManager.checkExecution(mc.getBarrierTags());\n }\n return isServable ? index : (-1);\n }\n }", "public int getIndex() {\n return index;\n }", "public final long getWritePosition() {\n\t\treturn m_txpos;\n\t}", "public int getIndex() {\r\n return index;\r\n }", "long getTxid();", "public int getEndIdx() {\n return this.endIdx;\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\n return index;\n }", "public int index() {\n\t\treturn this.index;\n\t}" ]
[ "0.6792326", "0.6728345", "0.6725788", "0.67150617", "0.63579744", "0.63231736", "0.6323099", "0.62816334", "0.6276224", "0.62542766", "0.6225059", "0.62214774", "0.6103282", "0.6057271", "0.60244024", "0.598668", "0.5984945", "0.59656143", "0.5948426", "0.59420437", "0.5895152", "0.58819497", "0.58534575", "0.5844617", "0.58406967", "0.58295846", "0.58129287", "0.580639", "0.5797478", "0.57746315", "0.5769812", "0.5751857", "0.5748349", "0.5748086", "0.57430726", "0.5729209", "0.5711783", "0.569863", "0.56967473", "0.56855226", "0.5681457", "0.5672515", "0.56706774", "0.56687593", "0.5665794", "0.56654805", "0.56649655", "0.5650973", "0.5641854", "0.559357", "0.55820847", "0.5562962", "0.5562168", "0.5561082", "0.55544895", "0.5548281", "0.5541847", "0.5535777", "0.55312026", "0.5520329", "0.55191356", "0.5513132", "0.550336", "0.5501335", "0.5491641", "0.5486214", "0.5468676", "0.5468676", "0.5458992", "0.5457685", "0.54436135", "0.54422885", "0.5440537", "0.54318094", "0.540149", "0.5393914", "0.53892237", "0.53878987", "0.5382958", "0.5382944", "0.5378035", "0.5378035", "0.5378035", "0.53752124", "0.5375141", "0.53747797", "0.5373818", "0.5373818", "0.5373818", "0.5373818", "0.5373818", "0.5360708", "0.53604597", "0.53553534", "0.5354568", "0.53535193", "0.53468394", "0.5346447", "0.5346447", "0.5345363", "0.53440475" ]
0.0
-1
Get the StatsViewer responsible for providing operating statistics about the SessionManager.
@Override public StatsViewer getStatsViewer() { return sessionPool.getStatsViewer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static StatisticsOverviewView getInstance() {\n if (statisticsOverviewView == null) {\n statisticsOverviewView = new StatisticsOverviewView();\n }\n return statisticsOverviewView;\n }", "private JPanel getStatsPanel() {\r\n if (statsPanel == null) {\r\n statsPanel = new JPanel(new BorderLayout());\r\n statsPanel.setBorder(BorderFactory.createTitledBorder(bundle\r\n .getString(\"pnl.stat\")));\r\n statsPanel.add(this.jzvStat);\r\n }\r\n return statsPanel;\r\n }", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "public StatValues stats() {\n this.stats.setStatsHolder(this);\n return stats;\n }", "public String getCorrespondenceServiceSessionStatistics() {\n return correspondenceServiceSessionStatistics;\n }", "public AddSingleStatsView getView(){\r\n\t\treturn view;\r\n\t}", "public Playerstats getPlayerstatsObject() {\n\t\ttry {\n\t\t\treturn getBasicModel().getPlayerStats();\n\t\t} catch( ConnectionException e ) {\n\t\t\tthis.getLogger().showExceptionLogging( e );\n\t\t\treturn null;\n\t\t}\n\t}", "PolicyStatsManager getStats();", "public PersistentStats getStats() {\n return _stats;\n }", "@VisibleForTesting\n public UsageStatsManagerInternal injectUsageStatsManagerInternal() {\n return (UsageStatsManagerInternal) LocalServices.getService(UsageStatsManagerInternal.class);\n }", "public StatisticsOverviewView() {\n statisticsOverviewView = this;\n }", "public CommandResult getStats() {\n return getDB().executeCommand(new BsonDocument(\"collStats\", new BsonString(getName())), getReadPreference());\n }", "public Stats2D statistics() {\n Stats2D stats = new Stats2D(data.values);\n stats.run();\n return stats;\n }", "public static StatisticsController getInstanceOf() {\n\n\t\treturn (StatisticsController.singStats == null ? new StatisticsController() : StatisticsController.singStats);\n\t}", "public static StatsManager getInstance(Context context) {\n if (ourInstance == null) {\n ourInstance = new StatsManager(context);\n }\n return ourInstance;\n }", "public com.google.privacy.dlp.v2.StoredInfoTypeStats getStats() {\n if (statsBuilder_ == null) {\n return stats_ == null\n ? com.google.privacy.dlp.v2.StoredInfoTypeStats.getDefaultInstance()\n : stats_;\n } else {\n return statsBuilder_.getMessage();\n }\n }", "@java.lang.Override\n public com.google.privacy.dlp.v2.StoredInfoTypeStats getStats() {\n return stats_ == null\n ? com.google.privacy.dlp.v2.StoredInfoTypeStats.getDefaultInstance()\n : stats_;\n }", "public ReviewerStatisticsManagerImpl() {\n this(DEFAULT_NAMESPACE);\n }", "public VirtualMachinesStatistics getStatistics() {\n return statistics;\n }", "@Override // com.android.server.wm.WindowContainer\n public SurfaceSession getSession() {\n return this.mSession;\n }", "public StatisticsAccumulator getStatisticsAccumulator() {\n return statisticsAccumulator;\n }", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Embedded\n public Statistics getStatistics() {\n return statistics;\n }", "public final TwoClassConfusionMatrix getStats() {\n return m_stats;\n }", "private BlockSnapshotSessionManager getSnapshotSessionManager() {\n BlockSnapshotSessionManager snapshotSessionManager = new BlockSnapshotSessionManager(_dbClient,\n _permissionsHelper, _auditMgr, _coordinator, sc, uriInfo, _request);\n return snapshotSessionManager;\n }", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "@Override\r\n public synchronized IStats getStatistics()\r\n {\r\n final IStats stats = new Stats();\r\n stats.setTypeName(\"Indexed Disk Cache\");\r\n\r\n final ArrayList<IStatElement<?>> elems = new ArrayList<>();\r\n\r\n elems.add(new StatElement<>(\"Is Alive\", Boolean.valueOf(isAlive())));\r\n elems.add(new StatElement<>(\"Key Map Size\", Integer.valueOf(this.keyHash != null ? this.keyHash.size() : -1)));\r\n try\r\n {\r\n elems.add(\r\n new StatElement<>(\"Data File Length\", Long.valueOf(this.dataFile != null ? this.dataFile.length() : -1L)));\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(e);\r\n }\r\n elems.add(new StatElement<>(\"Max Key Size\", this.maxKeySize));\r\n elems.add(new StatElement<>(\"Hit Count\", this.hitCount));\r\n elems.add(new StatElement<>(\"Bytes Free\", this.bytesFree));\r\n elems.add(new StatElement<>(\"Optimize Operation Count\", Integer.valueOf(this.removeCount)));\r\n elems.add(new StatElement<>(\"Times Optimized\", Integer.valueOf(this.timesOptimized)));\r\n elems.add(new StatElement<>(\"Recycle Count\", Integer.valueOf(this.recycleCnt)));\r\n elems.add(new StatElement<>(\"Recycle Bin Size\", Integer.valueOf(this.recycle.size())));\r\n elems.add(new StatElement<>(\"Startup Size\", Integer.valueOf(this.startupSize)));\r\n\r\n // get the stats from the super too\r\n final IStats sStats = super.getStatistics();\r\n elems.addAll(sStats.getStatElements());\r\n\r\n stats.setStatElements(elems);\r\n\r\n return stats;\r\n }", "public List<Number> getStatistics() {\n return statistics;\n }", "public com.google.privacy.dlp.v2.StoredInfoTypeStatsOrBuilder getStatsOrBuilder() {\n if (statsBuilder_ != null) {\n return statsBuilder_.getMessageOrBuilder();\n } else {\n return stats_ == null\n ? com.google.privacy.dlp.v2.StoredInfoTypeStats.getDefaultInstance()\n : stats_;\n }\n }", "public HashMap<String, Double> getStats() {\n return playerStats; // stub\n }", "public java.util.Map<String, FieldStats> getStats() {\n if (stats == null) {\n stats = new com.amazonaws.internal.SdkInternalMap<String, FieldStats>();\n }\n return stats;\n }", "public static StreamProcessorStatisticDataHolder getInstance() {\n return instance;\n }", "public interface StatisticsView {\n\n\t/**\n\t * @param column column\n\t * @return one variable stats. The list if empty, if there is not enough data.\n\t */\n\tList<StatisticGroup> getStatistics1Var(int column);\n\n\t/**\n\t * @param column column\n\t * @return two variable stats for first and given column. The list if empty, if there is not enough data.\n\t */\n\tList<StatisticGroup> getStatistics2Var(int column);\n\n\t/**\n\t * @param column column\n\t * @return list of regression specifications. The list if empty, if there is not enough data.\n\t */\n\tList<RegressionSpecification> getRegressionSpecifications(int column);\n\n\t/**\n\t * @param column column\n\t * @param regression regression type + degree\n\t * @return regression parameters for first and given column\n\t */\n\tList<StatisticGroup> getRegression(int column, RegressionSpecification regression);\n\n\t/**\n\t * @param column column\n\t * @param regression regression type + degree\n\t * @return plot element\n\t */\n\tGeoElement plotRegression(int column, RegressionSpecification regression);\n}", "@java.lang.Override\n public com.google.privacy.dlp.v2.StoredInfoTypeStatsOrBuilder getStatsOrBuilder() {\n return stats_ == null\n ? com.google.privacy.dlp.v2.StoredInfoTypeStats.getDefaultInstance()\n : stats_;\n }", "public static Collection<Access.AccessStatsEntry> getStatistics() {\n accessorQueueLen.count = accessorQueue.size();\n\n return stats;\n }", "public ViewerManager2 getPlayer() {\n return this.player;\n }", "public static StatisticUI getInstance() {\n\t\tif (instance == null)\n\t\t\tinstance = new StatisticUI();\n\t\treturn instance;\n\t}", "public SessionInfo getSessionInfo() {\n\t\treturn sessionInfo;\n\t}", "SessionManager getSessionManager() {\n\t\treturn sessionManager;\n\t}", "public void statsAction() {\n StatsWin newWindow = getSelectedCell().mkStatsWin();\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "public String getStatistics() {\r\n \tString statistics;\r\n \tstatistics=\"Anzahl aller User: \"+ numberOfUsers() + \"\\n\"\r\n \t\t\t+ \"Anzahl aller Hotels: \" + numberOfHotels() + \"\\n\"\r\n \t\t\t+ \"Hotel mit der besten durchschnittlichen Bewertung: \" + bestHotel().getName() + \"\\n\";\r\n \treturn statistics;\r\n }", "SessionManager get();", "@Override\n public ExecutionStatistics getExecutionStatistics() {\n return new ExecutionStatistics(_numTotalDocs, 0, 0, _numTotalDocs);\n }", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "public View runStartUp() {\r\n Controller contr = new Controller();\r\n contr.addObserver(InspectionStatsView.getObserver());\r\n Logger firstLogger = new FileLogger();\r\n return new View(contr, firstLogger);\r\n }", "public Statistics getStatistics()\n throws IOException,IllegalArgumentException\n {\n Mocket.Statistics statistics = new Mocket.Statistics();\n return getStatisticsNative (statistics);\n }", "public CacheStatistics getCacheStatistics()\n {\n return m_stats;\n }", "MediaSessionManager getMediaSessionManager() {\n Object object = this.mLock;\n synchronized (object) {\n return this.mMediaSessionManager;\n }\n }", "public com.google.privacy.dlp.v2.StoredInfoTypeStats.Builder getStatsBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getStatsFieldBuilder().getBuilder();\n }", "public static void showStatistics(){\n\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public Mono<Response<StorageServiceStats>> getStatistics() {\n return storageAsyncRawClient\n .getStatistics()\n .map(rb -> new SimpleResponse<>(rb, rb.value()));\n }", "@RequestMapping(value = \"stats\", method = RequestMethod.GET)\n\tpublic String statsGet(HttpSession session, ModelMap model){\n\t\t//Checks if user is logged in\n\t\tif(session.getAttribute(\"username\") == null){\n\t\t\tVIEW_INDEX = \"index\";\n\t\t\treturn \"redirect:/\"+VIEW_INDEX;\n\t\t}\n\n\t\tString username = (String)session.getAttribute(\"username\");\n\t\tString date = (String)session.getAttribute(\"date\");\n\n\n\t\tArrayList user = userService.findUser(username);\n\t\tString goal = (String)user.get(1);\n\t\tint id = workoutService.getIdByDate(username, date);\n\t\tArrayList<Stats> stats = statsService.getAveragePerDay(username,id,goal);\n\t\t\n\t\tmodel.addAttribute(\"stats\",stats);\n\n\t\t//If there are no stats to look at then the user is encouraged to workout more\n\t\tif(stats == null){\n\t\t\tmodel.addAttribute(\"display\",\"none\");\n\t\t\tmodel.addAttribute(\"progressHeader\",\"You have to workout more to be able to see your progress\");\n\t\t}\n\t\t//Picture is shown that shows progress as well as average weight for each day\n\t\telse{\n\t\t\tLineChartService lcs = new LineChartService();\n\t\t\tlcs.getLineChart(username, id, goal);\n\t\t\tmodel.addAttribute(\"progressHeader\",\"Average weight per day\");\n\t\t\tmodel.addAttribute(\"username\", username);\n\t\t\tmodel.addAttribute(\"display\",\"inline\");\n\n\t\t}\n\t\tVIEW_INDEX = \"stats\";\t\t\n\t\treturn VIEW_INDEX;\n\t}", "public MossAnalysis getMossAnalysis() {\r\n return getMossAnalysis(false);\r\n }", "public Collection<Long> getSessions() {\n return dataTree.getSessions();\n }", "public final String getStatsStr() {\r\n\t\treturn getStatsStr(false);\r\n\t}", "public int getStatsCount() {\n return stats_.size();\n }", "public void displayStats() {\n VisitorDAO visitorDAO = new VisitorDAO();\n Object countAllVisitors = visitorDAO.getCountAllVisitors();\n Object countNewSubscribers = visitorDAO.getCountNewSubscribersForMonth(this.simpleDateFormat.format(new Date()));\n\n this.totalSubscribersText.setText(this.totalSubscribersText.getText() + countAllVisitors.toString());\n this.newSubscribersText.setText(this.newSubscribersText.getText() + countNewSubscribers.toString());\n }", "public SourceViewer getSourceViewer()\n {\n return sourceViewer;\n }", "synchronized public Profiler getProfiler () {\n Profiler prof = (Profiler) get (PROFILER.toString());\n if (prof == null) {\n prof = new Profiler();\n put (PROFILER.toString(), prof);\n }\n return prof;\n }", "public static ArrayList<Session> getSessions() {\r\n\t\treturn sessions;\r\n\t}", "private JPanel getSummaryPanel() {\n if (summaryPanel == null) {\n summaryPanel = new JPanel();\n summaryPanel.setLayout(new BorderLayout());\n summaryPanel.setMinimumSize(new Dimension(150, 100));\n summaryPanel.add(getSummaryTreeScrollPane(), BorderLayout.CENTER);\n summaryPanel.add(getDiffExecutePanel(), BorderLayout.NORTH);\n }\n return summaryPanel;\n }", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public String getStatisticsAsText() {\r\n\t\treturn this.statisticsTabItem.getContentAsText();\r\n\t}", "public ReviewerStatistics retrieve(long id) throws ReviewerStatisticsManagerException {\n return persistence.retrieve(id);\n }", "public static String showAllStats() {\n return showStats(allStats, \"All stats\");\n }", "public JComponent getSmallPodComponent() {\r\n if (summaryView == null) {\r\n summaryView = new LogSummaryView(getLogToFileAction());\r\n }\r\n return summaryView;\r\n }", "Map<String, Object> getStats();", "ComponentResultsView getResultsView() {\n\tif (this.componentResultsView == null) {\n\t\tthis.componentResultsView = (ComponentResultsView) getWorkbenchView(\"org.eclipse.test.internal.performance.results.ui.ComponentsResultsView\");\n\t}\n\treturn this.componentResultsView;\n}", "protected Session getSession() {\n\n return (Session) getExtraData().get(ProcessListener.EXTRA_DATA_SESSION);\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static Result showStats() {\n\t\tUser currentUser = SessionHelper.getCurrentUser(ctx());\n\t\tList<Blogger> bloggerList = Blogger.find.all();\n\t\tif(currentUser != null && currentUser.username.equals(\"blogger\")){\n\t\t\treturn ok(blog.render(bloggerList,currentUser));\n\t\t}\n\n\t\t// Null Catching\n\t\tif (currentUser == null) {\n\t\t\treturn redirect(routes.Application.index());\n\t\t}\n\t\t\n\t\tallProducts = ProductController.findProduct.where().eq(\"owner.username\", currentUser.username).findList();\n\t\t\n\t\tapplyTheStringViewForStats(currentUser);\n\t\n\t\treturn ok(statsproducts.render(currentUser, allProducts));\n\n\t}", "public GroupManager getViews() {\n\t\treturn logic.getViews();\n\t}", "public WindowManagerService getWindowManager() {\n return this.mService.mWindowManager;\n }", "private void initStatisticsPanels() {\n tpSolver.removeAll();\n //create new Tabs\n\n statsPanel = new StatisticsChartExperiment(simulationRunning.solvers);\n statsPanel.resetDataSets();\n\n //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: SETUP\n// tpSolver.addTab(\"Multiple Solver\", pnRunInTextMode);\n// tpSolver.addTab(\"Experiment\", pnSetupSolver);\n //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: STATISTICS\n JTabbedPane tpStats = new JTabbedPane();\n txtLogSolver = new JTextArea(simulationRunning.getSolversInfo());\n txtLogSolver.setFont(new Font(\"courier new\", Font.PLAIN, 12));\n tpStats.addTab(\"Simulation \", new JScrollPane(txtLogSolver));\n\n int totalTabs = statsPanel.getTabs().getTabCount();\n for (int i = 0; i < totalTabs; i++) {\n tpStats.addTab(statsPanel.getTabs().getTitleAt(0), statsPanel.getTabs().getComponentAt(0));\n }\n\n //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: STATISTICS\n tpSolver.addTab(\"Evolution\", tpStats);\n tpSolver.setSelectedComponent(tpStats);\n tpStats.setSelectedIndex(1); // 0-config 1-statistics\n\n this.revalidate();\n this.repaint();\n }", "private JPanel getPanelSession() {\n if (panelContext == null) {\n panelContext = new JPanel();\n panelContext.setLayout(new GridBagLayout());\n\n if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption()\n == 0) {\n panelContext.setSize(180, 101);\n }\n\n panelContext.add(\n new JLabel(Constant.messages.getString(\"context.label.name\")),\n LayoutHelper.getGBC(0, 0, 1, 1.0D));\n panelContext.add(getTxtName(), LayoutHelper.getGBC(0, 1, 1, 1.0D));\n panelContext.add(getChkInScope(), LayoutHelper.getGBC(0, 2, 2, 1.0D));\n panelContext.add(\n new JLabel(Constant.messages.getString(\"context.label.desc\")),\n LayoutHelper.getGBC(0, 3, 1, 1.0D));\n panelContext.add(getTxtDescription(), LayoutHelper.getGBC(0, 4, 1, 1.0D, 1.0D));\n }\n return panelContext;\n }", "public Collection<RaftSession> getSessions() {\n return sessions.values();\n }", "public ArrayList<UserSessionInfo> getAllSessionInfo() throws SessionManagementException {\n ArrayList<UserSessionInfo> userSessionInfoList = null;\n try {\n userSessionInfoList = SessionContextCache.getInstance(0).getSessionDetails();\n } catch (Exception e) {\n String errorMsg = \"Error is occurred while getting session details \";\n log.error(errorMsg, e);\n throw new SessionManagementException(errorMsg, e);\n }\n return userSessionInfoList;\n }", "public GameSession getGameSession()\n {\n return gameSession;\n }", "public static Session getSession() {\n if(sesh == null) {\n return sesh = sf.openSession();\n }\n\n return sesh;\n }", "public Session getSysSession() {\n\n sysSession.currentSchema =\n sysSession.database.schemaManager.getDefaultSchemaHsqlName();\n sysSession.isProcessingScript = false;\n sysSession.isProcessingLog = false;\n\n sysSession.setUser(sysSession.database.getUserManager().getSysUser());\n\n return sysSession;\n }", "public int getStatsCount() {\n return instance.getStatsCount();\n }", "public static StatisticsFragment newInstance() {\n return new StatisticsFragment();\n }", "public static TimedRefreshManager getInstance() {\n\t\t\n\t\tif (_instance == null) {\n\t\t\t_instance = new TimedRefreshManager();\n\t\t}\n\t\treturn _instance;\n\n\t}", "public PlotViewStatsAndMaths() {\n \t}", "public final List<MediaSession2> getSessions() {\n ArrayList<MediaSession2> arrayList = new ArrayList<MediaSession2>();\n Object object = this.mLock;\n synchronized (object) {\n arrayList.addAll(this.mSessions.values());\n return arrayList;\n }\n }", "public PlayerStats getPlayerStats() {\n /* Get score and kills */\n String score = String.valueOf(this.getScoreCounter().getScore());\n String kills = Integer.toString(this.killCount);\n \n playerStats.setScoreId(\"1\"); /* This will be changed in SavePlayerStats */\n playerStats.setUserId(\"\"); /* This will be changed when SavePlayerStats */\n playerStats.setScore(score);\n playerStats.setKills(kills);\n playerStats.setNewTimestamp();\n \n return playerStats;\n }", "protected Visualizer getVis() {\n\t\treturn myVis;\n\t}", "public Boolean liveStreamMetrics() {\n return this.liveStreamMetrics;\n }", "public TableViewer getTableViewer() {\n return viewer;\n }", "public ResultsPanel(StatsCollector st, GraphType g)\n\t{\n\t if (Utils.getUSmode() == true) {\n\t west = \"East\";\n\t east = \"West\";\n\t }\n\t\tstatsCollector = st;\n\t\tgraph = g;\n\t\tgetPoints();\n\t\tif (totalEntered == null || averageWait == null || maxWait == null || timeAlive == null) {\n\t\t\t// What to do if there is no data\n\t\t}\n\t}", "@JsonProperty(\"stats\")\n@ApiModelProperty(value = \"Stats about this VirtualInstance\")\n public VirtualInstanceStats getStats() {\n return stats;\n }", "public static int getSearchingView(HttpSession session) {\r\n\t\tInteger result = (Integer)session.getAttribute(CURRENT_SEARCHING_VIEW);\r\n\t\tif (result == null) {\r\n\t\t\treturn getUserProfile(session)\r\n\t\t\t\t\t.getSearchingView();\r\n\t\t} else {\r\n\t\t\treturn result.intValue();\r\n\t\t}\r\n\t}", "public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }", "@RequestMapping(value = {\"/statistics\"}, produces = \"application/json; charset=utf8\", method = {RequestMethod.GET})\n public String showAreaStatistics(Model model) {\n List<String> sessionLabelList = new ArrayList<>();\n List<Integer> sessionCountList = new ArrayList<>();\n try {\n statisticsService.getSessionCount(sessionLabelList, sessionCountList);\n } catch (Exception e) {\n log.error(e);\n }\n\n model.addAttribute(ModelField.STATISTICS_SESSION_COUNT_LABELS.label(), sessionLabelList);\n model.addAttribute(ModelField.STATISTICS_SESSION_COUNT_VALUES.label(), sessionCountList);\n\n return \"statistics-page\";\n }", "public DisplayMetrics getDisplayMetrics(){\n \t\tDisplayMetrics metrics = new DisplayMetrics();\n \t\tWindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n \t\twm.getDefaultDisplay().getMetrics(metrics);\n \t\treturn metrics;\n \t}", "RatSightingManager getSightingManager() {return sightingManager;}", "public interviewersImpl getinterviewers1() {\n return (interviewersImpl) findViewObject(\"interviewers1\");\n }", "public ResultSet getStats() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString statsRecords_sql = \"SELECT * FROM \" + stats_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(statsRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}", "public int getActiveSessions();" ]
[ "0.6684943", "0.65005046", "0.6158015", "0.58462846", "0.58195305", "0.57114476", "0.5675791", "0.5657712", "0.5553174", "0.55496716", "0.55420077", "0.5536374", "0.5474153", "0.5469852", "0.5467214", "0.54491454", "0.5405933", "0.53676736", "0.5361641", "0.53557235", "0.53506505", "0.5281638", "0.52731663", "0.52629477", "0.52124065", "0.51917535", "0.5191499", "0.5190323", "0.51667005", "0.5153918", "0.5130143", "0.50842863", "0.50785094", "0.5075173", "0.5073871", "0.5057113", "0.5056354", "0.50426936", "0.5031956", "0.5026037", "0.5016002", "0.50121677", "0.5005109", "0.5004005", "0.5003184", "0.49694842", "0.49601343", "0.495338", "0.4924941", "0.4916296", "0.4915695", "0.48982212", "0.48840886", "0.48833728", "0.48814893", "0.4871556", "0.4869093", "0.48659247", "0.4850751", "0.48506027", "0.48442942", "0.48407945", "0.48398668", "0.48355335", "0.48225588", "0.4821076", "0.48186597", "0.48183575", "0.48069447", "0.4802105", "0.480052", "0.4797809", "0.47955984", "0.47943765", "0.4787475", "0.47856072", "0.4779394", "0.47671968", "0.4757286", "0.47570336", "0.47561142", "0.47247356", "0.47243106", "0.47114167", "0.4703949", "0.4695555", "0.46924487", "0.46858206", "0.46830302", "0.46826324", "0.46773124", "0.4675135", "0.46715063", "0.46685556", "0.46645495", "0.46570316", "0.46557963", "0.46540776", "0.46538168", "0.46514267" ]
0.82736
0
private static final Logger log = LoggerFactory.getLogger(StwwmakerApplication.class);
public static void main(String[] args) { SpringApplication.run(StwwmakerApplication.class, args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Logger getLogger() {\n return LoggerFactory.getLogger(ApplicationManager.class);\n }", "@Override\n public void logs() {\n \n }", "protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n return LoggerFactory.getLogger(Slf4j.class.getName());\n }", "void initializeLogging();", "@GetMapping(\"/log-test\")\n public String logTest(){\n String name = \"Spring\";\n // System.out.println(\"name = \" + name);\n\n // 로그 레벨 낮은 레벨 --> 높은 레벨\n log.trace(\"trace log={}\", name);\n log.debug(\"debug log={}\", name);\n log.info(\"info log={}\", name);\n log.warn(\"warn log={}\", name);\n log.error(\"error log={}\", name);\n return \"ok\";\n }", "private HeaderBrandingTest()\n\t{\n\t\tBaseTest.classLogger = LoggerFactory.getLogger( HeaderBrandingTest.class );\n\t}", "public ServicioLogger() {\n }", "private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }", "public Slf4jLogService() {\n this(System.getProperties());\n }", "private Log() {\r\n\t}", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();", "public static void main(String[] args) throws Exception {\n \n// // Log actions into a text file\n// String currentDirectory = System.getProperty(\"user.dir\");\n// String configurationFilename = \"logging.properties\";\n// String configFilePath = currentDirectory + \"/\" + configurationFilename;\n// try {\n// FileInputStream config = new FileInputStream(configFilePath);\n// LogManager.getLogManager().readConfiguration(config);\n// String logFilename = System.getProperty(\"user.home\") + \"/.ihale/log.txt\";\n// // Allow appending to the logging file.\n// Handler fh = new FileHandler(logFilename, true);\n// Logger.getLogger(\"\").setLevel(Level.OFF);\n// Logger.getLogger(\"\").addHandler(fh);\n// }\n// catch (IOException ioe) {\n// // CheckStyle was complaining about use of tabs when there wasn't so this long string is\n// // placed into a String variable to comply with the warning.\n// System.out.println(\"Error, logging properties file not found at \" + configFilePath);\n// System.out.println(\"Log messages will be appended to the console\");\n// }\n \n Server server = new Server(port);\n Context context = new Context(server, \"/\" + contextPath, Context.SESSIONS);\n\n ServletHolder servletHolder = new ServletHolder(new WicketServlet());\n servletHolder.setInitParameter(\"applicationClassName\", applicationClass);\n servletHolder.setInitOrder(1);\n context.addServlet(servletHolder, \"/*\");\n try {\n server.start();\n System.out.printf(\"%nApplication at http://localhost:%s/%s. Press return to exit.%n\", port,\n contextPath);\n while (System.in.available() == 0) {\n Thread.sleep(5000);\n }\n server.stop();\n server.join();\n }\n catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n }", "public MyLogs() {\n }", "protected static Logger log() {\n return LogSingleton.INSTANCE.value;\n }", "private ExtentLogger() {}", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "private Logger configureLogging() {\r\n\t Logger rootLogger = Logger.getLogger(\"\");\r\n\t rootLogger.setLevel(Level.FINEST);\r\n\r\n\t // By default there is one handler: the console\r\n\t Handler[] defaultHandlers = Logger.getLogger(\"\").getHandlers();\r\n\t defaultHandlers[0].setLevel(Level.CONFIG);\r\n\r\n\t // Add our logger\r\n\t Logger ourLogger = Logger.getLogger(serviceLocator.getAPP_NAME());\r\n\t ourLogger.setLevel(Level.FINEST);\r\n\t \r\n\t // Add a file handler, putting the rotating files in the tmp directory \r\n\t // \"%u\" a unique number to resolve conflicts, \"%g\" the generation number to distinguish rotated logs \r\n\t try {\r\n\t Handler logHandler = new FileHandler(\"/%h\"+serviceLocator.getAPP_NAME() + \"_%u\" + \"_%g\" + \".log\",\r\n\t 1000000, 3);\r\n\t logHandler.setLevel(Level.FINEST);\r\n\t ourLogger.addHandler(logHandler);\r\n\t logHandler.setFormatter(new Formatter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\t\t\tString result=\"\";\r\n\t\t\t\t\t\tif(record.getLevel().intValue() >= Level.WARNING.intValue()){\r\n\t\t\t\t\t\t\tresult += \"ATTENTION!: \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss\");\r\n\t\t\t\t\t\tDate d = new Date(record.getMillis());\r\n\t\t\t\t\t\tresult += df.format(d)+\" \";\r\n\t\t\t\t\t\tresult += \"[\"+record.getLevel()+\"] \";\r\n\t\t\t\t\t\tresult += this.formatMessage(record);\r\n\t\t\t\t\t\tresult += \"\\r\\n\";\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t } catch (Exception e) { // If we are unable to create log files\r\n\t throw new RuntimeException(\"Unable to initialize log files: \"\r\n\t + e.toString());\r\n\t }\r\n\r\n\t return ourLogger;\r\n\t }", "public void viewLogs() {\n\t}", "private static void setupLogger(Application application) {\n\n\t\tapplication.addComponentMenu(Logger.class, \"Logger\", 0);\n\t\tapplication.addComponentMenuElement(Logger.class, \"Clear log\",\n\t\t\t\t(ActionEvent e) -> application.flushLoggerOutput());\n\t\tapplication.addComponentMenuElement(Logger.class, \"Fine level\", (ActionEvent e) -> logger.setLevel(Level.FINE));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Info level\", (ActionEvent e) -> logger.setLevel(Level.INFO));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Warning level\",\n\t\t\t\t(ActionEvent e) -> logger.setLevel(Level.WARNING));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Severe level\",\n\t\t\t\t(ActionEvent e) -> logger.setLevel(Level.SEVERE));\n\t\tapplication.addComponentMenuElement(Logger.class, \"OFF logging\", (ActionEvent e) -> logger.setLevel(Level.OFF));\n\t}", "public Logs() {\n initComponents();\n }", "private JavaUtilLogHandlers() { }", "@Override\n public Logger getLog(Class clazz) {\n return new Slf4jLogger(LoggerFactory.getLogger(clazz));\n }", "private LoggerSingleton() {\n\n }", "@Override\n\tprotected Logger getLogger() {\n\t\treturn HMetis.logger;\n\t}", "abstract void initiateLog();", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private LogService()\n {\n logWriter = new CleanSweepLogWriterImpl();\n\n Calendar date = Calendar.getInstance();\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH)+1;\n int day = date.get(Calendar.DAY_OF_MONTH);\n\n todaysDate=\"\";\n if(day<10) {\n todaysDate += year + \"\" + month + \"0\" + day;\n }\n else\n {\n todaysDate += year + \"\" + month + \"\" + day;\n }\n\n }", "private Log() {\n }", "@Override\n protected Logger getLogger() {\n return LOGGER;\n }", "private Logger() {\n\n }", "@BeforeClass\n\tpublic void setup() {\n\t\tlogger = Logger.getLogger(\"AveroRestAPI\");\n\t\tPropertyConfigurator.configure(\"Log4j.properties\");\n\t\tlogger.setLevel(Level.DEBUG);\n\n\t}", "public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}", "public Logger (){}", "private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }", "public MyLogger () {}", "private Logger getLogger() {\n return LoggingUtils.getLogger();\n }", "void log();", "private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}", "private void initLogger(BundleContext bc) {\n\t\tBasicConfigurator.configure();\r\n\t\tlogger = Logger.getLogger(Activator.class);\r\n\t\tLogger.getLogger(\"org.directwebremoting\").setLevel(Level.WARN);\r\n\t}", "@BeforeClass\n public static void setupClass() {\n build = System.getenv(\"BUILD\");\n \n File logFile = new File(LOG_FILE);\n if(!logFile.exists()) {\n System.out.println(\"Creating log file\");\n try {\n logFile.createNewFile();\n System.out.println(\"Created log file: \" + logFile.getPath());\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n }\n \n try {\n FileHandler fileHandler = new FileHandler(logFile.getPath());\n fileHandler.setFormatter(new LogFormatter());\n LOGGER.addHandler(fileHandler);\n \n } catch (SecurityException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n \n LOGGER.setUseParentHandlers(false);\n \n }", "void printHellow() {\n logger.debug(\"hellow world begin....\");\n logger.info(\"it's a info message\");\n logger.warn(\"it's a warning message\");\n loggerTest.warn(\"from test1 :....\");\n loggerTest.info(\"info from test1 :....\");\n\n // print internal state\n LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n StatusPrinter.print(lc);\n }", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "public static void main(String[] args){ \r\n\t\t /* PropertyConfigurator.configure(\"application.properties\");\r\n\t\t log.debug(\"Hello this is a debug message\"); \r\n\t log.info(\"Hello this is an info message\"); \r\n\t System.out.println(\"Hi..Cool\");\r\n\t URLTest u=new URLTest();\r\n\t u.sendGET();*/\r\n\t\t\r\n\t\t System.out.println(\"Hi..IMI\");\r\n\t }", "private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactory.getInstance().createAntLogger();\n }", "public EmployeeServlet()\n {\n logger = Logger.getLogger(getClass().getName());\n }", "@BeforeClass\npublic static void setLogger() {\n System.setProperty(\"log4j.configurationFile\",\"./src/test/resources/log4j2-testing.xml\");\n log = LogManager.getLogger(LocalArtistIndexTest.class);\n}", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "@Override\n protected void appStart() {\n }", "@BeforeClass\n public static void beforeClass()\n throws Exception\n {\n LoggerConfiguration.logSetup();\n }", "public String getLog();", "public static Logger get() {\n\t\treturn LoggerFactory.getLogger(WALKER.getCallerClass());\n\t}", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "abstract public LoggingService getLoggingService();", "public static void main(String[] args){\n System.setProperty(\"spring.jackson.serialization.INDENT_OUTPUT\", \"true\");\n\n SpringApplication application = new SpringApplication(Application.class);\n application.addListeners(new ApplicationPidFileWriter(\"ms-recommendation.pid\"));\n application.run(args);\n }", "public LogMessageController() {\n\t}", "private Logger(){\n\n }", "@Override\n public void log()\n {\n }", "private static Log getLog() {\n if (log == null) {\n log = new SystemStreamLog();\n }\n\n return log;\n }", "public LogKitLogger(String name)\n/* */ {\n/* 64 */ this.name = name;\n/* 65 */ this.logger = getLogger();\n/* */ }", "private Logger(){ }", "@BeforeClass\n\tpublic static void setup() {\n\t\tLogger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);\n\t\troot.setLevel(Level.INFO);\n\t}", "public static void main(String[] args) {\n\t\torg.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Slf4j.class);\n\t\t\n\t\tlogger.info(\"Hello World\");\n\t\t\n\t}", "private void logToFile() {\n }", "protected void initLogger() {\n initLogger(\"DEBUG\");\n }", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public static void main(String[] args) {\n // logger.info(\"Message\");\n // System.out.println(\"cdkdk\");\n\n }", "public LogX() {\n\n }", "@RequestMapping(\"/\")\n String hello(){\n logger.debug(\"Debug message\");\n logger.info(\"Info message\");\n logger.warn(\"Warn message\");\n logger.error(\"Error message\");\n return \"Done\";\n }", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "private LogUtil() {\r\n /* no-op */\r\n }", "private Log getLog() {\n if (controller != null) {\n log = controller.getLog();\n } \n return log ;\n }", "protected Logger getLogger() {\n return LoggerFactory.getLogger(getClass());\n }", "private static void createLogger() {\n logger = myLogger.createHtmlLogger(\"JRECEIPTS\", Options.LOG_PATH + \"Receipts\", 262144, true, 1);\n// boolean append = true;\n// int limit = 1000000; // 1 Mb\n// int numLogFiles = 5;\n// FileHandler fh = new FileHandler(Options.LOG_PATH + \"Receipts_%g.html\", limit, numLogFiles, true);\n// fh.setFormatter(new SimpleFormatter());\n// // Add to the desired logger\n// logger = Logger.getLogger(\"Receipts\");\n// logger.addHandler(fh);\n }", "public void setLogUtilities(LogUtilities log) { this.log = log; }", "public void setLog (Logger log) {\n this.log = log;\n }", "@Override\n public void firstApplicationStartup()\n {\n System.out.println(\"firstApplicationStartup\");\n \n }", "private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }", "public Flask() {\r\n strat = new EmptyFlaskStrategy();\r\n }", "private void init() {\r\n this.log = this.getLog(LOGGER_MAIN);\r\n\r\n if (!(this.log instanceof org.apache.commons.logging.impl.Log4JLogger)) {\r\n throw new IllegalStateException(\r\n \"LogUtil : apache Log4J library or log4j.xml file are not present in classpath !\");\r\n }\r\n\r\n // TODO : check if logger has an appender (use parent hierarchy if needed)\r\n if (this.log.isWarnEnabled()) {\r\n this.log.warn(\"LogUtil : logging enabled now.\");\r\n }\r\n\r\n this.logBase = this.getLog(LOGGER_BASE);\r\n this.logDev = this.getLog(LOGGER_DEV);\r\n }", "@RequestMapping(\"/log-test\")\n public String logTest() {\n String name = \"Spring\";\n\n /**\n * log.trace(\" trace log= \" + name); +로 사용 하면 안 되는 이유\n * 현재 로그 레벨은 debug 상태 출력시 나오지 그래서 trace는 출력 되지 않음\n * 그럼에도 불구하고, +를 사용하여 연산이 일어남\n * 연산이 일어나도 그 뒤에 trace 파라미터 넘길려니 확인 후 안 넘김\n * 연산은 곧 리소스 사용 그래서 리소스 낭비가 일어난다.\n *\n * log.trace(\" trace log={}\", name); 경우\n * trace에 파라미터를 넘기는 형식이라\n * 실행 시 trace 메소드를 보고 로그 중지\n * 리소스 낭비 될 일이 없다.\n */\n log.trace(\" trace log= \" + name);\n log.trace(\" trace log={}\", name);\n\n log.debug(\" debug log={}\", name);\n log.info(\" info log={}\", name);\n log.warn(\" warn log={}\", name);\n log.error(\" error log={}\", name);\n\n\n return \"ok\";\n }", "public LogPoster() {\n\t\t\n\t}", "public SensorLog() {\n }", "private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}", "public MyLoggingFacade(Logger logger) {\n this.logger = logger;\n }", "protected TechnicalLoggerService getLoggerService() {\n\n return new TechnicalLoggerService() {\n\n @Override\n public void log(Class<?> callerClass, TechnicalLogSeverity severity, String message, Throwable t) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void log(Class<?> callerClass, TechnicalLogSeverity severity, String message) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void log(Class<?> callerClass, TechnicalLogSeverity severity, Throwable t) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public boolean isLoggable(Class<?> callerClass, TechnicalLogSeverity severity) {\n // TODO Auto-generated method stub\n return false;\n }\n };\n\n\n }", "public void enableLogging();", "Logger getLog(Class clazz);", "public Logger log() {\n return LOG;\n }", "public void init() {\n log.info(\"initialization\");\n }", "@Bean\n\tpublic SAMLDefaultLogger samlLogger() {\n\t\treturn new SAMLDefaultLogger();\n\t}", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "public RevisorLogger getLogger();", "public static void main( String[] args ) throws InterruptedException\n {\n \tString tmp;\n System.out.println( \"Hello World! v5: 2 second sleep, 1 mil logs\" );\n //System.out.println(Thread.currentThread().getContextClassLoader().getResource(\"log4j.properties\"));\n ClassLoader loader = App.class.getClassLoader();\n // System.out.println(loader.getResource(\"App.class\"));\n \n tmp = System.getenv(\"LOOP_ITERATIONS\");\n if (tmp != null) {\n \ttry {\n \t\tLOOP_ITERATIONS = Integer.parseInt(tmp);\n \t}\n \tcatch (NumberFormatException e) {\n \t\te.printStackTrace();\n \t}\n }\n \n tmp = System.getenv(\"LOG_PADDING\");\n if (tmp != null) {\n \ttry {\n \t\tLOG_PADDING = Integer.parseInt(tmp);\n \t}\n \tcatch (NumberFormatException e) {\n \t\te.printStackTrace();\n \t}\n }\n \n String padding = createPadding(LOG_PADDING);\n \n logger.debug(\"Hello this is a debug message\");\n logger.info(\"Hello this is an info message\");\n \n double[] metrics = new double[LOOP_ITERATIONS];\n double total = 0;\n long total_ms = 0;\n \n \n for (int i=0; i < LOOP_ITERATIONS; i++) {\n \n\t long startTime = System.currentTimeMillis();\n\t\n\t \n\t for (int k=0; k < INNER_LOOP_ITERATIONS; k++) {\n\t \tlogger.debug(\"Hello \" + i + \" \" + padding);\n\t logger.info(\"Hello \" + i + \" \" + padding);\n\t }\n\t \n\t long endTime = System.currentTimeMillis();\n\t \n\t long elapsedms = (endTime - startTime);\n\t total_ms += elapsedms;\n\t \n\t \n\t long seconds = (endTime - startTime)/1000;\n\t long milli = (endTime - startTime) % 1000;\n\t double logspermillisecond = (INNER_LOOP_ITERATIONS * 2)/elapsedms;\n\t total += logspermillisecond;\n\t metrics[i] = logspermillisecond;\n\t \n\t System.out.println(\"Iteration: \" + i);\n\t System.out.println(\"Sent: \" + (INNER_LOOP_ITERATIONS * 2) + \" logs\");\n\t System.out.println(\"Log size: \" + LOG_PADDING + \" bytes\");\n\t System.out.println(\"Runtime: \" + seconds + \".\" + milli + \"s\\nRate: \" + logspermillisecond + \" logs/ms\");\n\t System.out.println(\"Total execution time: \" + (endTime - startTime) + \"ms\");\n\t System.out.println(\"_____________\");\n\t java.util.concurrent.TimeUnit.SECONDS.sleep(2);\n }\n System.out.println(\"AVERAGE RATE: \" + (total / LOOP_ITERATIONS) + \" logs/ms\");\n System.out.println(\"AVERAGE RATE good math: \" + ((LOOP_ITERATIONS * INNER_LOOP_ITERATIONS * 2)/ total_ms) + \" logs/ms\");\n \n double stdev = calculateStandardDeviation(metrics);\n System.out.println(\"STDEV: \" + stdev + \" logs/ms\");\n \n }", "public static void setUp() {\n Handler handler = new LoggerHandler();\n handler.setFormatter(new SimpleFormatter());\n getInstance().addHandler(handler);\n }", "public static void main(String... args) {\n\n System.setProperty(\"file.encoding\", StandardCharsets.UTF_8.name());\n\n // Register the PID within the logback context\n String name = String.valueOf(ManagementFactory.getRuntimeMXBean().getName());\n if (name != null) {\n MDC.put(\"process_id\", name.split(\"@\")[0]);\n }\n\n try {\n if (args.length == 0) {\n displayHelp();\n return;\n }\n int argi = 0;\n while (argi < args.length) {\n String arg = args[argi++].intern();\n // Options that are not followed by additional parameters\n // come first.\n JDBCConfig jdbcConfig = new JDBCConfig();\n if (Objects.equals(arg, \"-h\") || Objects.equals(arg, \"-help\")) {\n displayHelp();\n somethingDone = true;\n } else if (Objects.equals(arg, \"-version\")) {\n displayVersion();\n somethingDone = true;\n } else if (Objects.equals(arg, \"-d\") || Objects.equals(arg, \"-debug\")) {\n if (debugLevel++ == 0) {\n LogDebugUtils.enableDebugLogging();\n displayVersion();\n }\n } else if (Objects.equals(arg, \"--forceRegister\")) {\n forceRegister = true;\n somethingDone = true;\n getService();\n } else if (Objects.equals(arg, \"-MO\") || Objects.equals(arg, \"-modules\")) {\n somethingDone = true;\n logModules();\n } else if (Objects.equals(arg, \"-V\") || Objects.equals(arg, \"-views\")) {\n somethingDone = true;\n Stream<ModelData> modelsStream =\n StreamSupport.stream(getService().getModels().spliterator(), false);\n if (modelId != null) {\n modelsStream = modelsStream\n .filter(model -> modelId.equals(model.getId()) || modelId.equals(model.getName()));\n }\n if (workspaceId != null) {\n modelsStream = modelsStream.filter(model -> {\n String modelWorkspaceId = model.getCurrentWorkspaceId();\n Workspace modelWorkspace = service.getWorkspace(modelWorkspaceId);\n if (modelWorkspace == null) {\n return false;\n }\n return workspaceId.equals(modelWorkspace.getId()) ||\n workspaceId.equals(modelWorkspace.getName());\n });\n }\n modelsStream = modelsStream.sorted(Comparator.comparing(ModelData::getCurrentWorkspaceId)\n .thenComparing(ModelData::getId));\n\n List<ModelData> models = modelsStream.collect(Collectors.toList());\n // If the current user is a visitor user, they may not get data about the used workspace/model so we'll\n // just try with the provided input\n if (models.isEmpty()) {\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n models = Collections.singletonList(model.getData());\n }\n }\n for (ModelData model : models) {\n logModuleViews(model);\n }\n } else if (Objects.equals(arg, \"-W\") || Objects.equals(arg, \"-workspaces\")) {\n somethingDone = true;\n Iterable<Workspace> workspaces = getService().getWorkspaces();\n String log = Utils.formatTSV(\"WS_ID\", \"WS_NAME\", \"WS_ALLOCATED_SIZE\", \"WS_SIZE\");\n LOG.info(log);\n for (Workspace workspace : workspaces) {\n log = Utils\n .formatTSV(workspace.getId(), workspace.getName(), workspace.getSizeAllowance(),\n workspace.getCurrentSize());\n LOG.info(log);\n }\n } else if (Objects.equals(arg, \"-M\") || Objects.equals(arg, \"-models\")) {\n somethingDone = true;\n Map<String, String> workspaceNames = StreamSupport\n .stream(getService().getWorkspaces().spliterator(), false)\n .collect(Collectors.toMap(Workspace::getId, Workspace::getName));\n Iterable<ModelData> models = getService().getModels();\n String log = Utils.formatTSV(\"WS_ID\", \"WS_NAME\", \"MODEL_ID\", \"MODEL_NAME\", \"MODEL_SIZE\");\n LOG.info(log);\n for (ModelData model : models) {\n String workspaceId = model.getCurrentWorkspaceId();\n String workspaceName = Optional.ofNullable(workspaceNames.get(workspaceId))\n .orElse(\"\");\n log = Utils.formatTSV(workspaceId, workspaceName, model.getId(), model.getName(),\n model.getMemoryUsage());\n LOG.info(log);\n }\n } else if (Objects.equals(arg, \"-F\") || Objects.equals(arg, \"-files\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (ServerFile serverFile : model.getServerFiles()) {\n log = Utils.formatTSV(\n serverFile.getId(),\n serverFile.getCode(),\n serverFile.getName());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-I\") || Objects.equals(arg, \"-imports\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (Import serverImport : model.getImports()) {\n log = Utils.formatTSV(\n serverImport.getId(),\n serverImport.getCode(),\n serverImport.getName(),\n serverImport.getImportType(),\n serverImport.getSourceFileId());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-A\") || Objects.equals(arg, \"-actions\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (Action serverAction : model.getActions()) {\n log = Utils.formatTSV(\n serverAction.getId(),\n serverAction.getCode(),\n serverAction.getName());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-E\") || Objects.equals(arg, \"-exports\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (Export serverExport : model.getExports()) {\n log = Utils.formatTSV(\n serverExport.getId(),\n serverExport.getCode(),\n serverExport.getName());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-P\") || Objects.equals(arg, \"-processes\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (Process serverProcess : model.getProcesses()) {\n log = Utils.formatTSV(\n serverProcess.getId(),\n serverProcess.getCode(),\n serverProcess.getName());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-L\") || \"-lists\".equals(arg)) {\n if (argi == args.length) {\n somethingDone = true;\n Service service = getService();\n Model model = getModel(workspaceId, modelId);\n if (service != null && model != null) {\n service\n .exportListNames(fileType, fileId, model.getCurrentWorkspaceId(), model.getId());\n }\n }\n } else if (Objects.equals(arg, \"-l\") || Objects.equals(arg, \"-list\")) {\n listId = args[argi++];\n if (argi >= args.length) {\n somethingDone = true;\n Service service = getService();\n Model model = getModel(workspaceId, modelId);\n if (service != null) {\n service.exportListMetadata(fileType, fileId, model.getCurrentWorkspaceId(),\n model.getId(), listId);\n }\n }\n } else if (Objects.equals(arg, GET_JSON) || Objects.equals(arg, \"-get:csv\") || Objects\n .equals(arg, \"-get:csv_sc\") ||\n Objects.equals(arg, \"-get:csv_mc\")) {\n boolean supportedListTypes = Objects.equals(arg, GET_JSON) || Objects\n .equals(arg, \"-get:csv\");\n boolean supportedModuleTypes =\n Objects.equals(arg, GET_JSON) || Objects.equals(arg, \"-get:csv_sc\") || Objects\n .equals(arg, \"-get:csv_mc\");\n fileType = arg.substring(\"-get:\".length());\n if (argi < args.length) {\n fileId = args[argi];\n }\n argi++;\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (argi >= args.length - 1) {\n if (executeParamPresent && moduleId != null && supportedModuleTypes) {\n Module module = getModule(workspaceId, modelId, moduleId);\n if (module != null) {\n module\n .exportViewData(fileType, fileId, model.getCurrentWorkspaceId(), model.getId(),\n viewId, pagesSplit);\n }\n } else if (supportedListTypes) {\n Service service = getService();\n if (service != null) {\n if (executeParamPresent) {\n service.exportListItems(fileType, fileId, model.getCurrentWorkspaceId(),\n model.getId(), listId, includeAll);\n } else if (supportedListTypes) {\n if (listId == null) {\n service.exportListNames(fileType, fileId, model.getCurrentWorkspaceId(),\n model.getId());\n } else {\n service.exportListMetadata(fileType, fileId, model.getCurrentWorkspaceId(),\n model.getId(), listId);\n }\n }\n }\n }\n }\n } else if (Objects.equals(arg, \"-emd\")) {\n somethingDone = true;\n Export export = getExport(workspaceId, modelId, exportId);\n ExportMetadata emd = export.getExportMetadata();\n String delimiter = emd.getDelimiter();\n if (\"\\t\".equals(delimiter)) {\n delimiter = \"\\\\t\";\n }\n String exportName = export.getName();\n int columnCount = emd.getColumnCount();\n int rowCount = emd.getRowCount();\n String exportFormat = emd.getExportFormat();\n String encoding = emd.getEncoding();\n String separator = emd.getSeparator();\n LOG.info(\n \"Export: {}\\ncolumns: {}\\nrows: {}\\nformat: {}\\ndelimiter: {}\\nencoding: {}\\nseparator: {}\"\n , exportName, columnCount, rowCount, exportFormat, delimiter, encoding, separator);\n\n String[] headerNames = emd.getHeaderNames();\n DataType[] dataTypes = emd.getDataTypes();\n String[] listNames = emd.getListNames();\n\n String dataType;\n for (int i = 0; i < headerNames.length; i++) {\n dataType = dataTypes[i].toString();\n LOG.info(\" col {}:\\n name: {}\\n type: {}\\n list: {}\", i, headerNames[i], dataType, listNames[i]);\n }\n } else if (Objects.equals(arg, \"-x:all\") || Objects.equals(arg, \"-execute:all\")) {\n somethingDone = true;\n executeParamPresent = true;\n includeAll = true;\n } else if (Objects.equals(arg, \"-x\") || Objects.equals(arg, \"-execute\")) {\n executeParamPresent = true;\n TaskFactory taskFactory = null;\n if (importId != null) {\n somethingDone = true;\n taskFactory = getImport(workspaceId, modelId, importId);\n } else if (exportId != null) {\n somethingDone = true;\n taskFactory = getExport(workspaceId, modelId, exportId);\n } else if (actionId != null) {\n somethingDone = true;\n taskFactory = getAction(workspaceId, modelId, actionId);\n } else if (processId != null) {\n taskFactory = getProcess(workspaceId, modelId,\n processId);\n }\n if (taskFactory != null) {\n somethingDone = true;\n Task task = taskFactory.createTask(taskParameters);\n lastResult = task.runTask();\n } else if (listId != null) {\n // Performing list operations, like retrieving a list items\n } else if (moduleId != null) {\n // Performing module operations, like retrieving module view data\n } else {\n LOG.error(\"An import, export, action or \"\n + \"process must be specified before {}\", arg);\n }\n\n } else if (Objects.equals(arg, \"-gets\") || Objects.equals(arg, \"-getc\")) {\n somethingDone = true;\n String sourceId = null;\n if (fileId != null) {\n sourceId = fileId;\n } else if (exportId != null) {\n if (lastResult != null && lastResult.isSuccessful()) {\n sourceId = exportId;\n } else {\n LOG.error(\"Export failed - ignoring content\");\n }\n }\n if (null != sourceId) {\n ServerFile serverFile = getServerFile(workspaceId,\n modelId, sourceId, false);\n if (serverFile != null) {\n if (Objects.equals(arg, \"-gets\")) {\n InputStream inputStream = serverFile\n .getDownloadStream();\n byte[] buffer = new byte[4096];\n int read;\n String stringBuilder = \"\";\n do {\n if (0 < (read = inputStream.read(buffer))) {\n stringBuilder = stringBuilder.concat(new String(buffer));\n }\n } while (-1 != read);\n LOG.info(stringBuilder);\n inputStream.close();\n } else {\n CellReader cellReader = serverFile\n .getDownloadCellReader();\n String[] row = cellReader.getHeaderRow();\n do {\n StringBuilder line = new StringBuilder();\n for (int i = 0; i < row.length; ++i) {\n if (line.length() > 0) {\n line.append('\\t');\n }\n line.append(row[i]);\n }\n String log = line.toString();\n LOG.info(log);\n row = cellReader.readDataRow();\n } while (null != row);\n }\n }\n }\n\n } else if (Objects.equals(arg, \"-ch\") || Objects.equals(arg, \"-chunksize\")) {\n fetchChunkSize(args[argi++]);\n } else if (Objects.equals(arg, \"-pages\")) {\n String delim = \",\";\n String regex = \"(?<!\\\\\\\\)\" + Pattern.quote(delim);\n String pages = args[argi++];\n pagesSplit = pages.split(regex);\n } else if (Objects.equals(arg, \"-auth\") || Objects.equals(arg, \"-authserviceurl\")) {\n authServiceUrl = new URI(args[argi++]);\n } else if (Objects.equals(arg, \"-puts\") || Objects.equals(arg, \"-putc\")) {\n somethingDone = true;\n ServerFile serverFile = getServerFile(workspaceId, modelId,\n fileId, true);\n if (serverFile != null) {\n if (Objects.equals(arg, \"-puts\")) {\n OutputStream uploadStream = serverFile.getUploadStream(chunkSize);\n byte[] buf = new byte[4096];\n int read;\n do {\n if (0 < (read = System.in.read(buf))) {\n uploadStream.write(buf, 0, read);\n }\n } while (-1 != read);\n uploadStream.close();\n } else {\n CellWriter cellWriter = serverFile.getUploadCellWriter(chunkSize);\n LineNumberReader lnr = new LineNumberReader(new InputStreamReader(System.in));\n String line;\n while (null != (line = lnr.readLine())) {\n String[] row = line.split(\"\\\\t\");\n if (1 == lnr.getLineNumber()) {\n cellWriter.writeHeaderRow(row);\n } else {\n cellWriter.writeDataRow(row);\n }\n }\n cellWriter.close();\n }\n LOG.info(\"Upload to {} completed.\", fileId);\n }\n // Now check the additional parameter is present before\n // processing consuming options\n } else if (argi >= args.length) {\n break;\n } else if (Objects.equals(arg, \"-oauth-client-id\")) {\n authType = AUTH_TYPE.OAUTH;\n clientId = args[argi++];\n } else if (Objects.equals(arg, \"--rotatable\")) {\n refreshType = ROTATABLE;\n } else if (Objects.equals(arg, \"-s\") || Objects.equals(arg, \"-service\")) {\n serviceLocation = new URI(args[argi++]);\n } else if (Objects.equals(arg, \"-u\") || Objects.equals(arg, \"-user\")) {\n String auth = args[argi++];\n int colonPosition = auth.indexOf(':');\n if (colonPosition != -1) {\n setUsername(auth.substring(0, colonPosition));\n setPassphrase(auth.substring(colonPosition + 1));\n } else {\n setUsername(auth);\n setPassphrase(\"?\");\n }\n } else if (Objects.equals(arg, \"-v\") || Objects.equals(arg, \"-via\")) {\n URI uri = new URI(args[argi++]);\n setProxyLocation(\n new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), null, null, null));\n } else if (Objects.equals(arg, \"-vu\") || Objects.equals(arg, \"-viauser\")) {\n String auth = args[argi++];\n int colonPosition = auth.indexOf(':');\n if (colonPosition != -1) {\n setProxyUsername(auth.substring(0, colonPosition));\n setProxyPassphrase(auth.substring(colonPosition + 1));\n } else {\n setProxyUsername(auth);\n setProxyPassphrase(\"?\");\n }\n } else if (Objects.equals(arg, \"-mrc\") || Objects.equals(arg, \"-maxretrycount\")) {\n maxRetryCount = fetchMaxRetryCount(args[argi++]);\n } else if (Objects.equals(arg, \"-rt\") || Objects.equals(arg, \"-retrytimeout\")) {\n retryTimeout = fetchRetryTimeout(args[argi++]);\n } else if (Objects.equals(arg, \"-ct\") || Objects.equals(arg, \"-httptimeout\")) {\n httpConnectionTimeout = fetchHttpTimeout(args[argi++]);\n } else if (Objects.equals(arg, \"-c\") || Objects.equals(arg, \"-certificate\")) {\n String certificatePath = args[argi++];\n setCertificatePath(certificatePath);\n } else if (Objects.equals(arg, \"-pkey\") || Objects.equals(arg, \"-privatekey\")) {\n if (keyStorePath != null) {\n throw new IllegalArgumentException(\n \"expected either the privatekey or the keystore arguments\");\n }\n String auth = args[argi++];\n int colonPosition = auth.lastIndexOf(':');\n if (colonPosition != -1) {\n setPrivateKeyPath(auth.substring(0, colonPosition));\n setPassphrase(auth.substring(colonPosition + 1));\n } else {\n setUsername(auth);\n setPassphrase(\"?\");\n }\n } else if (Objects.equals(arg, \"-k\") || Objects.equals(arg, \"-keystore\")) {\n if (passphrase != null || privateKeyPath != null) {\n throw new IllegalArgumentException(\n \"expected either the privatekey or keystore arguments\");\n }\n String keyStorePath = args[argi++];\n setKeyStorePath(keyStorePath);\n } else if (Objects.equals(arg, \"-ka\") || Objects.equals(arg, \"-keystorealias\")) {\n String keyStoreAlias = args[argi++];\n setKeyStoreAlias(keyStoreAlias);\n } else if (Objects.equals(arg, \"-kp\") || Objects.equals(arg, \"-keystorepass\")) {\n String keyStorePassword = args[argi++];\n setKeyStorePassword(keyStorePassword);\n } else if (Objects.equals(arg, \"-w\") || Objects.equals(arg, \"-workspace\")) {\n workspaceId = args[argi++];\n } else if (Objects.equals(arg, \"-w_id\") || Objects.equals(arg, \"-workspace_id\")) {\n workspaceId = args[argi++];\n noValidateWorkspace = true;\n } else if (Objects.equals(arg, \"-m\") || Objects.equals(arg, \"-model\")) {\n modelId = args[argi++];\n } else if (Objects.equals(arg, \"-m_id\") || Objects.equals(arg, \"-model_id\")) {\n modelId = args[argi++];\n noValidateModel = true;\n } else if (Objects.equals(arg, \"-mo\") || Objects.equals(arg, \"-module\")) {\n moduleId = args[argi++];\n } else if (Objects.equals(arg, \"-vi\") || Objects.equals(arg, \"-view\")) {\n viewId = args[argi++];\n } else if (Objects.equals(arg, \"-f\") || Objects.equals(arg, \"-file\")) {\n fileId = args[argi++];\n } else if (Objects.equals(arg, \"-g\") || Objects.equals(arg, \"-get\")) {\n somethingDone = true;\n File targetFile = new File(args[argi++]);\n String sourceId;\n if (fileId != null) {\n sourceId = fileId;\n } else if (exportId != null) {\n if (lastResult != null && lastResult.isSuccessful()) {\n sourceId = exportId;\n } else {\n LOG.error(\"Export failed - ignoring content\");\n sourceId = null;\n }\n } else {\n sourceId = targetFile.getName();\n }\n if (sourceId != null) {\n ServerFile serverFile = getServerFile(workspaceId, modelId, sourceId, false);\n if (serverFile != null) {\n serverFile.downLoad(targetFile, true);\n LOG.info(\"The server file {} has been downloaded to {}\", sourceId,\n targetFile.getAbsolutePath());\n }\n }\n } else if (Objects.equals(arg, \"-putItems:json\") || Objects.equals(arg, \"-putItems:csv\")\n || Objects.equals(arg, \"-putItems:jdbc\") ||\n Objects.equals(arg, \"-upsertItems:jdbc\") || Objects.equals(arg, \"-upsertItems:json\") || Objects\n .equals(arg, \"-upsertItems:csv\")) {\n somethingDone = true;\n boolean upsert = arg.startsWith(\"-upsertItems:\");\n String type = arg.startsWith(\"-putItems\") ? arg.substring(\"-putItems:\".length()) :\n arg.substring(\"-upsertItems:\".length());\n final Path outputPath = getOutput(args, argi);\n String outputType = null;\n if (outputPath != null) {\n outputType = args[argi + 1].substring(OUTPUT.length());\n }\n ListItemResultData result = new ListItemResultData();\n result.setFailures(new ArrayList<>(0));\n ListImpl listImpl;\n final Path itemMapFile = (\"\".equals(itemPropertiesPath) || itemPropertiesPath == null) ?\n null : new File(itemPropertiesPath).toPath();\n if (\"jdbc\".equalsIgnoreCase(type)) {\n final Map<String, String> headerMap = getHeader(jdbcConfig, itemMapFile, args[argi++]);\n listImpl = new ListImpl(getService(), workspaceId, modelId, listId, true);\n result = JDBCUtils.doActionsItemsFromJDBC(jdbcConfig, listImpl, headerMap,\n ListImpl.ListAction.ADD, (itemPropertiesPath != null));\n } else {\n final File sourceFile = new File(args[argi++]);\n listImpl = new ListImpl(getService(), workspaceId, modelId, listId, false);\n\n result = listImpl.doActionToItems(sourceFile.toPath(), itemMapFile, FileType\n .valueOf(type.toUpperCase()), ListImpl.ListAction.ADD);\n }\n\n if (result != null) {\n LOG.info(\"{} items added to the list\", result.getAdded());\n manageItemLog(upsert, outputPath, outputType, result, listImpl);\n }\n if (outputPath != null) {\n String log = outputPath.toString();\n LOG.info(DUMP_FILE_WRITTEN, log);\n argi += 2;\n }\n\n } else if (Objects.equals(arg, \"-updateItems:json\") || Objects\n .equals(arg, \"-updateItems:csv\") ||\n Objects.equals(arg, \"-updateItems:jdbc\")) {\n somethingDone = true;\n String type = arg.substring(\"-updateItems:\".length());\n final Path outputPath = getOutput(args, argi);\n String outputType = null;\n if (outputPath != null) {\n outputType = args[argi + 1].substring(OUTPUT.length());\n }\n final ListImpl listImpl;\n ListItemResultData result = new ListItemResultData();\n result.setFailures(new ArrayList<>(0));\n final Path itemMapFile = (\"\".equals(itemPropertiesPath) || itemPropertiesPath == null)\n ? null : new File(itemPropertiesPath).toPath();\n if (\"jdbc\".equalsIgnoreCase(type)) {\n listImpl = new ListImpl(getService(), workspaceId, modelId, listId, true);\n final Map<String, String> headerMap = getHeader(jdbcConfig, itemMapFile, args[argi++]);\n result = JDBCUtils\n .doActionsItemsFromJDBC(jdbcConfig, listImpl, headerMap, ListAction.UPDATE,\n (itemPropertiesPath != null));\n } else {\n listImpl = new ListImpl(getService(), workspaceId, modelId, listId, false);\n final File sourceFile = new File(args[argi++]);\n\n result = listImpl\n .doActionToItems(sourceFile.toPath(), itemMapFile,\n FileType.valueOf(type.toUpperCase()), ListImpl.ListAction.UPDATE);\n }\n if (result != null) {\n String log = String.format(\"%d items updated in the list\", result.getUpdated());\n LOG.info(log);\n if (result.getIgnored() > 0) {\n int ignored = result.getIgnored();\n LOG.info(ITEMS_IGNORED, ignored);\n }\n }\n if (outputPath != null) {\n addLogItemToOutput(result, outputPath, outputType, listImpl.getContent());\n argi += 2;\n String log = outputPath.toString();\n LOG.info(DUMP_FILE_WRITTEN, log);\n }\n } else if (Objects.equals(arg, \"-deleteItems:json\") || Objects.equals(arg, \"-deleteItems:csv\") ||\n Objects.equals(arg, \"-deleteItems:jdbc\")) {\n somethingDone = true;\n String type = arg.substring(\"-deleteItems:\".length());\n final Path outputPath = getOutput(args, argi);\n String outputType = null;\n if (outputPath != null) {\n outputType = args[argi + 1].substring(OUTPUT.length());\n }\n final Path itemMapFile = (\"\".equals(itemPropertiesPath) || itemPropertiesPath == null) ?\n null : new File(itemPropertiesPath).toPath();\n ListItemResultData result = new ListItemResultData();\n result.setFailures(new ArrayList<>());\n if (\"jdbc\".equalsIgnoreCase(type)) {\n final Map<String, String> headerMap = getHeader(jdbcConfig, itemMapFile, args[argi++]);\n final ListImpl listImpl = new ListImpl(getService(), workspaceId, modelId, listId,\n true);\n result = JDBCUtils.doActionsItemsFromJDBC(jdbcConfig, listImpl, headerMap,\n ListImpl.ListAction.DELETE, (itemPropertiesPath != null));\n argi = handleDeleteLog(result, outputPath, outputType, listImpl.getContent(), argi);\n } else {\n final File sourceFile = new File(args[argi++]);\n final ListImpl listImpl = new ListImpl(getService(), workspaceId, modelId, listId, false);\n result = listImpl.doActionToItems(sourceFile.toPath(), itemMapFile, FileType\n .valueOf(type.toUpperCase()), ListImpl.ListAction.DELETE);\n argi = handleDeleteLog(result, outputPath, outputType, listImpl.getContent(), argi);\n }\n } else if (Objects.equals(arg, \"-p\") || Objects.equals(arg, \"-put\")) {\n somethingDone = true;\n File sourceFile = new File(args[argi++]);\n String destId = fileId == null ? sourceFile.getName() : fileId;\n ServerFile serverFile = getServerFile(workspaceId, modelId,\n destId, true);\n if (serverFile != null) {\n serverFile.upLoad(sourceFile, true, chunkSize);\n LOG.info(\"The file \\\"{}\\\" has been uploaded as {}.\", sourceFile, destId);\n }\n } else if (Objects.equals(arg, \"-i\") || Objects.equals(arg, \"-import\")) {\n importId = args[argi++];\n exportId = null;\n actionId = null;\n processId = null;\n } else if (Objects.equals(arg, \"-e\") || Objects.equals(arg, \"-export\")) {\n importId = null;\n exportId = args[argi++];\n actionId = null;\n processId = null;\n } else if (Objects.equals(arg, \"-a\") || Objects.equals(arg, \"-action\")) {\n importId = null;\n exportId = null;\n actionId = args[argi++];\n processId = null;\n } else if (Objects.equals(arg, \"-pr\") || Objects.equals(arg, \"-process\")) {\n importId = null;\n exportId = null;\n actionId = null;\n processId = args[argi++];\n } else if (Objects.equals(arg, \"-xl\") || Objects.equals(arg, \"-locale\")) {\n String[] localeName = args[argi++].split(\"_\");\n taskParameters.setLocale(localeName[0], localeName.length > 0 ? localeName[1] : null);\n } else if (Objects.equals(arg, \"-xc\") || Objects.equals(arg, \"-connectorproperty\")) {\n String[] propEntry = args[argi++].split(\":\", 2);\n if (propEntry.length != 2) {\n throw new IllegalArgumentException(\n \"expected \" + arg + \" [(<source>|<type>)/]property:(value|?)\");\n }\n\n String[] propKey = propEntry[0].split(\"/\", 2);\n String prompt = propEntry[0];\n if (propKey.length < 2) {\n prompt = \"Import source/\" + prompt;\n }\n String property = propKey[propKey.length - 1];\n String propValue = promptForValue(prompt, propEntry[1],\n property.toLowerCase().endsWith(\"password\"));\n if (propKey.length == 2) {\n taskParameters.addConnectorParameter(propKey[0],\n propKey[1], propValue);\n } else {\n taskParameters.addConnectorParameter(propKey[0],\n propValue);\n }\n } else if (Objects.equals(arg, \"-im\") || Objects.equals(arg, \"-itemmappingproperty\")) {\n itemPropertiesPath = Optional.ofNullable(args[argi++]).orElse(\"\");\n } else if (Objects.equals(arg, \"-xm\") || Objects.equals(arg, \"-mappingproperty\")) {\n String[] propEntry = args[argi++].split(\":\", 2);\n if (propEntry.length != 2) {\n throw new IllegalArgumentException(\"expected \" + arg\n + \" [(<import id>|<import name>)/]dimension\"\n + \":(value|?)\");\n }\n String[] propKey = propEntry[0].split(\"/\", 2);\n String propValue = promptForValue(propEntry[0],\n propEntry[1], false);\n if (propKey.length == 2) {\n taskParameters.addMappingParameter(propKey[0],\n propKey[1], propValue);\n } else {\n taskParameters.addMappingParameter(propKey[0],\n propValue);\n }\n } else if (Objects.equals(arg, \"-o\") || Objects.equals(arg, \"-output\")) {\n File outputFile = new File(args[argi++]);\n retrieveOutput(lastResult, outputFile);\n } else if (Objects.equals(arg, \"-loadclass\")) {\n argi++;\n //Removing the usage of loadclass parameter\n LOG.error(\n \"Warning : Loadclass parameter is deprecated starting in Anaplan Connect v1.4.4. Anaplan Connect will automatically load the right driver. This parameter will be removed in a future Anaplan Connect version.\");\n } else if (arg.equals(\"-jdbcproperties\")) {\n String propertiesFilePath = args[argi++];\n jdbcConfig = loadJdbcProperties(propertiesFilePath);\n if (fileId != null) {\n ServerFile serverFile = getServerFile(workspaceId, modelId,\n fileId, true);\n CellWriter cellWriter = null;\n CellReader cellReader = null;\n try {\n cellWriter = serverFile.getUploadCellWriter(chunkSize);\n cellReader = new JDBCCellReader(jdbcConfig)\n .connectAndExecute();\n String[] row = cellReader.getHeaderRow();\n cellWriter.writeHeaderRow(row);\n int rowCount = 0;\n do {\n if (null != (row = cellReader.readDataRow())) {\n cellWriter.writeDataRow(row);\n ++rowCount;\n }\n somethingDone = true; // TBD\n } while (null != row && row.length > 0);\n cellWriter.close();\n cellWriter = null;\n LOG.info(\"Transferred {} records to {}\", rowCount, fileId);\n } finally {\n if (cellReader != null) {\n cellReader.close();\n }\n if (cellWriter != null) {\n cellWriter.abort();\n }\n }\n } else if (exportId != null) {\n ServerFile serverFile = getServerFile(workspaceId, modelId,\n exportId, true);\n if (serverFile != null) {\n CellWriter cellWriter = null;\n somethingDone = true;\n Export export = getExport(workspaceId, modelId, exportId);\n if (export == null) {\n continue;\n }\n ExportMetadata emd = export.getExportMetadata();\n int columnCount = emd.getColumnCount();\n String separator = emd.getSeparator();\n //build map for metadata for exports\n HashMap<String, Integer> headerName = new HashMap<>();\n for (int i = 0; i < emd.getHeaderNames().length; i++) {\n headerName.put(emd.getHeaderNames()[i], i);\n }\n doTransfer(serverFile, jdbcConfig, cellWriter, headerName, separator, columnCount);\n }\n }\n } else {\n break;\n }\n }\n if (!somethingDone) {\n displayHelp();\n }\n closeDown();\n } catch (Exception thrown) {\n if (authType == AUTH_TYPE.OAUTH && thrown instanceof FeignException) {\n FeignException exception = (FeignException) thrown;\n if (exception.status() == 403) {\n LOG.error(\"The refresh token has expired. Please register again using -forceRegister parameter once.\", exception);\n } else {\n LOG.error(Utils.formatThrowable(thrown));\n }\n } else if (!(thrown instanceof InterruptedException)) {\n // Some brevity for those who don't\n LOG.error(Utils.formatThrowable(thrown));\n }\n // System.exit causes abrupt termination, but the status is useful\n // when run from an automated script.\n closeDown();\n Thread.currentThread().interrupt();\n System.exit(1);\n }\n }", "public String get_log(){\n }", "public GenLogServerConfig() {\n }" ]
[ "0.6545887", "0.6395637", "0.624475", "0.6150335", "0.6090025", "0.6087874", "0.6046244", "0.601978", "0.60084367", "0.5977933", "0.59431064", "0.59431064", "0.59316415", "0.5906775", "0.5897301", "0.58941644", "0.5806192", "0.57934314", "0.5770709", "0.5759701", "0.57502776", "0.57474005", "0.5743621", "0.574025", "0.5739503", "0.57247764", "0.5718256", "0.57012665", "0.5700027", "0.5684646", "0.5678455", "0.5676484", "0.5673606", "0.56725246", "0.5666648", "0.56359917", "0.5625816", "0.5614232", "0.5612355", "0.5609044", "0.5607667", "0.5606391", "0.558817", "0.55738467", "0.5568152", "0.5566793", "0.5555995", "0.5554598", "0.5552768", "0.55484444", "0.5536483", "0.55306286", "0.55257154", "0.5525213", "0.5519795", "0.55116355", "0.54937834", "0.5491629", "0.54908305", "0.5490305", "0.54879314", "0.54730856", "0.5473038", "0.5464882", "0.54610014", "0.5456464", "0.5456464", "0.5456464", "0.54427356", "0.5441094", "0.5425069", "0.54093623", "0.5394075", "0.5393915", "0.5391202", "0.5388181", "0.53804004", "0.5366197", "0.5358895", "0.535884", "0.5356933", "0.535589", "0.5353407", "0.535324", "0.5346235", "0.53408873", "0.53398293", "0.5334361", "0.5332094", "0.53254634", "0.53234655", "0.53164977", "0.5307568", "0.52916265", "0.528783", "0.5282771", "0.52821517", "0.52758336", "0.52752215", "0.5274837" ]
0.5439769
70
The highlevel FitSpirit business interface. This is basically a data access object. FitSpirit doesn't have a dedicated business facade.
public interface FitnessCentre { /** * Retrieve all <code>Room</code>s from the data store. * @return a <code>Collection</code> of <code>Room</code>s */ Collection<Room> getRooms() throws DataAccessException; /** * Retrieve all <code>ActivityType</code>s from the data store. * @return a <code>Collection</code> of <code>ActivityType</code>s */ Collection<ActivityType> getActivityTypes() throws DataAccessException; /** * Retrieve all <code>User</code>s from the data store. * @return a <code>Collection</code> of <code>User</code>s */ Collection<User> getUsers() throws DataAccessException; /** * Retrieve all <code>instructor</code>s from the data store. * @return a <code>Collection</code> of <code>instructor</code>s */ Collection<User> getInstructors() throws DataAccessException; /** * Retrieve all <code>staff</code>s from the data store. * @return a <code>Collection</code> of <code>staff</code>s */ Collection<User> getStaffs() throws DataAccessException; /** * Retrieve all <code>Lesson</code>s from the data store. * @return a <code>Collection</code> of <code>Lesson</code>s */ Collection<Lesson> getLessons() throws DataAccessException; /** * Retrieve all active <code>Lesson</code>s from the data store. * @return a <code>Collection</code> of active <code>Lesson</code>s */ Collection<Lesson> getActiveLessons() throws DataAccessException; /** * Retrieve all <code>Reservation</code>s from the data store. * @return a <code>Collection</code> of <code>Reservation</code>s */ Collection<Reservation> getReservations() throws DataAccessException; /** * Vrátí Místnost z data store podle id. * @param id id místnosti, kterou hledám * @return požadovaná Místnost, pokud byla nalezena * @throws DataAccessException */ Room loadRoom(int id) throws DataAccessException; /** * Vrati Aktivitu z data store podle id. */ ActivityType loadActivityType(int id) throws DataAccessException; /** * Vrati Uzivatelskou roli z data store dle zadaneho id. */ UserRole loadUserRole(int id) throws DataAccessException; /** * Vrati Uzivatele z data store dle zadaneho id. */ User loadUser(int id) throws DataAccessException; /** * Vrati Lekci z data store podle id. */ Lesson loadLesson(int id) throws DataAccessException; /** * Vrati Rezervaci z data store podle id. */ Reservation loadReservation(int id) throws DataAccessException; /** * Uloží místnost do data store, ať už insertovanou nebo updatovanou. * @param room místnost, kterou chci uložit * @throws DataAccessException */ void storeRoom(Room room) throws DataAccessException; /** * Ulozi druh aktivity do data store, at uz insertovanou nebo updatovanou. * @param activityType * @throws DataAccessException */ void storeActivityType(ActivityType activityType) throws DataAccessException; /** * Ulozi uzivatele do data store, at uz insertovaneho nebo updatovaneho. * @param user * @throws DataAccessException */ void storeUser(User user) throws DataAccessException; /** * Ulozi Lekci do data store, at uz insertovaneho nebo updatovaneho. * @param lesson * @throws DataAccessException */ void storeLesson(Lesson lesson) throws DataAccessException; /** * Ulozi Rezervaci do data store, at uz insertovanou nebo updatovanou. * @param reservation * @throws DataAccessException */ void storeReservation(Reservation reservation) throws DataAccessException; /** * Deletes a <code>Room</code> from the data store. */ void deleteRoom(int id) throws DataAccessException; /** * Deletes a <code>ActivityType</code> from the data store. */ void deleteActivityType(int id) throws DataAccessException; /** * Deletes a <code>User</code> from the data store. */ void deleteUser(int id) throws DataAccessException; /** * Deletes a <code>Reservation</code> from the data store. */ void deleteReservation(int id) throws DataAccessException; /** * Deletes a <code>Lesson</code> from the data store. */ void deleteLesson(int id) throws DataAccessException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Service {\n\n /**\n * Create a new Service\n *\n * @param hostIp database IP address\n * @param user database user name\n * @param password database password\n * @return a Service using the given credentials\n */\n static Service create(String hostIp, String user, String password) {\n return new ServiceImpl(hostIp, user, password);\n }\n\n\n /**\n * Retrieve historical data points for a given symbol.\n *\n * @param symbol Symbol we want history data for.\n * @param startTime Start time (inclusive)\n * @param endTime End time (inclusive)\n * @param numberOfPoints Approximate number of points to be returned\n * @return The stream of filtered data points of the given symbol and time interval\n */\n Stream<DataPoint> getHistoryData(Symbol symbol, LocalDateTime startTime, LocalDateTime endTime, int numberOfPoints);\n\n /**\n * @param symbol the symbol for which to get data\n * @return the most recent data point for the given symbol\n */\n Optional<DataPoint> getMostRecentDataPoint(Symbol symbol);\n\n /**\n * @return the stream of all symbols of the database\n */\n Stream<Symbol> getSymbols();\n\n /**\n * Select whether to use Speedment in memory acceleration when looking up data\n *\n * @param accelerate true for using Speedment in memory acceleration, false for direct SQL\n */\n Service withAcceleration(boolean accelerate);\n}", "public interface IMarketDataService {\n\n\t/**\n\t * Method used to retrieve market data.\n\t * @param symbol The symbol to query on\n\t * @return List of market data performance values\n\t */\n\tList<MarketPerformanceData> retrieveMarketData(String[] symbol);\n\n\t/**\n\t * Method used to retrieve symbol related news.\n\t * @param symbol The symbol to query on\n\t * @return String The rss xml\n\t */\n\tString retrieveSymbolNewsItems(String symbol);\n\n}", "public abstract SkillData skill();", "public interface TaxiMeter {\n\n /**\n * Starts a journey.\n */\n void startJourney();\n\n /**\n * Ends the journey.\n */\n void endJourney();\n\n /**\n * Resets the meter so it can accept a new passenger.\n */\n void reset();\n\n /**\n * Retrieves the fare for the in-progress or completed journey.\n * @return the fare amount\n */\n BigDecimal getFare();\n\n}", "public interface SPARQLService {\n // TODO: Create methods for at least CRUD \n}", "public interface Instrumentable {\n\t\n\t/**\n\t * Process incoming market instrument definition.\n\t */\n\tvoid process(InstrumentDefinition value);\n\n\t/**\n\t * Generate market instrument definition snapshot.\n\t */\n\tInstrumentDefinition definition();\n\n}", "public interface Question {\n void setOne(Object o);\n Object getAll();\n Object getDataToFile();\n}", "public interface QuestionnaireQueryService {\n /**\n * search questionnaire\n *\n * @return\n */\n Set<String> searchInQuestionnaire(QuestionnaireQuery query);\n}", "public interface Queryable<Ttuple extends Tuple>\n{\n URI QUERYABLE_URI = URIPool.create(\"class:/spiralcraft/data/query/Queryable\");\n \n /**\n * @return An array of all the Types supported by this Queryable\n */\n Type<?>[] getTypes();\n \n /**\n * @return Whether the store contains the specified Type.\n */\n boolean containsType(Type<?> type);\n \n /**\n * Returns all data instances of a specific Type for further manipulation by\n * BoundQueries. This method is used when a Queryable cannot provide\n * an optimized implementation for the simplest of Queries, or if no \n * optimization is needed. \n * \n * @return A boundQuery which provides the set of all instances for a given\n * type. \n */\n BoundQuery<?,Ttuple> getAll(Type<?> type) \n throws DataException;\n \n\n /**\n * Bind the specified Query and parameter context to this Queryable.\n * \n *@return a BoundQuery that implements the data flow path and provides the\n * data requested by the Query\n */\n BoundQuery<?,Ttuple> query(Query q,Focus<?> context)\n throws DataException;\n\n /**\n * Provide a custom binding solution for the root node of the provided Query\n * structure, or return null if this Queryable does not provide a custom\n * binding solution for the provided Query node.\n *\n * @param q\n * @param context\n * @return\n * @throws DataException\n */\n BoundQuery<?,Ttuple> solve(Query q,Focus<?> context)\n throws DataException;\n}", "public interface IDataManager {\n\n String getLine(int line);\n\n ArrayList<String> getAllSpreadSheetCells();\n}", "public interface ItemSuitClient {\n\n public Response<List<ItemDTO>> querySuitsByItem(ItemQTO itemQTO,Long userId,String appkey);\n\n public Response<List<ItemDTO>> querySuit(ItemQTO itemQTO,Long userId,String appKey);\n\n public Response<ItemDTO> getSuit(Long sellerId,Long itemId,String appKey);\n\n public Response<Long> addRItemSuit(List<RItemSuitDTO> rItemSuitDTOList,String appKey);\n\n public Response<Long> addItemSuit(ItemDTO itemDTO,List<RItemSuitDTO> rItemSuitDTOList,String appKey);\n\n public Response<Long> disableSuit(Long sellerId,Long itemId,String appKey);\n\n public Response<ItemSuitDTO> getSuitExtraInfo(Long sellerId,Long itemId,String appKey);\n\n public Response<List<ItemSuitDTO>> queryItemSuitDiscount(ItemSuitQTO itemSuitQTO,String appKey);\n}", "public interface DataAccessor {\n}", "public interface Beverage {\n\n String printDescription();\n double getCost();\n}", "public interface DistributorManager {\n\n List<DistShopDTO> queryShop(DistShopQTO distShopQTO, String appKey) throws MarketingException;\n \n GainsSetDTO getGainsSet(String appKey) throws MarketingException;\n \n List<ItemSkuDistPlanDTO> getItemSkuDistPlanList(Long itemId , String appKey) throws MarketingException;\n \n}", "public interface StatisticsAggregator {\r\n\t\t// This is an input. Make note of this price.\r\n\t\tpublic void putNewPrice(String symbol, double price);\r\n\r\n\t\t// Get the average price\r\n\t\tpublic double getAveragePrice(String symbol);\r\n\r\n\t\t// Get the total number of prices recorded\r\n\t\tpublic int getTickCount(String symbol);\r\n\t}", "public interface IScapSyncSearch {\n\n /**\n * Get the Relative Search URL of this search.\n * @return page the Relative Search URL of this search\n */\n public String getSearchUrl();\n\n /**\n * Get the number of rows per page in this search.\n * @return int the number of rows in this search\n */\n public int getRowsPerPage();\n\n /**\n * Get the Starting Row of this search.\n * @return int the number of the Starting Row of this search\n */\n public int getStartRow();\n\n /**\n * Get the Ending Row of this search.\n * @return int the number of the Ending Row of this search\n */\n public int getEndRow();\n \n /**\n * Get the Total Rows of this search.\n * @return int the number of Total Rows of this search\n */\n public int getTotalRows(); \n\n /**\n * Get the number of the Current Page of this search.\n * @return int the Current Page of this search\n */\n public int getCurrentPage(); \n\n /**\n * Get the Sort Fields of this search.\n * @return sortFields[] and array containing the available Sort Fields\n */\n public IScapSyncSearchSortField[] getSortFields();\n \n /**\n * Get the Facets of this search.\n * @return IScapSyncSearchFacet[] an array containing the available Facets\n */\n public IScapSyncSearchFacet[] getFacets();\n \n /**\n * Get the Results of this search.\n * @return IScapSyncSearchResult[] an array containing the available Results\n */\n public IScapSyncSearchResult[] getResults();\n\n /**\n * Get the Pages of this search.\n * @return IScapSyncSearchPage[] an array containing the available Pages\n */\n public IScapSyncSearchPage[] getPages();\n\n}", "public interface Model {\n void addBasket(String name, int date);\n\n void updateBasket(String name, String ticker, int shares) throws Exception;\n\n String printBasket(String name) throws NullPointerException;\n\n String getTrend(String name, int start, int end) throws IllegalArgumentException;\n\n void addPlot(String name);\n\n void removePlot(String name);\n\n List<List<Integer>> plots(int startingDate, int endingDate);\n}", "public interface IPredictionService {\n\t\n\t\n\t/**\n\t * \n\t * Create an instance object of TestSet\n\t * \n\t * @param position\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic Instances makeTestSet(String position) throws Exception;\n\t\n\t/**\n\t * Used a particular algorithm to train the Artificial Intelligence (AI)\n\t * @throws Exception\n\t */\n\tpublic void train() throws Exception;\n\t\n\t/**\n\t * Used to classify after train\n\t * @throws Exception\n\t */\n\tpublic void classify() throws Exception;\n\n}", "public interface FinanceTracker extends SimulationComponent {\n\n /**\n * Returns the total reward metric value for this tracker.\n *\n * @return the reward.\n */\n double getTotalReward();\n\n /**\n * Returns the total cost metric for this tracker.\n *\n * @return the totalCost.\n */\n double getTotalCost();\n\n /**\n * Returns the total profit as the reward minus the cost.\n *\n * @return the total reward minus the total cost.\n */\n double getTotalProfit();\n}", "public interface Query {\n\n\t/**\n\t * @return ID of the given query\n\t */\n\tint queryID();\n\t\n\t/**\n\t * @return given query\n\t */\n\tString query();\n\t\n\t/**\n\t * @return list of relevant documents to the corresponding query\n\t */\n\tList<RelevanceInfo> listOfRelevantDocuments();\n\t\n\t/**\n\t * @return list of results to the corresponding query after running one of the retrieval models\n\t */\n\tList<Result> resultList();\n\t\n\t/**\n\t * @param resultList\n\t * @Effects adds results to the result list of the corresponding query\n\t */\n\tvoid putResultList(List<Result> resultList);\n}", "public interface SaleDataInterface {\n\n public void preparedDataSales(List<Film> salesFilm);\n public void onTapSale(Film film);\n}", "public interface CompanyService {\r\n\r\n\t/**\r\n\t * Returns the list of company symbols for that companies that are monitored\r\n\t * in the database\r\n\t * \r\n\t * @return The list of strings with company symbols\r\n\t * \r\n\t * @throws StorageException\r\n\t * If there was an exception retrieving the company information\r\n\t */\r\n\tList<String> getCompanySymbols() throws StorageException;\r\n\r\n}", "public interface IPointOfSale {\n void beginTransaction();\n\n void endTransaction();\n\n void scan(IBarCode barCode);\n\n void inputText(String text);\n\n void printReceipt(IReceipt receipt);\n\n boolean isTransactionInProgress();\n\n}", "public interface HawkToBrainComp {\n /**\n * Every kind of personality will have a designated response in the form of IDK(I don't know)\n * This method allows the Hawker can use this method and an equals method to the response to determine\n * if the AI didn't have a response available for the User.\n * @return returns the IDK response of the Personality\n */\n public String getIDKReply();\n\n /**\n * Send a conventional grammar into this method and receive a response from the AI Personality\n * @param conventional_Grammar to be determined\n */\n public String requestResponce(String conventional_Grammar);\n}", "public interface SparqlQueryService {\n\n\t/**\n\t * Generic method to invoke a supplied query regardless of its type. The\n\t * client has to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject executeQuery(String sparqlQuery);\n\n\t/**\n\t * Generic method to invoke a query regardless of its type. The client has\n\t * to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject callQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL SELECT query. The resultant JSON structure is\n\t * serialized according to the W3C SPARQL 1.1 Query Results JSON Format.\n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#select\n\t * @param name\n\t * @param params\n\t * @return JSON result structure.\n\t */\n\tSparqlResultObject callSelectQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL CONSTRUCT query resulting in new graph serialized\n\t * according to RDF/JSON format\n\t * (http://jena.apache.org/documentation/io/rdf-json.html).\n\t * \n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#construct\n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tGraph callConstructQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL ASK query resulting in a boolean value.\n\t * \n\t * @see\n\t * \n\t * @param name\n\t * Unique name of the query.\n\t * @param params\n\t * Map of required parameter-value pairs.\n\t * @return true or false, depending whether the pattern matches.\n\t */\n\tBoolean callAskQuery(String name, Map<String, String> params);\n\n}", "public interface Registry {\n\n Bonus getRandom();\n Bonus getByName(String name);\n\n}", "public interface TrainingService {\n /**\n * Returns a list with all trainings\n * @return List of trainings\n */\n List<Training> obtainAllTrainings();\n\n /**\n * returns the training belonging to the provided id\n * @param trainingId Long representing the id of the training to look for\n * @return Training found belonging to the id\n */\n Training obtainTrainingById(Long trainingId);\n\n /**\n * Store the provided training in the repository\n * @param training Training to store\n */\n void storeTraining(Training training);\n\n /**\n * Returns the training session belonging to the provided id\n * @param trainingsessionId Long representing the id of the training sessions to load\n * @return TrainingSession belonging to the provided id\n */\n TrainingSession obtainTrainingSessionById(Long trainingsessionId);\n\n /**\n * Returns a list of TrainingPlanning objects that contain the Employee for the requested session.\n * @param trainingsessionId Long representing the id of the training session to obtain all plannings for\n * @return List of TrainingPlanning objects\n */\n public List<TrainingPlanning> obtainPlannedAttendenceTrainingSession(Long trainingsessionId);\n}", "public interface Score {\n\t\t\n\t/**\n\t * For a given location, score all the local entities \n\t * Return a map representation of local entities and their scores\n\t * @param location\n\t * @return\n\t */\n\tpublic Map<String,Double> scoreLocalEntity(String location);\n}", "public interface Analysis {\n Collection<Collection<String>> analyze(CalculationPeriod period, String user);\n}", "public interface StockOperation {\r\n\r\n\t/**\r\n\t * Retrieves all stocks.\r\n\t * \r\n\t * @author acalaras\r\n\t */\r\n\tList<Stock> retrieveAllStocks();\r\n\r\n\t/**\r\n\t * Retrieves a stock's chart data.\r\n\t * \r\n\t * @param symbol\r\n\t * @return All price and timestamp data of a stock.\r\n\t * @author acalaras\r\n\t */\r\n\tStock retrieveStockChartData(String symbol);\r\n\r\n\t/**\r\n\t * Retrieves all stocks with given symbol.\r\n\t * \r\n\t * @param symbol\r\n\t * @return All stocks with the given symbol.\r\n\t * @author acalaras\r\n\t */\r\n\tList<Stock> retrieveAllStocks(String symbol);\r\n\r\n\t/**\r\n\t * Retrieves a single stock given a symbol.\r\n\t *\r\n\t * @param symbol\r\n\t * @return A single stock given a symbol.\r\n\t * @author acalaras\r\n\t */\r\n\tStock retrieveStock(String symbol);\r\n\r\n\t/**\r\n\t * Retrieves a single stock given a symbol and timestamp.\r\n\t *\r\n\t * @param symbol\r\n\t * @param asOf\r\n\t * @return A single stock given a symbol and timestamp.\r\n\t * @author acalaras\r\n\t */\r\n\tStock retrieveStock(String symbol, String asOf);\r\n\r\n}", "public interface QueryEvaluatorStructure {\n\n long getResultCount();\n\n void setResultCount(long count);\n\n TupleExpr getPlan();\n\n void setPlan(TupleExpr tupleExpr);\n\n void setTime(long time);\n\n long getTime();\n}", "public abstract interface Similarity {\n\n /**\n * This is the function that summarizes all the functionality of similarity\n * matching. It computes the total score from the previous level factors\n * multiplied with the appropriate weights.\n *\n * @return The total score of the similarity between document and query.\n */\n public abstract float getScore();\n\n /**\n * This function returns the previous level factors of scoring computation\n *\n * @return\n */\n public abstract Object[] getSimilarityFactors();\n\n}", "public interface StewardFacade {\n\n /**\n * Returns all stewards.\n *\n * @return all stewards\n */\n Set<StewardSimpleDTO> getAllStewards();\n\n /**\n * Creates and saves new steward.\n *\n * @param steward steward to be created\n * @return id of the created steward\n */\n Long createSteward(StewardCreateDTO steward);\n\n /**\n * Returns the specified steward with more detail or null if no steward with specified id exists.\n *\n * @param id id of steward to get detail for\n * @return Steward with all details\n */\n StewardDTO getSteward(Long id);\n\n /**\n * Deletes specified steward.\n *\n * @param id id of steward to be deleted\n */\n void deleteSteward(Long id);\n\n /**\n * Updates the names of the specified steward.\n *\n * @param id id of steward to get updated names\n * @param firstName new first name of the steward\n * @param lastName new last name of the steward\n */\n void updateNames(Long id, String firstName, String lastName);\n\n /**\n * Returns all available stewards in the specified interval\n *\n * @param from start of the interval\n * @param to end of the interval\n * @return set of available stewards\n */\n Set<StewardSimpleDTO> getAllAvailable(Date from, Date to);\n}", "public interface Item {\n\n String getName();\n\n String getDescription();\n\n int getSkill(SkillType skillType);\n\n String getSkillDescr();\n}", "public interface VendorProductSearchFacade extends ProductSearchFacade<ProductData>\r\n{\r\n\r\n\t/**\r\n\t * get categories data from facet data for setting to vendor data\r\n\t *\r\n\t * @param vendorCode\r\n\t * the target vendor data to set categories\r\n\t * @return the vendor data contains categories data\r\n\t */\r\n\tVendorData getVendorCategories(String vendorCode);\r\n}", "public interface QuizGenerator {\n Quiz generateQuiz();\n}", "public interface Mypersent {\n void getData();\n}", "public interface QrcodeManage {\n\n /**\n * 查询\n * @param qrId\n * @return\n */\n Qrcode get(Integer qrId);\n\n}", "public interface cpurseModelInterface {\n\n void getTimeTable(coursePresInterface coursePresInterface, Context context, String stdId);\n void getAttendance(coursePresInterface coursePresInterface,Context context, String stdId);\n void getHomeWork(coursePresInterface coursePresInterface,Context context, String stdId);\n void getExam(coursePresInterface coursePresInterface,Context context, String stdId);\n}", "public interface StationDataProvider {\n\n List<GroundStation> getStations();\n\n}", "public interface IRule\n{\n ///////////////////////////////////////\n //// STATIC ATTRIBUTES\n\n ///////////////////////////////////////\n //// INSTANCE METHODS\n\n /**\n *\n * @param pQuote\n * @return true if ticker is accepted, false otherwise\n */\n boolean accept(StockQuote pQuote);\n\n ///////////////////////////////////////\n //// INNER CLASSES\n}", "public interface ITradingPriceTrackingAutoPricing {\r\n void savePriceTrackingAutoPricing(TradingPriceTrackingAutoPricing tradingPriceTrackingAutoPricing) throws Exception;\r\n\r\n TradingPriceTrackingAutoPricing selectPriceTrackingAutoPricingByListingDateId(Long listingDateId);\r\n\r\n List<PriceTrackingAutoPricingQuery> selectPriceTrackingAutoPricingList(Map map,Page page);\r\n\r\n void deletePriceTrackingAutoPricing(TradingPriceTrackingAutoPricing tradingPriceTrackingAutoPricing) throws Exception;\r\n\r\n TradingPriceTrackingAutoPricing selectPriceTrackingAutoPricingById(Long id);\r\n\r\n List<TradingPriceTrackingAutoPricing> selectPriceTrackingAutoPricings();\r\n}", "public interface DataManagerAPI {\n\n /**\n * Retrieves the habits for a user\n *\n * @return a list of habit objects\n * @see User\n */\n ArrayList<Habit> getHabits();\n\n /**\n * Retrieves the habitEvents for a particular habit\n *\n * @param forHabit the habit in which the habitEvents are wanted\n * @return a list of habitEvents for that particular habit\n * @see HabitEvent\n */\n ArrayList<HabitEvent> getHabitEvents(Habit forHabit);\n\n /**\n * Retrieves the habitEvents for a particular user\n *\n * @return a list of all the habitEvents a user has\n * @see User\n */\n ArrayList<HabitEvent> getHabitEvents();\n\n /**\n * Adds a habit object to the data storage\n *\n * @param habit the new habit to be added\n * @return 0 if success, -1 if any issues\n * @see User\n */\n int addHabit(Habit habit);\n\n /**\n * Removes a habit from storage\n *\n * @param habit the habit to be removed\n * @return 0 if success, -1 if any issues\n * @see Habit\n */\n int removeHabit(Habit habit);\n\n /**\n * Updates the contents of a habit in storage with new information\n *\n * @param oldHabit the habit to be updated\n * @param newHabit the new habit data to replace the old data\n * @return 0 if success, -1 if any issues\n * @see Habit\n */\n int editHabit(Habit oldHabit, Habit newHabit);\n\n /**\n * Adds a habitEvent for a habit to storage\n *\n * @param habit the habit for which the event is being logged\n * @param habitEvent the habitEvent to add\n * @return 0 if success, -1 if any issues\n * @see Habit\n * @see HabitEvent\n */\n int addHabitEvent(Habit habit, HabitEvent habitEvent);\n\n /**\n * Removes a habitEvent from storage\n *\n * @param habitEvent the habitEvent to be removed\n * @return 0 if success, -1 if any issues\n * @see HabitEvent\n */\n int removeHabitEvent(HabitEvent habitEvent);\n\n /**\n * Updates an existing habitEvent with new data\n *\n * @param oldHabitEvent the habitEvent being updated\n * @param newHabitEvent the new data to update the old event with\n * @return 0 if success, -1 if any issues\n * @see HabitEvent\n */\n int editHabitEvent(HabitEvent oldHabitEvent, HabitEvent newHabitEvent);\n\n int editUser(User user);\n\n /**\n * Removes a user from the application, all data will be lost for that user\n *\n * @param user the user to be removed\n * @return 0 if success, -1 if any issues\n * @see User\n */\n int removeUser(User user);\n\n /**\n * Retrieves the current user\n *\n * @return a User instance representing the current user\n * @see User\n */\n User getUser();\n\n /**\n * Adds a new user to storage.\n *\n * @param userName a string representing the user's username\n * @return true if success, false if any issues\n * @see User\n */\n boolean addUser(String userName, AsyncResultHandler handler);\n\n /**\n * used to pass users between activities\n * only returns the user once and then returns null til a new user is set by setPassedUser(User passedUser)\n *\n * @return the last user passed using setPassedUser(User passedUser)\n */\n User getPassedUser();\n\n /**\n * used to pass users between activities\n *\n * @param passedUser the user to be passed, is return by getPassedUser()\n */\n void setPassedUser(User passedUser);\n\n /**\n * used to pass habit between activities\n * only returns the habit once and then returns null til a new user is set by setPassedHabit(Habit passedHabit)\n *\n * @return the last habit passed using setPassedHabit(Habit passedHabit)\n */\n Habit getPassedHabit();\n\n /**\n * used to pass users between activities\n *\n * @param passedHabit the user to be passed, is return by getPassedHabit()\n */\n void setPassedHabit(Habit passedHabit);\n\n /**\n * used to pass habitEvents between activities\n * only returns the habitEvent once and then returns null til a new user is set by setPassedHabitEvent(HabitEvent passedHabitEvent)\n *\n * @return the last habit passed using setPassedHabitEvent(HabitEvent passedHabitEvent)\n */\n HabitEvent getPassedHabitEvent();\n\n /**\n * used to pass users between activities\n *\n * @param passedHabitEvent the user to be passed, is return by getPassedHabitEvent()\n */\n void setPassedHabitEvent(HabitEvent passedHabitEvent);\n\n /**\n * Retrieve the current users who want to follow the current user\n *\n * @return an array list of users who want to follow the current user\n */\n int getFollowRequests(AsyncResultHandler handler);\n\n /**\n * Accept a follow request by a user\n *\n * @param user the user that is allowed to follow the current user\n * @return true if the acceptance was successful, false if not\n */\n Boolean acceptRequest(User user);\n\n /**\n * Reject a pending follow request\n *\n * @param user\n * @return true if the rejection was successful, false if not\n */\n Boolean rejectRequest(User user, AsyncResultHandler handler);\n\n /**\n * Unfollows the given user\n * @param user the user to unfollow\n */\n void unFollow(User user);\n\n /**\n * Get the users which the specified user follows\n *\n * @param user the user you want to get the followers of\n * @return a list of the particular user's followers\n */\n int getWhoThisUserFollows(User user, AsyncResultHandler handler);\n\n /**\n * Gets the followers of a particular user\n *\n * @param user a list of users who follow the specified user\n * @return a list of users who follow the specified user\n */\n int getWhoFollows(User user, AsyncResultHandler handler);\n\n /**\n * Search users\n *\n * @param minStreak the min streak to include\n * @param query the search query\n * @param alreadyFollowing if true, do not include the users you are already following\n * @return a list of the users who meet the criteria\n */\n int findUsers(int minStreak, String query, Boolean alreadyFollowing, AsyncResultHandler handler);\n\n /**\n * Send a request to follow the user\n *\n * @param user the user the current user wants to follow\n * @return true if success, false if not\n */\n Boolean sendFollowRequest(User user);\n\n /**\n * Cancel a pending follow request\n *\n * @param user\n * @return true if the rejection was successful, false if not\n */\n public Boolean cancelRequest(User user, AsyncResultHandler handler);\n\n /**\n * Search Habits\n *\n * @param forUser the search query\n * @return a list of habits that contain the search query\n */\n int findHabits(User forUser, AsyncResultHandler<Habit> handler);\n\n /**\n * Search HabitEvents\n *\n * @param forHabit the search query\n * @return a list of habits that contain the search query\n */\n int findHabitEvents(Habit forHabit, AsyncResultHandler<HabitEvent> handler);\n\n /**\n * Search HabitEvents\n *\n * @param forUser the search query\n * @return a list of habits that contain the search query\n */\n int findHabitEvents(User forUser, AsyncResultHandler<HabitEvent> handler);\n\n /**\n * returns an Array of SuperCombinedManagerObjectToManageTheMostRecentHabitForUser that holds the Habit and its most recent event for the User\n *\n * @param forUser the User to get the array of most recent events\n * @param handler what to call when the results come back\n */\n void findMostRecentEvent(User forUser, AsyncResultHandler<SuperCombinedManagerObjectToManageTheMostRecentHabitForUser> handler);\n\n\n}", "public interface IYieldCurve {\r\n public double getInterestRate(double time);\r\n public double getForwardRate(double t0, double t1);\r\n public double getDiscountFactor(double t);\r\n\r\n public void addBond(Bond bond);\r\n public void calculate();\r\n}", "public interface CampusSearchQueryGenerator<T extends CampusObject> {\n\n /**\n * generates search query using specifications given by user\n * @return CampusSearchQuery object\n */\n CampusSearchQuery generateQuery();\n}", "public interface SASolution extends Solution {\r\n\r\n /**\r\n * Generates a neighbor solution using this solution\r\n *\r\n * @return\r\n */\r\n public SASolution getNeighborSolution();\r\n\r\n /**\r\n * Prints this solution\r\n *\r\n * @return\r\n */\r\n public String getAsString();\r\n\r\n}", "public interface SpecimenService\r\n{\r\n static void setInstance(SpecimenService serviceImpl)\r\n {\r\n ServiceRegistry.get().registerService(SpecimenService.class, serviceImpl);\r\n }\r\n\r\n static SpecimenService get()\r\n {\r\n return ServiceRegistry.get().getService(SpecimenService.class);\r\n }\r\n\r\n /** Does a search for matching GlobalUniqueIds */\r\n ParticipantVisit getSampleInfo(Container studyContainer, User user, String globalUniqueId) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Date date) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Double visit) throws SQLException;\r\n\r\n String getCompletionURLBase(Container studyContainer, CompletionType type);\r\n\r\n Set<Pair<String, Date>> getSampleInfo(Container studyContainer, User user, boolean truncateTime) throws SQLException;\r\n\r\n Set<Pair<String, Double>> getSampleInfo(Container studyContainer, User user) throws SQLException;\r\n\r\n Lsid getSpecimenMaterialLsid(@NotNull Container studyContainer, @NotNull String id);\r\n\r\n void importSpecimens(User user, Container container, List<Map<String, Object>> rows, boolean merge) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenImportStrategyFactory(SpecimenImportStrategyFactory factory);\r\n\r\n Collection<SpecimenImportStrategyFactory> getSpecimenImportStrategyFactories();\r\n\r\n void registerSpecimenTransform(SpecimenTransform transform);\r\n\r\n Collection<SpecimenTransform> getSpecimenTransforms(Container container);\r\n\r\n @Nullable\r\n SpecimenTransform getSpecimenTransform(String name);\r\n\r\n PipelineJob createSpecimenReloadJob(Container container, User user, SpecimenTransform transform, @Nullable ActionURL url) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenChangeListener(SpecimenChangeListener listener);\r\n\r\n @Nullable\r\n TableInfo getTableInfoVial(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimen(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimenEvent(Container container);\r\n\r\n SpecimenTablesTemplate getSpecimenTablesTemplate();\r\n\r\n Domain getSpecimenVialDomain(Container container, User user);\r\n\r\n Domain getSpecimenEventDomain(Container container, User user);\r\n\r\n Map<String, String> getSpecimenImporterTsvColumnMap();\r\n\r\n SpecimenRequestCustomizer getRequestCustomizer();\r\n\r\n void registerRequestCustomizer(SpecimenRequestCustomizer customizer);\r\n\r\n /** Hooks to allow other modules to control a few items about how specimens are treated */\r\n interface SpecimenRequestCustomizer\r\n {\r\n /** @return whether or not a specimen request must include at least one vial */\r\n boolean allowEmptyRequests();\r\n\r\n /** @return null if users should always supply a destination site for a given request, or the site's id if they should all be the same */\r\n Integer getDefaultDestinationSiteId();\r\n\r\n /** @return true if reports shouldn't give the option to group based on primary, additive, or derivative types */\r\n boolean omitTypeGroupingsWhenReporting();\r\n\r\n /** @return whether the current user can make changes to the status of the request */\r\n boolean canChangeStatus(User user);\r\n\r\n /** @return true if a variety of warning types including vial status, the inclusion of vials spanning multiple locations, and more should be suppressed in the UI */\r\n boolean hideRequestWarnings();\r\n\r\n /** @return a message to show the user after a request has been submitted */\r\n HtmlString getSubmittedMessage(Container c, int requestId);\r\n }\r\n\r\n interface SampleInfo\r\n {\r\n String getParticipantId();\r\n Double getSequenceNum();\r\n String getSampleId();\r\n }\r\n\r\n enum CompletionType\r\n {\r\n SpecimenGlobalUniqueId,\r\n ParticipantId,\r\n VisitId,\r\n LabId\r\n }\r\n}", "public IJustHaveALook giveConsult();", "public interface PlanItemSet extends HasId, TypeStateEntity {\r\n\r\n /**\r\n * A description of the Learning Plan\r\n * @name Description\r\n */\r\n\r\n public RichText getDescr();\r\n\r\n /**\r\n * List of plan items that make up the set\r\n * @name\r\n */\r\n public List<String> getPlanItemIds();\r\n\r\n /**\r\n * N (number) of Items in the set that the student is planning for\r\n * @return\r\n */\r\n public Integer getInterestedInItemsCount();\r\n\r\n /**\r\n * True if student is interested in all of the items in the set\r\n * @return\r\n */\r\n public boolean isInterestedInAllItems();\r\n}", "public interface ItemService {\n\n /**\n * 导入商品数据到索引库\n * @return\n */\n TaotaoResult importAllItems() throws SolrServerException, IOException;\n}", "public interface PricingService {\n\t\n\t/**\n\t * Get the Price information for the product\n\t *\n\t * @param product the ProductModel\n\t * l\n\t * @return list of PriceInformation for the corresponding product \n\t */\n\tList<PriceInformation> getPriceForProduct(ProductModel product);\n}", "public IAlgo getAlgo();", "public interface QComputablePlanner {\n\n public List<QValue> getQs(State s);\n\n public QValue getQ(State s, AbstractGroundedAction a);\n\n}", "public interface SpotService {\n\n String haveSpot(String spotName);\n\n JSONObject spotByName(String spotName);\n\n JSONObject spotById(Long id);\n\n JSONObject getSpotComment(Long id, int pageNum, int size);\n\n List<Spot> getAllSpot();\n\n void saveComment(SpotComment comment, HttpServletRequest request);\n\n JSONObject selectSpotByPage(int page, int rows, Spot spot);\n\n void update(Spot spot);\n\n void delSpot(Long[] ids);\n\n void addSpot(Spot spot);\n\n String uploadIndexImg(MultipartFile file, HttpServletRequest request) throws IOException;\n}", "public interface InventoryService {\n\n /**\n * Lists the inventory.\n * @return List of the inventory\n */\n List<Inventory> getInventoryList();\n\n /**\n * Executes an order using an OrderForm.\n * @param orderForm\n * @return\n * @throws Exception\n */\n List<Inventory> executeOrder(OrderForm orderForm) throws Exception;\n\n /**\n * Resets the data.\n */\n void reset();\n\n}", "public interface StudentBiz {\n public boolean addStudent(Student stu);\n public int deleteStudent(int stuId);\n public boolean modifyStudent(String mdSql);\n public List<Student> getAll();\n}", "public interface WorkingHoursItemWriter {\r\n\t/**\r\n\t * This method is used to save the WorkingHours Details of Common Wealth\r\n\t * Bank from Database\r\n\t * \r\n\t * @return ItemWriterr<WorkingHours>\r\n\t */\r\n\tpublic ItemWriter<WorkingHours> saveWorkingHours();\r\n}", "public interface Hit {\r\n\t\r\n\t/** @return ID of the search result (post ID, topic ID,...). */\r\n\tlong getResultId();\r\n\t\r\n\t/** @return Score of the search result. */\r\n\tfloat getScore();\r\n\r\n}", "public static SpiritFurnace getInstance() {\n return _instance;\n }", "public interface DataProvider {\n /**\n * @param userName\n * @param password\n * @return Authenticated used.\n */\n User authenticate(String userName, String password);\n\n ArrayList<POI> getPois();\n}", "public interface FitnessCalc1 {\n public double utilityFunction(Individual X);\n public double function(double x, Individual X);\n}", "public interface ScientificResearchMapperCustom {\n void addScientificRearch(ScientificResearch scientificResearch);\n\n List<ScientificResearch> ScientificList();\n\n\n}", "public interface Shindan extends Serializable{\n public int getPageId();\n\n public String getPageUrl();\n\n public String getTitle();\n\n public String getDescription();\n\n public String getAuthorName();\n\n public String getHashTag();\n\n public List<String> getThemes();\n\n public int getAccessCount();\n\n public int getFavoritedCount();\n\n public boolean isHot();\n\n public boolean isPickup();\n\n public ShindanResult shindan(String name) throws IOException;\n}", "public interface Deity {\n /**\n * This will eventually return whether or not a player has the Anubis shrine active.\n * @param player\n * @return \n */\n public boolean activeFor(String player);\n public void shrineCreated(String player);\n public String getDeityName();\n public void shrineDestroyed(String player);\n public Material[][][] getShrine();\n /**\n * Deities are expected to maintain an up-to-date VoxConfig that can dump\n * all relevant save data whenever this is called.\n * @return \n */\n public VoxConfig getVoxConfig();\n /**\n * Loading everything up. Here's your config. Do good.\n */\n public void fromConfig (VoxConfig conf);\n}", "public interface ITrainMonitorService {\r\n\r\n //查询称重\r\n public GridModel qryWeightList(TrainWeightEntity weightEntity);\r\n\r\n //查询采样\r\n public GridModel qrySampleList(TrainWeightRptEntity sampleEntity);\r\n\r\n //查询制样结果动态信息\r\n public GridModel qrySampling();\r\n\r\n //提交控制设备命令\r\n public void commitCtrlCmd(CtrlEntity ctrlEntity);\r\n\r\n //今日来煤信息汇总查询\r\n public GridModel qryTodayArrivedCoal();\r\n\r\n //燃料指标\r\n public GridModel qryFuelIndicator();\r\n\r\n //查询今日汽车动态信息\r\n public GridModel qryCarDynamic();\r\n\r\n public GridModel qryTrainOveriew();\r\n\r\n public GridModel qryTrainComeIn();\r\n\r\n public GridModel qryCarDumperList();\r\n}", "public interface IBusItemInvestService {\n public PageList queryBusItemInvestsByParams(BusItemInvestQuery busItemInvestQuery);\n\n}", "public interface SkillDao {\n \n /**\n * gets untrained skills.\n * convenience method. can use get all skills and iterate through and \n * manually check the {@link Skill#isUsableUntrained() isUsableUntrained flag}.\n */\n Collection<Skill> getUntrainedSkills();\n\n /**\n * gets all skills\n * @return\n */\n Collection<Skill> getSkills();\n\n /**\n * saves a new skill.\n * @param skill skill to save\n * @return\n */\n Skill saveSkill(Skill skill);\n\n /**\n * deletes a skill.\n * @param skill\n */\n void deleteSkill(Skill skill);\n\n /**\n * commit changes to a skill.\n * @param skill\n */\n void updateSkill(Skill skill);\n\n /**\n * Get a skill by name.\n * @param name\n * @return\n */\n Skill getSkill(String name);\n\n\tCollection<Skill> searchSkills(String query);\n}", "public interface MarketWatcher {\n Stock getQuote(String symbol);\n}", "public interface LearningSpaceServices {\n\n\n}", "public interface IPortfolio<K> {\n\n /**\n * Returns the portfolio data.\n *\n * @return the portfolio data in the form a string.\n */\n HashMap<String, Double> getPortfolioData(String date);\n\n\n /**\n * Returns the total cost basis of the portfolio at a given date.\n *\n * @param date date for which the cost basis has to be calculated.\n * @return the total cost basis of the portfolio.\n * @throws IllegalArgumentException if the stock cost basis cannot be fetched.\n */\n double getStockCostBasis(String date) throws IllegalArgumentException;\n\n /**\n * Returns the total value of the portfolio at a given date.\n *\n * @param date date for which the value has to be calculated.\n * @return the total value of the portfolio.\n * @throws IllegalArgumentException if the stock value cannot be fetched.\n */\n double getStockValue(String date) throws IllegalArgumentException;\n\n /**\n * Adds a stock to the portfolio.\n *\n * @param identifier the stock that is to be added to the portfolio\n * @param amount the amount for which the stock has to be added to the portfolio.\n * @param date when the stock has to be added.\n * @param commission the commission amount.\n * @return Returns a string that contains the number of shares of a stock bought for an amount at\n * a particular date.\n * @throws IllegalArgumentException if the stock ticker symbol, amount, commission or date is\n * invalid.\n */\n double addStock(String identifier, double amount, String date, double commission)\n throws IllegalArgumentException;\n\n /**\n * Returns the commission fee according the input string.\n *\n * @param commission input commission string.\n * @return commission.\n * @throws IllegalArgumentException if the input is invalid.\n */\n double getCommission(String commission) throws IllegalArgumentException;\n\n /**\n * Invest a fixed amount into an existing portfolio containing multiple stocks, using a specified\n * weight for each stock in the portfolio. Returns a hashmap with the all the stocks and the\n * number of shares bought for each of them.\n *\n * @param amount amount to be invested.\n * @param weights stocks with their corresponding weights.\n * @param equalWeights flag to determine if the weights should be equal.\n * @param date date to invest.\n * @param commission commission fees.\n * @return a hashmap with the all the stocks and the number of shares bought for each of them.\n * @throws IllegalArgumentException if the weights are invalid.\n */\n HashMap<String, Double> invest(double amount, TreeMap<String, Double> weights,\n boolean equalWeights, String date, double commission)\n throws IllegalArgumentException;\n\n /**\n * Saves the portfolio in the local system.\n * @param name filename to be saved as.\n * @throws IllegalArgumentException if the filename is null or empty.\n * @throws IllegalStateException if saving the portfolio fails.\n */\n void savePortfolio(String name) throws IllegalArgumentException, IllegalStateException;\n}", "public interface IShiftHandle\r\n{\r\n /**\r\n * Add a new shift to the model\r\n * @param shiftToAdd a shift to add\r\n */\r\n void addShift(Shift shiftToAdd);\r\n\r\n /**\r\n *\r\n * @param userName the represent the all shifts for the specific user\r\n * @return ResultSet that represent all the shifts for the specific user\r\n * @throws GetAllException\r\n */\r\n ResultSet getAllShift(String userName) throws GetAllException;\r\n}", "public interface ResearchService {\n\n /**\n * Save a research.\n *\n * @param research the entity to save\n * @return the persisted entity\n */\n Research save(Research research);\n\n /**\n * Get all the research.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<Research> findAll(Pageable pageable);\n\n List<ResearchDetail> queryEnabledResearchs(String name, String openId);\n\n /**\n * Get the \"id\" research.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Research findOne(Long id);\n\n /**\n * Delete the \"id\" research.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n\n List<ResearchDetail> queryMyResearchs(String openId);\n}", "public interface DataAcquisitionService extends Service<DataAcquisition> {\n\n //首页查询问卷使用信息\n List<DataAcquisition> questionnaireUseInfoListByPage();\n //根据日期查询来访者使用的问卷\n List<DataAcquisition> findQuestionnaireForVisitor (DataAcquisition dataAcquisition);\n //查询活动的填报人数\n Integer findCountByActivityId(String activityId);\n List<DataAcquisition> findMyQuestionnaireListByPage(Map<String,Object> map);\n //查询来访者填写问卷的总数\n int getDataAcquisitionTotal(String userId);\n //填写问卷类别总数\n List<DataAcquisition> getQuestionnaireTypeTotal(String userId);\n //查询来访者的填写结果\n List<DataAcquisition> findDataAcquistionForVisitor(DataAcquisition dataAcquisition);\n //来访者的问卷统计分析\n Result getDataAcquisitionForVisitingCount(String userId);\n\n}", "public void smell() {\n\t\t\n\t}", "public interface ISearchable {\n\n\n AState getStartState () throws NullError;\n\n AState getGoalState () throws NullError;\n\n ArrayList<AState> getAllSuccessors (AState state) throws LowBoundInput, OutOfBoundMatrixInput, NullError;\n\n}", "public interface FitmentLiveModel {\n void loadBaseInformationDatas(String buildingId, CallbcakBaseInformation callbcakBaseInformation);\n interface CallbcakBaseInformation{\n void loadBaseInformationDatasSuccess(ResponseBasicInformation responseBasicInformation);\n void loadBaseInformationDatasFailed(Exception e);\n }\n void loadFitmentProgressDatas(String progressId, String buildingId, int page, int pageSize, CallbackFitmentProgress callbackFitmentProgress);\n interface CallbackFitmentProgress{\n void loadFitmentProgressSuccess(ResponseFitmentPorgress responseFitmentPorgress);\n void loadFitmentProgressFailed(Exception e);\n }\n}", "public interface FilmService {\n List<Film> getFilmlist();\n Film getFilmData(int id);\n String seatData();\n boolean sendSeatData();\n boolean addQuan();\n String getGoods();\n String askPrintTicket();\n String askOrderStatus();\n\n\n}", "public interface Figury {\n double obwod();\n double pole();\n\n}", "public interface MayCtaService {\r\n\r\n\t/**\r\n\t * Checks if is valid previous level.\r\n\t *\r\n\t * @param catalog the catalog\r\n\t * @param errorMsg the error msg\r\n\t * @return true, if is valid previous level\r\n\t */\r\n\tboolean isValidPreviousLevel(Maycta catalog, StringBuilder errorMsg);\r\n\r\n\t/**\r\n\t * Find first by cuenta.\r\n\t *\r\n\t * @param cuenta the cuenta\r\n\t * @return the maycta\r\n\t */\r\n\tMaycta findFirstByCuenta(String cuenta);\r\n\r\n}", "public interface IHistoryItemFactory {\n public HistoryItem getHistoryItem(Integer age, String gender, Float height, Float weight, float bmi, float pi, String kind);\n}", "public interface ISpreadsheet extends Iterable<ISheet> {\r\n /**\r\n * Reads spreadsheet from file\r\n *\r\n * @param fileName path to file\r\n */\r\n void open(String fileName) throws IOException, ParserConfigurationException, SAXException;\r\n\r\n /**\r\n * Saves spreadsheet to file\r\n *\r\n * @param fileName path to file\r\n */\r\n void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;\r\n\r\n /**\r\n * Saves spreadsheet to the same file\r\n */\r\n void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;\r\n\r\n /**\r\n * Creates an empty spreadsheet with one sheet\r\n */\r\n void empty();\r\n\r\n /**\r\n * Get the number of sheets\r\n *\r\n * @return number of sheets in the spreadsheet\r\n */\r\n int getSheetCount();\r\n\r\n /**\r\n * Create a new sheet\r\n *\r\n * @return new sheet\r\n */\r\n ISheet addSheet();\r\n\r\n /**\r\n * Removes a sheet at given index\r\n *\r\n * @param index index of the sheet\r\n */\r\n default void removeSheet(int index) {\r\n getSheet(index).remove();\r\n }\r\n\r\n /**\r\n * Get list of sheets\r\n *\r\n * @return new sheet\r\n */\r\n List<? extends ISheet> getSheetList();\r\n\r\n /**\r\n * Get a sheet at given index\r\n *\r\n * @param index index of the sheet\r\n */\r\n ISheet getSheet(int index);\r\n\r\n /**\r\n * Get a sheet by given name\r\n *\r\n * @param name name of the sheet\r\n */\r\n ISheet getSheet(String name);\r\n\r\n DependencyGraph getDependencyGraph();\r\n\r\n /**\r\n * Check whether the sheet has been modified\r\n *\r\n * @return whether the sheet was modified\r\n */\r\n boolean isModified();\r\n\r\n /**\r\n * Get the name of the file\r\n *\r\n * @return the name of the file, if exists, otherwise null\r\n */\r\n String getFileName();\r\n\r\n /**\r\n * Evaluate formulae\r\n */\r\n void calculate() throws CyclicDependencyException;\r\n\r\n @Override\r\n default Iterator<ISheet> iterator() {\r\n return new Iterator<>() {\r\n int index = 0;\r\n\r\n @Override\r\n public boolean hasNext() {\r\n return index < getSheetCount();\r\n }\r\n\r\n @Override\r\n public ISheet next() {\r\n return getSheet(index++);\r\n }\r\n };\r\n }\r\n}", "public interface InstrumentRepository {\n\n /**\n * Returns instrument object by its vendor code.\n *\n * @param vendorCode vendor code of necessary instrument\n * @return instrument object\n */\n Instrument getInstrument(String vendorCode);\n\n /**\n * Returns instruments map from data source.\n *\n * @return instruments map\n */\n HashMap<String, Instrument> getInstruments();\n\n /**\n * Adds new instrument to data source.\n *\n * @param vendorCode vendor code of new instrument\n * @param instrument new instrument object\n */\n void putInstrument(String vendorCode, Instrument instrument);\n\n /**\n * Returns instruments count from instrument source.\n *\n * @return instruments count\n */\n int getInstrumentCount();\n}", "protected abstract IJustHaveALook make_giveConsult();", "public interface IWeatherDataProvider {\n\n\tpublic WeatherData getWeatherData(Location location);\n\t\n}", "public interface INutritionalService {\n\n /**\n * Computes the nutritional score of a product\n *\n * @param product which going to be \"computed\"\n * @return the nutritional score\n */\n int computeNutritionalScore(Map<String, Object> product);\n\n\n}", "public interface WorkPlaceService {\n void saveWorkPlace(WorkPlace workPlace);\n void deleteWorkPlace(Integer id);\n void updateIsCurrent(WorkBook workbook);\n void test();\n\n WorkPlace getWorkPlaceById(Integer id);\n void updateWorkPlace(Set<WorkPlace> workPlaces, WorkPlace workPlace);\n}", "public interface CountyServices {\n List<County> queryCountyByFK(County county);\n}", "public interface RiskSource {\n void newIncoming(double incoming);\n\n double getLeverage();\n\n double getCurrentRiskAvailable();\n}", "public interface Source {\r\n\t\t\t\t\t\r\n\t/** A source needs to have funds or credit available so it can have money pulled from it for\r\n\t * whatever purpose the funds are needed. This is the predict loss implementation for use\r\n\t * with the prediction algorithm. It processes the loss for this source by updating its\r\n\t * prediction rows appropriately (i.e. removing or adding to the sources funds or credit). This\r\n\t * method should also be capable of handling an add back to the source.\r\n\t * \r\n\t * @param destinationDescription - a string description of what the funds are being used for. Used for the transaction history\r\n\t * @param lossAmount - the amount of funds needed\r\n\t * @param addBack - true if the destination is a budget item and that budget item has funds to add back to the source\r\n\t * @param addBackAmount - the amount to add back to the source (if applicable)\r\n\t * @param dayIndex - the date as an index or offset from prediction start date\r\n\t * \r\n\t */\r\n\tpublic void predictLossForDayIndex(String destinationDescription, double lossAmount, boolean addBack, double addBackAmount, int dayIndex);\r\n\t\r\n\t/**\r\n\t * A source should be able to tells us a unique description of itself (its name).\r\n\t * @return this source's unique name\r\n\t */\r\n\tpublic String name();\r\n}", "public interface ITier {\n\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic Zoo getZoo();\n\tpublic void setZoo(Zoo zoo);\n\t\n\tpublic void fuettere(Personal personal); //implemented. Gibt aus, dass tier von personal gefüttert wird.\n\tpublic void lebtIn(/*String gehege, Gehege neuesGehege, */Gehege gehege); //implemented\n\t\t\n}", "public interface SaleModelInterface {\n\n SaleEntity getSaleByID(int saleID);\n\n List<SaleDisplayEntity> getSaleByTime(Date fromTime, Date toTime);\n\n List<SaleEntity> getAllSale();\n\n boolean createSave(SaleEntity saleEntity);\n\n void updateSale(SaleEntity sale);\n\n SaleEntity getSaleByProductId(int productId,Date date);\n\n int countSaleRecordToday(Date date);\n}", "public interface Agent {\n void search(String keyword,Result<List<LyricCandidate>> callback);\n void topLyric(Result<List<Lyric>> callback);\n void lyric(String url,Result<Lyric> callback);\n}", "public interface Service extends WrappedIndividual {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#hasMicroService\n */\n \n /**\n * Gets all property values for the hasMicroService property.<p>\n * \n * @returns a collection of values for the hasMicroService property.\n */\n Collection<? extends MService> getHasMicroService();\n\n /**\n * Checks if the class has a hasMicroService property value.<p>\n * \n * @return true if there is a hasMicroService property value.\n */\n boolean hasHasMicroService();\n\n /**\n * Adds a hasMicroService property value.<p>\n * \n * @param newHasMicroService the hasMicroService property value to be added\n */\n void addHasMicroService(MService newHasMicroService);\n\n /**\n * Removes a hasMicroService property value.<p>\n * \n * @param oldHasMicroService the hasMicroService property value to be removed.\n */\n void removeHasMicroService(MService oldHasMicroService);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#hasSCF\n */\n \n /**\n * Gets all property values for the hasSCF property.<p>\n * \n * @returns a collection of values for the hasSCF property.\n */\n Collection<? extends SCF> getHasSCF();\n\n /**\n * Checks if the class has a hasSCF property value.<p>\n * \n * @return true if there is a hasSCF property value.\n */\n boolean hasHasSCF();\n\n /**\n * Adds a hasSCF property value.<p>\n * \n * @param newHasSCF the hasSCF property value to be added\n */\n void addHasSCF(SCF newHasSCF);\n\n /**\n * Removes a hasSCF property value.<p>\n * \n * @param oldHasSCF the hasSCF property value to be removed.\n */\n void removeHasSCF(SCF oldHasSCF);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#performAt\n */\n \n /**\n * Gets all property values for the performAt property.<p>\n * \n * @returns a collection of values for the performAt property.\n */\n Collection<? extends Facility> getPerformAt();\n\n /**\n * Checks if the class has a performAt property value.<p>\n * \n * @return true if there is a performAt property value.\n */\n boolean hasPerformAt();\n\n /**\n * Adds a performAt property value.<p>\n * \n * @param newPerformAt the performAt property value to be added\n */\n void addPerformAt(Facility newPerformAt);\n\n /**\n * Removes a performAt property value.<p>\n * \n * @param oldPerformAt the performAt property value to be removed.\n */\n void removePerformAt(Facility oldPerformAt);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#produces\n */\n \n /**\n * Gets all property values for the produces property.<p>\n * \n * @returns a collection of values for the produces property.\n */\n Collection<? extends Computer> getProduces();\n\n /**\n * Checks if the class has a produces property value.<p>\n * \n * @return true if there is a produces property value.\n */\n boolean hasProduces();\n\n /**\n * Adds a produces property value.<p>\n * \n * @param newProduces the produces property value to be added\n */\n void addProduces(Computer newProduces);\n\n /**\n * Removes a produces property value.<p>\n * \n * @param oldProduces the produces property value to be removed.\n */\n void removeProduces(Computer oldProduces);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#uses\n */\n \n /**\n * Gets all property values for the uses property.<p>\n * \n * @returns a collection of values for the uses property.\n */\n Collection<? extends Equipment> getUses();\n\n /**\n * Checks if the class has a uses property value.<p>\n * \n * @return true if there is a uses property value.\n */\n boolean hasUses();\n\n /**\n * Adds a uses property value.<p>\n * \n * @param newUses the uses property value to be added\n */\n void addUses(Equipment newUses);\n\n /**\n * Removes a uses property value.<p>\n * \n * @param oldUses the uses property value to be removed.\n */\n void removeUses(Equipment oldUses);\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}", "public interface InsureUnitTrendService {\n\n /**\n * Query insure date list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryInsureDate();\n\n /**\n * Query unit list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryUnit();\n\n /**\n * Query cancel list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryCancel();\n\n\n}", "public interface Goods {\n\n int price();\n String name();\n String description();\n\n}", "public interface VendingMachine {\n long getPrice(Item item);\n void insertCoin(Coin coin);\n List<Coin> refund();\n Bucket<Item, List<Coin>> dispenseItemAndChange();\n void reset();\n}", "public interface Idatabase {\n\n /**\n * This method takes in a username as a string and gets all its accounts.\n * @param username A string holding the name of the user.\n * @return returns a Document.\n */\n Document getAllAccounts(String username);\n\n /**\n * This method creates an account and takes in all the inputs needed to do so.\n * @param username String containing the name of the user.\n * @param accountDisplayName String containing the name of the account display.\n * @param accountFullName String containing the full name.\n * @param balance double containing the balance.\n * @param interestRate double containing the interest rate.\n * @return returns a Document.\n */\n Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);\n\n /**\n * This method takes in a username and password and uses them to login.\n * @param username String containing the name of the user.\n * @param password String containing the password of the user.\n * @return returns a Document.\n */\n Document login(String username, String password);\n\n Document hashedLogin(String username);\n\n Document register(String username, String first_name,\n String last_name, String password, String email);\n\n /**\n * This method takes in a username and star/end date to generate a spending report.\n * @param username String containing the name of the user.\n * @param start Date conatining the starting date.\n * @param end Date containing the ending date.\n * @return returns a Document.\n */\n Document generateSpendingCategoryReport(String username, Date start,\n Date end);\n\n /**\n * This method takes in a source and an amount to create a deposit.\n * @param source String containing the source of the deposit.\n * @param amount A double with the amount of the deposit.\n * @param effectiveDate String containing the date in which the deposit was effective.\n * @return returns a Document.\n */\n Document newDeposit(String source, double amount,\n String effectiveDate);\n\n /**\n * This method takes in a reason, category, amount, and date to make a new withdrawal.\n * @param reason String containing the reason for this withdraw.\n * @param expenseCategory String containing the category of the withdraw.\n * @param amount A double with the amount of the withdraw.\n * @param effectiveDate String containing the date in which the withdraw was effective.\n * @return returns a Document.\n */\n Document newWithdrawal(String reason, String expenseCategory,\n double amount, String effectiveDate);\n\n}", "public interface IAtfMetadataSvs {\n\t/**\n\t * 注册AT工作流蓝图:CREATE or UPDATE\n\t * \n\t * @param workflowMetadata\n\t * @throws AtfException\n\t */\n\tvoid register(AtWorkflowMetadata workflowMetadata) throws AtfException;\n\n\t/**\n\t * 更新AT工作流蓝图:UPDATE\n\t * \n\t * @param workflowMetadata\n\t * @throws AtfException\n\t */\n\tvoid update(AtWorkflowMetadata workflowMetadata) throws AtfException;\n\n\t/**\n\t * \n\t * @param name\n\t * 工作流名(nickname)\n\t * @param version\n\t * 版本号\n\t * @return 指定版本或最新版本的AT工作流蓝图\n\t * @throws AtfException\n\t */\n\tAtWorkflowMetadata find(String name, Long version) throws AtfException;\n\n\t/**\n\t * \n\t * @param name\n\t * 工作流名(nickname)\n\t * @return 最新版本的AT工作流蓝图\n\t * @throws AtfException\n\t */\n\tAtWorkflowMetadata findLatest(String name) throws AtfException;\n\n\t/**\n\t * \n\t * @return AT工作流蓝图生成器\n\t */\n\tAtfMetadataBuilder getMetadataBuilder();\n}", "public interface SurveyManagerService {\n /**\n * Get the list of all questions for a survey\n * @param surveyId\n * @return\n */\n List<Question> getQuestions(String surveyId);\n\n /**\n * Add questions to a survey\n * @param surveyId\n * @param questions\n */\n void addQuestions(String surveyId, List<Question> questions);\n\n /**\n * Delete a question in a survey\n * @param questionId\n */\n void deleteQuestion(String questionId);\n\n /**\n * Update a question in a survey\n * @param questionId\n * @param question\n */\n void updateQuestion(String questionId, Question question) throws SQLException;\n\n\n /**\n * Get the list of all responses to a question\n * @param questionId\n * @return\n */\n QuestionResponse getResponses(String questionId);\n\n /**\n * Get the number of responses and distribution in percentage\n * @param questionId\n * @return\n */\n ResponseChart getResponseChart(String questionId);\n\n /**\n * Create a survey with list of questions\n * @param questions\n * @param userId\n * @return surveyId\n */\n int createSurvey(List<Question> questions, String userId);\n\n //void deleteSurvey(String surveyId);\n}", "public interface QuestionnaireDAO {\r\n /**\r\n * Loads questionnaire data\r\n *\r\n * @return\r\n */\r\n public Questionnaire load();\r\n}" ]
[ "0.6152089", "0.5867277", "0.579273", "0.5685854", "0.5661103", "0.5629546", "0.56244445", "0.5611179", "0.5560873", "0.55484504", "0.55052143", "0.55025285", "0.55008805", "0.5497721", "0.5490716", "0.54599833", "0.54575", "0.5453281", "0.54460263", "0.54378515", "0.54355854", "0.5434637", "0.5432986", "0.5432572", "0.5430032", "0.54065865", "0.5399609", "0.53978664", "0.5384022", "0.53813374", "0.5379525", "0.53727204", "0.5366968", "0.536383", "0.5360319", "0.53588635", "0.5356989", "0.5348837", "0.5341544", "0.53411615", "0.53317434", "0.5324827", "0.53242034", "0.53237516", "0.5322551", "0.53175354", "0.53169066", "0.5313126", "0.5311537", "0.5308649", "0.5307087", "0.53054196", "0.5304911", "0.5298545", "0.529517", "0.52886385", "0.52806675", "0.5279699", "0.5278405", "0.527361", "0.5267185", "0.52656114", "0.52619", "0.52560174", "0.525047", "0.5248517", "0.5244543", "0.5240897", "0.5240132", "0.5233404", "0.523187", "0.5229788", "0.522868", "0.5223406", "0.5221807", "0.5218101", "0.52171504", "0.5215755", "0.5214571", "0.5210885", "0.5202678", "0.51992047", "0.51982605", "0.5195927", "0.5195834", "0.5195764", "0.5193133", "0.51918715", "0.51885855", "0.51759964", "0.51754206", "0.5175188", "0.5174232", "0.5169923", "0.5168498", "0.5166915", "0.5165349", "0.51638556", "0.5162569", "0.51610464" ]
0.55244505
10
Retrieve all Rooms from the data store.
Collection<Room> getRooms() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}", "@Transactional\r\n\tpublic List<Room> getAllRooms(){\r\n\t\tList<Room> list= new ArrayList<Room>();\r\n\t\tIterable<Room> iterable= this.roomRepository.findAll();\r\n\t\tfor(Room room: iterable)\tlist.add(room);\r\n\t\treturn list;\r\n\t}", "@Override\n public List<Room> findAll() {\n return roomRepository.findAll();\n }", "@GetMapping(path = \"/rooms\")\n public List<Room> findAllRooms() {\n return new ArrayList<>(roomService.findAllRooms());\n }", "@GET\n @Produces(\"application/json\")\n public static List<CRoom> roomAll() {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);\n }", "public List<Room> showAllRoom() {\r\n\t\t\r\n\t\tif(userService.adminLogIn|| userService.loggedIn) {\r\n\t\t\tList<Room> list = new ArrayList<>();\r\n\t\t\troomRepository.findAll().forEach(list::add);\r\n\t\t\treturn list;\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\r\n\t}", "@Override\n public List<Room> findAllRooms() throws AppException {\n log.info(\"RoomDAO#findAllRooms(-)\");\n Connection con = null;\n List<Room> rooms;\n try {\n con = DataSource.getConnection();\n rooms = new ArrayList<>(findAllRooms(con));\n con.commit();\n } catch (SQLException e) {\n rollback(con);\n log.error(\"Problem at findAllRooms(no param)\", e);\n throw new AppException(\"Can not find all rooms, try again\");\n } finally {\n close(con);\n }\n return rooms;\n }", "public List<Room> selectAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.createCriteria(Room.class).list();\n\n\t}", "public List<Room> findAllRooms();", "public List<Room> getAllRooms(){\n\n List<Room> rooms = null;\n\n EntityManager entityManager = getEntityManagerFactory().createEntityManager();\n entityManager.getTransaction().begin();\n\n try{\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Room> roomCriteriaQuery = criteriaBuilder.createQuery(Room.class);\n Root<Room> roomsRoot = roomCriteriaQuery.from(Room.class);\n\n roomCriteriaQuery.select(roomsRoot);\n\n rooms = entityManager.createQuery(roomCriteriaQuery).getResultList();\n }\n catch (Exception ex){\n entityManager.getTransaction().rollback();\n }\n finally {\n entityManager.close();\n }\n\n return rooms;\n }", "@Override\r\n\tpublic List<Room> listAll() throws SQLException {\n\t\treturn null;\r\n\t}", "public ResultSet getAllRooms() {\r\n\r\n try {\r\n\r\n SQL = \"SELECT * FROM ROOMS;\";\r\n rs = stmt.executeQuery(SQL);\r\n return rs;\r\n\r\n } catch (SQLException err) {\r\n\r\n System.out.println(err.getMessage());\r\n return null;\r\n\r\n }\r\n\r\n }", "public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }", "@GetMapping\n public RoomsDto getRooms() {\n return roomsFacade.findRooms();\n }", "public List<Room> getRooms() {\n return rooms;\n }", "@GetMapping(\"/chat-rooms\")\n public List<ChatRoom> getAllChatRooms() {\n log.debug(\"REST request to get all ChatRooms\");\n return chatRoomRepository.findAll();\n }", "public ArrayList<Room> getRooms() {\n return rooms;\n }", "@Override\n\tpublic List<RoomInterface> getRooms() {\n\t\treturn rooms;\n\t}", "public Set<Room> getRooms() {\n return rooms;\n }", "@Override\n public List<UserRoom> getUserRoomList() {\n logger.info(\"Start getUserRoomList\");\n List<UserRoom> userRoomList = new ArrayList<>();\n try {\n connection = DBManager.getConnection();\n preparedStatement = connection.prepareStatement(Requests.SELECT_FROM_USER_ROOM);\n rs = preparedStatement.executeQuery();\n while (rs.next()) {\n userRoomList.add(myResultSet(rs));\n }\n } catch (SQLException sqlException) {\n Logger.getLogger(sqlException.getMessage());\n } finally {\n closing(connection, preparedStatement, rs);\n }\n logger.info(\"Completed getUserRoomList\");\n return userRoomList;\n }", "public AsyncResult<List<ChatRoom>> discoverRooms() {\r\n return serviceDiscoveryManager.discoverItems(serviceAddress).thenApply(itemNode -> {\r\n List<ChatRoom> chatRooms = new ArrayList<>();\r\n for (Item item : itemNode.getItems()) {\r\n ChatRoom chatRoom = new ChatRoom(item.getJid(), item.getName(), xmppSession, serviceDiscoveryManager, multiUserChatManager);\r\n chatRoom.initialize();\r\n chatRooms.add(chatRoom);\r\n }\r\n return chatRooms;\r\n });\r\n }", "public ArrayList<GameRoom> execute() {\n\t\tif(GameRooms.rooms == null) {\n\t\t\tGameRooms.rooms = new ArrayList<GameRoom>();\n\t\t}\n\t\treturn GameRooms.rooms;\n\t}", "public List<Chatroom> getAllChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findAll();\n\n\t\treturn chatrooms;\n\t}", "@Override\n\tpublic List<Floor> findAll() {\n\t\treturn floorDao.findAll();\n\t}", "public ArrayList getRooms();", "@CrossOrigin \n\t@GetMapping(\"/all/{building}\")\n\tpublic List<Room> getRooms(@PathVariable String building) {\n\t\tList<Room> returned = new ArrayList<>();\t\t\n\t\tfor (Room room : roomDB)\n\t\t\tif (room.getBuilding().equals(building))\n\t\t\t\treturned.add(room);\n\t\treturn returned;\n\t}", "@RequestMapping(method = RequestMethod.GET)\n public ResponseEntity<?> getAllGameRooms() {\n try {\n return new ResponseEntity<>(ls.getAllGameRooms(), HttpStatus.ACCEPTED);\n } catch (LacmanNotFoundException e) {\n Logger.getLogger(LacmanController.class.getName()).log(Level.SEVERE, null, e);\n return new ResponseEntity<>(e.getMessage(), HttpStatus.NOT_FOUND);\n }\n }", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<MuseumDTO> findAll() {\n log.debug(\"Request to get all Museums\");\n return museumRepository.findAll().stream()\n .map(museumMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn rolDao.readAll();\n\t}", "public List<Room> getRooms(){\n ArrayList<Room> returnedList = (ArrayList<Room>) rooms;\n return (ArrayList<Room>) returnedList.clone();\n }", "@Override\r\n\tpublic ArrayList<Board1> getAll() {\n\t\treturn dao.selectAll();\r\n\t}", "@Transactional(readOnly = true)\n public List<Game> findAll() {\n log.debug(\"Request to get all Games\");\n return gameRepository.findAll();\n }", "public Rooms getRooms(int i) {\n\t\t\tRooms buff = RoomDetails.get(i);\r\n\t\t\treturn buff;\r\n\t\t}", "@Override\n public List<Room> findRooms(int offset, int limit, String orderBy) throws AppException {\n log.info(\"#findRooms offset = \" + offset + \" limit = \" + limit + \" orderBy = \" + orderBy);\n Connection con = null;\n PreparedStatement ps;\n ResultSet rs;\n List<Room> rooms;\n try {\n con = DataSource.getConnection();\n ps = con.prepareStatement(SELECT_ROOMS);\n log.info(\"orderBy = \" + orderBy);\n switch (orderBy) {\n case(\"price\"):\n ps = con.prepareStatement(SELECT_ROOMS_PRICE);\n break;\n case(\"size\"):\n ps = con.prepareStatement(SELECT_ROOMS_SIZE);\n break;\n case(\"class\"):\n ps = con.prepareStatement(SELECT_ROOMS_CLASS);\n break;\n case(\"status\"):\n ps = con.prepareStatement(SELECT_ROOMS_STATUS);\n }\n int k = 1;\n ps.setInt(k++, limit);\n ps.setInt(k, offset);\n log.info(\"ps = \" + ps);\n rs = ps.executeQuery();\n rooms = new ArrayList<>();\n while (rs.next()) {\n rooms.add(extractRoom(con, rs));\n }\n con.commit();\n log.info(\"rooms = \" + rooms);\n } catch (SQLException e) {\n rollback(con);\n log.error(\"Problem findRooms\");\n throw new AppException(\"Cannot find rooms, try again\");\n } finally {\n close(con);\n }\n return rooms;\n }", "public List<Room> getCurrentRooms() {\n return currentRooms;\n }", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "public ArrayList<RoomList> getRoomList() {\r\n return RoomList;\r\n }", "public List<Laptop> findAll() {\n\t\treturn laptopDao.findAll();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DbLotniskoEntity> getAll() {\n \tList<DbLotniskoEntity> airports = (List<DbLotniskoEntity>)getSession().createQuery(\"from kiwi.models.DbLotniskoEntity\").list();\n\n \treturn airports;\n }", "public List<E> findAll() {\n return getDao().findAll();\n }", "@Override\n @Transactional(readOnly = true)\n public List<ModeDTO> findAll() {\n log.debug(\"Request to get all Modes\");\n return modeRepository.findAll().stream()\n .map(modeMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public void populateRooms(){\n }", "private void setRooms() {\r\n\t\tAccountBean bean = new AccountBean();\r\n\t\tbean.setCf(Session.getSession().getCurrUser().getAccount().getCf());\r\n\t\tRoomController ctrl = RoomController.getInstance();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tthis.myRooms=FXCollections.observableArrayList(ctrl.getMyRooms(bean));\r\n\t\t}\r\n\t\tcatch (DatabaseException ex1) {\r\n\t\t\tJOptionPane.showMessageDialog(null,ex1.getMessage(),ERROR, JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "@Override\n public List<Door> findAll() {\n TypedQuery<Door> query = manager.createQuery(\"from Door door\",Door.class);\n return query.getResultList();\n }", "List<ExamRoom> selectAll();", "public Items[] findAll() throws ItemsDaoException;", "@Override\n\tpublic List<Oeuvre> findAll() {\n\t\treturn oeuvreDao.findAll();\n\t}", "@Override\n\tpublic List<Equipo> getAll()\n\t{\n\t\treturn (ArrayList<Equipo>)equipoRepository.findAll();\n\t}", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<BuildingDTO> findAll() {\n log.debug(\"Request to get all Buildings\");\n return buildingRepository.findAll().stream()\n .map(buildingMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@RequestMapping(value = \"/room\", method = RequestMethod.GET)\n public ModelAndView listRoom() {\n List<Group> groups = userBean.getAllGroups();\n for (int i = 0; i < groups.size(); i++) {\n userBean.getGroupByStreamId(groups.get(1));\n }\n ModelAndView view = new ModelAndView(\"room\");\n // view.addObject(\"list\", room);\n // view.addObject(\"note\", rooms);\n //view.addObject(\"st\", streamGroups);\n return view;\n }", "private void displayListOfRooms() {\n DatabaseReference roomsRef = FirebaseDatabase.getInstance().getReference(\"Rooms\");\n\n roomsRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // update rooms every time there's a change\n updateRooms(dataSnapshot);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }", "@Override\n\tpublic List<Mall> getMalls() {\n\t\treturn iMallDao.getMalls();\n\t}", "public ArrayList<CalendarRoom> getRooms(String sType) throws IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getRooms&token=\"+sSecurityToken+\"&type=\"+sType);\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }", "List<RouteStore> getAllRouteStore();", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "@Override\n public List<Building> allBuildings() {\n return dao.all(Building.class);\n }", "@GetMapping(\"/listRoom\")\r\n\tpublic String listRooms(Model theModel) {\n\t\tList<Room> theRooms = roomService.findAll();\r\n\t\t\r\n\t\t// add to the spring model\r\n\t\ttheModel.addAttribute(\"rooms\", theRooms);\r\n\t\t\r\n\t\treturn \"/rooms/list-rooms\";\r\n\t}", "public Collection<T> getAll() throws DaoException;", "@Override\n\tpublic List<Order> readAll() {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders\");) {\n\t\t\tList<Order> orderList = new ArrayList<>();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\torderList.add(modelFromResultSet(resultSet));\n\t\t\t}\n\t\t\treturn orderList;\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn new ArrayList<>();\n\t}", "@Override\r\n\tpublic List<Warehouse> selectAll() {\n\t\treturn warehouseDao.selectAll();\r\n\t}", "public List<Room> getByRoomType(String roomType){\r\n\t\tif(userService.adminLogIn||userService.loggedIn) {\r\n\t\t\tList<Optional<Room>> room=new ArrayList<>();\r\n\t\t\troom=roomRepository.findByRoomType(roomType);\r\n\t\t\tif (room.size()==0) {\r\n\t\t\t\tthrow new RoomTypeNotFoundException(\"Room type not available\");\r\n\t\t\t} else {\r\n\t\t\t\tList<Room> newRoom=new ArrayList<Room>();\r\n\t\t\t\tfor(Optional r:room) {\r\n\t\t\t\t\tnewRoom.add((Room) r.get());\r\n\t\t\t\t}\r\n\t\t\t\treturn newRoom;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\t\t\r\n\t}", "List<Enrolment> getAll();", "public ArrayList<Item> getRoomItems() {\n return (roomItems);\n }", "public List<Room> getByType(int idRoomType) {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room WHERE id_room_type=\" + idRoomType);\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}", "@Override\n @Transactional\n public List getAll() {\n return routDAO.getAll();\n }", "@Override\n @Transactional(readOnly = true)\n public List<OrdreDTO> findAll() {\n log.debug(\"Request to get all Ordres\");\n return ordreRepository.findAll().stream()\n .map(ordreMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@SuppressWarnings(\"unchecked\")\n @Transactional(readOnly = true, propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED)\n public List<Reservations> getAll() {\n Session s = sessionFactory.getCurrentSession();\n Query hql = s.createQuery(\"From Reservations\");\n return hql.list();\n }", "public Room[] getConnections() {\n return connections;\n }", "public void getAllSingleRoom() {\n\t\t for(SuiteRoom elem: suiteroom)\n\t {\n\t \t System.out.println (\"capacité : \" +elem.getCapacity());\n\t \t System.out.println (\"prix : \" +elem.getPrice());\n\t \t System.out.println (\"numéro : \" +elem.getIdRoom());\n\t \t System.out.println (\"nom : \" +elem.getName());\n\t \tSystem.out.println (\"-------------------\");\n\t \t \n\t }\n\t}", "public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }", "@Override\n\tpublic List<InventoryManagement> findAll() {\n\t\treturn inventoryManagementDao.findAll();\n\t}", "public Room findRoomById(Long id);", "@GetMapping(\"/{hotelId}/rooms\")\n public ResponseEntity<Resources<RoomResource>> getRoomsForHotelId(@PathVariable Long hotelId){\n\n return new ResponseEntity<>(\n hotelService.findRoomsByHotelId(hotelId),HttpStatus.OK\n );\n }", "@Override\n public ArrayList<Course> getAll() {\n ArrayList<Course> allCourses = new ArrayList();\n String statement = FINDALL;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAll()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return allCourses;\n }", "@Transactional(readOnly = true)\n public List<MuseumResource> findAllMuseums() {\n List<MuseumResource> museums = new ArrayList<>();\n\n List<Museum> museumList = museumRepository.findAll();\n\n for (Museum item : museumList) {\n MuseumResource museum = new MuseumResource();\n populateMuseum(item, museum);\n museums.add(museum);\n }\n\n return museums;\n }", "public List<Dojo> findAll(){\n\t\treturn dojoRepository.findAll();\n\t}", "public ArrayList<Room> createMaze() {\n createRooms();\n createAccess(rooms);\n\n return rooms;\n }", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "public List<Organization> getAll() throws SQLException {\n\t\tlogger.info(\"[Organization] get\");\n\t\treturn organizationDao.queryForAll();\n\t}", "public List<Chatroom> getAllListedChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findByListed(true);\n\n\t\treturn chatrooms;\n\t}", "public Cursor fetchAllEntries() {\n return mDb.query(DATABASE_TABLE, null, null, null, null, null, null);\n }", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\n\t@Override\n\t/**\n\t * Leo todos los empleados.\n\t */\n\tpublic List<Employees> readAll() {\n\t\tList<Employees> ls = null;\n\n\t\tls = ((SQLQuery) sm.obtenerSesionNueva().createQuery(\n\t\t\t\tInstruccionesSQL.CONSULTAR_TODOS)).addEntity(Employees.class)\n\t\t\t\t.list();// no creo que funcione, revisar\n\n\t\treturn ls;\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<PomocniMaterijal> findAll() {\n log.debug(\"Request to get all PomocniMaterijals\");\n return pomocniMaterijalRepository.findAll();\n }", "public ChatRoomTableModel getRoomlist() {\n\t\treturn roomlist;\n\t}", "@RequestMapping(value = \"/vacantrooms\", method = RequestMethod.GET)\n public ArrayList<Room> vacantRooms(){\n ArrayList<Room> listroom = DatabaseRoom.getVacantRooms();\n return listroom;\n }", "@Override\n public List<T> getAll() throws SQLException {\n\n return this.dao.queryForAll();\n\n }", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public static List<Item> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<EvenementDto> getAll() {\n DataAccess dataAccess = DataAccess.begin();\n List<EvenementEntity> li = dataAccess.getAllEvents();\n dataAccess.closeConnection(true);\n return li.stream().map(EvenementEntity::convertToDto).collect(Collectors.toList());\n }", "public List<User> findAll() {\n return store.findAll();\n }", "public List<LeaveApplication> getAll();", "public ChatRoom[] getChatRooms();", "public PriorityQueue<Room> getRooms() {\n return this.rooms;\n }", "public List<Entity> getAll() {\n return entities;\n }" ]
[ "0.8201869", "0.8086293", "0.80095273", "0.78854346", "0.7856869", "0.7848327", "0.78202814", "0.77149916", "0.76495343", "0.7623858", "0.75576806", "0.7334368", "0.7143117", "0.7117517", "0.70795834", "0.6916964", "0.68386", "0.68039715", "0.67924553", "0.6759573", "0.6714144", "0.65810347", "0.6580817", "0.6565816", "0.653282", "0.64140093", "0.64135456", "0.64079446", "0.63788986", "0.6335992", "0.63266915", "0.6286849", "0.6276201", "0.6262167", "0.6248164", "0.62395364", "0.62264514", "0.6200568", "0.6198806", "0.6193955", "0.61838275", "0.61712277", "0.6156639", "0.6115579", "0.60994804", "0.6090831", "0.6083047", "0.6082466", "0.6061908", "0.6061563", "0.60549766", "0.6054009", "0.6050616", "0.6019021", "0.5987008", "0.5986648", "0.5986408", "0.5948991", "0.5945432", "0.5937174", "0.59360945", "0.590618", "0.5903611", "0.58904797", "0.5880159", "0.5875808", "0.58748883", "0.586238", "0.58473057", "0.58451694", "0.5838421", "0.58289635", "0.5828123", "0.5827921", "0.58232695", "0.5806487", "0.58038765", "0.5802407", "0.58009267", "0.57963777", "0.5793454", "0.5789113", "0.578652", "0.5781721", "0.57788175", "0.57782793", "0.57741016", "0.577023", "0.5759436", "0.5756276", "0.57544523", "0.5748586", "0.5746418", "0.5742644", "0.57312924", "0.5730502", "0.57264715", "0.5724055", "0.5723577", "0.57134473" ]
0.7656847
8
Retrieve all ActivityTypes from the data store.
Collection<ActivityType> getActivityTypes() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Type> getAll();", "public List<Activity> getAllActivities();", "@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}", "@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}", "protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }", "List<Type> getAllTypeList();", "public synchronized static Set<String> getAvailableTypes() {\n populateCache();\n return Collections.unmodifiableSet(cache.keySet());\n }", "@RequestMapping(value = Constants.REQMAP_GET_VIDEOTYPES, method= RequestMethod.GET)\n\tpublic List<VideoTypes> getAllActiveVideoTypes(){\n\t\treturn videoTypeService.getAllActiveVideoTypes();\n\t}", "public String getAllContactsTypes() {\n\t\treturn \"SELECT * FROM CONTACTSTYPES\";\n\t}", "@Override\n\tpublic List<Coursetype> getAllCourseType() {\n\t\treturn courseTypeDaoImpl.getAllCourseType();\n\t}", "public LearningResultHasActivity[] findAll() throws LearningResultHasActivityDaoException;", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}", "public UserType[] getAllUserTypes() throws DataAccessException {\n return userTypeDao.getAllUserTypes();\n }", "public List<CWLType> getTypes() {\n return types;\n }", "@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }", "public List<SecTyp> getAllTypes();", "@RequestMapping(value=\"/datatypes\",method=RequestMethod.GET)\n public DataFieldType[] getAllDataTypes(){\n return DataFieldType.values();\n }", "@Override\n\tpublic List<Facilities_type> getAllFacilitiesType() {\n\t\treturn this.facilitiesDao.getAllFacilitiesType();\n\t}", "public Set<Class<? extends RealmModel>> getDBTableTypes(){\n try {\n if (this.realmConfiguration == null) {\n this.realmConfiguration = DatabaseUtilities\n .buildRealmConfig(context, null, null, null);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n\n if(realmConfiguration == null){\n return null;\n }\n return realmConfiguration.getRealmObjectClasses();\n }", "public static List<UserType> getAllUserTypes() {\n return UserType.finder.where().ne(\"id\", 1).findList();\n }", "public List<ItemTypeDTO> getAll();", "public List<TypeInfo> getTypes() {\r\n return types;\r\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "List<EcsFavourableActivity> selectAll();", "public ArrayList<String> getTypes(){\n return this.types;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getAll(Class<T> type) {\n\t\treturn super.getSessionFactory().getCurrentSession().createQuery(\"from \"+type.getName()+\"\").list();\r\n\t}", "@CustomAnnotation(value = \"FIND_ALL_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activities\",\n\t\t\tmethod=RequestMethod.GET\n\t\t\n\t\t\t)\n\tpublic ResponseEntity<Set<Activity>> findAcitities(){\n\t\treturn new ResponseEntity<Set<Activity>>(activityService.findAll(), HttpStatus.OK);\n\t}", "public <T extends IDBEntities> List<T> retrieveAll(Class<? extends IDBEntities> type) {\n\t\tif (type == null)\n\t\t\treturn new ArrayList<>();\n\t\tList<T> result;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tQuery q = em.createNamedQuery(type.getSimpleName() + \".findAll\", type);\n\t\t\tresult = q.getResultList();\n\t\t} catch (Exception ex) {\n\t\t\t// No records exist\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t\t// Dealing with EclipseLink Vector overriding issues (iterators don't work properly)\n\t\tList<T> output = new ArrayList<>();\n\t\toutput.addAll(result);\n\t\treturn output;\n\t}", "public final ArrayList<Application.ApplicationType> getApplicationTypes() {\n\n\t\t// TODO - check if it works\n\t\tList<String> list = JsUtils.listFromJsArrayString(JsUtils.getNativePropertyArrayString(this, \"applicationTypes\"));\n\t\tArrayList<Application.ApplicationType> result = new ArrayList<Application.ApplicationType>();\n\t\tfor (String s : list) {\n\t\t\tresult.add(Application.ApplicationType.valueOf(s));\n\t\t}\n\t\treturn result;\n\n\t}", "public Set<EntityType> getEntityTypes() {\n\t\ttry {\n\t\t\tSet<EntityType> entityTypes =\n\t\t\t\tnew HashSet<EntityType>(getWorkbench().getSearchableEntityTypes());\n\t\t\tentityTypes.add(EntityType.UNKNOWN);\n\t\t\treturn entityTypes;\n\t\t} catch (Throwable error) {\n\t\t\treportError(error, \"Error retrieving the set of searchable EntityTypes\");\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic List<Type> listType() {\n\t\treturn goodsDao.listType();\n\t}", "@GetMapping(\"/company-types\")\n @Timed\n public List<CompanyType> getAllCompanyTypes() {\n log.debug(\"REST request to get all CompanyTypes\");\n List<CompanyType> companyTypes = companyTypeRepository.findAll();\n return companyTypes;\n }", "public List<ResourceBase> listTypes() throws ResourceException;", "private Collection<TypeDeclaration> getAllTypes() {\n if (allTypes != null) {\n return allTypes;\n }\n allTypes = new ArrayList<TypeDeclaration>();\n for (Symbol s : getMembers(false)) {\n allTypes.add(env.declMaker.getTypeDeclaration((ClassSymbol) s));\n }\n return allTypes;\n }", "java.util.List<UserType>\n getUserTypesList();", "synchronized public Map<String, Set<String>> getTypes() {\n return Collections.unmodifiableMap(\n new HashSet<>(types.entrySet()).stream()\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> Collections.unmodifiableSet(new HashSet<>(e.getValue()))\n ))\n );\n }", "public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }", "public Iterator getTypes() {\r\n\t\treturn types == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(types.values());\r\n\t}", "List<UserActivity> findAllUserActivityInDB() throws DataNotFoundException;", "public static Collection getAllActivities() throws EnvoyServletException\n {\n try\n {\n return ServerProxy.getJobHandler().getAllActivities();\n }\n catch (Exception e)\n {\n throw new EnvoyServletException(e);\n }\n }", "public ArrayList<BikeType> getAllTypes(){\n typelist = new ArrayList<>();\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TYPES);\n ResultSet rs = ps.executeQuery()){\n\n while(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n typelist.add(type);\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return typelist;\n }", "public Map<String, Class<?>> getEntityTypes() {\n return entityTypes;\n }", "public Set<ResourceType> getAllResourceTypes() {\n parseExternalResources();\n Set<ResourceType> resourceTypes = new HashSet<ResourceType>();\n for (DatacollectionGroup group : externalGroupsMap.values()) {\n for (ResourceType rt : group.getResourceTypeCollection()) {\n if (!contains(resourceTypes, rt))\n resourceTypes.add(rt);\n }\n }\n return resourceTypes;\n }", "public String[] getTypes() {\n return impl.getTypes();\n }", "ResponseEntity<List<Type>> findTaskTypes();", "public List<APageComponentsType> getAPageComponentsTypes() {\r\n\t\treturn apctDao.findAll();\r\n\t}", "List<ReportType> findTypes();", "public List<Class<?>> getAllModelEnums() {\n\t\treturn ModelClasses.findModelEnums();\n\t}", "@Override\n public java.util.List<UserType> getUserTypesList() {\n return userTypes_;\n }", "@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }", "@NotNull\n @Generated\n @Selector(\"userActivities\")\n public native NSSet<? extends NSUserActivity> userActivities();", "UsedTypes getTypes();", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "public Set getTypeSet()\n {\n Set set = new HashSet();\n\n Iterator it = attTypeList.keySet().iterator();\n while (it.hasNext())\n {\n // Get key\n Object attrName = it.next();\n Object type = attTypeList.get(attrName);\n set.add(type);\n }\n return set;\n }", "public List<UserType> GetUserTypes() {\n/* 50 */ return this.userDal.GetUserTypes();\n/* */ }", "public List<Transactiontype> getAllTxnTypes()\r\n throws Exception {\r\n\r\n List<Transactiontype> txnTypeList = null;\r\n Session session = null;\r\n try {\r\n session = HibernateInit.sessionFactory.openSession();\r\n String sql = \"from Transactiontype as s order by Upper(s.description) asc\";\r\n Query query = session.createQuery(sql);\r\n txnTypeList = query.list();\r\n\r\n } catch (Exception e) {\r\n throw e;\r\n } finally {\r\n try {\r\n session.flush();\r\n session.close();\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n }\r\n return txnTypeList;\r\n }", "public List<CarrierType> all() throws EasyPostException {\n String endpoint = \"carrier_types\";\n\n CarrierType[] response = Requestor.request(RequestMethod.GET, endpoint, null, CarrierType[].class, client);\n return Arrays.asList(response);\n }", "public List getCourseTypes() throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getCourseTypes();\r\n }", "public ArrayList<Activity> getActivities(){\r\n return activities;\r\n }", "public List<MarketStateEntry> entries(final MarketEntry.Type type) {\n\t\treturn entries.all(type);\n\t}", "@Override\n\tpublic List<SubjectsType> findAll() {\n\t\ttry {\n\t\t\treturn subjectsTypeRepository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic List<TypeDocument> findAll() {\n\t\treturn typeDocumentRepository.findAll();\n\t}", "public List<String> getAvailableDataTypes() {\n Set<String> typeSet = new TreeSet<String>();\n\n ITimer timer = TimeUtil.getTimer();\n timer.start();\n\n try {\n for (Provider provider : DataDeliveryHandlers.getProviderHandler()\n .getAll()) {\n\n for (ProviderType type : provider.getProviderType()) {\n typeSet.add(type.getDataType().toString());\n }\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the provider list.\", e);\n }\n\n List<String> typeList = new ArrayList<String>(typeSet);\n timer.stop();\n\n return typeList;\n }", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public List<String> getAllDocumentTypes() {\n\t\tList<String> toReturn = new ArrayList<String>();\n\n\t\tint size = combBoxDocumentTypes.getItemCount();\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttoReturn.add((String) combBoxDocumentTypes.getItemAt(i));\n\t\t}\n\n\t\treturn toReturn;\n\t}", "public Timesheet[] getAll() {\n\t TypedQuery<Timesheet> query = em.createQuery(\"select c from Timesheet c\", Timesheet.class); \n\t java.util.List<Timesheet> categories = query.getResultList();\n\t Timesheet[] catarray = new Timesheet[categories.size()];\n\t for (int i=0; i < catarray.length; i++) {\n\t catarray[i] = categories.get(i);\n\t }\n\t return catarray;\n\t }", "public Set<String> getAvailableTypes() {\n return ApiSpecificationFactory.getTypes();\n }", "public java.util.List<VcmsArticleType> findAll();", "public List<TypeMetadata> getTypeMetadata() {\n return types;\n }", "@RequestMapping(value = \"/contracts/types\", method = RequestMethod.GET)\n public JsonListWrapper<String> listAllTypes() {\n Collection<String> items = ((ContractService) service).findAllInsuranceTypes();\n return JsonListWrapper.withTotal(items);\n }", "default List<TypeInfo> allTypes() {\n List<TypeInfo> allTypes = new LinkedList<>();\n allTypes.add(this);\n allTypes.addAll(Arrays.asList(interfaces()));\n allTypes.addAll(superClass().stream().flatMap(s -> s.allTypes().stream()).collect(Collectors.toList()));\n return allTypes;\n }", "public List<ProductType> getAllProductType() throws IWDaoException,\n\t\t\tIWServiceException;", "public List<Type> getTypeList() {\n\t\treturn sm.selectList(\"com.lanzhou.entity.Longpay.getTypeList\");\n\t}", "UserType[] getUserTypes();", "@Override\n @Transactional(readOnly = true)\n public List<WorkType> findAll() {\n log.debug(\"Request to get all WorkTypes\");\n return workTypeRepository.findAll();\n }", "public static ArrayList<TicketType> getAllTicketTypesData() {\n\t\tList list = null;\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\tlist = (ArrayList)SerializeDB.readSerializedObject(filename); //Read data\n\t\t\n\t\treturn (ArrayList<TicketType>) list;\n\t}", "public Set<RelationType> getRelationTypes();", "public List<EnvironmentTypes> selectEnvironmentTypes() {\n\n\t\tList<EnvironmentTypes> customers = new ArrayList<EnvironmentTypes>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from environment_types\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tEnvironmentTypes customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new EnvironmentTypes();\n\n\t\t\t\tcustomer.setName(resultSet.getString(1));\n\t\t\t\tcustomer.setDescription(resultSet.getString(2));\n\t\t\t\tcustomer.setAccept_tag(resultSet.getString(3));\n\t\t\t\tcustomer.setPromote_tag(resultSet.getString(4));\n\t\t\t\tcustomer.setAction(resultSet.getString(5));\n\t\t\t\tcustomer.setRestart_interval(resultSet.getInt(6));\n\t\t\t\tcustomer.setQuiet_period(resultSet.getInt(7));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "public ArrayList<GameType> getGameTypes()\r\n {\r\n\treturn new ArrayList<GameType>(gameTypes);\r\n }", "List<ResourceType> resourceTypes();", "public List<ContestType> getAllContestTypes() throws ContestManagementException {\n return null;\r\n }", "public List<ContestType> getAllContestTypes() throws ContestManagementException {\n return null;\r\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }", "@Override\r\n\tpublic List<ApplicationStatus> getApplicationStatuses() {\n\t\treturn entityManager.createQuery(\"from ApplicationStatus\", ApplicationStatus.class).getResultList();\r\n\t}", "@Override\n\tpublic List<String> getAllTransactionType() {\n\t\treturn null;\n\t}", "public Type[] types();", "@Override\r\n\tpublic List<HouseType> queryAllHtype() {\n\t\treturn adi.queryAllHtype();\r\n\t}", "public static Collection<AttributeType> findAll( )\n {\n return _dao.selectDocumentAttributeTypeList( );\n }", "@Override\n @Transactional(readOnly = true)\n public List<ProjectTypeId> findAll() {\n log.debug(\"Request to get all ProjectTypeIds\");\n return projectTypeIdRepository.findAll();\n }", "List<TransactionType> listAgentTransactionTypes();", "@ModelAttribute(\"companyTypesList\")\n\tpublic List<CompanyType> companyTypesList() {\n\t\treturn companyService.findAllCompanyType();\n\t}", "@Override\n\tpublic List<Kind> findAll() {\n\t\treturn kindDao.findAll();\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "public List<ModelType> findAllModelTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?modelType WHERE {?modelType rdfs:subClassOf onto:ModelType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllModelTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ModelType> list = new ArrayList<ModelType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tModelType modelType = new ModelType();\r\n\t\t\t\tif (jsonObject.has(\"modelType\")) {\r\n\t\t\t\t\tmodelType.setModelTypeName(jsonObject.getJSONObject(\"modelType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(modelType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<T> getAll() {\n\t\tList<?> result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.list();\n\t\treturn result.stream()\n\t\t\t\t.map(e -> initialize(checkType(e)))\n\t\t\t\t.filter(e -> e != null)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Transactional\r\n\tpublic List getAllTypeMaterial() {\n\t\treturn typematerialdao.getAllTypeMaterial();\r\n\t}", "public List<Class<?>> getAllModelEntities() {\n\t\treturn ModelClasses.findModelClassesWithInterface(IEntityType.class);\n\t}", "public List<OperationType> getOperationTypeList() {\r\n List<OperationType> operationType = new ArrayList<OperationType>();\r\n \r\n try{\r\n init();\r\n \r\n // Start UOC\r\n OperationTypeDao operationTypeDao = new OperationTypeDao(conn);\r\n operationType = operationTypeDao.searchAll();\r\n // End UOC\r\n\r\n } catch (Exception e) {\r\n handleException(e);\r\n } finally {\r\n finish();\r\n }\r\n \r\n return operationType;\r\n }" ]
[ "0.67342484", "0.66360074", "0.644686", "0.62736595", "0.62414545", "0.6124087", "0.60612726", "0.6002856", "0.6002793", "0.59568816", "0.5925933", "0.5861726", "0.5857171", "0.5852255", "0.58223593", "0.58055174", "0.5798375", "0.57823706", "0.56947774", "0.5652373", "0.56517136", "0.56499004", "0.5639937", "0.5612514", "0.5600463", "0.55978155", "0.55956453", "0.55907106", "0.55802006", "0.55774546", "0.55608803", "0.555126", "0.5513294", "0.5495459", "0.54793143", "0.5462152", "0.5453797", "0.54514444", "0.5448067", "0.5434838", "0.54300606", "0.5417773", "0.5415577", "0.54141915", "0.5411301", "0.5402026", "0.5393809", "0.5388334", "0.5368481", "0.5361996", "0.53549325", "0.5353291", "0.5332012", "0.5331186", "0.53251636", "0.531977", "0.531687", "0.53068864", "0.53035474", "0.52973074", "0.52894104", "0.5286782", "0.52731276", "0.5266419", "0.5265236", "0.5260698", "0.5260431", "0.52425396", "0.5240513", "0.5240308", "0.5238441", "0.52375", "0.52371895", "0.52327573", "0.52268636", "0.5226453", "0.522516", "0.5224997", "0.5201273", "0.5198635", "0.5190356", "0.5186251", "0.5186251", "0.51853925", "0.51822597", "0.5168809", "0.5168149", "0.51641315", "0.51586807", "0.5157624", "0.5153516", "0.51427525", "0.5140823", "0.51291555", "0.51285315", "0.512232", "0.5120969", "0.51129955", "0.51129305", "0.5112117" ]
0.7213785
0
Retrieve all Users from the data store.
Collection<User> getUsers() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}", "@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}", "public List<User> retrieveAllUsers() {\n\t\treturn (List<User>) userRepository.findAll();\n\t}", "public List<User> getAll() {\n\t\treturn service.getAll();\n\t}", "@Override\n\tpublic List<User> getAllUsers() {\n\t\tlog.info(\"get all users!\");\n\t\treturn userRepository.findAll();\n\t}", "public List<User> findAll() {\n return store.findAll();\n }", "@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "public List<Users> getAllUsers() {\r\n\t\t// return usDao.findAll();\r\n\t\treturn usDao.getAllUsers();\r\n\t}", "@Override\n\tpublic Iterable<com.example.demo.model.User> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\r\n\tpublic List<User> findAllUsers() {\n\t\treturn userDAO.findAllUsers();\r\n\t}", "public List<User> getAllUsers() {\n return users;\n }", "@Override\n public ObservableList<User> getAllUsers() {\n return controller.getAllUsers();\n }", "public List<User> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}", "public Collection<User> getAll() throws DataPersistenceException\n {\n PersistenceManagerFactory pmfInstance = PMFHolder.get();\n PersistenceManager pm = pmfInstance.getPersistenceManager();\n try\n {\n List<User> users = new ArrayList<User>();\n\n Extent<User> extent = pm.getExtent(User.class, true);\n for (User user : extent)\n users.add(user);\n extent.closeAll();\n\n return users;\n }\n catch (Throwable e)\n {\n throw new DataPersistenceException(e.getLocalizedMessage(), e);\n }\n finally\n {\n pm.close();\n }\n }", "public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }", "@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}", "@GetMapping(\"/users\")\n\tpublic List<User> retrieveAllUsers() {\n\t\treturn userService.findAll();\n\t}", "@Override\n\tpublic List<UserEntity> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}", "Iterable<User> getAllUsers();", "@Override\n\tpublic ArrayList<User> getAll() {\n\t\treturn this.users;\n\t}", "public List<User> getAllUsers() {\n\t\tTypedQuery<User> query = em.createNamedQuery(\"User.findAll\", User.class);\n\n\t\tList<User> result = query.getResultList();\n\t\tlog(\"got all users, result size: \" + result.size());\n\t\treturn result;\n\t}", "@Override\n\tpublic ArrayList<User> findAll() {\n\t\t\n\t\treturn userDao.querydAll();\n\t}", "public List<User> getAllUsers();", "public List getAllUsers();", "public List<TbUser> getAllUsers() {\n return userRepository.findAll();\n }", "public static Iterable<Entity> getAllUsers() {\r\n Iterable<Entity> entities = Util.listEntities(\"User\", null, null);\r\n return entities;\r\n }", "public void getAllUsers() {\n\t\t\n\t}", "@Override\n public List<User> getAllUsers() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n List<User> hiberusers =\n session.createQuery(\"From User\").list();\n tx.commit();\n session.close();\n return hiberusers;\n }", "@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}", "@GetMapping(path=\"/all\")\n\tpublic @ResponseBody Iterable<User> getAllUsers() {\n\t\t// This returns a JSON or XML with the users\n\t\treturn userRepository.findAll();\n\t}", "public static List<User> getAllUsers(){\n\t\t// getting all users\n\t\treturn dao.getAllUsers();\n\t}", "public List<User> getAllUsers(){\n return userRepository.findAll();\n }", "@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}", "public ArrayList<User> getAllUsers() {\n return allUsers;\n }", "public RealmResults<User> getUsers() {\n\n return realm.where(User.class).findAll();\n }", "@Override\n\tpublic List<User> getUsers() {\n\t\treturn mongoTemplate.findAll(User.class);\n\t}", "public List<User> getAllUsers() {\n\t\treturn userDao.getAllUsers();\n\t}", "@Override\n\tpublic Collection<Users> read() {\n\t\treturn userDAO.readAll();\n\t}", "public ArrayList<User> getAllUsers() {\n return profile.getAllUsers();\n }", "List<User> getAllUsers();", "List<User> getAllUsers();", "@Override\n\tpublic List<ERS_USERS> getAll() {\n\t\treturn null;\n\t}", "public List<User> findAll() \n\t{\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORE.USERS\";\n\t\t\n\t\t// Instantiate a new list of Users.\n\t\tList<User> userList = new ArrayList<User>();\n\t\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\tuserList.add(new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\")));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn userList;\n\t}", "public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }", "@GetMapping(path = \"\")\n\tpublic @ResponseBody Iterable<ApplicationUser> getAllUsers() {\n\t\treturn userService.getUsers();\n\t}", "public UserRow[] getAllUsers() throws AdminPersistenceException {\n return (UserRow[]) getRows(SELECT_ALL_USERS).toArray(new UserRow[0]);\n }", "@Override\n public Users getUsers() throws UserException {\n Users users = new Users();\n log.debug(\"getUsers\");\n User user = null;\n ResultSet result;\n Connection conn = null;\n PreparedStatement stm = null;\n try {\n conn = provider.getConnection();\n\n stm = conn.prepareStatement(GET_ALL_USERS);\n result = stm.executeQuery();\n\n while (result.next()) {\n user = buildUserFromResult(result);\n log.debug(\"User found {}\", user);\n users.add((DataUser) user);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n throw new UserException(e.getMessage());\n\n } finally {\n try {\n stm.close();\n conn.close();\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n return users;\n }", "@GetMapping(path = \"/all\")\n public @ResponseBody\n Iterable<User> getAllUsers() {\n LOG.info(\"Displays all the users from the database\");\n return userRepository.findAll();\n }", "public List<User> getAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List All() {\n\t\treturn new userDaoImpl().All();\n\t}", "@Override\r\n\tpublic List<Users> findAll() {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Users\").list();\r\n\t}", "@Override\n\tpublic Iterable<User> getAllUser() {\n\t\treturn userRepository.findAll();\n\t}", "@RequestMapping(method = RequestMethod.GET)\n\tpublic List<User> getAll() {\n\t\tList<User> users = dao.getAll();\n\t\treturn users;\n\t}", "public List<User> findAll() {\n\t\treturn users;\n\t}", "public Collection<User> getAllUser() {\n\t\treturn this.userDao.getUsers();\r\n\t}", "@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "@Override\n\tpublic List<User> findAll() {\n\t\treturn this.userMapper.findAll();\n\t}", "public List<User> getAllUsers() {\n\t\treturn null;\n\t}", "public List<User> getAllUsers() {\n List<User> users = null;\n Session session = null;\n try {\n session = openSession();\n users = session.createCriteria(User.class).list();\n } catch (HibernateException he) {\n logger.error(\"Hibernate Exception: \" + he);\n } catch (Exception e) {\n logger.error(\"Exception: \" + e);\n } finally {\n if (session != null) {\n session.close();\n }\n }\n return users;\n }", "public List<User> findAll() {\n return userRepository.findAll();\n }", "@Override\n\tpublic List<User> getAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<User> getAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<User> findAll() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\n\tpublic List<Login> findAllUsers() {\n\t\treturn userRepo.findAll();\n\t}", "public List<User> findUsers() {\n\t\treturn userRepository.findUsers();\n\t}", "public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}", "@Override\n public List<User> findAll() throws DaoException {\n log.info(\"Get all users\");\n return userDao.findAll();\n }", "public List<User> getAllUsers() {\n\t\tfactory = new Configuration().configure().buildSessionFactory();\n\t\tsession = factory.getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from User\");\n\t\tList<User> list = query.getResultList();\n\t\tsession.close();\n\t\treturn list;\n\n\t\t\n\t}", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "public List<User> getAllUsers() {\n\t\tLog.i(TAG, \"return all users list.\");\n\t\tList<User> result = new ArrayList<User>();\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString getUsers = \"select * from \" + TABLE_USER;\n\t\tCursor cursor = db.rawQuery(getUsers, null);\n\t\tfor (cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()) {\n\t\t\tUser user = new User(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\t\tresult.add(user);\n\t\t}\n\t\treturn result;\n\t}", "public static List<UserDB> getAllUsers() {\n\n\t\tUserDB newUser = new UserDB();\n\n\t\treturn newUser.getAllUsers();\n\t}", "@Override\n\tpublic List<User> findAllUsers() {\n\t\treturn userRepo.findAll();\n\t}", "public List<YuserVO> getAllUsers() {\n\t\tList<YuserVO> list = null;\n\t\t\ttry {\n\t\t\t\tlist = userDao.getAllUsers();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"get users failed ..................................\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn list;\n\t}", "@GetMapping\n public List<User> getAllUsers() {\n return userService.getAllUsers();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> getUsers() \r\n\t{\n\t\tSession session = sessionFactory.getCurrentSession();\r\n String sql = \"select * from users\";\r\n Query query = session.createSQLQuery(sql).addEntity(User.class);\r\n\t\tSystem.out.println(\"getUsers list is : \" + query.list().size());\r\n\t\treturn query.list();\r\n\t}", "@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}", "@Override\n\tpublic List<User> findAllUser() {\n\t\treturn userDao.findAllUser();\n\t}", "@RequestMapping(value = \"/getAll\", method = RequestMethod.GET)\n public ResponseEntity getAllUsers() {\n List<User> users = userService.getAllUsers();\n if (CollectionUtils.isEmpty(users)) {\n return new ResponseEntity(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity(users, HttpStatus.OK);\n }", "public List<UserData> list() {\n\t\treturn userDAO.list();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public Function<Session, List<User>> getAll() {\n return this.functionTransaction(\n session -> session.createQuery(\"from User\").list()\n );\n }", "public List<User> getAllUsers() {\n\t\tList<User> users = new ArrayList<User>();\n\t\tString selectQuery = \"SELECT * FROM \" + UserDataSource.TABLE_USERS;\n\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tCursor c = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (c.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tUser user = UserDataSource.cursorToUser(c);\n\n\t\t\t\t// adding to list\n\t\t\t\tusers.add(user);\n\t\t\t} while (c.moveToNext());\n\t\t}\n\n\t\treturn users;\n\t}", "@Override\n public List<User> findAll() {\n return dao.findAll();\n }", "@Override\n\tpublic List<User> selectAllUser() {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectAllUser\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}", "public static List<User> all() \n {\n return find.all();\n }", "public List<User> allUserRecords() {\n\t\tSystem.out.println(\"Calling getAllUserRecords() Method To Fetch Users Record\");\t\n\t\tList<User> userList = userDAO.listUser();\n\t\treturn userList;\n\t}", "@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@GetMapping(path=\"/all\")\n\tpublic @ResponseBody Iterable<Resource> getAllUsers() {\n\t\treturn resourceRepository.findAll();\n\t}", "@Transactional(readOnly = true)\r\n\t@Override\r\n\tpublic List<Users> findAll() {\n\t\treturn um.selectByExample(null);\r\n\t}", "List<User> fetchAllUSers();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> findAllUsers() {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.addOrder(Order.asc(\"firstname\")).setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);\r\n\t\tList<User> users = (List<User>)crit.list();\r\n\t\treturn users;\r\n\t}", "@Override\n\tpublic List<User> getAllUser() {\n\t\treturn uDao.getAllUser();\n\t}", "@GetMapping(path = \"/all\")\n\tpublic @ResponseBody Iterable<SFDC> getAllUsers() {\n\t\treturn sfdcRepository.findAll();\n\t}", "@Override\n\tpublic List<User> FetchAll() {\n\t\treturn null;\n\t}", "@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}", "public synchronized List<User> getAllUsers() {\r\n\t\treturn new ArrayList<User>(mapping.values());\r\n\t}", "List<User> getUsers();", "List<User> getUsers();", "@Override\n\t@Transactional(readOnly = true)\n\tpublic List<UserDto> getUsers() {\n\n\t\tList<UserEntity> userEntities = userRepository.findAll();\n\t\tList<UserDto> userDTOs = new ArrayList<>();\n\n\t\tfor (UserEntity u : userEntities)\n\t\t\tuserDTOs.add(etd.getUser(u));\n\t\treturn userDTOs;\n\n\t}", "public LiveData<List<User>> getAllUsers() {\n return allUsers;\n }" ]
[ "0.82363784", "0.82084155", "0.8195029", "0.8179039", "0.81773424", "0.8166523", "0.81012374", "0.80975765", "0.8082921", "0.8049721", "0.8047786", "0.80439925", "0.80342567", "0.80275804", "0.8006499", "0.7996565", "0.7996212", "0.79908466", "0.79805404", "0.79602695", "0.7949101", "0.7946569", "0.79413706", "0.79409385", "0.7933973", "0.79288596", "0.7922163", "0.7894348", "0.7886784", "0.78636897", "0.78635186", "0.7862529", "0.78548944", "0.78452486", "0.7840863", "0.78328186", "0.7825811", "0.7823591", "0.78226584", "0.78091353", "0.7804761", "0.7804761", "0.77938175", "0.77922773", "0.77634656", "0.7761796", "0.7751874", "0.775125", "0.77390474", "0.77373266", "0.7722532", "0.7707219", "0.7694837", "0.7680982", "0.76778257", "0.7674815", "0.7674282", "0.7656387", "0.76459974", "0.7644001", "0.7642084", "0.7640505", "0.7634288", "0.7634288", "0.7627537", "0.76261806", "0.7619241", "0.7618236", "0.7616441", "0.7616276", "0.76021445", "0.75999475", "0.7598426", "0.75971997", "0.75959975", "0.7594021", "0.7593555", "0.7591799", "0.75756985", "0.7573254", "0.7571046", "0.75658864", "0.75645196", "0.7564148", "0.7558679", "0.7557231", "0.7551052", "0.75504893", "0.75467765", "0.7546189", "0.75421613", "0.7537961", "0.75345856", "0.7531722", "0.753146", "0.7519369", "0.7515424", "0.7507133", "0.7507133", "0.75035197", "0.7502862" ]
0.0
-1
Retrieve all instructors from the data store.
Collection<User> getInstructors() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProxyList<Instructor> getInstructors() {\n return instructors;\n }", "public Set<InstructorAccountDetails> getAllInstructors() throws SQLException {\n Set<String> instructorUserNames = Sets.newHashSet();\n\n try (Connection connection = getConnection()) {\n int accountTypeId = getAccountTypeId(Account.AccountType.TEACHER, connection);\n\n String query =\n \"SELECT \" +\n \"username \" +\n \"FROM account \" +\n \"WHERE account_type_id=?\";\n\n PreparedStatement ps = connection.prepareCall(query);\n ps.setInt(1, accountTypeId);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n instructorUserNames.add(rs.getString(\"username\"));\n }\n\n return instructorUserNames.stream()\n .map(username -> {\n try {\n return getInstructor(username, connection);\n } catch (SQLException e) {\n throw new RuntimeException(\"Unable to get instructors\");\n }\n })\n .filter(instructor -> instructor != null)\n .collect(Collectors.toSet());\n }\n\n }", "public List<Teaching> getInstructorsCourses() throws SQLException {\n\t\tTeaching teaching = null;\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet result = null;\n\t\tList<Teaching> teachings = new ArrayList<Teaching>();\n\t\t\n\t\ttry {\n\t\t\tconn = OracleConnection.getConnection();\n stmt = conn.prepareStatement(OracleQueries.GETAllINSTRUCTORFROMTEACHING);\n result = stmt.executeQuery();\n \n while(result != null && result.next()){\n \tteaching = new Teaching();\n \tteaching.setCourse_name(result.getString(1));\n \tteaching.setMinimum_gpa(result.getDouble(2));\n \tteaching.setFull_name(result.getString(3));\n \tteaching.setEmail(result.getString(4));\n \t\n \tteachings.add(teaching);\n }\n\t\t\t\n\t\t} catch (ClassNotFoundException | IOException | SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n result.close();\n if(stmt != null){\n stmt.close();\n }\n if(conn != null){\n conn.close();\n }\n }\n\t\t\n\t\treturn teachings;\t\n\t}", "@Override\n public List<Course> getCourses() {\n return courseDao.findAll();\n }", "@Override\r\n\tpublic List<Courses> getCourses() {\n\t\treturn coursesdao.findAll();\r\n\t}", "@Override\n\tpublic List<Course> findAllCourses() {\n\t\tList<Course> list = cd.findAllCourses();\n\t\tif (null == list)\n\t\t\tlist = new ArrayList<Course>();\n\t\treturn list;\n\t}", "@Override\n public List<ArrayList<String>> queryInstructor(Token token, int instructorID) {\n // TODO Auto-generated method stub\n return null;\n }", "public List<Course> getAllCourses() {\n return allCourses;\n }", "@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Override\r\n\tpublic List<Employer> getAll() {\n\t\treturn employerDao.findAll();\r\n\t}", "public List<Autor> getAll() {\n return repo.getAll();\n }", "List<Student> getAll() {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t// hibernate.cfg.xml\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// session = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = null;\n\t\ttry {\n\t\t\ttx = session.beginTransaction();\n\t\t\tList data = session.createQuery(\"FROM Student\").list();\n\t\t\tfor (Iterator iterator = data.iterator(); iterator.hasNext();) {\n\t\t\t\tStudent st = (Student) iterator.next();\n\t\t\t\tSystem.out.print(\"Student ID: \" + st.getStudentId());\n\t\t\t\tSystem.out.print(\" Last Name: \" + st.getName());\n\t\t\t\tSystem.out.println(\" Address: \" + st.getAddress());\n\t\t\t}\n\t\t\ttx.commit();\n\t\t\treturn data;\n\t\t} catch (HibernateException e) {\n\t\t\tif (tx != null)\n\t\t\t\ttx.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn null;\n\t}", "@Transactional\r\n\t@Override\r\n\tpublic List<Authorities> list() {\r\n\t\tList<Authorities> list = null;\r\n\t\ttry {\r\n\t\t\tlist = new ArrayList<Authorities>();\r\n\t\t\tQuery<Authorities> query = sessionFactory.getCurrentSession().createQuery(\"from Authorities\");\r\n\t\t\tlist = query.getResultList();\r\n\t\t}catch(HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "@Override\r\n\tpublic List<Student> getAllStudents() {\n\t\treturn studentRepository.findAll();\r\n\t}", "@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}", "public static ArrayList<Course> getAll() {\n return courses;\n }", "public StudentDataBase getStudents() {\n return students;\n }", "public Set<Course> getCoursesWithInstructor(UserProfile instructor)\n\t{\n\t\tSet<Course> rVal = null;\n\n\t\tif ((instructor.getPermLevel() >= UserProfile.TA) && (instructor.getPermLevel() <= UserProfile.ADMIN))\n\t\t{\n\t\t\trVal = new HashSet<Course>();\n\n\t\t\tfor (Connector e : network)\n\t\t\t{\n\t\t\t\tif (e.relationship == COURSE_INSTRUCTOR_RELATIONSHIP)\n\t\t\t\t{\n\t\t\t\t\tif (e.person.equals(instructor))\n\t\t\t\t\t{\n\t\t\t\t\t\trVal.add(getCourse(e.courseCRN));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rVal;\n\t}", "@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Course> getAllCourse() {\n\t\treturn (List<Course>) sessionFactory.getCurrentSession().createCriteria(Course.class).list();\n\t}", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }", "public Collection<? extends Course> findAll() {\n\t\treturn crepo.findAll();\r\n\t}", "@Override\n public ArrayList<Course> getAll() {\n ArrayList<Course> allCourses = new ArrayList();\n String statement = FINDALL;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAll()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return allCourses;\n }", "public List<User> findAll() {\n return store.findAll();\n }", "@Transactional\n\tpublic List<University> listAllUniversity() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<University> criteriaQuery = builder.createQuery(University.class);\n\t\tRoot<University> root = criteriaQuery.from(University.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<University> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}", "public List<Author> fetchAllAuthors() {\n\t\tEntityManager entityManager = factory.createEntityManager();\n\t\tTypedQuery<Author> query = entityManager.createQuery(\"from Author\", Author.class);\n\t\tList<Author> authors = query.getResultList();\n\t\tentityManager.close();\n\t\treturn authors;\n\t}", "@RequestMapping(\"/courses\")\n\tpublic List<Course> getAllCourses() {\n\t\treturn courseService.getAllCourses();\n\t}", "@Override\n\tpublic List<Teacher> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Secured(\"ROLE_ADMIN\")\n\t@RequestMapping(method = RequestMethod.GET)\n\tpublic Iterable<SubjectEntity> getAllSubjects() {\n\treturn subjectRepository.findAll();\n\t}", "@Override\r\n\tpublic Collection<Student> findAll() {\n\t\treturn null;\r\n\t}", "public List<Course> getCourses() {\n\t\tList<Course> courses = new ArrayList<Course>();\n\t\tfor (Registration reg : registrations) {\n\t\t\tcourses.add(reg.getIndex().getCourse());\n\t\t}\n\t\treturn courses;\n\t}", "@Override\n\tpublic List<TeacherCourseView> findAll() {\n\t\treturn cd.findAllTeaCourInfo();\n\t}", "@Override\n\tpublic List<Autor> findAllAutor() {\n\t\treturn _autorDao.findAllAutor();\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<OrganizerDTO> findAll() {\n log.debug(\"Request to get all Organizers\");\n return organizerRepository.findAll().stream()\n .map(organizerMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@GetMapping(\"/showAllCourses\")\n\tpublic List<Courses> allcourses() throws CoursesNotFoundException {\n\t\ttry {\n\t\t\treturn courseService.allCourse();\n\t\t} catch (CoursesNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new CoursesNotFoundException(\"No courses\");\n\t\t}\n\t}", "@Override\n\tpublic List<Staff> all() {\n\t\treturn staffMapper.all();\n\t}", "Iterable<User> getAllUsers();", "@Override\n\tpublic List<ERS_USERS> getAll() {\n\t\treturn null;\n\t}", "@Transactional(readOnly = true)\n public List<Exam> findAll() {\n log.debug(\"Request to get all Exams\");\n return examRepository.findAll();\n }", "@Transactional\n\t@Override\n\tpublic List<ApplicantModel> viewAllApplicants() {\n\t\treturn applicantRepo.findAll().stream().map(course -> parser.parse(course))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public ArrayList<Student> getAllStudents()\n {\n Cursor cursor = sqlServices.getData(USER_TABLE, null, USER_IS_TEACHER + \" = ?\",\n new String[]{\"0\"});\n return getStudentFromCursor(cursor);\n }", "@Override\n\tpublic List<Teacher> getAll() {\n\t\treturn null;\n\t}", "@Nonnull @NonnullElements @Live public Collection<String> getAuthorities() {\n return authorities;\n }", "@Override\n\tpublic List<Employee> getAll() {\n\t\tList<Employee> list =null;\n\t\tEmployeeDAO employeeDAO = DAOFactory.getEmployeeDAO();\n\t\ttry {\n\t\t\tlist=employeeDAO.getAll();\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\treturn list;\n\t}", "@Override\n\tpublic List<Course> getAllCourses() {\n\t\tList<Course> list = null;\n\t\tconn = DBUtils.connectToDb();\n\t\tCourse course = null;\n\t\tString query = \"select * from course;\";\n\t\ttry {\n\t\t\tst = conn.createStatement();\n\t\t\trs = st.executeQuery(query);\n\t\t\tif(rs!=null)\n\t\t\t{\n\t\t\t\tlist = new ArrayList<Course>();\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tcourse = new Course();\n\t\t\t\t\tcourse.setCourse_id(Integer.parseInt(rs.getString(1)));\n\t\t\t\t\tcourse.setCourse_name(rs.getString(2));\n\t\t\t\t\tcourse.setStart_date(rs.getString(3));\n\t\t\t\t\tcourse.setEnd_date(rs.getString(4));\n\t\t\t\t\tcourse.setCapacity(Integer.parseInt(rs.getString(5)));\n\t\t\t\t\tlist.add(course);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override\n\tpublic List<Employee> GetAll() {\n\t\t\n\t\tList<Employee> staff = new ArrayList<>();\n\t\tString sql = \"select * from Staff;\";\n\n\t\ttry {\n\t\t\tConnection c = ConnectDB.getHardCodedConnection();\n\t\t\tStatement s = c.createStatement();\n\t\t\tResultSet rs = s.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tString EmployeeName = rs.getString(\"Emp_name\");\n\t\t\t\tString EmployeeUserName = rs.getString(\"Emp_usrnme\");\n\t\t\t\tString EmployeePassword = rs.getString(\"Emp_psword\");\n\t\t\t\tInteger EmployeeRank = rs.getInt(\"Emp_rank\");\n\t\t\t\tstaff.add(new Employee(EmployeeName, EmployeeUserName,EmployeePassword,EmployeeRank));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn staff;\n\t}", "@Transactional\n public List<CourseDTO> findAll() {\n List<CourseDTO> courseList = new ArrayList<>();\n Iterable<Course> courseIter = courseDAO.findAll();\n for (Course course : courseIter) {\n CourseDTO courseDTO = courseMapper.mapFromCoursetoCourseDTO(course);\n courseList.add(courseDTO);\n }\n return courseList;\n }", "public List<String> getAll() {\n\treturn employeeService.getAll();\n }", "@GetMapping(\"/courses\")\n\tpublic List<Courses> getAllCourses() {\n\t\treturn this.cservice.getAllCourses();\n\t\t//return course;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Course> getAllCourses() {\n\t\treturn this.getHibernateTemplate().find(\"from Course cs order by cs.cno\");\n\t \n\t}", "Collection<User> getStaffs() throws DataAccessException;", "@Override\r\n\tpublic List<Employe> getEmployes() {\n\t\treturn dao.getEmployes();\r\n\t}", "@RequestMapping(value=\"/locations\", method=RequestMethod.GET)\n\t@ResponseBody\n\tpublic Iterable<Location> getLocations(){\n\t\treturn lr.findAll();\n\t}", "@Override\r\n\tpublic Set<Course> getAllCources() throws SQLException {\n\t\tSet<Course> courses = new HashSet<Course>();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"Select * from course\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tCourse course = new Course();\r\n\t\t\tcourse.setIdCourse(resultSet.getInt(\"idCourse\"));\r\n\t\t\tcourse.setDecription(resultSet.getString(\"decription\"));\r\n\t\t\tcourse.setDuration(resultSet.getString(\"duration\"));\r\n\t\t\tcourse.setName(\"name\");\r\n\t\t\tcourse.setPrerequisites(\"prerequisites\");\r\n\t\t\tcourses.add(course);\r\n\t\t}\r\n\t\treturn courses;\r\n\t}", "@Override\n\tpublic List<Admin> getAdmins() {\n\t\treturn ar.findAll();\n\t}", "public List<Employee> getAll() {\n\t\treturn edao.listEmploye();\n\t}", "public ArtistSet getArtists() {\n\t\treturn restTemplate.getForObject(embyUrl + \"/\"+ EmbyUrlConstants.ARTISTS, ArtistSet.class);\n\t}", "@Override\n public List<Location> getAll() {\n\n List<Location> locations = new ArrayList<>();\n \n Query query = new Query(\"Location\");\n PreparedQuery results = ds.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n double lat = (double) entity.getProperty(\"lat\");\n double lng = (double) entity.getProperty(\"lng\");\n String title = (String) entity.getProperty(\"title\");\n String note = (String) entity.getProperty(\"note\");\n int voteCount = ((Long) entity.getProperty(\"voteCount\")).intValue();\n String keyString = KeyFactory.keyToString(entity.getKey()); \n // TODO: Handle situation when one of these properties is missing\n\n Location location = new Location(title, lat, lng, note, voteCount, keyString);\n locations.add(location);\n }\n return locations;\n }", "@Override\n\t@Transactional\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t//create query\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\n\t\t//execute query\n\t\tList<Employee> employees = theQuery.getResultList();\n\t\t\n\t\t//currentSession.close();\n\t\t\n\t\treturn employees;\n\t}", "@Override\n @Transactional\n public List<Patient> allPatients() {\n return patientDAO.allPatients();\n }", "public static ArrayList<AdminAccounts> getUsers() {\n return users;\n }", "@Transactional(propagation = Propagation.REQUIRED, value = \"jamiTransactionManager\", readOnly = true)\n public Iterator<Experiment> iterateAll() {\n return new IntactQueryResultIterator<Experiment>((ExperimentService) ApplicationContextProvider.getBean(\"experimentService\"));\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic List<Census> retrieveAll()\n\t{\n\t\t\n\t\topen();\n\t\tList<Census> list=new LinkedList<Census>();\n\t\ttry\n\t\t{\n\t\t\tQuery query=DB.query();\n\t\t\tquery.constrain(Census.class);\n\t\t\t\n\t\t\tObjectSet result =query.execute();\n\t\t\t\n\t\t\twhile(result.hasNext())\n\t\t\t{\n\t\t\t\tlist.add((Census)result.next());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<Subjects> getListAll() {\n\t\treturn subectsDao.getListAll();\r\n\t}", "@GetMapping\n\tpublic List<UniversityStaffMember> viewAllStaffs() {\n\t\tList<UniversityStaffMember> list = universityService.viewAllStaffs();\n\t\tif (list.size() == 0)\n\t\t\tthrow new EmptyDataException(\"No University Staff in Database.\");\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<Emp> getAll() {\n\t\treturn null;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Manager> findAllManagers() {\n\t\treturn this.managerRepository.findAll();\n\t}", "public List<Teacher> getTeachers() {\n\t\tList<Teacher> teachers = this.hibernateTemplate.loadAll(Teacher.class);\n\t\treturn teachers;\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "public List<Organization> getAll() throws SQLException {\n\t\tlogger.info(\"[Organization] get\");\n\t\treturn organizationDao.queryForAll();\n\t}", "@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}", "@Override\n\tpublic ArrayList<User> getAll() {\n\t\treturn this.users;\n\t}", "@PostConstruct\r\n public void leerListaUsuarios() {\r\n listaUsuarios.addAll(usuarioFacadeLocal.findAll());\r\n }", "@Override\r\n\tpublic Students findStudents() {\n\t\treturn null;\r\n\t}", "List<Student> getAllStudents();", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}", "public Iterable<StudentQualificationOrgDetail> getOrganizationData(){\n\t\t\n\t\treturn sqcOrgRepository.findAll();\n\t}", "public ArrayList<Student> getStudents()\n {\n return students;\n }", "public List<Student> getAllStudents() throws IOException {\n\t\tstudentList = studentListGenerator.generateList(\"StudentList.txt\");\n\t\treturn studentList;\n\t}", "static List<Student> getStudents() {\n return students;\n }", "public void getAllUsers() {\n\t\t\n\t}", "@Override\n public List<Article> getArticles() {\n List<Article> articles=articleDAO.getArticles();\n knownArticles.addAll(articles);\n return articles;\n }", "public List<Student> selectStudentAll() {\n\t\treturn this.studentMaper.selectStudentAll();\r\n\t}", "public ArrayList<Athlete> getAllAthletes() {\n populateData();\n return athletes;\n }", "@Override\r\n\tpublic List<Student> getAllStudent() {\n\t\treturn sdao.getAllStudent();\r\n\t}", "@GetMapping(path=\"/getall\")\r\n\tpublic @ResponseBody Iterable<MyClass> getAllAdmins() {\n\t\treturn classRepository.findAll();\r\n\t}", "@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}", "public java.util.List<com.ms3.training.services.model.Course> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\r\n\tpublic List<Employee> findAllEMployees() {\n\t\tList<Employee> employees = new ArrayList<Employee>();\r\n\t\tString findData = \"select * from employee\";\r\n\r\n\t\ttry {\r\n\t\t\tStatement s = dataSource.getConnection().createStatement();\r\n\r\n\t\t\tResultSet set = s.executeQuery(findData);\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tString name = set.getString(1);\r\n\t\t\t\tint id = set.getInt(\"empId\");\r\n\t\t\t\tint sal = set.getInt(\"salary\");\r\n\t\t\t\tString tech = set.getString(\"technology\");\r\n\t\t\t\tEmployee employee = new Employee(id, sal, name, tech);\r\n\t\t\t\temployees.add(employee);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn employees;\r\n\r\n\t}", "public String getAuthorities() {\n return authorities;\n }", "@RequestMapping(method = RequestMethod.GET)\n public final Iterable<Entry> list() {\n Iterable<Entry> result = SecurityUtils.actualUser().getEntries();\n if (result == null) {\n result = Collections.emptyList();\n }\n return result;\n }", "@Override\n\tpublic List<Grade> findAll() {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\tList<Grade> grades=gradeDAO.selectAll();\n\t\treturn grades;\n\t}", "public List<Employee> list() {\n\t\t\treturn employees;\n\t\t}", "public Instructor findById(long id) {\n\t\treturn this.instructorRepository.findOne(id);\n\t}", "@GetMapping(\"/courses\")\r\n\tpublic List<Courses> getCourses() {\r\n\t\treturn this.cs.getCourses();\r\n\r\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}", "@Override\n\tpublic List<Users> listTeacher() {\n\t\treturn genericDAO.listTeacher();\n\t}" ]
[ "0.7173098", "0.71384317", "0.6226661", "0.61149764", "0.6006039", "0.57879794", "0.57380146", "0.5685784", "0.5624058", "0.5623511", "0.5606176", "0.55952054", "0.55928844", "0.55848956", "0.5566178", "0.55466604", "0.55465776", "0.5492435", "0.548516", "0.5477371", "0.54639006", "0.54560196", "0.54434174", "0.54417497", "0.5441427", "0.5440672", "0.5426174", "0.5372365", "0.5367401", "0.53423154", "0.5342304", "0.5312991", "0.53055173", "0.5302363", "0.5296604", "0.5295769", "0.5286454", "0.5277064", "0.5268135", "0.52600616", "0.52576375", "0.5241732", "0.5241705", "0.5237172", "0.52239096", "0.5221404", "0.52123463", "0.52039397", "0.5198436", "0.5197018", "0.519368", "0.5185734", "0.51621574", "0.5158178", "0.5156433", "0.5153166", "0.51530606", "0.5148106", "0.5147363", "0.5143025", "0.51428324", "0.5142328", "0.5138305", "0.5130485", "0.51279074", "0.51266575", "0.51247555", "0.51227015", "0.5121649", "0.51203877", "0.5118132", "0.5118129", "0.5115936", "0.511463", "0.5111421", "0.5107875", "0.5104427", "0.5100773", "0.5100128", "0.5098847", "0.50986993", "0.50925076", "0.5091403", "0.50882506", "0.50857294", "0.50811714", "0.5078131", "0.50778264", "0.5076436", "0.507556", "0.5073526", "0.5073104", "0.5067507", "0.5060856", "0.5054175", "0.50518996", "0.5048856", "0.5047908", "0.50390226", "0.5036911" ]
0.77303445
0
Retrieve all staffs from the data store.
Collection<User> getStaffs() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping\n\tpublic List<UniversityStaffMember> viewAllStaffs() {\n\t\tList<UniversityStaffMember> list = universityService.viewAllStaffs();\n\t\tif (list.size() == 0)\n\t\t\tthrow new EmptyDataException(\"No University Staff in Database.\");\n\t\treturn list;\n\t}", "@GET\r\n\t@Produces(\"application/JSON\")\r\n\tpublic List<ZooStaff> getAllStaffs(){\r\n\t\treturn service.getAllStaffs();\r\n\t}", "@GetMapping(\"/staff\")\n\tpublic List<Staff> getStuedents() {\n\t\treturn staffService.getStaffs();\n\t}", "@Override\n\tpublic List<Staff> all() {\n\t\treturn staffMapper.all();\n\t}", "@Override\n\tpublic List<Staff> FindAll() {\n\t\treturn sessionFactory.getCurrentSession()\n\t\t\t\t.createQuery(\"from Staff\")\n\t\t\t\t.list();\n\t}", "@Override\n\tpublic List<StaffDTO> getStaffList(int store_id) throws Exception {\n\t\treturn dao.listAll(store_id);\n\t}", "public List<StaffPojo> viewAllStaff() {\n\t\treturn staffDao.viewAllStaff();\n\t}", "@Override\n\tpublic List<Employee> GetAll() {\n\t\t\n\t\tList<Employee> staff = new ArrayList<>();\n\t\tString sql = \"select * from Staff;\";\n\n\t\ttry {\n\t\t\tConnection c = ConnectDB.getHardCodedConnection();\n\t\t\tStatement s = c.createStatement();\n\t\t\tResultSet rs = s.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tString EmployeeName = rs.getString(\"Emp_name\");\n\t\t\t\tString EmployeeUserName = rs.getString(\"Emp_usrnme\");\n\t\t\t\tString EmployeePassword = rs.getString(\"Emp_psword\");\n\t\t\t\tInteger EmployeeRank = rs.getInt(\"Emp_rank\");\n\t\t\t\tstaff.add(new Employee(EmployeeName, EmployeeUserName,EmployeePassword,EmployeeRank));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn staff;\n\t}", "public List<Staff> findAllStaffMembers(){\n\t\treturn staffRepository.findAll();\n\t}", "@RequestMapping(value = \"/staff/\", method = RequestMethod.GET) //Mapping url localhost:8080/api/staff/ dengan method GET\n public ResponseEntity<List<Staff>> listAllStaffs() {\n List<Staff> staffs = staffService.findAllStaffs(); //Invoke method findAllStaffs\n if (staffs.isEmpty()) { //Check kondisi\n return new ResponseEntity<>(staffs, HttpStatus.NOT_FOUND);\n }\n return new ResponseEntity<>(staffs, HttpStatus.OK);\n }", "@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}", "@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "List<Student> getAll() {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t// hibernate.cfg.xml\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// session = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = null;\n\t\ttry {\n\t\t\ttx = session.beginTransaction();\n\t\t\tList data = session.createQuery(\"FROM Student\").list();\n\t\t\tfor (Iterator iterator = data.iterator(); iterator.hasNext();) {\n\t\t\t\tStudent st = (Student) iterator.next();\n\t\t\t\tSystem.out.print(\"Student ID: \" + st.getStudentId());\n\t\t\t\tSystem.out.print(\" Last Name: \" + st.getName());\n\t\t\t\tSystem.out.println(\" Address: \" + st.getAddress());\n\t\t\t}\n\t\t\ttx.commit();\n\t\t\treturn data;\n\t\t} catch (HibernateException e) {\n\t\t\tif (tx != null)\n\t\t\t\ttx.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "@GetMapping(path = \"/all\")\n\tpublic @ResponseBody Iterable<SFDC> getAllUsers() {\n\t\treturn sfdcRepository.findAll();\n\t}", "public List<StaffPojo> staffSearchByAll(String all) {\n\t\treturn staffDao.staffSearchByAll(all);\n\t}", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "public List<String> getAll() {\n\treturn employeeService.getAll();\n }", "public List<StaffPojo> staffSearchByName(String sname) {\n\t\treturn staffDao.staffSearchByName(sname);\n\t}", "@Override\n\tpublic List<Employee> getAll() {\n\t\tList<Employee> list =null;\n\t\tEmployeeDAO employeeDAO = DAOFactory.getEmployeeDAO();\n\t\ttry {\n\t\t\tlist=employeeDAO.getAll();\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\treturn list;\n\t}", "public ArrayList<Student> getAllStudents()\n {\n Cursor cursor = sqlServices.getData(USER_TABLE, null, USER_IS_TEACHER + \" = ?\",\n new String[]{\"0\"});\n return getStudentFromCursor(cursor);\n }", "@Override\r\n\tpublic List<Student> getAllStudents() {\n\t\treturn studentRepository.findAll();\r\n\t}", "public static List<GenericStaff> getRegisteredStaffs() {\n ArrayList<GenericStaff> staffs = new ArrayList();\n MagicStaffs.ITEMS\n .stream()\n .filter(item -> item instanceof GenericStaff)\n .forEach(item -> staffs.add((GenericStaff) item));\n return staffs;\n }", "@Override\r\n\tpublic List<Student> getAllStudent() {\n\t\treturn sdao.getAllStudent();\r\n\t}", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "public List<User> getAllStudent() {\n\t\t return userDao.getAllUsers();\r\n\t }", "@Override\r\n\tpublic List<SalesDto> queryAllSales() {\n\t\treturn salesMapper.queryAllSales();\r\n\t}", "@Transactional\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn accountDao.getAllEmployee();\n\t}", "public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}", "@Override\r\n\tpublic List<Employer> getAll() {\n\t\treturn employerDao.findAll();\r\n\t}", "@GetMapping\n\t@Secured(Roles.ADMIN)\n\tpublic ResponseEntity<EmployeeCollectionDto> getAll() {\n\t\tLogStepIn();\n\n\t\tList<Employee> employeeList = employeeRepository.findAll();\n\t\tEmployeeCollectionDto employeeCollectionDto = new EmployeeCollectionDto();\n\n\t\tfor (Employee employee : employeeList) {\n\t\t\temployeeCollectionDto.collection.add(toDto(employee));\n\t\t}\n\n\t\treturn LogStepOut(ResponseEntity.ok(employeeCollectionDto));\n\t}", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\tList<Employee> employee = new ArrayList<>();\n\t\tlogger.info(\"Getting all employee\");\n\t\ttry {\n\t\t\temployee = employeeDao.getAllEmployee();\n\t\t\tlogger.info(\"Getting all employee = {}\",employee.toString());\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn employee;\n\t}", "@GetMapping(path = \"/std/all\")\n\tpublic @ResponseBody Iterable<student> getAllStsudents() {\n\t\treturn studentRepo.findAll();\n\n\t}", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\n\t@Override\n\t/**\n\t * Leo todos los empleados.\n\t */\n\tpublic List<Employees> readAll() {\n\t\tList<Employees> ls = null;\n\n\t\tls = ((SQLQuery) sm.obtenerSesionNueva().createQuery(\n\t\t\t\tInstruccionesSQL.CONSULTAR_TODOS)).addEntity(Employees.class)\n\t\t\t\t.list();// no creo que funcione, revisar\n\n\t\treturn ls;\n\t}", "@Override\n\tpublic List<EmployeeBean> getAllEmployees() {\n\t\tLOGGER.info(\"starts getAllEmployees method\");\n\t\tLOGGER.info(\"Ends getAllEmployees method\");\n\t\t\n\t\treturn adminEmployeeDao.getAllEmployees();\n\t}", "public List<User> findAll() {\n return store.findAll();\n }", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic Page<Staff> findAll(Specification<Staff> spec, Pageable pageable) {\n\t\treturn staffDao.findAll(spec, pageable);\r\n\t}", "public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employeeDao.getAllEmployee();\r\n\t}", "@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}", "public List<Employee> getAll() {\n\t\treturn edao.listEmploye();\n\t}", "public static ArrayList<Student> getAllStudenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] {};\n\t\t\trp.type = RequestType.GET_ALL_STUDENTS;\n\t\t\tReceiveContent rps = sendReceive(rp);\n\t\t\treturn (ArrayList<Student>) rps.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SendNewsLetter error\");\n\t\t}\n\t\treturn new ArrayList<Student>();\n\t}", "@GetMapping(\"/findAllEmployees\")\n\tpublic List<Employee> getAll() {\n\t\treturn testService.getAll();\n\t}", "public List<Student> selectStudentAll() {\n\t\treturn this.studentMaper.selectStudentAll();\r\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "@Override\n\tpublic List<RestaurantDTO> getStoreList() {\n\t\treturn adminDao.getStoreList();\n\t}", "@GetMapping(\"/my-employee\")\n\t@Secured(Roles.BOSS)\n\tpublic ResponseEntity<EmployeeCollectionDto> getAllMyEmployees() {\n\t\tLogStepIn();\n\n\t\t// Gets the currently logged in user's name\n\t\tString username = SecurityContextHolder.getContext().getAuthentication().getName();\n\t\tLong bossId = userRepository.findByName(username).getEmployee().getId();\n\n\t\t// Adds the employees that directly belongs to this boss\n\t\tEmployeeCollectionDto employeeCollectionDto = new EmployeeCollectionDto();\n\t\tList<Employee> employeeList = employeeRepository.findAll();\n\t\tfor(Employee employee : employeeList) {\n\t\t\tif(employee.getBossId().equals(bossId))\n\t\t\t\temployeeCollectionDto.collection.add(toDto(employee));\n\t\t}\n\n\t\treturn LogStepOut(ResponseEntity.ok(employeeCollectionDto));\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tpublic List<Census> retrieveAll()\n\t{\n\t\t\n\t\topen();\n\t\tList<Census> list=new LinkedList<Census>();\n\t\ttry\n\t\t{\n\t\t\tQuery query=DB.query();\n\t\t\tquery.constrain(Census.class);\n\t\t\t\n\t\t\tObjectSet result =query.execute();\n\t\t\t\n\t\t\twhile(result.hasNext())\n\t\t\t{\n\t\t\t\tlist.add((Census)result.next());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t\treturn list;\n\t}", "public List<StaffPojo> staffSearchByAllForSMS(String all) {\n\t\treturn staffDao.staffSearchByAllForSMS(all);\n\t}", "@Override\n\t@Transactional\n\tpublic List<Satelite> findAll() {\n\t\treturn (List<Satelite>) sateliteRepository.findAll();\n\t}", "public ArrayList findAll() {\n String query = \"SELECT * FROM SilentAuction.Users\";\n ArrayList aUserCollection = selectUsersFromDB(query);\n return aUserCollection;\n }", "@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}", "List<Student> getAllStudents();", "public List<Sports> getAllSportsService() {\n\t\tList<Sports> list=new ArrayList<>();\n\t\tlist=(List<Sports>)repository.findAll();\n\t\tif(list.size()<1)\n\t\t\tthrow new RecordNotFoundException(\"No Sports present in the table Sports\");\n\t\tlogger.info(\"Size of the list after fetching all the records= \"+list.size());\n\t\treturn list;\n\t\t\n\t}", "public List<Employee> getAllEmployees(){\n\t\tList<Employee> employees = employeeDao.findAll();\n\t\tif(employees != null)\n\t\t\treturn employees;\n\t\treturn null;\n\t}", "public List<StoreDto> getStores() {\n return tradingSystemFacade.getStores();\n }", "public List <Student> getAllStudents();", "@GetMapping(\"/GetAllEmployees\")\r\n public List<Employee> viewAllEmployees() {\r\n return admin.viewAllEmployees();\r\n }", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t//create query\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\n\t\t//execute query\n\t\tList<Employee> employees = theQuery.getResultList();\n\t\t\n\t\t//currentSession.close();\n\t\t\n\t\treturn employees;\n\t}", "public ArrayList<Store> getAllStores() throws IllegalArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.storeMapper.findAllStore();\r\n\t}", "@Override\n\tpublic ArrayList<User> getAll() {\n\t\treturn this.users;\n\t}", "@Override\n\tpublic List<Employee> findAll() {\n\t\t\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\t\t// create a query\n\t\t\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\t\t\n\t\t\t\t// execute a query and get the result list\n\t\t\t\tList<Employee> employeeList = theQuery.getResultList();\n\t\t\t\t\n\t\t\t\t// return the result list\n\t\t\t\treturn employeeList;\n\t}", "@GetMapping(\"applicants\")\n public List<Applicant> readAll() {\n return applicantService.getAll();\n }", "public static java.util.List<es.davinciti.liferay.model.SapEmployee> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence().findAll();\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "@Override\r\n\tpublic Collection<Student> findAll() {\n\t\treturn null;\r\n\t}", "public List<EmpEachShift> getAll(){\n\t\treturn empEachShiftList;\n\t}", "@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}", "public static ArrayList<Meal> findAll() throws ServletException {\n try{\n //Connect to Database\n Connection con = DatabaseAccess.getConnection();\n //Get all data from exercise Table \n PreparedStatement ps = con.prepareStatement(\n \"SELECT * FROM meal\");\n \n ResultSet result = ps.executeQuery();//Run statement\n ArrayList<Meal> mealList = new ArrayList<>(); \n //If we find Meal set create a new Meal using returned values\n while(result.next()){\n Meal meal = new Meal(result.getInt(\"id\"),\n result.getString(\"name\"),\n result.getInt(\"calperUnit\"));\n mealList.add(meal);\n }\n \n con.close(); //Close Connection\n return mealList;\n }catch (SQLException ex) {\n throw new ServletException(\"Find Problem: Searching for Meal \", ex);\n }\n }", "public static List<Sighting> all() {\n\t\tString sql = \"SELECT id, name, location, rangerName FROM sightings\";\n\t\ttry(Connection con = DB.sql2o.open()) {\n\t\t\treturn con.createQuery(sql).executeAndFetch(Sighting.class);\n\t\t}\n\t}", "@GetMapping(\"/all\")\n public List<Admin> getAll(){\n return adminService.getAll();\n }", "@Override\n\tpublic List<UserStaffDTO> readStaffByUserId(int user_id) throws Exception {\n\t\treturn dao.readStaffByUserId(user_id);\n\t}", "@GetMapping(\"/employees\")\n Flux<Employee> all() { //TODO: Wasn't previously public\n return this.repository.findAll();\n }", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "public List<Employee> getAllEmployees() {\n return employeeRepository.findAll();\n }", "@Transactional\n\t@Override\n\tpublic List<ApplicantModel> viewAllApplicants() {\n\t\treturn applicantRepo.findAll().stream().map(course -> parser.parse(course))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}", "public Collection<User> getAll() throws DataPersistenceException\n {\n PersistenceManagerFactory pmfInstance = PMFHolder.get();\n PersistenceManager pm = pmfInstance.getPersistenceManager();\n try\n {\n List<User> users = new ArrayList<User>();\n\n Extent<User> extent = pm.getExtent(User.class, true);\n for (User user : extent)\n users.add(user);\n extent.closeAll();\n\n return users;\n }\n catch (Throwable e)\n {\n throw new DataPersistenceException(e.getLocalizedMessage(), e);\n }\n finally\n {\n pm.close();\n }\n }", "@RequestMapping(value = \"\", method = RequestMethod.GET)\n public ArrayList<Seller> getAllSeller()\n {\n return DatabaseSeller.getSellerDatabase();\n }", "@Transactional(readOnly = true)\r\n\t@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Employee> getAllEmployees() {\r\n\t\treturn em.createQuery(\"select e from Employee e order by e.office_idoffice\").getResultList();\r\n\t}", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "@GET\r\n\t@Produces(\"application/JSON\")\r\n\t@Path(\"/query\")\r\n\tpublic List<ZooStaff> getStaffByRole(@QueryParam(\"role\")String role) {\r\n\t\treturn service.getStaffByRole(role);\r\n\t}", "public List<Employee> getAllEmployee(){\n List<Employee> employee = new ArrayList<Employee>();\n employeeRepository.findAll().forEach(employee::add);\n return employee;\n }", "@Override\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t\n\t\t//create a query\n\t\t\n\t\tQuery<Employee> theQuery= currentSession.createQuery(\"from Employee\",Employee.class);\n\t\t\n\t\tList<Employee> theEmployees=theQuery.list();\n\t\treturn theEmployees;\n\t}", "public List<Usuario> getAdmins() {\n List<Usuario> lUsers = new ArrayList<>();\n try {\n\n if (em.isOpen()) {\n// lUsers = this.em.createNamedQuery(\"Usuario.findByTipoUsuario\")\n// .setParameter(\"tipoUsuario\", 1)\n// .setHint(QueryHints.CACHE_USAGE, CacheUsage.DoNotCheckCache)\n// .getResultList();\n\n Query query = this.em.createNamedQuery(\"Usuario.findByTipoUsuario\")\n .setParameter(\"tipoUsuario\", 1)\n .setHint(QueryHints.CACHE_USAGE, CacheUsage.DoNotCheckCache);\n\n lUsers = (List<Usuario>) query.getResultList();\n for (Usuario u : lUsers) {\n this.em.refresh(u);\n }\n }\n\n } catch (Exception e) {\n //e.printStackTrace();\n }\n\n return lUsers;\n }", "public ArrayList<Service> selectAll(){\n return Database.servico;\n }", "public List<Employee> getAll() throws SQLException {\n Session session = currentSession();\n Transaction transaction = session.beginTransaction();\n List<Employee> list = session.createQuery(\"from Employee\",\n Employee.class).list();\n transaction.commit();\n session.close();\n return list;\n }", "public List<Student> fetch() {\n List<Student> studentList = new ArrayList<>();\n String[] columns = new String[]{DatabaseHelper.ID, DatabaseHelper.STUDENT_NAME, DatabaseHelper.STUDENT_ADDRESS};\n Cursor cursor = sqLiteDatabase.query(DatabaseHelper.TABLE_NAME, columns, null,\n null, null, null, null);\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }", "List<User> loadAll();", "@Transactional\n\tpublic List<Faculty> listAllFaculty() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<Faculty> criteriaQuery = builder.createQuery(Faculty.class);\n\t\tRoot<Faculty> root = criteriaQuery.from(Faculty.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<Faculty> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}", "@Transactional(readOnly = true)\n public List<Exam> findAll() {\n log.debug(\"Request to get all Exams\");\n return examRepository.findAll();\n }", "@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final List<EmployeeDTO> findAllEmployees() {\n LOGGER.info(\"getting all employees\");\n return employeeFacade.findAllEmployees();\n }", "@Override\n\tpublic List<ERS_USERS> getAll() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<String> queryAll() {\n\t\tList<String> list = homePageDao.queryAll();\r\n\t\treturn list;\r\n\t}", "List<Salesman> findAll();", "protected ResultSet selectStaff() {\r\n\t\tResultSet rs = sqlSelect( \"*\", \"Staff\", \"\");\r\n\t\treturn rs;\r\n\t}" ]
[ "0.7804657", "0.7706937", "0.75086594", "0.7478477", "0.74460036", "0.74001396", "0.72492015", "0.70992994", "0.70697373", "0.69443977", "0.6682993", "0.66817695", "0.65825677", "0.65810925", "0.6445437", "0.6401431", "0.62706804", "0.6262877", "0.6249583", "0.6238797", "0.62314856", "0.6216165", "0.6197074", "0.6180641", "0.61742646", "0.6075066", "0.6074957", "0.60673565", "0.6048428", "0.60137576", "0.60131323", "0.6006489", "0.5983178", "0.59788024", "0.5971889", "0.5969999", "0.5966557", "0.59657544", "0.5964246", "0.59583575", "0.59553415", "0.59453565", "0.59438515", "0.592699", "0.5924274", "0.59200203", "0.59021115", "0.588082", "0.58754814", "0.5871315", "0.58703876", "0.5866584", "0.58510846", "0.5831602", "0.5825028", "0.5823431", "0.5788608", "0.57877654", "0.57841575", "0.5778964", "0.5768018", "0.57629424", "0.5732693", "0.5726674", "0.5724172", "0.572306", "0.5712998", "0.57076466", "0.5704882", "0.57011276", "0.57010716", "0.5695194", "0.56906474", "0.56849134", "0.5682599", "0.5678708", "0.5675996", "0.56693935", "0.5655125", "0.5652894", "0.5649264", "0.5648221", "0.5644959", "0.56386364", "0.5635977", "0.563211", "0.56230485", "0.5616637", "0.56150466", "0.56141406", "0.5608149", "0.5606374", "0.5602314", "0.55998707", "0.55965596", "0.55947393", "0.55909866", "0.5588538", "0.5587636", "0.5585394" ]
0.76374596
2
Retrieve all Lessons from the data store.
Collection<Lesson> getLessons() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Lesson> getActiveLessons() throws DataAccessException;", "@NotNull\n @Override\n public List<Lesson> getLessons() {\n return getLessons(false);\n }", "@Override\r\n\tpublic List<Supplies> findall() {\n\t\treturn suppliesDao.findall();\r\n\t}", "@Override\r\n\tpublic List<String> queryAll() {\n\t\tList<String> list = homePageDao.queryAll();\r\n\t\treturn list;\r\n\t}", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "@Override\n public ArrayList<Course> getAll() {\n ArrayList<Course> allCourses = new ArrayList();\n String statement = FINDALL;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAll()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return allCourses;\n }", "@Override\n\tpublic List<Chapter> list() {\n\t\treturn rDao.list();\n\t}", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "List<RouteStore> getAllRouteStore();", "public void listWashers() {\r\n\t\tSystem.out.println(store.listWashers());\r\n\t}", "private void getAllExercises() {\n getView().disableUI();\n\n // get all exercises\n doGetExercises();\n }", "@Override\n public List<Course> getCourses() {\n return courseDao.findAll();\n }", "public List<Scholl> all() {\n List<Scholl> scholls = new ArrayList<>();\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS;\n\n Cursor c = db.rawQuery(sql, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n // adding to scholl list\n scholls.add(scholl);\n } while (c.moveToNext());\n }\n\n c.close();\n\n return scholls;\n }", "@Override\r\n\tpublic List<Warehouse> selectAll() {\n\t\treturn warehouseDao.selectAll();\r\n\t}", "public List<Warehouse> findWarehouseAll() {\n\t\t return warehouseDAO.findWarehouseAll();\r\n\t}", "@Override\r\n\tpublic List<Applier> retrieveAllAppliers() {\n\t\treturn em.createQuery(\"Select a from Applier a\").getResultList();\r\n\t}", "@Override\n\tpublic List<Mood> moodList() {\n\t\tMoodDAO moodDAO = new MoodDAOimp();\n\t\treturn moodDAO.showMoods();\n\t}", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "@GET\n public List<Lehrer> getAllLehrer() {\n Log.d(\"Webservice Lehrer Get:\");\n Query query = em.createNamedQuery(\"findAllTeachers\");\n List<Lehrer> lehrer = query.getResultList();\n return lehrer;\n }", "public List<Laptop> findAll() {\n\t\treturn laptopDao.findAll();\r\n\t}", "@GetMapping(path=\"/getall\")\r\n\tpublic @ResponseBody Iterable<MyClass> getAllAdmins() {\n\t\treturn classRepository.findAll();\r\n\t}", "public Iterable<Shop> getAllShops() {\n return this.shopRepository.findAll();\n }", "List<StockList> fetchAll();", "@GetMapping(\"/schools\")\n public List<School> list() {\n List<School> schoolList = schoolRepository.findAll();\n return schoolList;\n }", "List<Mallscroerule> selectAll();", "@Override\r\n\tpublic List<Courses> getCourses() {\n\t\treturn coursesdao.findAll();\r\n\t}", "public List<Lesson> getLessons(boolean withAdditional) {\n final List<Lesson> lessons = items.stream().filter(Lesson.class::isInstance).map(Lesson.class::cast).collect(Collectors.toList());\n return withAdditional ? lessons : lessons.stream().filter(lesson -> !lesson.isAdditional()).collect(Collectors.toList());\n }", "void setAllData()\n {\n this.filteredLessons = allLessons;\n notifyDataSetChanged();\n }", "@Produces(MediaType.APPLICATION_JSON)\n @Override\n public List<Teacher> getAllTeachers() {\n List<Map<String, Object>> teachersIds = getJdbcTemplate().queryForList(sqlGetAllTeachersIds);\n if (teachersIds.size() == 0) {\n return null;\n }\n // find list of lessons by ID's\n List<Teacher> resultTeachers = new ArrayList<>();\n for (Map<String, Object> teacherId : teachersIds) {\n resultTeachers.add(getTeacherById((int) teacherId.get(\"id\")));\n }\n return resultTeachers;\n }", "private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }", "public List<Student> fetch() {\n List<Student> studentList = new ArrayList<>();\n String[] columns = new String[]{DatabaseHelper.ID, DatabaseHelper.STUDENT_NAME, DatabaseHelper.STUDENT_ADDRESS};\n Cursor cursor = sqLiteDatabase.query(DatabaseHelper.TABLE_NAME, columns, null,\n null, null, null, null);\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }", "@Override\n public List<Category> getAll()\n {\n \n ResultSet rs = DataService.getData(\"SELECT * FROM Categories\");\n \n List<Category> categories = new ArrayList<Category>();\n \n try\n {\n while (rs.next())\n {\n categories.add(convertResultSetToCategory(rs));\n }\n }\n catch (SQLException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n return categories;\n }", "public List<Route> getRoutes(){\n return routeDAO.findAll();\n }", "@GetMapping(path = \"/all\")\n public Set<StudentCommand> getAllStudents() {\n Set<StudentCommand> studentCommands = new HashSet<>();\n\n Iterable<Student> students = studentService.getAllStudents();\n\n for (Student s : students) {\n StudentCommand command = studentToStudentCommand.converter(s);\n studentCommands.add(command);\n }\n return studentCommands;\n }", "@RequestMapping(value = \"\", method = RequestMethod.GET)\r\n public ArrayList<Bonus> getAllBonus() {\r\n return DatabaseBonus.getBonusDatabase();\r\n }", "List<TrainingsCategory> getAllTrainingstype() throws PersistenceException;", "public List<Accessory> getAllAccessories() throws PersistenceException {\n return dao.findAll();\n }", "@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}", "@Transactional(readOnly = true)\n public List<MuseumResource> findAllMuseums() {\n List<MuseumResource> museums = new ArrayList<>();\n\n List<Museum> museumList = museumRepository.findAll();\n\n for (Museum item : museumList) {\n MuseumResource museum = new MuseumResource();\n populateMuseum(item, museum);\n museums.add(museum);\n }\n\n return museums;\n }", "public Observable<List<Laptop>> getLaptops(){\n return laptopServices.getLaptops();\n }", "public void getAllMartyrs() {\n\t\tDispatcher.forwardEvent(AppEvents.MARTYRS_HOMEPAGE_EVENT, JSONDataReader.loadMartyrs());\n\t}", "public List<MasterMenu> getAll() {\n\t\treturn menuDao.getAll();\r\n\t}", "List<CaseLinkman> selectAll();", "@Override\n public List<Article> getArticles() {\n List<Article> articles=articleDAO.getArticles();\n knownArticles.addAll(articles);\n return articles;\n }", "@GetMapping(value=\"/getAll\")\n\tpublic List<Question> getAll(){\n\t\tLOGGER.info(\"Viewing all questions\");\n\t\treturn questionObj.viewAllQuestions();\n\t}", "public HTMLManager loadAllData() throws SQLException {\n\t\tHTMLManager hm = new HTMLManager();\n\t\tDataManager dm = new DataManager();\n\t\tdao.loadData(dm);\n\t\tArrayList<Product> productsList = dm.getProductList();\n\t\tfor(Product product : productsList) {\n\t\t\thm.addRowToOutputData(product);\n\t\t}\n\t\treturn hm;\n\t}", "public List<News> getAll()\n {\n\n return newsRepository.findAllByOrderByIdAsc();\n }", "public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }", "Collection<S> getStories ();", "List<WebCrawlerData> retrieveAllEntity();", "public Cursor getAll() {\n SQLiteDatabase db = _openHelper.getReadableDatabase();\n if (db == null) {\n return null;\n }\n return db.rawQuery(\"select * from Exams order by _id\", null);\n }", "public FetchingAllDataModel() {\n\n context = AppController.getInstance().getApplicationContext();\n }", "public ArrayList getSchools();", "@Override\r\n\tpublic List<Product> showAll() throws Exception {\n\t\treturn this.dao.showAll();\r\n\t}", "@Override\n\tpublic Collection<CentreVisite> getAll() {\n\t\treturn CR.findAll();\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tpublic List<Census> retrieveAll()\n\t{\n\t\t\n\t\topen();\n\t\tList<Census> list=new LinkedList<Census>();\n\t\ttry\n\t\t{\n\t\t\tQuery query=DB.query();\n\t\t\tquery.constrain(Census.class);\n\t\t\t\n\t\t\tObjectSet result =query.execute();\n\t\t\t\n\t\t\twhile(result.hasNext())\n\t\t\t{\n\t\t\t\tlist.add((Census)result.next());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t\treturn list;\n\t}", "public Cursor fetchAllMeals() {\n return db.query(MealEntry.TABLE_NAME, null, null, null, null, null, null, null);\n }", "List fetchAll() throws AdaptorException ;", "public List<TVShow> getAllShows(){\n\tList<TVShow> shows = new ArrayList<>();\n\ttvShowRepo.findAll().forEach(show->shows.add(show));\n\treturn shows;\n}", "@Override\n\tpublic List<Mall> getMalls() {\n\t\treturn iMallDao.getMalls();\n\t}", "@GetMapping(\"/hlds\")\n @Timed\n public List<Hld> getAllHlds() {\n log.debug(\"REST request to get all Hlds\");\n return hldRepository.findAll();\n }", "@Override\r\n\tpublic List<Student> getAllStudents() {\n\t\treturn studentRepository.findAll();\r\n\t}", "@GetMapping(\"/attractions\")\n @Timed\n public List<Attraction> getAllAttractions() {\n log.debug(\"REST request to get all Attractions\");\n return attractionRepository.findAll();\n }", "List<Student> getAll() {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t// hibernate.cfg.xml\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// session = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = null;\n\t\ttry {\n\t\t\ttx = session.beginTransaction();\n\t\t\tList data = session.createQuery(\"FROM Student\").list();\n\t\t\tfor (Iterator iterator = data.iterator(); iterator.hasNext();) {\n\t\t\t\tStudent st = (Student) iterator.next();\n\t\t\t\tSystem.out.print(\"Student ID: \" + st.getStudentId());\n\t\t\t\tSystem.out.print(\" Last Name: \" + st.getName());\n\t\t\t\tSystem.out.println(\" Address: \" + st.getAddress());\n\t\t\t}\n\t\t\ttx.commit();\n\t\t\treturn data;\n\t\t} catch (HibernateException e) {\n\t\t\tif (tx != null)\n\t\t\t\ttx.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn null;\n\t}", "public ArrayList<Warehouse> getUserWarehouses(){\r\n try{\r\n ArrayList<Warehouse> mWarehouses = new ArrayList<Warehouse>();\r\n UserManager mydb= new UserManager(activity);\r\n String[] allColumns = { DBManager.Warehouse_Key, DBManager.Warehouse_LABEL };\r\n\r\n mydb.open();\r\n Cursor cursor = mydb.getDb().query(DBManager.Warehouse_TABLE_NAME,\r\n allColumns, null, null, null, null, null);\r\n\r\n cursor.moveToFirst();\r\n while (!cursor.isAfterLast()) {\r\n Warehouse dp = new Warehouse(cursor.getString(0),cursor.getString(1));\r\n mWarehouses.add(dp);\r\n cursor.moveToNext();\r\n }\r\n // closing the cursor\r\n cursor.close();\r\n mydb.close();\r\n\r\n return mWarehouses;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "@Override\n\tpublic List<News> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<News> list = (List<News>)getCurrentSession().createQuery(\"FROM News\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}", "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn rolDao.readAll();\n\t}", "public List<SiswaModel> getAllMahasiswa(){\n RealmResults<SiswaModel> results = realm.where(SiswaModel.class).findAll();\n return results;\n }", "public static List<Sighting> all() {\n\t\tString sql = \"SELECT id, name, location, rangerName FROM sightings\";\n\t\ttry(Connection con = DB.sql2o.open()) {\n\t\t\treturn con.createQuery(sql).executeAndFetch(Sighting.class);\n\t\t}\n\t}", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "@Transactional(readOnly = true)\n public List<Exam> findAll() {\n log.debug(\"Request to get all Exams\");\n return examRepository.findAll();\n }", "List<Consumption> listAll();", "@Override\r\n\tpublic List<Item> getAllHomework() {\n\t\t\r\n\t\treturn itemdao.find(\"from Item\");\r\n\t}", "@Override\r\n\tpublic List<WarehouseInfo> selectAll(Page page) {\n\t\treturn warehouseDao.selectAll(page);\r\n\t}", "public static List<SchoolModel> getSchoolData(Activity context) {\n Cursor cursor;\n cursor = context.getContentResolver().query(SchoolTable.URI, null, null, null, null);\n List<SchoolModel> schoolDataList = new ArrayList<>();\n if (cursor != null && !cursor.isClosed()) {\n while (cursor.moveToNext()) {\n schoolDataList.add(fetchSchoolDataFromCursor(cursor));\n }\n cursor.close();\n }\n\n return schoolDataList;\n }", "@Override\n public List<School> importAllData(final String databaseName) {\n Connection connection = getConnection(databaseName);\n return querySchools(connection);\n }", "public void listArticles() {\n\t\tSystem.out.println(\"\\nArticles llegits desde la base de dades\");\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(System.out::println);\n\t}", "@Override\r\n\tpublic List<Studentexamscore> getAllExamName() {\n\t\treturn studentExamScoreDAO.getAllExamName();\r\n\t}", "List<EquipmentCategory> getAllEquipment() throws PersistenceException;", "@Override\r\n\tpublic List<Modules> getAllModules() {\n\t\tString hql = \"from Modules\";\r\n\t\treturn (List<Modules>) getHibernateTemplate().find(hql);\r\n\t}", "@Override\n\tpublic List<Admin> getAdmins() {\n\t\treturn ar.findAll();\n\t}", "public List<Buy> getAll() throws PersistException;", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "List<Language> getAll();", "List<String> getAllTitles(){\n return mAllTitles;\n }", "List<HistoryData> loadAllHistoryData();", "public ArrayList<Discipline> getAll() {\r\n return this.disciplines;\r\n }", "public void listStores(){\r\n Map<String, String> params = new HashMap<>();\r\n String url = API_DOMAIN + STORE_EXT + LIST_ACTION;\r\n this.makeVolleyRequest( url, params );\r\n }", "@Override\n\tpublic List<MahasiswaModel> getAll() throws SQLException {\n\t\tList<MahasiswaModel> mhs = new ArrayList<MahasiswaModel>();\n\t\tResultSet resultSet = getAllStatement.executeQuery();\n\t\twhile(resultSet.next()){\n\t\t\tMahasiswaModel m = new MahasiswaModel();\n\t\t\tm.setNik(resultSet.getString(\"nik\"));\n\t\t\tm.setNama(resultSet.getString(\"nama\"));\n\t\t\tm.setKelas(resultSet.getString(\"kelas\"));\n\t\t\tm.setJurusan(resultSet.getString(\"jurusan\"));\n\t\t\tmhs.add(m);\n\t\t}\n\t\t\n\t\treturn mhs;\n\t}", "List<Student> getAllStudents();", "@Override\r\n\tpublic List<Categoria> readAll() {\n\t\tList<Categoria> lista = new ArrayList<>();\r\n\t\tString SQL = \"select *from categoria\";\r\n\t\ttry {\r\n\t\t\tcx = Conexion.getConexion();\r\n\t\t\tps = cx.prepareStatement(SQL);\r\n\t\t\trs = ps.executeQuery(SQL);\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tCategoria r = new Categoria();\r\n\t\t\t\tr.setCategoria_idcategoria(rs.getInt(\"CATEGORIA_IDCATEGORIA\"));\r\n\t\t\t\tr.setNombre(rs.getString(\"NOMBRE\"));\r\n\t\t\t\tlista.add(r);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"Error: \"+e);\r\n\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}", "List<Enrolment> getAll();", "List<Category> getAllCategories();", "@Override\r\n\tpublic List<Student> getAllStudent() {\n\t\treturn sdao.getAllStudent();\r\n\t}", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public List<Wish> getAllWishes() {\n List<Wish> wishes = new ArrayList<Wish>();\n String selectQuery = \"SELECT * FROM \" + TABLE_WISH;\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Wish wh = new Wish();\n wh.setId(c.getLong((c.getColumnIndex(KEY_ID))));\n wh.setWishName((c.getString(c.getColumnIndex(KEY_WISHNAME))));\n wh.setStatus(c.getInt(c.getColumnIndex(KEY_STATUS)));\n\n // adding to wish list\n wishes.add(wh);\n } while (c.moveToNext());\n }\n c.close();\n return wishes;\n }", "public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }", "@Transactional\n\t@Override\n\tpublic List<Lesson> showLesson(int qid) throws Exception {\n\t\treturn lessonDao.findAllByQid(qid);\n\t}", "@GetMapping(\"/all\")\n public List<Admin> getAll(){\n return adminService.getAll();\n }" ]
[ "0.66949046", "0.65330553", "0.546279", "0.54483503", "0.5427257", "0.53665584", "0.5353965", "0.53410035", "0.52932316", "0.523568", "0.5206683", "0.51662403", "0.51655835", "0.51605546", "0.51348853", "0.5112124", "0.51097435", "0.5084095", "0.50761664", "0.507023", "0.50620466", "0.506055", "0.5056361", "0.50434", "0.5032634", "0.50278723", "0.50206697", "0.50144166", "0.5008883", "0.5006611", "0.4994337", "0.49935278", "0.49841616", "0.49808368", "0.49793634", "0.49782214", "0.49761263", "0.49753383", "0.49701756", "0.4968553", "0.49679658", "0.49579105", "0.4957323", "0.4954256", "0.493696", "0.49364716", "0.49339518", "0.49324527", "0.49280843", "0.49269986", "0.49227214", "0.49123022", "0.49105936", "0.49098122", "0.49004716", "0.48934424", "0.48930794", "0.48906657", "0.48861203", "0.4882666", "0.4877548", "0.4874209", "0.48649615", "0.48618323", "0.48427543", "0.4840985", "0.48400378", "0.48394993", "0.4837383", "0.48201233", "0.4819737", "0.48192626", "0.48168984", "0.48106265", "0.4809666", "0.48083586", "0.48073307", "0.4807032", "0.48029295", "0.4801879", "0.47946212", "0.47921938", "0.47906712", "0.4787063", "0.47799104", "0.47761306", "0.47709718", "0.47680938", "0.4766055", "0.4762253", "0.47565776", "0.475599", "0.47549468", "0.47546926", "0.47493008", "0.47492802", "0.47460625", "0.47459278", "0.47436443", "0.47433713" ]
0.6904734
0
Retrieve all active Lessons from the data store.
Collection<Lesson> getActiveLessons() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n @Override\n public List<Lesson> getLessons() {\n return getLessons(false);\n }", "Collection<Lesson> getLessons() throws DataAccessException;", "public List<Promotion> getAllActivePromotions();", "@Override\r\n\tpublic List<String> queryAll() {\n\t\tList<String> list = homePageDao.queryAll();\r\n\t\treturn list;\r\n\t}", "private Collection<MarketDataProvider> getActiveMarketDataProviders()\n {\n populateProviderList();\n return providersByPriority;\n }", "public void listWashers() {\r\n\t\tSystem.out.println(store.listWashers());\r\n\t}", "@Override\n\tpublic List<Chapter> list() {\n\t\treturn rDao.list();\n\t}", "@Override\r\n\tpublic List<Supplies> findall() {\n\t\treturn suppliesDao.findall();\r\n\t}", "@Transactional\n\t@Override\n\tpublic List<ApplicantModel> viewAllApplicants() {\n\t\treturn applicantRepo.findAll().stream().map(course -> parser.parse(course))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Override\n public List<Course> getCourses() {\n return courseDao.findAll();\n }", "@Override\n public ArrayList<Course> getAll() {\n ArrayList<Course> allCourses = new ArrayList();\n String statement = FINDALL;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAll()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return allCourses;\n }", "@Override\r\n\tpublic List<Applier> retrieveAllAppliers() {\n\t\treturn em.createQuery(\"Select a from Applier a\").getResultList();\r\n\t}", "@GetMapping(\"/attractions\")\n @Timed\n public List<Attraction> getAllAttractions() {\n log.debug(\"REST request to get all Attractions\");\n return attractionRepository.findAll();\n }", "@Override\r\n\tpublic List<Courses> getCourses() {\n\t\treturn coursesdao.findAll();\r\n\t}", "public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }", "@RequestMapping(value = \"\", method = RequestMethod.GET)\r\n public ArrayList<Bonus> getAllBonus() {\r\n return DatabaseBonus.getBonusDatabase();\r\n }", "public List<Activity> getAllActivities();", "public FetchingAllDataModel() {\n\n context = AppController.getInstance().getApplicationContext();\n }", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }", "public static Set<FeedView> getAllActiveFeedManifestations() {\n return feedPool.getAllActiveFeedManifestations();\n }", "public LearningResultHasActivity[] findAll() throws LearningResultHasActivityDaoException;", "List<RouteStore> getAllRouteStore();", "public List<Accessory> getAllAccessories() throws PersistenceException {\n return dao.findAll();\n }", "private void getAllExercises() {\n getView().disableUI();\n\n // get all exercises\n doGetExercises();\n }", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "@Override\r\n\tpublic List<Warehouse> selectAll() {\n\t\treturn warehouseDao.selectAll();\r\n\t}", "public Iterable<Shop> getAllShops() {\n return this.shopRepository.findAll();\n }", "List<CaseLinkman> selectAll();", "public static ArrayList<Course> getAll() {\n return courses;\n }", "public List<Lesson> getLessons(boolean withAdditional) {\n final List<Lesson> lessons = items.stream().filter(Lesson.class::isInstance).map(Lesson.class::cast).collect(Collectors.toList());\n return withAdditional ? lessons : lessons.stream().filter(lesson -> !lesson.isAdditional()).collect(Collectors.toList());\n }", "public Collection<Game> getAllActiveGames() {\n return gameRepository.findAllActive();\n }", "private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "public Cursor getAll() {\n SQLiteDatabase db = _openHelper.getReadableDatabase();\n if (db == null) {\n return null;\n }\n return db.rawQuery(\"select * from Exams order by _id\", null);\n }", "@GetMapping(path=\"/getall\")\r\n\tpublic @ResponseBody Iterable<MyClass> getAllAdmins() {\n\t\treturn classRepository.findAll();\r\n\t}", "public List<Warehouse> findWarehouseAll() {\n\t\t return warehouseDAO.findWarehouseAll();\r\n\t}", "@Override\n\tpublic List findAll() {\n\t\treturn getSession().createCriteria(DirectTalentAdvertBean.class).list();\n\t}", "public Collection<Community> getAllCommunities() {\n return communityStore.getAll();\n }", "public List<Course> getAllCourses() {\n return allCourses;\n }", "@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "List<CommunityInform> selectAll();", "void setAllData()\n {\n this.filteredLessons = allLessons;\n notifyDataSetChanged();\n }", "public List<MasterMenu> getAll() {\n\t\treturn menuDao.getAll();\r\n\t}", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "@Transactional(readOnly = true)\n public List<Exam> findAll() {\n log.debug(\"Request to get all Exams\");\n return examRepository.findAll();\n }", "@Override\r\n public List<ActiveStatusModel> listActiveStatus() {\r\n return jdbcTemplate.query(SQL_SELECT, new ActiveStatusHelper());\r\n }", "public static List<CampLease> getCampLeases(boolean eager) {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\treturn leaseDao.getCampLeases(eager);\r\n\t}", "public Cursor fetchAllEntries() {\n return mDb.query(DATABASE_TABLE, null, null, null, null, null, null);\n }", "public List<DataGroupInfoActiveHistoryRecord> getActiveHistoryList()\n {\n return myActiveSetConfig.getActivityHistory();\n }", "public ArrayList<BlogArticle> gainAll() {\n\t\treturn blogArticleDao.gainAll();\n\t}", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "@GetMapping(path = \"/all\")\n public Set<StudentCommand> getAllStudents() {\n Set<StudentCommand> studentCommands = new HashSet<>();\n\n Iterable<Student> students = studentService.getAllStudents();\n\n for (Student s : students) {\n StudentCommand command = studentToStudentCommand.converter(s);\n studentCommands.add(command);\n }\n return studentCommands;\n }", "List<TrainingsCategory> getAllTrainingstype() throws PersistenceException;", "@Override\n @Transactional(readOnly = true)\n public List<ModeDTO> findAll() {\n log.debug(\"Request to get all Modes\");\n return modeRepository.findAll().stream()\n .map(modeMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "List<Consumption> listAll();", "@SuppressWarnings(\"rawtypes\")\n\tpublic List<Census> retrieveAll()\n\t{\n\t\t\n\t\topen();\n\t\tList<Census> list=new LinkedList<Census>();\n\t\ttry\n\t\t{\n\t\t\tQuery query=DB.query();\n\t\t\tquery.constrain(Census.class);\n\t\t\t\n\t\t\tObjectSet result =query.execute();\n\t\t\t\n\t\t\twhile(result.hasNext())\n\t\t\t{\n\t\t\t\tlist.add((Census)result.next());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t\treturn list;\n\t}", "public java.util.List<LdPublisher> delegateGetListAllTx() {\r\n return getMyDao().getListAll();\r\n }", "public String[] getActivations(){\n return activations;\n }", "public void getMainListForActions() {\n mMainListForActions = mDatabaseManager.getAllCurrenciesForCurrenciesFragment(false);\n checkDefaultData();\n setLang();\n }", "@Override\n\tpublic List<News> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<News> list = (List<News>)getCurrentSession().createQuery(\"FROM News\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Course> getAllCourse() {\n\t\treturn (List<Course>) sessionFactory.getCurrentSession().createCriteria(Course.class).list();\n\t}", "List<EquipmentCategory> getAllEquipment() throws PersistenceException;", "List<Course> selectAll();", "@Override\n\tpublic ArrayList<Object> getList() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\n\t\tString hsql=\"from hibernate.pojo.GmSite as site where site.display='true'\";\n\t\tQuery query = session.createQuery(hsql);\n\t\tsession.getTransaction().commit();\n\t\tArrayList<Object> list = new ArrayList<Object>();\n\t\tlist = (ArrayList<Object>) query.list();\n\t\t\n\t\tsession.close();\n\t\treturn list;\n\t}", "List<Ad> all();", "@Override\n public List<Item> viewAllItems() {\n // calls List<Item> itemRepo.findCatalog();\n return itemRepo.findCatalog();\n }", "public List<Coach> findAll() {\n\t\treturn list(namedQuery(\"de.hummelflug.clubapp.server.core.Coach.findAll\"));\n\t}", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "@Override\n\tpublic List<Mood> moodList() {\n\t\tMoodDAO moodDAO = new MoodDAOimp();\n\t\treturn moodDAO.showMoods();\n\t}", "public List<TVShow> getAllShows(){\n\tList<TVShow> shows = new ArrayList<>();\n\ttvShowRepo.findAll().forEach(show->shows.add(show));\n\treturn shows;\n}", "public Queries queries() {\n return this.queries;\n }", "@Override\r\n\tpublic List<Hotel> getAllHotels() {\n\t\treturn showHotelList();\r\n\t}", "public List<Category> list() {\n\t\tSession session = getSession();\n\n\t\tQuery query = session.createQuery(\"from Category\");\n\t\tList<Category> categoryList = query.list();\n session.close();\n\t\treturn categoryList;\n\t}", "public Observable<List<Laptop>> getLaptops(){\n return laptopServices.getLaptops();\n }", "@Override\r\n\tpublic List<Product> showAll() throws Exception {\n\t\treturn this.dao.showAll();\r\n\t}", "public List<Category> getAllAvailableCategory() {\n\t\treturn categoryManager.getAllAvailable();\n\t}", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "@Override\n\tpublic List<Affectation> getAllAffectation() {\n\t\treturn dao.getAllAffectation();\n\t}", "protected List<String> getActives() {\n\t\treturn myActives;\n\t}", "public List<Route> getRoutes(){\n return routeDAO.findAll();\n }", "public ArrayList<Warehouse> getUserWarehouses(){\r\n try{\r\n ArrayList<Warehouse> mWarehouses = new ArrayList<Warehouse>();\r\n UserManager mydb= new UserManager(activity);\r\n String[] allColumns = { DBManager.Warehouse_Key, DBManager.Warehouse_LABEL };\r\n\r\n mydb.open();\r\n Cursor cursor = mydb.getDb().query(DBManager.Warehouse_TABLE_NAME,\r\n allColumns, null, null, null, null, null);\r\n\r\n cursor.moveToFirst();\r\n while (!cursor.isAfterLast()) {\r\n Warehouse dp = new Warehouse(cursor.getString(0),cursor.getString(1));\r\n mWarehouses.add(dp);\r\n cursor.moveToNext();\r\n }\r\n // closing the cursor\r\n cursor.close();\r\n mydb.close();\r\n\r\n return mWarehouses;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "List<StockList> fetchAll();", "@Override\r\n\tpublic List<Modules> getAllModules() {\n\t\tString hql = \"from Modules\";\r\n\t\treturn (List<Modules>) getHibernateTemplate().find(hql);\r\n\t}", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic List<Admin> getAdmins() {\n\t\treturn ar.findAll();\n\t}", "public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}", "@Override\r\n\tpublic List<HouseState> queryAllHState() {\n\t\treturn adi.queryAllHState();\r\n\t}", "public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }", "@Override\n\t\tprotected Cursor loadCursor() {\n\t\t\treturn ExerciseCatalog.get(getContext()).queryExercises();\n\t\t}", "public ArrayList<FeedbackDetail> gettingAllAvailableFeedbacks() throws Exception;", "List fetchAll() throws AdaptorException ;", "ObservableList<Attraction> getAttractionList();", "public static Collection getAllActivities() throws EnvoyServletException\n {\n try\n {\n return ServerProxy.getJobHandler().getAllActivities();\n }\n catch (Exception e)\n {\n throw new EnvoyServletException(e);\n }\n }", "public List<Laptop> findAll() {\n\t\treturn laptopDao.findAll();\r\n\t}", "@Override\r\n\tpublic List<Units> queryAllHx() {\n\t\treturn adi.queryAllHx();\r\n\t}", "@RequestMapping(\"/courses\")\n\tpublic List<Course> getAllCourses() {\n\t\treturn courseService.getAllCourses();\n\t}", "private List<Weight> loadWeights() {\n return mWeightDb.getWeights();\n }", "@GetMapping(value=\"/getAll\")\n\tpublic List<Question> getAll(){\n\t\tLOGGER.info(\"Viewing all questions\");\n\t\treturn questionObj.viewAllQuestions();\n\t}", "public abstract Collection<Piece> getActivePieces();" ]
[ "0.6280977", "0.61732167", "0.54648644", "0.53638315", "0.5282611", "0.5265529", "0.52198577", "0.52098", "0.52076226", "0.5201635", "0.51428485", "0.5139938", "0.511516", "0.51106524", "0.510255", "0.5087982", "0.50836957", "0.5060114", "0.5059793", "0.5028311", "0.50200826", "0.50010324", "0.49838927", "0.49832478", "0.4974955", "0.49747363", "0.49715713", "0.4954471", "0.49468094", "0.49426755", "0.49229154", "0.4908844", "0.49033386", "0.490144", "0.4896646", "0.48938018", "0.48890316", "0.48829272", "0.48816168", "0.48811102", "0.48777884", "0.48642415", "0.48591313", "0.48430198", "0.48380518", "0.48337165", "0.48312736", "0.48259917", "0.48248726", "0.48198172", "0.48191372", "0.48131436", "0.48114336", "0.4809197", "0.47988603", "0.47795397", "0.47791353", "0.47576484", "0.47573954", "0.47551784", "0.4753855", "0.47535104", "0.47518837", "0.4751288", "0.47478262", "0.47468266", "0.47421026", "0.4741809", "0.4738148", "0.47374943", "0.4736426", "0.47328374", "0.47321597", "0.47306263", "0.4718281", "0.47158962", "0.47145757", "0.47118044", "0.47108808", "0.47028238", "0.47027558", "0.47014996", "0.47000974", "0.46998024", "0.46995777", "0.46982184", "0.46933717", "0.4692287", "0.46896458", "0.4687704", "0.4687247", "0.46869233", "0.46795607", "0.46725923", "0.46711186", "0.46689126", "0.4655828", "0.46546647", "0.46543908", "0.4653936" ]
0.7062073
0
Retrieve all Reservations from the data store.
Collection<Reservation> getReservations() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n @Transactional(readOnly = true, propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED)\n public List<Reservations> getAll() {\n Session s = sessionFactory.getCurrentSession();\n Query hql = s.createQuery(\"From Reservations\");\n return hql.list();\n }", "@RequestMapping(value = \"/Reservation\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic List<Reservation> listReservations() {\n\t\treturn new java.util.ArrayList<Reservation>(reservationService.loadReservations());\n\t}", "List<Reservierung> selectAll() throws ReservierungException;", "@Operation(\n summary = \"Get a list of all reservations\"\n )\n @ApiResponses(\n @ApiResponse(\n responseCode = \"200\",\n description = \"Successful Response\",\n content = @Content(array = @ArraySchema(schema = @Schema(implementation =\n Reservation.class)))\n )\n )\n @GetMapping(\n path = \"/reservations\",\n produces = APPLICATION_JSON_VALUE\n )\n public ResponseEntity<List<Reservation>> getReservation() {\n List<Reservation> listofReservations = (List<Reservation>) reservationsRepository.findAll();\n return new ResponseEntity(listofReservations, HttpStatus.OK);\n }", "public List<Reserva> getAllReservas(){\n return repositorioReserva.findAll();\n }", "public List<ReservaEntity> getReservas() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todas las reservas\");\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\n List<ReservaEntity> reservas = persistence.findAllReservas();\n LOGGER.log(Level.INFO, \"Termina proceso de consultar todas las reservas\");\n return reservas;\n }", "public Iterator <R> getAllReservations(){\n IterR iter = new IterR();\n return iter;\n }", "public ArrayList<Reservation> getReservation() {\n return reservations;\n }", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "@Override\n\tpublic List<ReservationDetails> getMyReservations(User user) {\n\t\t\n\t\t\n\t\treturn rdDAO.getMyReservations(user);\n\t}", "public List<Reserva> getAllReservas() throws Exception {\n\t\t\tDAOReserva daoReserva = new DAOReserva();\n\t\t\tList<Reserva> reservas;\n\t\t\ttry \n\t\t\t{\n\t\t\t\tthis.conn = darConexion();\n\t\t\t\tdaoReserva.setConn(conn);\n\t\t\t\t\n\t\t\t\t//Por simplicidad, solamente se obtienen los primeros 50 resultados de la consulta\n\t\t\t\treservas = daoReserva.getReserva();\n\t\t\t}\n\t\t\tcatch (SQLException sqlException) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\t\tsqlException.printStackTrace();\n\t\t\t\tthrow sqlException;\n\t\t\t} \n\t\t\tcatch (Exception exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t} \n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tdaoReserva.cerrarRecursos();\n\t\t\t\t\tif(this.conn!=null){\n\t\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException exception) {\n\t\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\tthrow exception;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn reservas;\n\t\t}", "protected void showReservations() {\n storageDao.findAllRented()\n .forEach(System.out::println);\n }", "public List<Reserva> getAllReservas() throws Exception {\n\t\tDAOReserva dao = new DAOReserva();\n\t\tList<Reserva> res;\n\t\ttry \n\t\t{\n\t\t\tthis.conn = darConexion();\n\t\t\tdao.setConn(conn);\n\t\t\tres = dao.getReservas();\n\n\t\t}\n\t\tcatch (SQLException sqlException) {\n\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\tsqlException.printStackTrace();\n\t\t\tthrow sqlException;\n\t\t} \n\t\tcatch (Exception exception) {\n\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\texception.printStackTrace();\n\t\t\tthrow exception;\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tdao.cerrarRecursos();\n\t\t\t\tif(this.conn!=null){\n\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public ArrayList<Object> getGuestsReservations(int guestId){\n \n return dbf.getGuestsReservations(guestId); \n }", "@GetMapping(\"all\")\r\n public List<Resident> getAllResidents() {\r\n\r\n return residentService.findAllResident();\r\n }", "@Transactional(readOnly = true)\n public Reservations getById(int id) {\n Session session = sessionFactory.getCurrentSession();\n return (Reservations) session.get(Reservations.class, id);\n }", "@Override\n public List<Room> findAllRooms() throws AppException {\n log.info(\"RoomDAO#findAllRooms(-)\");\n Connection con = null;\n List<Room> rooms;\n try {\n con = DataSource.getConnection();\n rooms = new ArrayList<>(findAllRooms(con));\n con.commit();\n } catch (SQLException e) {\n rollback(con);\n log.error(\"Problem at findAllRooms(no param)\", e);\n throw new AppException(\"Can not find all rooms, try again\");\n } finally {\n close(con);\n }\n return rooms;\n }", "public Collection<ReservationHistoryDTO> getCurrentReservations() throws ResourceNotFoundException{\n\t\tRegisteredUser currentUser = (RegisteredUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t\n\t\t\n\t\tRegisteredUser currentUserFromBase = registeredUserRepository.getOne(currentUser.getId());\n\t\t\n\t\tCollection<Reservation> reservations = currentUserFromBase.getReservations();\n\t\t\n\t\tif(reservations==null) {\n\t\t\tthrow new ResourceNotFoundException(\"User \"+currentUserFromBase.getUsername()+\" made non reservation!\");\n\t\t}\n\n\t\tHashSet<ReservationHistoryDTO> reservationsDTO = new HashSet<ReservationHistoryDTO>();\n\t\t\n\t\t\n\t\t\n\t\tfor(Reservation reservation : reservations) {\n\t\t\tif(!reservation.getHasPassed()) {\n\t\t\t\n\t\t\t\tReservationHistoryDTO reservationDTO = new ReservationHistoryDTO();\n\t\t\t\t\n\t\t\t\tFlightReservation flightReservation = reservation.getFlightReservation();\n\t\t\t\tRoomReservation roomReservation = reservation.getRoomReservation();\n\t\t\t\tVehicleReservation vehicleReservation = reservation.getVehicleReservation();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFlight flight = flightReservation.getSeat().getFlight();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLong reservationId = reservation.getId();\n\t\t\t\tLong flightId = flight.getId();\n\t\t\t\tString departureName = flight.getDeparture().getName();\n\t\t\t\tString destinationName = flight.getDestination().getName();\n\t\t\t\tDate departureDate = flight.getDepartureDate();\n\t\t\t\tLong airlineId = flight.getAirline().getId();\n\t\t\t\t\n\t\t\t\treservationDTO.setReservationId(reservationId);\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightId(flightId);\n\t\t\t\treservationDTO.setDepartureName(departureName);\n\t\t\t\treservationDTO.setDestinationName(destinationName);\n\t\t\t\treservationDTO.setDepartureDate(departureDate);\n\t\t\t\treservationDTO.setAirlineId(airlineId);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(roomReservation != null) {\n\t\t\t\t\tRoomType roomType = reservation.getRoomReservation().getRoom().getRoomType();\n\t\t\t\t\tif(roomType!= null) {\n\t\t\t\t\t\treservationDTO.setRoomTypeId(roomType.getId());\n\t\t\t\t\t\treservationDTO.setHotelId(roomReservation.getRoom().getHotel().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(vehicleReservation != null) {\n\t\t\t\t\tVehicle vehicle = reservation.getVehicleReservation().getReservedVehicle();\n\t\t\t\t\tif(vehicle != null) {\n\t\t\t\t\t\treservationDTO.setVehicleId(vehicle.getId());\n\t\t\t\t\t\treservationDTO.setRentACarId(vehicle.getBranchOffice().getMainOffice().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn reservationsDTO;\n\t\t\n\t}", "public List<ConsultationReservation> getConsultationReservationsByUserToday(InternalUser user) throws SQLException{\n\t\t\n\t\treturn super.manager.getConsultationReservationByUser(user, LocalDate.now(), true, false);\n\t}", "public List<Reservation> findReservations(ReservableRoomId reservableRoomId) {\n\n return reservationRepository.findByReservableRoomReservableRoomIdOrderByStartTimeAsc(reservableRoomId);\n\n }", "@Transactional\r\n\tpublic List<Room> getAllRooms(){\r\n\t\tList<Room> list= new ArrayList<Room>();\r\n\t\tIterable<Room> iterable= this.roomRepository.findAll();\r\n\t\tfor(Room room: iterable)\tlist.add(room);\r\n\t\treturn list;\r\n\t}", "public List<Resident> getAllResidents();", "@Transactional(readOnly = true)\n\t@Override\n\tpublic List<T> findAll() {\n\t\treturn (List<T>) registroDao.findAll();\n\t}", "public ResultSet readAll() throws SQLException {\r\n String statement = \"SELECT * FROM appointments\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }", "@RequestMapping(path = \"/\", method = RequestMethod.GET)\n\tList<Appointment> findAll() {\n\t\treturn appointmentService.findAll();\n\t}", "@Override\n\tpublic List<Appointment> getAllAppointments() {\n\t\t\t\tList<Appointment> appointmentsList = new ArrayList<Appointment>();\n\t\t\t\ttry {\n\t\t\t\t\tappointmentsList = ar.findAll();\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tappointmentsList = null;\n\t\t\t\t}\n\t\t\t\treturn appointmentsList ;\n\t}", "public List<SeatEntity> getAll();", "public List<Reservation> getAllEventsForCustomer() {\n\t\tString currentUsername = null;\n\t\ttry {\n\t\t\tcurrentUsername = customerService.getCurrentUserAccount().getUsername();\n\t\t} catch (AnonymusUserException e) {\n\t\t\tLOG.error(\"Cannot get reservations for Customer. Cause: \" + e.getMessage());\n\t\t}\n\t\treturn reservationRepository.findAllByUsername(currentUsername);\n\t}", "@Transactional(readOnly = true)\n public List<Movie> findAll() {\n log.debug(\"Request to get all MovieS\");\n return movieRepository.findAll();\n }", "@GetMapping(\"/reservation\")\n public List<Reservation> getReservations(@RequestParam int userID) { return reservationDataTierConnection.getReservations(userID); }", "@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}", "@Transactional\r\n\tpublic List<Room> getReservedFromTo(LocalDate from, LocalDate to){\r\n\t\treturn this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t}", "@GET\n @Produces(\"application/json\")\n public static List<CRoom> roomAll() {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);\n }", "@Override\n public List<Room> findAll() {\n return roomRepository.findAll();\n }", "public List<Book> getAll() {\n return bookFacade.findAll(); \n }", "@Override\r\n\tpublic List<Address> findAll() {\r\n\t\tDAOJDBC DAOJDBCModel = new DAOJDBC();\r\n\t\tStatement sqlStatement = null;\r\n\t\tList<Address> arrayList = new ArrayList<>();\r\n\t\t\r\n\t\tResultSet array = DAOJDBCModel.multiCallReturn(\"SELECT * FROM address;\", sqlStatement);\r\n\t\t\r\n\t\ttry {\r\n\t\t\twhile(array.next()) {\r\n\t\t\t\tarrayList.add(new Address(array.getInt(\"id\"), array.getString(\"street\"), array.getString(\"district\"),\r\n\t\t\t\t\t\tarray.getInt(\"number\"), array.getString(\"note\"))); \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn arrayList;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tDB.closeStatament(sqlStatement);\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public List<ReservationDTO> seachReservationBypid(int pid) {\n\t\treturn dao.seachReservationBypid(pid);\r\n\t}", "Sporthall() {\n reservationsList = new ArrayList<>();\n }", "public List<Reservation> findByReservationUser_Id(@Param(\"id\") int id);", "@Transactional\r\n\tpublic List<Room> getReservable(Integer posti, LocalDate from, LocalDate to){\r\n\t\tList<Room> l= this.getPosti(posti);\r\n\t\tl.removeAll(this.getReservedFromTo(from, to));\r\n\t\treturn l;\r\n\t}", "public Collection<ReservationHistoryDTO> getReservationsHistory() throws ResourceNotFoundException{\n\t\tRegisteredUser currentUser = (RegisteredUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t\n\t\t\n\t\tRegisteredUser currentUserFromBase = registeredUserRepository.getOne(currentUser.getId());\n\t\t\n\t\tCollection<Reservation> reservations = currentUserFromBase.getReservations();\n\t\t\n\t\tif(reservations==null) {\n\t\t\tthrow new ResourceNotFoundException(\"User \"+currentUserFromBase.getUsername()+\" made non reservation!\");\n\t\t}\n\n\t\tHashSet<ReservationHistoryDTO> reservationsDTO = new HashSet<ReservationHistoryDTO>();\n\t\t\n\t\t\n\t\t\n\t\tfor(Reservation reservation : reservations) {\n\t\t\tif(reservation.getHasPassed()) {\n\t\t\t\n\t\t\t\tReservationHistoryDTO reservationDTO = new ReservationHistoryDTO();\n\t\t\t\t\n\t\t\t\tFlightReservation flightReservation = reservation.getFlightReservation();\n\t\t\t\tRoomReservation roomReservation = reservation.getRoomReservation();\n\t\t\t\tVehicleReservation vehicleReservation = reservation.getVehicleReservation();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightReservationId(flightReservation.getId());\n\t\t\t\t\n\t\t\t\tFlight flight = flightReservation.getSeat().getFlight();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLong reservationId = reservation.getId();\n\t\t\t\tLong flightId = flight.getId();\n\t\t\t\tString departureName = flight.getDeparture().getName();\n\t\t\t\tString destinationName = flight.getDestination().getName();\n\t\t\t\tDate departureDate = flight.getDepartureDate();\n\t\t\t\tLong airlineId = flight.getAirline().getId();\n\t\t\t\t\n\t\t\t\treservationDTO.setReservationId(reservationId);\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightId(flightId);\n\t\t\t\treservationDTO.setDepartureName(departureName);\n\t\t\t\treservationDTO.setDestinationName(destinationName);\n\t\t\t\treservationDTO.setDepartureDate(departureDate);\n\t\t\t\treservationDTO.setAirlineId(airlineId);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(roomReservation != null) {\n\t\t\t\t\tRoomType roomType = reservation.getRoomReservation().getRoom().getRoomType();\n\t\t\t\t\treservationDTO.setRoomReservationId(roomReservation.getId());\n\t\t\t\t\tif(roomType!= null) {\n\t\t\t\t\t\treservationDTO.setRoomTypeId(roomType.getId());\n\t\t\t\t\t\treservationDTO.setHotelId(roomReservation.getRoom().getHotel().getId());\n\t\t\t\t\t\t//Long hotelId videcemo kako\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(vehicleReservation != null) {\n\t\t\t\t\tVehicle vehicle = reservation.getVehicleReservation().getReservedVehicle();\n\t\t\t\t\treservationDTO.setVehicleReservationId(vehicleReservation.getId());\n\t\t\t\t\tif(vehicle != null) {\n\t\t\t\t\t\treservationDTO.setVehicleId(vehicle.getId());\n\t\t\t\t\t\treservationDTO.setRentACarId(vehicle.getBranchOffice().getMainOffice().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn reservationsDTO;\n\t\t\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<NominationDTO> findAll() {\n log.debug(\"Request to get all Nominations\");\n\n if(SecurityUtils.isCurrentUserInRole(AuthoritiesConstants.ADMIN))\n return _nomNominationRepository.findAll().stream()\n .map(_nominationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n else\n return findAllNomsForTheCurrentUser();\n\n }", "public List<Reservation> saveToFile() {\n\t\treturn rList;\n\t}", "public Cliente[] findAll() throws ClienteDaoException;", "public java.util.List<com.Hotel.model.Hotel> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "List<Reservation> findReservationsByUserBookId (Long userId);", "public List<E> findAll() {\n return getDao().findAll();\n }", "Collection<Room> getRooms() throws DataAccessException;", "@Override\n\t@Transactional(readOnly=true)\n\tpublic List<Cliente> findAll() {\n\t\treturn clienteDao.findAll();\n\t}", "@Override\n\tpublic List<Equipo> getAll()\n\t{\n\t\treturn (ArrayList<Equipo>)equipoRepository.findAll();\n\t}", "@Transactional(readOnly = true)\n public List<AlterationPriceDTO> findAll() {\n log.debug(\"Request to get all AlterationPrices\");\n List<AlterationPriceDTO> result = alterationPriceRepository.findAll().stream()\n .map(alterationPriceMapper::alterationPriceToAlterationPriceDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }", "public List<Prenotazione> getAllReservations(QueryParamsMap queryParamsMap) {\n final String sql = \"SELECT id, data_p , ora_inizio, ora_fine, clienti, ufficio_id, utente_id FROM prenotazioni\";\n\n List<Prenotazione> reservations = new LinkedList<>();\n\n try {\n Connection conn = DBConnect.getInstance().getConnection();\n PreparedStatement st = conn.prepareStatement(sql);\n\n ResultSet rs = st.executeQuery();\n\n Prenotazione old = null;\n while(rs.next()) {\n if(old == null){\n old = new Prenotazione(rs.getInt(\"id\"), rs.getString(\"data_p\"), rs.getInt(\"ora_inizio\"), rs.getInt(\"ora_fine\"), rs.getInt(\"clienti\"), rs.getInt(\"ufficio_id\"), rs.getString(\"utente_id\"));\n }\n else if(old.getFinalHour() == rs.getInt(\"ora_fine\") && old.getDate().equals(rs.getString(\"data_p\")) && old.getOfficeId() == rs.getInt(\"ufficio_id\") && old.getUserId() == rs.getString(\"utente_id\"))\n old = new Prenotazione(old.getId(), old.getDate(), old.getStartHour(), rs.getInt(\"ora_fine\"), old.getClients() + rs.getInt(\"clienti\"), old.getOfficeId(), old.getUserId());\n else {\n reservations.add(old);\n Prenotazione t = new Prenotazione(rs.getInt(\"id\"), rs.getString(\"data_p\"), rs.getInt(\"ora_inizio\"), rs.getInt(\"ora_fine\"), rs.getInt(\"clienti\"), rs.getInt(\"ufficio_id\"), rs.getString(\"utente_id\"));\n reservations.add(t);\n }\n }\n\n conn.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return reservations;\n }", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public java.util.Collection allRetrieveAETs() \n throws javax.ejb.FinderException;", "@Transactional(readOnly = true)\n public List<Details> findAll() {\n log.debug(\"Request to get all Details\");\n return detailsRepository.findAll();\n }", "@Override\n\tpublic List<Oeuvre> findAll() {\n\t\treturn oeuvreDao.findAll();\n\t}", "public List<Region> gets() {\r\n return rdao.getAllRegion();\r\n }", "@Override\n @Transactional(readOnly = true)\n public List<OrdreDTO> findAll() {\n log.debug(\"Request to get all Ordres\");\n return ordreRepository.findAll().stream()\n .map(ordreMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public void loadReserva() {\r\n\t\tif(listaReservas.size() != 0) {\r\n\r\n\t\t}else {\r\n\t\t\tfor(int i = 0; i < 8; i++) {\r\n\t\t\t\tReservaDAO aux = new ReservaDAO();\r\n\t\t\t\taux.load_reserva(i+1);\r\n\t\t\t\tif(aux.getTitulo() != null) {\r\n\t\t\t\t\tlistaReservas.add(aux);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t@Transactional(readOnly = true)\n\tpublic List<Cliente> findAll() {\n\t\treturn clienteDao.findAll();\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<OrganizerDTO> findAll() {\n log.debug(\"Request to get all Organizers\");\n return organizerRepository.findAll().stream()\n .map(organizerMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List<Seat> listAll() {\n\t\treturn repository.findAll();\n\t}", "public List<Book> findAll() {\n\t\treturn bookDao.findAll();\r\n\t}", "public ListaReservasBean() {\r\n\t\tthis.listaReservas = new ArrayList<ReservaDAO>();\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Satelite> findAll() {\n\t\treturn (List<Satelite>) sateliteRepository.findAll();\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<MuseumDTO> findAll() {\n log.debug(\"Request to get all Museums\");\n return museumRepository.findAll().stream()\n .map(museumMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@GetMapping\n\t@ApiOperation(value = \"Get reservation\", notes = \"Service to get a just reservation\")\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"Retrieved reservation\"),\n\t\t\t@ApiResponse(code = 404, message = \"Reservation not found\"),\n\t\t\t@ApiResponse(code = 400, message = \"Bad request\")\n\t})\n\tpublic ResponseEntity<?> get(){\n\t\tResponseEntity<?> response;\n\t\tList<Reservation> reservations = reservationService.getAll();\n\t\tif(reservations.size()==0) {\n\t\t\tMap<String,String> errors = new HashMap<>();\n\t\t\terrors.put(\"Errors\", \"No reservations\");\n\t\t\tresponse = new ResponseEntity<>(errors,HttpStatus.NOT_FOUND);\n\t\t}else {\n\t\t\tList<ReservationDTO> reservationsDTO = new LinkedList<>();\n\t\t\tReservationDTO reservationDTO;\n\t\t\tfor(Reservation reservation : reservations) {\n\t\t\t\treservationDTO = new ReservationDTO(reservation);\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t\tresponse = new ResponseEntity<>(reservationsDTO,HttpStatus.OK);\n\t\t}\n\t\treturn response;\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<PomocniMaterijal> findAll() {\n log.debug(\"Request to get all PomocniMaterijals\");\n return pomocniMaterijalRepository.findAll();\n }", "public List<Book> findAll() {\n return bookRepository.findAll();\n }", "@Override\r\n public List<Contract> getAllResContracts() {\r\n try {\r\n List<Contract> l = new ArrayList();\r\n Query q = entityManager.createQuery(\"SELECT c FROM Contract c WHERE c.shop.shopType='Restaurant'\");\r\n return q.getResultList();\r\n } catch(Exception ex) {\r\n return null;\r\n }\r\n }", "@RequestMapping(value = \"/Reservation/{reservation_reservationId}/transactionses\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic List<Transactions> getReservationTransactionses(@PathVariable Integer reservation_reservationId) {\n\t\treturn new java.util.ArrayList<Transactions>(reservationDAO.findReservationByPrimaryKey(reservation_reservationId).getTransactionses());\n\t}", "@Test\n @DisplayName(\"Testataan kaikkien tilausten haku\")\n void getAllReservations() {\n assertEquals(0, reservationsDao.getAllReservations().size());\n\n TablesEntity table1 = new TablesEntity();\n table1.setSeats(2);\n tablesDao.createTable(table1);\n // Test that returns the same number as created reservations\n ReservationsEntity firstReservation = new ReservationsEntity(\"amal\",\"46111222\", new Date(System.currentTimeMillis()), table1.getId(),new Time(1000),new Time(2000));\n reservationsDao.createReservation(firstReservation);\n\n TablesEntity table2 = new TablesEntity();\n table2.setSeats(2);\n tablesDao.createTable(table2);\n reservationsDao.createReservation(new ReservationsEntity(\"juho\", \"46555444\", new Date(System.currentTimeMillis()), table2.getId(), new Time(1000),new Time(2000)));\n\n List<ReservationsEntity> reservations = reservationsDao.getAllReservations();\n assertEquals(2, reservations.size());\n assertEquals(firstReservation, reservations.get(0));\n }", "@GetMapping(path = \"/rooms\")\n public List<Room> findAllRooms() {\n return new ArrayList<>(roomService.findAllRooms());\n }", "@Transactional(readOnly = true)\n public List<SystemDTO> findAll() {\n log.debug(\"Request to get all Systems\");\n return systemRepository.findAll().stream()\n .map(systemMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List<Boardreservation> getBoardReservations(int boardID);", "@DOpt(type=DOpt.Type.DerivedAttributeUpdater)\n @AttrRef(value=\"reservations\")\n public void doReportQuery() throws NotPossibleException, DataSourceException {\n\n QRM qrm = QRM.getInstance();\n\n // create a query to look up Reservation from the data source\n // and then populate the output attribute (reservations) with the result\n DSMBasic dsm = qrm.getDsm();\n\n //TODO: to conserve memory cache the query and only change the query parameter value(s)\n Query q = QueryToolKit.createSearchQuery(dsm, Reservation.class,\n new String[]{Reservation.AttributeName_Status},\n new Expression.Op[]{Expression.Op.MATCH},\n new Object[]{status});\n\n Map<Oid, Reservation> result = qrm.getDom().retrieveObjects(Reservation.class, q);\n\n if (result != null) {\n // update the main output data\n reservations = result.values();\n\n // update other output (if any)\n numReservations = reservations.size();\n } else {\n // no data found: reset output\n resetOutput();\n }\n }", "@Override\n\tpublic List<Book> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Override\n\tpublic List<BookInfoVO> findAll() {\n\t\treturn bookInfoDao.findAll();\n\t}", "public ResultSet getAllRooms() {\r\n\r\n try {\r\n\r\n SQL = \"SELECT * FROM ROOMS;\";\r\n rs = stmt.executeQuery(SQL);\r\n return rs;\r\n\r\n } catch (SQLException err) {\r\n\r\n System.out.println(err.getMessage());\r\n return null;\r\n\r\n }\r\n\r\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic @ResponseBody\n\tIterable<Customer> findAll() {\n\t\tLOGGER.debug(\"Rendering persons list\");\n\t\treturn customerService.findAll();\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<EvenementDto> getAll() {\n DataAccess dataAccess = DataAccess.begin();\n List<EvenementEntity> li = dataAccess.getAllEvents();\n dataAccess.closeConnection(true);\n return li.stream().map(EvenementEntity::convertToDto).collect(Collectors.toList());\n }", "List<Enrolment> getAll();", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "public List<Restaurant> getAllRestaurants() {\n\t\tList<Restaurant> restaurantList = new ArrayList<>();\n\t\trestaurantRepository.findAll()\n\t\t.forEach(r->restaurantList.add(r));\n\t\treturn restaurantList;\n\t}", "@Transactional(readOnly = true)\n Collection<DataRistorante> getAll();", "@Override\r\n\tpublic List<Employer> getAll() {\n\t\treturn employerDao.findAll();\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<AdsDTO> findAll() {\n log.debug(\"Request to get all Ads\");\n return adsRepository.findAll().stream()\n .map(adsMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@GetMapping(\"/api/rents\")\r\n public ResponseEntity<List<Rent>> findAll(){\r\n final List<Rent> rentList = rentService.findAll();\r\n return rentList != null && !rentList.isEmpty()\r\n ? new ResponseEntity<>(rentList, HttpStatus.OK)\r\n : new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }", "@RequestMapping(value = \"/semesters\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Semester> getAll() {\n log.debug(\"REST request to get all Semesters\");\n return semesterRepository.findAll();\n }", "public Collection<ReservationDetails> getBookCopies(int bookId) throws RemoteException;", "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn rolDao.readAll();\n\t}", "@Override\n\tpublic List<Empresa> getAll() {\n\t\treturn empresaJpaRepository.findAll();\n\t}", "public void readReservationList() {\n\n\t\tif (rList.size() == 0) {\n\t\t\tSystem.out.println(\"No reservations available!\");\n\t\t} else{\n\t\t\tSystem.out.println(\"\\nDisplaying Reservation List: \\n\");\n\t\t\tSystem.out.format(\"%-20s%-15s%-15s%-15s%-20s%-35s%-25s%-25s%-15s\\n\", \"Reservation No.\", \"Guest ID\", \"Num Adult\",\n\t\t\t\t\t\"Num Kid\", \"Room No.\", \"Reservation Status\", \"Check in\", \"Check out\", \"Reservation time\");\n\n\t\t\tfor (Reservation r : rList) {\n\t\t\t\tSystem.out.format(\"%-20d%-15s%-15s%-15s%-20s%-35s%-25s%-25s%-15.8s\\n\", r.getResvNo(), r.getGuestID(),\n\t\t\t\t\t\tr.getAdultNo(), r.getKidNo(), r.getRoomNo(), r.getResvStatus(), r.getDateCheckIn(), r.getDateCheckOut(),\n\t\t\t\t\t\tr.getResvTime());\n\t\t\t}\n\t\t}\n\t}", "@GetMapping(\"/receta/all\")\t\n\tpublic List<Receta> listarReceta(){\n\t\t\treturn this.recetaService.findAll();\n\t}", "public void update() {\n\t\trl = DBManager.getReservationList();\n\t}", "public List<Room> findAllRooms();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DbLotniskoEntity> getAll() {\n \tList<DbLotniskoEntity> airports = (List<DbLotniskoEntity>)getSession().createQuery(\"from kiwi.models.DbLotniskoEntity\").list();\n\n \treturn airports;\n }", "public List<Ramen> getAllRamen(){\r\n //return ramens;\r\n // Originally (above) for hardcoded list, but now it's looking into Crud Repository\r\n List<Ramen> ramens = new ArrayList<>();\r\n ramenRepository.findAll() //An iterable\r\n .forEach(ramens::add); //Lambda expression. For each in iterable, adds to ramens\r\n return ramens;\r\n }", "public List<Book> findAll()\r\n\t{\r\n\t\tList<Book> booklist= null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSession();\r\n\t\t booklist=bookdao.findAll();\r\n\t\t\tbookdao.closeCurrentSession();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn booklist;\r\n\t}", "@Override\n @Transactional\n public List getAll() {\n return routDAO.getAll();\n }" ]
[ "0.82116306", "0.7515862", "0.7301828", "0.72012174", "0.7156702", "0.71459603", "0.71008974", "0.6850144", "0.66451", "0.65543646", "0.6544135", "0.6532803", "0.6513147", "0.64536387", "0.6414208", "0.6276237", "0.6181463", "0.6117666", "0.611654", "0.6085981", "0.6064277", "0.6007259", "0.59939086", "0.5977927", "0.5966095", "0.59502375", "0.59170127", "0.5911856", "0.591184", "0.5911715", "0.59042704", "0.5898467", "0.58586127", "0.5857398", "0.5854464", "0.5842793", "0.5841164", "0.5821918", "0.58150905", "0.58068544", "0.580578", "0.57930624", "0.5776258", "0.5765633", "0.5758388", "0.57497716", "0.57492644", "0.57451105", "0.5738548", "0.5734824", "0.57347286", "0.5731662", "0.5729267", "0.57267845", "0.57251585", "0.5723308", "0.57221884", "0.5713235", "0.5706654", "0.5697856", "0.5691492", "0.5676248", "0.5665441", "0.5661", "0.5655419", "0.5648308", "0.5646526", "0.56402636", "0.56369895", "0.5632562", "0.56315416", "0.56305856", "0.5629697", "0.56249964", "0.56179494", "0.56133044", "0.5612944", "0.5612216", "0.55960494", "0.55945724", "0.5590822", "0.55897605", "0.558495", "0.558221", "0.5582188", "0.55807453", "0.55783844", "0.55728513", "0.55679154", "0.5566629", "0.5564774", "0.5556676", "0.5555377", "0.55502754", "0.5549864", "0.554784", "0.55477434", "0.55472344", "0.55445397", "0.5539269" ]
0.76618785
1
Vrati Aktivitu z data store podle id.
ActivityType loadActivityType(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDataId();", "java.lang.String getDataId();", "public long getId() { return id; }", "public long getId() { return id; }", "public int getId() {\n return oid ;\n }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "Long getId();", "Long getId();", "Long getId();", "public Long id() { return this.id; }", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId() { return _id; }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public int getId() {\n\t\treturn this.data.getId();\n\t}", "public long getId() {\n return id_;\n }", "public long getId() { return this.id; }", "public Long getId(){\n\t\treturn id;\n\t}", "public Long getId() {\n return id;\n }", "public long getId(){\n\t\treturn id;\n\t}", "public Long getId() \n {\n return id;\n }", "public String id()\n {\n return id;\n }", "public Long getId() \r\n {\r\n return id;\r\n }", "@Override\n public Long getId () {\n return id;\n }", "public Long getId()\r\n {\r\n return id;\r\n }", "public long getId()\n {\n return id;\n }", "public long getId ()\r\n {\r\n return _id;\r\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId(){\n return this.id;\n }", "public Long getId() {\n\treturn id;\n }", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "@Override\n public long getId() {\n return id;\n }", "public Long getId()\n {\n return id;\n }", "public Long getId()\n {\n return id;\n }", "public Long getId()\n {\n return id;\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public String id();", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public byte getId(){\n return id;\n }", "java.lang.String getId();" ]
[ "0.7025198", "0.7025198", "0.6975461", "0.6975461", "0.6970497", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6952961", "0.6952961", "0.6952961", "0.6899859", "0.68897563", "0.68897563", "0.68897563", "0.68897563", "0.68897563", "0.68897563", "0.6884424", "0.6867224", "0.6867224", "0.6846285", "0.6816846", "0.6812547", "0.67980117", "0.6786292", "0.6779707", "0.67783993", "0.67783374", "0.67743856", "0.6772163", "0.67651755", "0.67587274", "0.67584753", "0.6752379", "0.6752379", "0.6752379", "0.6752379", "0.6751971", "0.6746833", "0.67453325", "0.67453325", "0.67453325", "0.67398894", "0.673842", "0.673842", "0.673842", "0.67370033", "0.67370033", "0.67370033", "0.67370033", "0.67370033", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.67294693", "0.6727194", "0.6722579", "0.6722579", "0.6722579", "0.6722579", "0.6721679", "0.67194587" ]
0.0
-1
Vrati Uzivatelskou roli z data store dle zadaneho id.
UserRole loadUserRole(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Long id() { return this.id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "public int getId(){\r\n\t\treturn id;\r\n\t}", "public int getId(){\r\n\t\treturn id;\r\n\t}", "public Long getId() {return id;}", "public Long getId() {return id;}", "public int getId()\n {\n return id;\n }", "public int getId()\r\n {\r\n return id;\r\n }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getId() {return id;}", "public int getId()\n {\n return id;\n }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "public int getId(){\n\t\treturn id;\n\t}", "public int getId(){\n\t\treturn id;\n\t}", "public int getId(){\n\t\treturn id;\n\t}", "public int getId(){\n\t\treturn id;\n\t}", "public int getId(){\n\t\treturn id;\n\t}", "public long getId() { return id; }", "public long getId() { return id; }", "public int getId()\n {\n\treturn id;\n }", "public Long getId() {\n return id;\n }", "public int getId() {\n\t\treturn this.data.getId();\n\t}", "public Long getId() \n {\n return id;\n }", "public Long getId(){\n\t\treturn id;\n\t}", "public int getId(){\r\n return this.id;\r\n }", "public int id() {return id;}", "public Long getId() {\n\treturn id;\n }", "public int getId() {\n return id;\n }", "public Long getId() \r\n {\r\n return id;\r\n }", "@Override\n public long getId() {\n return id;\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public int getID() {\n return id;\r\n }", "public String id()\n {\n return id;\n }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public long getId() { return _id; }", "public long getId() { return this.id; }", "public Long getId()\r\n {\r\n return id;\r\n }", "public int getId() {\n return id_;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn id;\n\t}", "public int getId(){\r\n return localId;\r\n }", "Long getId();", "Long getId();", "Long getId();", "public int getId() {\n return id;\n }", "public int getId() {return Id;}", "public String id() {\r\n return id;\r\n }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "@Override public String getID() { return id;}", "public long getId(){\n\t\treturn id;\n\t}", "public long getId(){\n return this.id;\n }", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getID() {\r\n return id;\r\n }", "public int getId() {\n return id;\n }", "public int getId() {\n return id;\n }" ]
[ "0.727106", "0.7261001", "0.7232455", "0.7226172", "0.7226172", "0.7222729", "0.7222729", "0.72189915", "0.7200493", "0.7188092", "0.7188092", "0.7188092", "0.7188092", "0.7188092", "0.7188092", "0.7187468", "0.7172079", "0.71719706", "0.71644616", "0.7162765", "0.7145577", "0.7145577", "0.7145577", "0.7145577", "0.7145577", "0.7134895", "0.7134895", "0.71295995", "0.7128476", "0.7123152", "0.7116449", "0.7111722", "0.7110029", "0.7107349", "0.7096789", "0.70904374", "0.7090006", "0.70844936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.70800936", "0.7071626", "0.7064731", "0.7064731", "0.7064731", "0.7064731", "0.7063369", "0.7061411", "0.7057053", "0.7057053", "0.7056113", "0.7051332", "0.7048834", "0.70464575", "0.7041679", "0.7038612", "0.70365703", "0.70365703", "0.70365703", "0.7022133", "0.7019203", "0.7018479", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.7017068", "0.70130545", "0.70118964", "0.7007619", "0.700488", "0.700488", "0.700488", "0.7002897", "0.69981647", "0.69981647" ]
0.0
-1
Vrati Uzivatele z data store dle zadaneho id.
User loadUser(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getId() {return id;}", "public Long getId() {return id;}", "public Long id() { return this.id; }", "public int getId()\n {\n return id;\n }", "public Long getId() {\n return id;\n }", "public int getId() {return id;}", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "@Override\n public Long getId () {\n return id;\n }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public int getId(){\r\n\t\treturn id;\r\n\t}", "public int getId(){\r\n\t\treturn id;\r\n\t}", "public int id() {return id;}", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public Long getId() \n {\n return id;\n }", "public int getId()\r\n {\r\n return id;\r\n }", "public int getId()\n {\n return id;\n }", "public int getId() {\n return id;\n }", "public String id()\n {\n return id;\n }", "public Long getId(){\n\t\treturn id;\n\t}", "public int getId() {\n\t\treturn this.data.getId();\n\t}", "public int getId(){\r\n return localId;\r\n }", "public int getId(){\r\n return this.id;\r\n }", "public int getId(){\n\t\treturn id;\n\t}", "public int getId(){\n\t\treturn id;\n\t}", "public int getId(){\n\t\treturn id;\n\t}", "public int getId(){\n\t\treturn id;\n\t}", "public int getId(){\n\t\treturn id;\n\t}", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public Long getId() {\n\treturn id;\n }", "public long getId() { return _id; }", "Long getId();", "Long getId();", "Long getId();", "public int getId()\n {\n\treturn id;\n }", "public void setID(String idIn) {this.id = idIn;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId() {return Id;}", "public Long getId() \r\n {\r\n return id;\r\n }", "@Override public String getID() { return id;}", "@Override\n public long getId() {\n return id;\n }", "public long getId(){return this.id;}", "public String getID(){\n return Id;\n }", "public long getId() { return this.id; }", "@Override\n\tpublic Long getId() {\n\t\treturn id;\n\t}", "public String id() {\r\n return id;\r\n }", "public String id();", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public long getId(){\n return this.id;\n }", "public Long getId()\r\n {\r\n return id;\r\n }", "public int getId(){return id;}", "public int getId() {\r\n return id;\r\n }", "public int getId(){ return id; }", "public String getId() {\n return id;\r\n }", "public String getId(){\n return id;\n }", "public String getId(){\n return id;\n }", "public int getID() {\r\n return id;\r\n }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }" ]
[ "0.7069976", "0.7069976", "0.7059316", "0.7034042", "0.700862", "0.6991897", "0.697826", "0.697826", "0.697826", "0.697826", "0.697826", "0.697826", "0.6968433", "0.69617766", "0.6956501", "0.6947952", "0.6947952", "0.694535", "0.694535", "0.6935642", "0.6935642", "0.6932282", "0.6926808", "0.69262713", "0.6925242", "0.692477", "0.69129646", "0.6897611", "0.6897315", "0.68960357", "0.6894231", "0.6887591", "0.6875704", "0.6875626", "0.6875626", "0.6875626", "0.6875626", "0.6875626", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6873883", "0.6870731", "0.68560874", "0.68560654", "0.68560654", "0.68560654", "0.6855647", "0.6855608", "0.6854508", "0.6854508", "0.6854508", "0.68542206", "0.6853803", "0.6853469", "0.6851759", "0.6847104", "0.6837733", "0.68342143", "0.68259436", "0.68247104", "0.6822713", "0.6822647", "0.6822647", "0.6822647", "0.6822647", "0.68195385", "0.68183327", "0.6806195", "0.68052953", "0.6801815", "0.67956316", "0.6791584", "0.6791584", "0.67896926", "0.6787834", "0.6787834", "0.6782811", "0.6782811", "0.6782811", "0.6782811", "0.6782811", "0.6782811", "0.6782811", "0.6782811", "0.6782811" ]
0.0
-1
Vrati Lekci z data store podle id.
Lesson loadLesson(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDataId();", "java.lang.String getDataId();", "public int getId() {\n return oid ;\n }", "public int getId() {\n\t\treturn this.data.getId();\n\t}", "public long getId() { return id; }", "public long getId() { return id; }", "Long getId();", "Long getId();", "Long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public Long id() { return this.id; }", "public long getId(){\n\t\treturn id;\n\t}", "public Long getId(){\n\t\treturn id;\n\t}", "public long getId() { return _id; }", "public long getId() {\n return id_;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\n\treturn id;\n }", "public long getId() {\n\treturn id;\n }", "public Long getId() \r\n {\r\n return id;\r\n }", "public long getId ()\r\n {\r\n return _id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public Long getId()\r\n {\r\n return id;\r\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId()\n {\n return id;\n }", "public java.lang.Long getId();", "public long getId() { return this.id; }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }" ]
[ "0.6996281", "0.6996281", "0.6876316", "0.68565756", "0.67910814", "0.67910814", "0.6769799", "0.6769799", "0.6769799", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67435724", "0.67435724", "0.67435724", "0.67435724", "0.67435724", "0.67435724", "0.67371076", "0.67302525", "0.6724035", "0.66949004", "0.6684663", "0.6682385", "0.66817623", "0.6672242", "0.6669998", "0.66670775", "0.6661126", "0.6661126", "0.6661126", "0.6661126", "0.6661126", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66607696", "0.66529757", "0.6652231", "0.6652231", "0.6649118", "0.6649118", "0.6649118", "0.6649118", "0.6644848", "0.6641", "0.66312236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236", "0.66290236" ]
0.0
-1
Vrati Rezervaci z data store podle id.
Reservation loadReservation(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearId() {\n \n id_ = 0;\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public void setId(long id) {\n id_ = id;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "java.lang.String getDataId();", "java.lang.String getDataId();", "public long getId() { return id; }", "public long getId() { return id; }", "@Override\n public long getId() {\n return id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public Long id() { return this.id; }", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public long getId() { return _id; }", "@Override\n public Long getId () {\n return id;\n }", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public int getId() {\n return oid ;\n }", "Long getId();", "Long getId();", "Long getId();", "void setId(Long id);", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public int getId() {\n\t\treturn this.data.getId();\n\t}", "public Long getId() {\n\t\treturn null;\n\t}", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}", "@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}", "@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public void setId(byte id){this.id = id;}", "public void setId( Long id );", "@Override\n\tpublic Object getId() {\n\t\treturn null;\n\t}", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public long getId() {\n return id_;\n }", "@Override\r\n\t\tpublic String getId()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public void setId(Long id){\n this.id = id;\n }", "public int getId() {\n\t\t\treturn 0;\n\t\t}", "public long getId ()\r\n {\r\n return _id;\r\n }", "public void setID(long id);", "public Long getId() {return id;}", "public Long getId() {return id;}", "@Override\n\tpublic void setId(Long id) {\n\t}", "private void setId(Integer id) { this.id = id; }", "@Override\n\t\tpublic String getId() {\n\t\t\treturn null;\n\t\t}", "public long getId() { return this.id; }", "public void setId(long id) {\r\n this.id = id;\r\n }", "public byte getId(){\n return id;\n }", "public long getId(){\n\t\treturn id;\n\t}", "public long id() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public abstract long getId();", "public abstract long getId();", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn id;\n\t}", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public abstract long id();" ]
[ "0.66345954", "0.6593521", "0.65786594", "0.6566909", "0.6566909", "0.6566909", "0.6566909", "0.6566909", "0.6566909", "0.6566909", "0.65301067", "0.6525727", "0.6525727", "0.6496314", "0.6485011", "0.6485011", "0.64689904", "0.64689904", "0.6401694", "0.6401694", "0.6386495", "0.6386495", "0.6376808", "0.63766885", "0.63766885", "0.6365463", "0.63644946", "0.6336755", "0.6326918", "0.6293737", "0.6293737", "0.6293737", "0.6293737", "0.6292623", "0.6291124", "0.6284756", "0.6284756", "0.6284756", "0.62845516", "0.6279446", "0.6276631", "0.62738556", "0.6271422", "0.6271411", "0.62689346", "0.62689346", "0.62689346", "0.6268646", "0.62681186", "0.62652045", "0.6261988", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.62562734", "0.6255635", "0.6253054", "0.6249192", "0.62462807", "0.62462807", "0.62462807", "0.62462807", "0.62462807", "0.62462807", "0.62419385", "0.6239173", "0.6238534", "0.6233976", "0.6231255", "0.6231255", "0.6227881", "0.6221163", "0.6210385", "0.6209919", "0.6207484", "0.6207449", "0.62056595", "0.62032056", "0.62026143", "0.61993116", "0.61993116", "0.61980313", "0.6195966", "0.6195263", "0.61938316", "0.619345" ]
0.0
-1
Ulozi druh aktivity do data store, at uz insertovanou nebo updatovanou.
void storeActivityType(ActivityType activityType) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void DataIsInserted() {\n }", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "private void saveData() {\n }", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "public void saveState() {\n table.saveState(store);\n }", "protected void saveValues() {\n dataModel.persist();\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "private void saveState() {\r\n \tSharedPreferences settings = getSharedPreferences(TEMP, 0);\r\n \tEditor editor = settings.edit();\r\n \tif (mRowId != null)\r\n \t\teditor.putLong(DbAdapter.KEY_ROWID, mRowId);\r\n \teditor.putLong(DbAdapter.KEY_DATE, mTime);\r\n \teditor.putString(DbAdapter.KEY_PAYEE, mPayeeText != null && \r\n \t\t\tmPayeeText.getText() != null ? mPayeeText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_AMOUNT, mAmountText != null && \r\n \t\t\tmAmountText.getText() != null ? mAmountText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_CATEGORY, mCategoryText != null && \r\n \t\t\tmCategoryText.getText() != null ? mCategoryText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_MEMO, mMemoText != null && \r\n \t\t\tmMemoText.getText() != null ? mMemoText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_TAG, mTagText != null && \r\n \t\t\tmTagText.getText() != null ? mTagText.getText().toString() : null);\r\n \teditor.commit();\r\n }", "public void flushData (){\n\t\tTransaction tx = this.pm.currentTransaction();\n\t\ttry {\n\t\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\t\tthis.pm.currentTransaction().commit();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tApplication.getLogger ().error (\"Error flushing data for persistence. \", e);\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n//\t\ttx.begin();\n\t}", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }", "private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "@Override\n public int insert(StorePickStatus arg0) {\n return 0;\n }", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "public boolean insertDateToDB() {\n return false;\n }", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "public void save() {\n super.storageSave(listPedidosAssistencia.toArray());\n }", "private void salvar() {\n setaCidadeBean();\n //Instanciamos o DAO\n CidadeDAO dao = new CidadeDAO();\n //verifica qual será a operação de peristência a ser realizada\n if (operacao == 1) {\n dao.inserir(cidadeBean);\n }\n if (operacao == 2) {\n dao.alterar(cidadeBean);\n }\n habilitaBotoesParaEdicao(false);\n reiniciaTela();\n }", "private void updateDB() {\n }", "public void save() throws ZSessionException {\n\t ZSessionList zList = new ZSessionList();\n zList.upsert(this);\n }", "public abstract void leerPersistencia();", "protected void storeCurrentValues() {\n }", "void committed() {\n\t\t\tfor (Entry<Integer, Object> entry : newData.entrySet())\n\t\t\t\toriginalData.put(entry.getKey(), entry.getValue());\n\t\t\treset();\n\t\t\taction = RowAction.UPDATE;\n\t\t}", "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "@Transactional\n DataRistorante insert(DataRistorante risto);", "public void dataBaseLocked();", "public void updata() {\n\t\tif (ReaderDataBase.search(this, \"LastReadProcess\", mFilenameString) == 0) {\n\t\t\tReaderDataBase.insertDataBase(this, \"LastReadProcess\",\n\t\t\t\t\tmFilenameString, BookPageFactory.sPercent);\n\t\t} else {\n\t\t\tReaderDataBase.upData(this, \"LastReadProcess\", mFilenameString,\n\t\t\t\t\tBookPageFactory.sPercent);\n\t\t}\n\t}", "@FXML void actualiserEtudiant(ActionEvent event) throws SQLException {\r\n dataEtudiant.clear();\r\n leadDatabaseDataEtudiant();\r\n }", "public void checkpoint(boolean hasUncommittedData) throws SQLException;", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private Boolean persistRecords() {\n\t\t//Declarations\n\t\tBoolean persisted = false;\n\t\t\n\t\ttry{\t\t\t\t\t\n\t\t\t//Create the DB Handler\n\t\t\tDBHandler dbHandler = new DBHandler();\t\t\t\n\t\t\tDate date = new Date();\n\t\t\t\t\t\t\n\t\t\t//Set the updated time\n\t\t\t_medicalData.setUpdatedOn(date.toString());\n\t\t\t\n\t\t\t//Store the data to data store\n\t\t\tpersisted = dbHandler.storeData(_medicalData);\t\t\t\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tpersisted = false;\n\t\t}\n\t\t\n\t\treturn persisted;\t\t\n\t}", "public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }", "private boolean saveData()\r\n {\n if (tableDataValid())\r\n {\r\n // get the modified rows\r\n Vector vecModifiedRows = getModifiedRows() ;\r\n if (vecModifiedRows != null)\r\n {\r\n System.out.println(\"obtd modified rows successfuly\") ;\r\n }\r\n\r\n HashMap hashStoredProcedure = (HashMap)tableStructureBeanPCDR.getHashStoredProceduresForThisTable();\r\n if(hashStoredProcedure == null)\r\n System.out.println(\"hashStoredProcedure == null\");\r\n //Get the update stored procedure associated witht this table.\r\n StoredProcedureBean updateStoredProcedure =\r\n (StoredProcedureBean)hashStoredProcedure.get(new Integer(1));\r\n\r\n RequestTxnBean requestTxnBean = new RequestTxnBean();\r\n requestTxnBean.setAction(\"MODIFY_DATA\");\r\n requestTxnBean.setStoredProcedureBean(updateStoredProcedure);\r\n requestTxnBean.setRowsToModify(vecModifiedRows) ;\r\n\r\n // the servlet will return if the saving process was successful or not\r\n Boolean success = (Boolean)getDataFromServlet(requestTxnBean) ;\r\n if (success == null) // Error while saving data\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"saveFail_exceptionCode.1102\");\r\n\r\n CoeusOptionPane.showInfoDialog(msg);\r\n return false;\r\n }\r\n else\r\n {//Data Saved Successfully\r\n saveRequired = false;\r\n return true;\r\n }\r\n\r\n }// end if data validation\r\n else\r\n {\r\n return false;\r\n }\r\n }", "public void updateDataComp() {\n\t\tdataEntryDao.updateDataComp();\n\t}", "private void store()\tthrows DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:store()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbStore(getModel());\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}", "@Override\r\n public void storePin() {\n DataStoreGP1 data = (DataStoreGP1) ds;\r\n data.pin = data.temp_p;\r\n System.out.println(\"Pin has been saved successfully..\");\r\n }", "@Override\r\n public void undoTransaction() {\n data.getStudents().remove(newStu);\r\n data.getStudents().add(stu);\r\n }", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "private void remplirUtiliseData() {\n\t}", "public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private boolean guardarAutorizacionReserva(){\n java.sql.Connection conLoc;\n boolean blnRes=true;\n try{\n lblMsgSis.setText(\"Guardando datos...\");\n objCfgSer.cargaDatosIpHostServicios(0, intCodSer);\n pgrSis.setIndeterminate(true);\n int intNumFil=objTblMod.getRowCountTrue(), intCodEmp, intCodLoc, intCodCot;\n for (int i=0; i<intNumFil;i++){\n if (objUti.parseString(objTblMod.getValueAt(i,0)).equals(\"M\")){ \n intCodEmp=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_EMP).toString() );\n intCodLoc=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_LOC).toString() );\n intCodCot=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_COT).toString() );\n if(objTblMod.isChecked(i, INT_TBL_DAT_CHK_AUTORIZAR)){\n if(validaStock(intCodEmp, intCodLoc, intCodCot)){\n if(validaControlesCxC(intCodEmp, intCodLoc, intCodCot)){\n if(validaDatosAutorizacion(i,intCodEmp, intCodLoc,intCodCot)){\n // AUTORIZACION\n if(tblDat.getValueAt(i, INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"F\")){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(objDatItm.modificaItemTerminalOcupado(intCodEmp, intCodLoc, intCodCot)){\n if(guardarAutorizacionFacturacionAutomatica(conLoc,i,intCodEmp,intCodLoc,intCodCot)){\n conLoc.commit(); \n objGenOD.imprimirOdxRes(conLoc, getCodigoSeguimiento(conLoc,intCodEmp,intCodLoc,intCodCot), objCfgSer.getIpHost());\n blnCotVen=true;\n }else{\n blnRes=false;\n conLoc.rollback();\n blnCotVen=false;\n }\n }else{\n blnRes=false;\n conLoc.rollback();\n blnCotVen=false;\n }\n conLoc.close();\n conLoc=null; \n }\n }\n else if(tblDat.getValueAt(i,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(guardarAutorizacionReservaEmpresa(conLoc,i ,intCodEmp,intCodLoc, intCodCot)){\n conLoc.commit();\n objGenOD.imprimirOdxRes(conLoc, getCodigoSeguimiento(conLoc,intCodEmp,intCodLoc,intCodCot), objCfgSer.getIpHost());\n }\n else{\n blnRes=false;\n conLoc.rollback();\n }\n conLoc.close();\n conLoc=null; \n }\n }\n }\n }\n else{\n blnRes=false;\n }\n }\n else{\n blnRes=false;\n }\n }else if(objTblMod.isChecked(i,INT_TBL_DAT_CHK_DENEGAR)){\n /* DENEGAR */\n if(revisarCotizacionPendiente(intCodEmp,intCodLoc,intCodCot)){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(cambiarEstadoCotizacionDenegada(conLoc,intCodEmp,intCodLoc,intCodCot)){\n conLoc.commit();\n enviarCorreoSolicitudDenegada(intCodEmp,intCodLoc,intCodCot);\n }\n else{\n conLoc.rollback();\n }\n }\n conLoc.close();\n conLoc=null;\n }\n else{\n MensajeInf(\"La cotizacion \"+intCodCot+\" no se puede denegar, ya ha sido autorizada. Debe solicitar cancelacion. \");\n }\n }\n blnRes=false;\n blnGenSolTra=false;\n }\n }\n pgrSis.setIndeterminate(false);\n \n if(!blnIsCotVen){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n cargarDetReg(conLoc);\n conLoc.close();\n conLoc=null;\n }\n blnRes=true;\n }\n catch (java.sql.SQLException e) { \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n return blnRes;\n }", "public void updatePersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tserializeToFile(file);\n\t\tupdatePersistentSettings();\n\t}", "@Override\n\tpublic boolean insert(Seats seat) \n\t{\n\t\tgetSession().saveOrUpdate(seat);\n\t\tSystem.out.println(\"admin \" + seat.getTime()+\" stored in the DB !!!\");\n\t\treturn true;\n\t}", "public void updateData() {}", "public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}", "private void insertOrUpdateItem(){\n Toaster toaster = new Toaster(getContext());\n DBManager dbManager = new DBManager(getContext());\n if((Afegir.getText() == getText(R.string.actualitza) && updateItem(dbManager)) ||\n (Afegir.getText() == getText(R.string.afegir) && insertItem(dbManager))){\n\n ((MainActivity) getActivity()).swapFrameLayoutVisibility(true);\n ((MainActivity) getActivity()).refreshListView();\n toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.commit_insert).toString(), null);\n reset(true);\n }\n\n else toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.reboke_action).toString(), getContext().getDrawable(R.drawable.ic_error_vector));\n }", "public void saveData() {\n throw new UnsupportedOperationException(\"Not yet supported\");\n }", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\n\tvoid make_deposit(DataStore ds){\n\tds.setbalancedepositAccount1(ds.getbalanceAccount1_temp()+ds.getdepositAccount1());\n\t}", "private void persistTable() {\n\n final EditText edit = findViewById(editId);\n final EditText edit2 = findViewById(editId2);\n String fileName = tableId;\n try {\n FileOutputStream fos = getBaseContext().openFileOutput(fileName, Context.MODE_PRIVATE);\n ObjectOutputStream os = new ObjectOutputStream(fos);\n os.writeObject(table);\n os.close();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n edit.setText(table.getSerializedProducts());\n if (lastProductAdded != null)\n edit2.setText(lastProductAdded.getName());\n else\n edit2.setText(\"\");\n\n productNames = table.getProductNames();\n currentlySelectedProduct=0;\n\n refreshPrice();\n\n if (table.map.size() == 0) {\n deleteFile(tableId);\n return;\n }\n }", "public void saveState() { }", "@Override\n public void saveValues() {\n \n }", "private boolean saveData() {\n // get data from input controls\n collectDataFromUI();\n\n if (!validateData()) return false;\n\n boolean isTransfer = mCommon.transactionEntity.getTransactionType().equals(TransactionTypes.Transfer);\n if (!isTransfer) {\n mCommon.resetTransfer();\n }\n\n // Transaction. Need the id for split categories.\n\n if (!saveTransaction()) return false;\n\n // Split Categories\n\n if (mCommon.convertOneSplitIntoRegularTransaction()) {\n saveTransaction();\n }\n\n if(!mCommon.isSplitSelected()) {\n // Delete any split categories if split is unchecked.\n mCommon.removeAllSplitCategories();\n }\n if (!saveSplitCategories()) return false;\n\n return true;\n }", "@Override\n\t\tpublic boolean update(AccountTransaction t) {\n\t\t\treturn false;\n\t\t}", "private void swapAndLoadData() {\n\n \tLog.d(Constants.TAG, \"EntryListActivity: swapAndLoadData: update last loaded data date\");\n \tSharedPreferences settings = getSharedPreferences(Preferences.PREFS_NAME, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t editor.putLong(Preferences.PREF_KEY_LAST_LOADED_DATA_DATE, this.lastRefreshSuccessDate);\n\t editor.commit();\n\n\t\tLog.d(Constants.TAG, \"EntryListActivity: swapAndLoadData: swap data\");\n\t\t// TODO JGU #1: swap in background or UI thread\n\t\tLoadNewDataTask loadNewDataTask = new LoadNewDataTask(this);\n\t\tloadNewDataTask.execute();\n//\t\texecuteSwapping();\n\t\t///JGU #1\n\t}", "private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }", "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }", "int insertSelective(AdminTab record);", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "private void guardarEstadoObjetosUsados() {\n }", "Persistencia() {\n\t}", "public void forceBackup() {\n // If you configures storage support as a file,\n // method push() send all data from memory into file referenced into properties file.\n // Before writing, all expired data will be flushed.\n DacasTransaction.push();\n\n }", "private void guardaRecord() {\n // Guardamos el record\n SharedPreferences datos = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor miEditor = datos.edit();\n miEditor.putInt(\"RECORD\", record);\n miEditor.apply();\n }", "@Override\n\tpublic void preInsert() {\n\n\t}", "@Override\n\tpublic void updata(Connection conn, Long id, User user) throws SQLException {\n\t\t\n\t}", "public void singleSave() {\n\t\ttry {\n\t\t\tthis.insertBy = CacheUtils.getUser().username;\n\t\t} catch (Exception e) {\n\t\t\tif (! getClass().equals(GlobalCurrencyRate.class)) {\n\t\t\t\tlog.error(\"ERROR\", e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.insertBy = \"super\";\n\t\t}\n\t\tthis.workspace = CacheUtils.getWorkspaceId();\n\t\tthis.insertAt = new Date();\n\n\t\tsuper.save();\n\t\tCacheUtils.cleanAll(this.getClass(), getAuditRight());\n\t}", "@Override\n\tpublic void saveSelective(TblMulitData t) throws SQLException {\n\t\tmulitDataMapper.insertSelective(t);\n\t}", "@Override\r\n\tpublic void save(TQssql sql) {\n\r\n\t}", "private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }", "@Override\n\t\t\tvoid saveInDb(CustomApplicationInfo cai) {\n\t\t\t\tactivitySaveInDb(cai);\n\t\t\t\t\n\t\t\t}", "int insert(AdminTab record);", "private void saveData(){\n\t\tdataBase=mHelper.getWritableDatabase();\n\t\tContentValues values=new ContentValues();\n\t\t\n\t\tvalues.put(DbHelper.KEY_NNAME,nname);\n\t\t//values.put(DbHelper.KEY_LNAME,lname );\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tif(isUpdate)\n\t\t{ \n\t\t\t//update database with new data \n\t\t\tdataBase.update(DbHelper.TABLE_NOTE, values, DbHelper.KEY_ID+\"=\"+id, null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//insert data into database\n\t\t\tdataBase.insert(DbHelper.TABLE_NOTE, null, values);\n\t\t}\n\t\t//close database\n\t\tdataBase.close();\n\t\tfinish();\n\t\t\n\t\t\n\t}", "public void saveData() {\n\t\t//place to save notes e.g to file\n\t}", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }", "@Override\n public boolean save()\n {\n return false;\n }", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n\tpublic void ativar(EntidadeDominio entidade) throws SQLException {\n\t\t\t\tPreparedStatement pst=null;\n\t\t\t\tLivro livro = (Livro)entidade;\t\t\n\t\t\t\ttry {\n\t\t\t\t\topenConnection();\n\t\t\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\tStringBuilder sql = new StringBuilder();\t\t\t\n\t\t\t\t\tsql.append(\"UPDATE livro SET livStatus=?\");\n\t\t\t\t\tsql.append(\"WHERE idlivro=?\");\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\t\t\tpst.setString(1, \"ATIVADO\");\n\t\t\t\t\tpst.setInt(2, livro.getId());\n\t\t\t\t\tpst.executeUpdate();\t\t\t\n\t\t\t\t\tconnection.commit();\t\n\t\t\t\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconnection.rollback();\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t}finally{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpst.close();\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//SEGUNDA PARTE\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\topenConnection();\n\t\t\t\t\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\t\t//FALTA COLOCAR EDITORA\t\t\n\t\t\t\t\t\t\tStringBuilder sql = new StringBuilder();\n\t\t\t\t\t\t\tSystem.out.println(livro.getId());\n\t\t\t\t\t\t\tSystem.out.println(livro.getJustificativa());\n\t\t\t\t\t\t\tSystem.out.println(livro.getIdCatJustificativa());\n\t\t\t\t\t\t\tsql.append(\"INSERT INTO justificativaativar (id_livro , justificativa, id_Ativar) VALUES (?,?,?)\");\t\t\n\t\t\t\t\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\t\t\t\t\tpst.setInt(1, livro.getId());\n\t\t\t\t\t\t\tpst.setString(2,livro.getJustificativa());\n\t\t\t\t\t\t\tpst.setInt(3,livro.getIdCatJustificativa());\n\t\t\t\t\t\t\tpst.executeUpdate();\n\t\t\t\t\t\t\tconnection.commit();\t\t\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconnection.rollback();\n\t\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t\t\t}finally{\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tpst.close();\n\t\t\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t}", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "@Override\n\tpublic boolean insertOne(finalDataBean t) throws Exception {\n\t\treturn false;\n\t}", "public void saveData() {\n if (dataComplete()) {\n if(validLengths())\n {\n Item old_item = items.get(item_index);\n int item_purchase_status = 0;\n if (!item_purchased.isChecked()) {\n item_purchase_status = 1;\n }\n\n ds.open();\n Item new_item = new Item(old_item.id, item_name.getText().toString(), item_category.getText().toString(),\n item_description.getText().toString(), Double.parseDouble(item_price.getText().toString()), item_purchase_status);\n boolean success = ds.editEntry(new_item);\n ds.close();\n\n if (success) {\n exit();\n } else {\n empty_error.setVisibility(empty_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.VISIBLE);\n }\n }\n else\n {\n empty_error.setVisibility(empty_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.VISIBLE);\n }\n } else {\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n empty_error.setVisibility(empty_error.VISIBLE);\n }\n }", "public void enterEmpsInInsertMode(){\n EmployeesViewImpl emps=(EmployeesViewImpl)this.getEmployeesView1();\n \n emps.executeEmptyRowSet(); // executeEmpty RowSet in order not to fetch Data.\n \n Row newRow=emps.createRow();\n \n emps.insertRow(newRow);\n \n emps.setCurrentRow(newRow);\n \n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "public WOActionResults upDateStContrat() {\n\t\tif (session.contrat() != null) {\n\t\t\tInteger pk = Integer.valueOf(session.contrat()\n\t\t\t\t\t.primaryKey());\n\t\t\tsession.setStContratList(EOTypcontrat.fetchLesStContrats(ed, pk));\n\t\t} else {\n\t\t\tsession.setStContratList(null);\n\t\t}\n\t\treturn component.doNothing();\n\t}", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public static void habilitarTransaccionManual() {\n try {\n con.setAutoCommit(false);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void save()\n {\n \n }" ]
[ "0.64293474", "0.630963", "0.6208316", "0.6196043", "0.61453676", "0.613061", "0.6121284", "0.6087203", "0.60782033", "0.6046317", "0.60276455", "0.60241807", "0.5975311", "0.5965896", "0.59509003", "0.5933389", "0.59114647", "0.5910782", "0.5906214", "0.5904333", "0.5893658", "0.5882311", "0.58808947", "0.58660585", "0.5848966", "0.58289206", "0.58181393", "0.5812379", "0.58090895", "0.58072567", "0.57995003", "0.5793851", "0.5790584", "0.5765376", "0.57573295", "0.57549053", "0.57511985", "0.57338786", "0.57262", "0.57133716", "0.571208", "0.5711534", "0.5708149", "0.5707003", "0.57026756", "0.5701257", "0.56984097", "0.5687105", "0.56861943", "0.5684734", "0.5678903", "0.5678817", "0.5674617", "0.5670638", "0.5670013", "0.566635", "0.5656269", "0.56539565", "0.5649244", "0.5642814", "0.5633205", "0.5620291", "0.5620253", "0.5612402", "0.56079733", "0.56018907", "0.5597961", "0.559658", "0.55927354", "0.5583225", "0.5581684", "0.5575843", "0.5574824", "0.5566802", "0.5564267", "0.55601907", "0.5558934", "0.5557874", "0.5556144", "0.5550434", "0.55494106", "0.55458504", "0.55249226", "0.55241185", "0.5517971", "0.55174947", "0.55113596", "0.5510923", "0.5509194", "0.5508801", "0.55045897", "0.5504254", "0.5499631", "0.5491102", "0.54905134", "0.5490153", "0.5486381", "0.5485307", "0.5479749", "0.5478762", "0.5478444" ]
0.0
-1
Ulozi uzivatele do data store, at uz insertovaneho nebo updatovaneho.
void storeUser(User user) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "@Override\n\tpublic void updata(Connection conn, Long id, User user) throws SQLException {\n\t\t\n\t}", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "public void updata() {\n\t\tif (ReaderDataBase.search(this, \"LastReadProcess\", mFilenameString) == 0) {\n\t\t\tReaderDataBase.insertDataBase(this, \"LastReadProcess\",\n\t\t\t\t\tmFilenameString, BookPageFactory.sPercent);\n\t\t} else {\n\t\t\tReaderDataBase.upData(this, \"LastReadProcess\", mFilenameString,\n\t\t\t\t\tBookPageFactory.sPercent);\n\t\t}\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "@Override\r\n public void undoTransaction() {\n data.getStudents().remove(newStu);\r\n data.getStudents().add(stu);\r\n }", "private void saveData() {\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "@Override\n public void DataIsInserted() {\n }", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "private void persistUserDataIfNeeded() throws IOException {\n int amountdatasets = 0;\n for (Transaction t : buffer) {\n amountdatasets += t.getDatasets().size();\n }\n //more than 5 datasets in write buffer --> write committed transactions\n if (amountdatasets >= 5) {\n Set<Transaction> todelete = new HashSet<>();\n\n //only one thread at a time should enter this block\n synchronized (this) {\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" entered persistUserDataIfNeeded sync block\");\n for (Transaction t : buffer) {\n if (t.isCommitted()) {\n for (UserData data : t.getDatasets()) {\n persistData(data);\n }\n todelete.add(t);\n }\n }\n\n //here the deletion happens. Comment out if Abnahme is n�rgeling... :)\n for (Transaction t : todelete) {\n System.out.println(\"removing transaction \" + t.getId() + \" from buffer\");\n buffer.remove(t);\n }\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" left persistUserDataIfNeeded sync block\");\n }\n }\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "private void remplirUtiliseData() {\n\t}", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "public void storeValues() throws SQLException { //store values into the database\n \tstoreValuesDump();\n \tstoreValuesMatl();\n }", "public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void updateData() {}", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "protected void storeWithoutCommit(ExtObjectContainer db) {\n \ttry {\n \t\tcheckedActivate(3); // TODO: Figure out a suitable depth.\n \t\tthrowIfNotStored(mBoard);\n \t\tif(mMessage != null) throwIfNotStored(mMessage);\n \n \t\tcheckedStore();\n \t}\n \tcatch(RuntimeException e) {\n \t\tcheckedRollbackAndThrow(e);\n \t}\n }", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "private void updateDB() {\n }", "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void updata(Object allData) {\n\t\t\t\t\t\t\t\tif (allData !=null && allData instanceof PhotoGraType) {\n\t\t\t\t\t\t\t\t\tPhotoGraType bean=(PhotoGraType) allData;\n\n\t\t\t\t\t\t\t\t\tPhotoType type=bean.new PhotoType();\n\t\t\t\t\t\t\t\t\ttype.setId(\"0\");\n\t\t\t\t\t\t\t\t\ttype.setName(\"全部城区\");\n\t\t\t\t\t\t\t\t\tbean.getList().add(0, type);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tinitQuyuData(bean.getList());\n\t\t\t\t\t\t\t\t}else if (allData ==null) {\n\t\t\t\t\t\t\t\t\tToast.makeText(getActivity(), \"网络不给力\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "public void saveData() {\n throw new UnsupportedOperationException(\"Not yet supported\");\n }", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "public void flushData (){\n\t\tTransaction tx = this.pm.currentTransaction();\n\t\ttry {\n\t\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\t\tthis.pm.currentTransaction().commit();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tApplication.getLogger ().error (\"Error flushing data for persistence. \", e);\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n//\t\ttx.begin();\n\t}", "@Override\n\tpublic void uppdate() {\n\t\t\n\t}", "@Override\n\tpublic void uppdate() {\n\t\t\n\t}", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic int insertData(UserVO userVO) {\n\t\treturn 0;\r\n\t}", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "@Override\n public int insert(StorePickStatus arg0) {\n return 0;\n }", "protected void updateData() throws SQLException{\n\t\t//Actualizar array de items dentro del comboBox del menu eliminar\n\t\tItems = d.getAsArray(this.mode);\n\t\t//Actualizar el ComboBox\n\t\tDefaultComboBoxModel<String> model = new DefaultComboBoxModel<String>(Items);\n\t\tcomboBox.setModel(model);\n\t}", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}", "@FXML void actualiserEtudiant(ActionEvent event) throws SQLException {\r\n dataEtudiant.clear();\r\n leadDatabaseDataEtudiant();\r\n }", "private void guardarEstadoObjetosUsados() {\n }", "@Override\n public void saveValues() {\n \n }", "public void updatePersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tserializeToFile(file);\n\t\tupdatePersistentSettings();\n\t}", "private void register_to_data_table() {\n\n\t\t\tfinal DataClient dc = this.task.data_client;\n\t\t\tfinal Transaction tx = dc.beginTransaction();\n\n\t\t\tfinal String repoid = this.op_repo;\n\t\t\tString uid = this.op_user;\n\n\t\t\tAliasDAO alias_dao = new AliasDAO(dc);\n\t\t\tuid = alias_dao.findUser(uid);\n\n\t\t\tRepoDTM repoinfo = dc.get(uid, RepoDTM.class);\n\t\t\tif (repoinfo == null) {\n\t\t\t\trepoinfo = new RepoDTM();\n\t\t\t\tdc.insert(uid, repoinfo);\n\t\t\t}\n\n\t\t\tMap<String, RepoItem> tab = repoinfo.getTable();\n\t\t\tif (tab.containsKey(repoid)) {\n\t\t\t\tString msg = \"the repo with name [%s] exists.\";\n\t\t\t\tmsg = String.format(msg, repoid);\n\t\t\t\tthrow new SnowflakeException(msg);\n\t\t\t}\n\n\t\t\tURI location = this.repo.getComponentContext().getURI();\n\n\t\t\tRepoItem item = new RepoItem();\n\t\t\titem.setName(repoid);\n\t\t\titem.setLocation(location.toString());\n\t\t\titem.setDescriptor(this.getRepoDescriptorId().toString());\n\t\t\ttab.put(repoid, item);\n\n\t\t\tdc.update(repoinfo);\n\n\t\t\ttx.commit();\n\n\t\t}", "private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }", "public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }", "void committed() {\n\t\t\tfor (Entry<Integer, Object> entry : newData.entrySet())\n\t\t\t\toriginalData.put(entry.getKey(), entry.getValue());\n\t\t\treset();\n\t\t\taction = RowAction.UPDATE;\n\t\t}", "public void save() {\n super.storageSave(listPedidosAssistencia.toArray());\n }", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "@Override\n\tpublic int updblu(ApplicationEntity App) {\n\t\tint id=App.A_id;\n\t\tString zt=null;\n\t\tApplicationEntity app=appdao.selectappById(id);\n\t\tif(\"0\".equals(app.A_state)){\n\t\t\t zt=\"2\";\n\t\t\t\n\t\t}\n\t\tApplicationEntity app1=new ApplicationEntity();\n\t\tapp1.A_state=zt;\n\t\tapp1.A_id=id;\n\t\treturn appdao.updapp(app1);\n\t}", "private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }", "public void save() {\r\n\t\tString checkQuery = \"SELECT * FROM users WHERE id = \" + this.id;\r\n\t\tStatement stm;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tconnection = DBConnection.getConnection();\r\n\t\t\tstm = connection.createStatement();\r\n\t\t\trs = stm.executeQuery(checkQuery);\r\n\t\t\t// istnieje już ten obiekt - update\r\n\t\t\tif (rs.first()) {\r\n\t\t\t\tString query = \"UPDATE users SET name = \" + toStringOrNULL(name)\r\n\t\t\t\t\t\t+ \", password = \" + toStringOrNULL(password)\r\n\t\t\t\t\t\t+ \", is_admin = \" + isAdmin \r\n\t\t\t\t\t\t+ \", removed_at = \" + toStringOrNULL(removedAt) \r\n\t\t\t\t\t\t+ \" WHERE id = \" + getId();\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t\t// jeszcze go nie ma - zapis nowego\r\n\t\t\telse {\r\n\t\t\t\tString query = \"INSERT INTO users (name, password, removed_at, is_admin) VALUES (\"\r\n\t\t\t\t\t\t+ toStringOrNULL(name) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(password) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(removedAt) + \", \"\r\n\t\t\t\t\t\t+ isAdmin + \")\";\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void save(TQssql sql) {\n\r\n\t}", "public void resetData() {\n user = new User();\n saveData();\n }", "public void updateDataComp() {\n\t\tdataEntryDao.updateDataComp();\n\t}", "public boolean addOrUpdateForexBureau(ForexBureauModel forexBureauDetails) {\n //Use the Cached Connection\n SQLiteDatabase db = getWritableDatabase();\n Boolean transactionSuccessful = false;\n\n //As usual Wrap it in a transaction\n db.beginTransaction();\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_FOREX_BUREAU_OBJECT_ID, forexBureauDetails.getForexBureauObjectId());\n values.put(KEY_FOREX_BUREAU_NAME, forexBureauDetails.getForexBureauName());\n values.put(KEY_FOREX_BUREAU_IMAGE, forexBureauDetails.getForexBureauImage());\n values.put(KEY_FOREX_BUREAU_ADDRESS, forexBureauDetails.getForexBureauAddress());\n values.put(KEY_FOREX_BUREAU_SWIFT_CODE, forexBureauDetails.getForexBureauSwiftCode());\n values.put(KEY_FOREX_BUREAU_STOCK_CODE, forexBureauDetails.getForexBureauStockCode());\n values.put(KEY_FOREX_BUREAU_DESCRIPTION, forexBureauDetails.getForexBureauDescription());\n values.put(KEY_FOREX_BUREAU_ESTABLISHED, forexBureauDetails.getForexBureauEstablished());\n values.put(KEY_FOREX_BUREAU_CONTACTS, forexBureauDetails.getForexBureauContacts());\n values.put(KEY_FOREX_BUREAU_TYPE, forexBureauDetails.getForexBureauType());\n values.put(KEY_FOREX_BUREAU_WEBSITE, forexBureauDetails.getForexBureauWebsite());\n values.put(KEY_FOREX_BUREAU_STATUS, forexBureauDetails.getForexBureauStatus());\n values.put(KEY_FOREX_BUREAU_SUMMARY, forexBureauDetails.getForexBureauSummary());\n //Let's try to update the Saved Product if it exists.\n int rows = db.update(TABLE_FOREX_BUREAUS, values, KEY_FOREX_BUREAU_OBJECT_ID + \"= ?\", new String[]{forexBureauDetails.getForexBureauObjectId()});\n\n //Let's check if the update worked\n if (rows == 1) {\n //Ok, we have updated a Saved forex Bureau, we could probably get the Forex Bureau updated at this point if we needed to\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n\n } else {\n //No Such Forex Bureau Here, insert it\n db.insertOrThrow(TABLE_FOREX_BUREAUS, null, values);\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error trying to Update Forex Bureaus table\");\n transactionSuccessful = false;\n } finally {\n db.endTransaction();\n }\n return transactionSuccessful;\n\n }", "public void migrateData() throws Throwable\r\n\t{\r\n\t\tthis.createStagingPrivateInstance();\r\n\t\tthis.maskData();\r\n\t\tthis.importDataInPublicInstance();\r\n\t}", "@Override\n public int update(DataDict stu)\n {\n int rtn = 0;\n try\n {\n String sql = \"update data_dict set \" + \" dict_parent_id =\" + stu.getSuperId() + \", \" + \" dict_index = \"\n + stu.getIndex() + \", \" + \" dict_name = '\" + stu.getName() + \"', \" + \" dict_value = '\"\n + stu.getValue() + \"' \";\n\n sql += \" where dict_id = \" + stu.getId();\n DBUtil db = new DBUtil();\n db.openConnection();\n rtn = db.execCommand(sql);\n db.close();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return rtn;\n }", "public void saveOrUpdate(PosPrice posPrice) throws DataAccessException{\n super.saveOrUpdate(posPrice);\n }", "@Override\r\n\tpublic int save(SpUser t) {\n\t\treturn 0;\r\n\t}", "@Override\n public void almacenarElemento(Object elemento) {\n database.store(elemento);\n }", "public boolean saveOrUpdate(Data model);", "@Override\n public void rollbackValues() {\n \n }", "public void save() throws ZSessionException {\n\t ZSessionList zList = new ZSessionList();\n zList.upsert(this);\n }", "public abstract void leerPersistencia();", "private boolean saveData()\r\n {\n if (tableDataValid())\r\n {\r\n // get the modified rows\r\n Vector vecModifiedRows = getModifiedRows() ;\r\n if (vecModifiedRows != null)\r\n {\r\n System.out.println(\"obtd modified rows successfuly\") ;\r\n }\r\n\r\n HashMap hashStoredProcedure = (HashMap)tableStructureBeanPCDR.getHashStoredProceduresForThisTable();\r\n if(hashStoredProcedure == null)\r\n System.out.println(\"hashStoredProcedure == null\");\r\n //Get the update stored procedure associated witht this table.\r\n StoredProcedureBean updateStoredProcedure =\r\n (StoredProcedureBean)hashStoredProcedure.get(new Integer(1));\r\n\r\n RequestTxnBean requestTxnBean = new RequestTxnBean();\r\n requestTxnBean.setAction(\"MODIFY_DATA\");\r\n requestTxnBean.setStoredProcedureBean(updateStoredProcedure);\r\n requestTxnBean.setRowsToModify(vecModifiedRows) ;\r\n\r\n // the servlet will return if the saving process was successful or not\r\n Boolean success = (Boolean)getDataFromServlet(requestTxnBean) ;\r\n if (success == null) // Error while saving data\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"saveFail_exceptionCode.1102\");\r\n\r\n CoeusOptionPane.showInfoDialog(msg);\r\n return false;\r\n }\r\n else\r\n {//Data Saved Successfully\r\n saveRequired = false;\r\n return true;\r\n }\r\n\r\n }// end if data validation\r\n else\r\n {\r\n return false;\r\n }\r\n }", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "private void updateDatabase() {\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\tArrayList<String> updatedRecords = serializer.serialize(records);\n\t\tDatabaseHandler.writeToDatabase(DATABASE_NAME, updatedRecords);\n\t}", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "@Override\r\n\tpublic final void saveObjectData() throws BillingSystemException{\n\t}", "void saveData() throws SerializerException;", "public void saveUserData(UserData userData){\n userDataRepository.save(userData);\n }", "public void inserisciValore()throws Exception {\r\n\r\n\t\t\r\n\t\t\tif (!valore.getInserito()) {\r\n\t\t\t\tboolean inserimento = InputOutput.richiestaInserimento(nome);\r\n\t\t\t\tif (inserimento) {\r\n\t\t\t\t\tvalore.inserisciValore(nome);\r\n\t\t\t\t\tvalore.setInserito(true);\t\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}", "private void uploadFromDataStorage() {\n }", "private void saveData(){\n\t\tdataBase=mHelper.getWritableDatabase();\n\t\tContentValues values=new ContentValues();\n\t\t\n\t\tvalues.put(DbHelper.KEY_NNAME,nname);\n\t\t//values.put(DbHelper.KEY_LNAME,lname );\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tif(isUpdate)\n\t\t{ \n\t\t\t//update database with new data \n\t\t\tdataBase.update(DbHelper.TABLE_NOTE, values, DbHelper.KEY_ID+\"=\"+id, null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//insert data into database\n\t\t\tdataBase.insert(DbHelper.TABLE_NOTE, null, values);\n\t\t}\n\t\t//close database\n\t\tdataBase.close();\n\t\tfinish();\n\t\t\n\t\t\n\t}", "private void BackupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BackupActionPerformed\n try{\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"salvare.sql\"));\n Vector allData = getData(\"\");\n\n for(int row = 0; row < allData.size(); ++row){\n Person data = (Person)allData.elementAt(row);\n\n String sql = \"insert into \" + tableName + \" values ('\" + data.getName() + \"' , '\" +\n data.getCity() + \"' , '\" + data.getPhone() + \"');\";\n writer.write(sql);\n writer.newLine();\n }\n writer.close();\n JOptionPane.showMessageDialog(this, \"Salvare cu succes!\" , \"salvare\", JOptionPane.INFORMATION_MESSAGE);\n }catch(Exception e){\n JOptionPane.showMessageDialog(this, \"O eroare la salvarea fisierului!\" , \"formWindowOpened\", JOptionPane.ERROR_MESSAGE);\n }\n}", "public void insert(Object objekt) throws SQLException {\r\n\t\t \r\n\t\tPomagaloVO ul = (PomagaloVO) objekt;\r\n\r\n\t\tif (ul == null)\r\n\t\t\tthrow new SQLException(\"Insert \" + tablica\r\n\t\t\t\t\t+ \", ulazna vrijednost je null!\");\r\n\t\t \r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\ttry {\r\n\t\t\tconn = conBroker.getConnection();\r\n\r\n\t\t\tps = conn.prepareStatement(insertUpit);\r\n\r\n\t\t\tps.setString(1, ul.getSifraArtikla());\r\n\t\t\tps.setString(2, ul.getNaziv());\r\n\t\t\tps.setInt(3, ul.getPoreznaSkupina().intValue());\r\n\r\n\t\t\tif (ul.getCijenaSPDVom() == null\r\n\t\t\t\t\t|| ul.getCijenaSPDVom().intValue() <= 0)\r\n\t\t\t\tps.setNull(4, Types.INTEGER);\r\n\t\t\telse\r\n\t\t\t\tps.setInt(4, ul.getCijenaSPDVom().intValue());\r\n\r\n\t\t\tString op = ul.getOptickoPomagalo() != null\r\n\t\t\t\t\t&& ul.getOptickoPomagalo().booleanValue() ? DA : NE;\r\n\r\n\t\t\tps.setString(5, op);\r\n\t\t\t\r\n\t\t\tps.setTimestamp(6, new Timestamp(System.currentTimeMillis()));\r\n\t\t\tps.setInt(7, NEPOSTOJECA_SIFRA);\r\n\t\t\tps.setTimestamp(8, null);\r\n\t\t\tps.setNull(9, Types.INTEGER);\r\n\r\n\t\t\tint kom = ps.executeUpdate();\r\n\r\n\t\t\tif (kom == 1) {\r\n\t\t\t\tul.setSifra(Integer.valueOf(0)); // po tome i pozivac zna da je\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// insert uspio...\r\n\t\t\t}// if kom==1\r\n\t\t\telse {\r\n\t\t\t\t//Logger.fatal(\"neuspio insert zapisa u tablicu \" + tablica, null);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// nema catch-anja SQL exceptiona... neka se pozivatelj iznad jebe ...\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tif (ps != null)\r\n\t\t\t\t\tps.close();\r\n\t\t\t} catch (SQLException e1) {\r\n\t\t\t}\r\n\t\t\tconBroker.freeConnection(conn);\r\n\t\t}// finally\r\n\r\n\t}", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "@Override\n\tpublic void dbUpdate(MovementModel data)\tthrows DAOSysException\t{\n\t\tdbUpdate(data, MovementDAO.UPDATE_STM);\n\t}", "private void salvar() {\n setaCidadeBean();\n //Instanciamos o DAO\n CidadeDAO dao = new CidadeDAO();\n //verifica qual será a operação de peristência a ser realizada\n if (operacao == 1) {\n dao.inserir(cidadeBean);\n }\n if (operacao == 2) {\n dao.alterar(cidadeBean);\n }\n habilitaBotoesParaEdicao(false);\n reiniciaTela();\n }", "static void effacerEnregistrer(){\n users.clear();\n }", "@Override\n public void syncUserData() {\n\n List<User> users = userRepository.getUserList();\n List<LdapUser> ldapUsers = getAllUsers();\n Set<Integer> listUserIdRemoveAM = new HashSet<>();\n\n //check update or delete \n for (User user : users) {\n boolean isDeleted = true;\n for (LdapUser ldapUser : ldapUsers) {\n if (user.getUserID().equals(ldapUser.getUserID())) {\n // is updateours\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n \n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n checkChangeDepartment(user, department, listUserIdRemoveAM);\n \n userRepository.editUser(user);\n \n isDeleted = false;\n break;\n }\n }\n if (isDeleted) {\n user.setIsDeleted((byte) 1);\n user.setActive((byte) 0);\n userRepository.editUser(user);\n }\n }\n\n //check new user\n for (LdapUser ldapUser : ldapUsers) {\n boolean isNew = true;\n for(User user : users){\n if(ldapUser.getUserID().equals(user.getUserID())){\n isNew = false;\n break;\n }\n }\n if(isNew){\n logger.debug(\"Is new User userID = \"+ldapUser.getUserID());\n User user = new User();\n user.setUserID(ldapUser.getUserID());\n user.setStaffCode(ldapUser.getUserID());\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setCreatedAt(Utils.getCurrentTime());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setActive((byte) 1);\n user.setIsDeleted((byte) 0);\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n user.setRoleId(4);\n user.setApprovalManagerId(0);;\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n\n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n user.setDepartmentId(department == null ? 0 : department.getId());\n \n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n \n userRepository.addUser(user);\n logger.debug(\"Is new User id = \"+user.getId());\n }\n }\n \n //Remove AprovalManager out User\n for(Integer userId : listUserIdRemoveAM){\n if(userId == null) continue;\n User userRemoveAMId = userRepository.getUserById(userId);\n userRemoveAMId.setApprovalManagerId(0);\n userRepository.editUser(userRemoveAMId);\n }\n }", "void updateData();", "public void ustaw(){\n\t driver.initialize(this);\n\t driver.edit(new DodajSerwisDTO());\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void updata(Object allData) {\n\t\t\t\t\t\t\t\tif (allData!=null && allData instanceof PhotoGraType ) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tPhotoGraType bean=(PhotoGraType) allData;\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\tPhotoType type=bean.new PhotoType();\n\t\t\t\t\t\t\t\t\ttype.setId(\"0\");\n\t\t\t\t\t\t\t\t\ttype.setName(\"全部分类\");\n\t\t\t\t\t\t\t\t\tbean.getList().add(0, type);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tinitDengjiData(bean.getList());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}else if (allData ==null) {\n\t\t\t\t\t\t\t\t\tToast.makeText(getActivity(), \"网络不给力\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "@Override\n\tpublic boolean insertOne(finalDataBean t) throws Exception {\n\t\treturn false;\n\t}", "public void saveData() {\n if (dataComplete()) {\n if(validLengths())\n {\n Item old_item = items.get(item_index);\n int item_purchase_status = 0;\n if (!item_purchased.isChecked()) {\n item_purchase_status = 1;\n }\n\n ds.open();\n Item new_item = new Item(old_item.id, item_name.getText().toString(), item_category.getText().toString(),\n item_description.getText().toString(), Double.parseDouble(item_price.getText().toString()), item_purchase_status);\n boolean success = ds.editEntry(new_item);\n ds.close();\n\n if (success) {\n exit();\n } else {\n empty_error.setVisibility(empty_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.VISIBLE);\n }\n }\n else\n {\n empty_error.setVisibility(empty_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.VISIBLE);\n }\n } else {\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n empty_error.setVisibility(empty_error.VISIBLE);\n }\n }", "private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }", "@Override\n\tpublic Bundle saveData() {\n\t\t\n\t\treturn null;\n\t}", "private void insertData() \n {\n for(int i = 0; i < 2; i++){\n RazaEntity razaEntity = factory.manufacturePojo(RazaEntity.class);\n em.persist(razaEntity);\n razaData.add(razaEntity);\n }\n for (int i = 0; i < 3; i++) {\n EspecieEntity especieEntity = factory.manufacturePojo(EspecieEntity.class);\n if(i == 0)\n {\n especieEntity.setRazas(razaData);\n }\n em.persist(especieEntity);\n especieData.add(especieEntity);\n }\n }", "public void addindb2(){\n //e = new Event(\"bbb\",\"bbb\",\"bbb\",\"bbb\");\n u = new User(0,getUser(),getPwd());\n try{ \n session = NewHibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n session.save(u);\n session.getTransaction().commit();\n session.close();\n clear();\n try{\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"/BookStorePelikSangat/faces/index.xhtml\");\n } \n catch (IOException e) {}\n } catch(HibernateException e) {\n session.getTransaction().rollback();\n session.close();\n }\n\t}", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ServicioEntity entity = factory.manufacturePojo(ServicioEntity.class);\n em.persist(entity);\n dataServicio.add(entity);\n }\n for (int i = 0; i < 3; i++) {\n QuejaEntity entity = factory.manufacturePojo(QuejaEntity.class);\n if (i == 0) {\n entity.setServicio(dataServicio.get(0));\n }\n em.persist(entity);\n data.add(entity);\n }\n }", "private void readAndSAVE(){\n boolean vaidation_status = true;\n\n achiv_title = edtxt_achiv_title.getText().toString();\n if (TextUtils.isEmpty(achiv_title)){\n edtxt_achiv_title.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_achiv_title.setError(null);\n }\n\n achiv_date = edtxt_achiv_date.getText().toString();\n if (TextUtils.isEmpty(achiv_date)){\n edtxt_achiv_date.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_achiv_date.setError(null);\n }\n\n\n\n achiv_details = edtxt_achiv_details.getText().toString();\n if(achiv_details.isEmpty()){\n vaidation_status = false;\n edtxt_achiv_details.setText(\"Please write Details!!\");\n }\n\n // if all vaidation is true then add all details into firbase database\n if(vaidation_status){\n\n //create Details model\n AchivmentsDetails addNewAchiv = new AchivmentsDetails();\n\n addNewAchiv.setAchv_titles(achiv_title);\n addNewAchiv.setAchv_date(achiv_date);\n addNewAchiv.setAchv_details(achiv_details);\n\n showProgressDialog();\n\n if(mAuth.getCurrentUser()!=null)\n {\n //CHECK IF new achivments has been added or update process.\n String achiv_key;\n if(operationStatus.equals(\"ADD_NEW\")) {\n\n // Get new push key\n achiv_key = mDatabase.child(\"UserNode\").child(mAuth.getCurrentUser().getUid()).child(\"Achivments_Info\").push().getKey();\n addNewAchiv.setAchv_firbase_ID(achiv_key);\n\n } else {\n achiv_key = operationStatus;\n addNewAchiv.setAchv_firbase_ID(achiv_key);\n }\n\n // save the user at UserNode under user UID\n mDatabase.child(\"UserNode\").child(mAuth.getCurrentUser().getUid()).child(\"Achivments_Info\").child(achiv_key).setValue(addNewAchiv, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n\n hideProgressDialog();\n\n if(databaseError==null)\n {\n Toast.makeText(AddNewAchivmentsActivity.this, \"Your Details has been saved !!\",\n Toast.LENGTH_SHORT).show();\n finish();\n }\n }\n });\n }\n\n\n\n }\n }", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 등록을 하다.\");\n\t}", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}", "public void checkpoint(boolean hasUncommittedData) throws SQLException;", "private void updataUserfouce() {\n\t\tcDynamicAdapter.notifyDataSetChanged();\n\t}" ]
[ "0.6398268", "0.63825566", "0.63308793", "0.61315215", "0.6129244", "0.6021482", "0.6006207", "0.5997133", "0.5941559", "0.59342617", "0.59031135", "0.5897168", "0.58644444", "0.5860533", "0.58372605", "0.5832816", "0.5813982", "0.58009905", "0.57976985", "0.5765169", "0.57225376", "0.56979644", "0.56970036", "0.5695584", "0.56788707", "0.5678672", "0.5675904", "0.5675663", "0.5674468", "0.5672805", "0.5663148", "0.56572485", "0.56572485", "0.5639768", "0.563478", "0.5632175", "0.5619731", "0.56111693", "0.5602008", "0.5594697", "0.5582078", "0.5578379", "0.55753773", "0.55527407", "0.55488586", "0.5541621", "0.5536327", "0.553298", "0.55220175", "0.551106", "0.5511012", "0.5502326", "0.55013704", "0.5499452", "0.5496902", "0.54874706", "0.548682", "0.54867685", "0.54837316", "0.5474773", "0.54661983", "0.5465014", "0.5462584", "0.54585737", "0.54569364", "0.5456877", "0.5456768", "0.5456063", "0.54479265", "0.5443737", "0.543525", "0.5430979", "0.54257774", "0.54203737", "0.5416422", "0.5416254", "0.5410946", "0.5410781", "0.54090446", "0.54084116", "0.5402923", "0.5401983", "0.5393561", "0.5393181", "0.5386565", "0.5385716", "0.5380323", "0.5375405", "0.53743815", "0.53734136", "0.5372175", "0.5371055", "0.5369527", "0.5369229", "0.53656", "0.53639394", "0.5362159", "0.5356828", "0.53545576", "0.5352494", "0.5346933" ]
0.0
-1
Ulozi Lekci do data store, at uz insertovaneho nebo updatovaneho.
void storeLesson(Lesson lesson) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "@Override\n\tpublic void updata(Connection conn, Long id, User user) throws SQLException {\n\t\t\n\t}", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "private void saveData() {\n }", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "@Override\n public void DataIsInserted() {\n }", "public void updata() {\n\t\tif (ReaderDataBase.search(this, \"LastReadProcess\", mFilenameString) == 0) {\n\t\t\tReaderDataBase.insertDataBase(this, \"LastReadProcess\",\n\t\t\t\t\tmFilenameString, BookPageFactory.sPercent);\n\t\t} else {\n\t\t\tReaderDataBase.upData(this, \"LastReadProcess\", mFilenameString,\n\t\t\t\t\tBookPageFactory.sPercent);\n\t\t}\n\t}", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "private void remplirUtiliseData() {\n\t}", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "public void storeValues() throws SQLException { //store values into the database\n \tstoreValuesDump();\n \tstoreValuesMatl();\n }", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "public void inserisciValore()throws Exception {\r\n\r\n\t\t\r\n\t\t\tif (!valore.getInserito()) {\r\n\t\t\t\tboolean inserimento = InputOutput.richiestaInserimento(nome);\r\n\t\t\t\tif (inserimento) {\r\n\t\t\t\t\tvalore.inserisciValore(nome);\r\n\t\t\t\t\tvalore.setInserito(true);\t\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}", "private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }", "public void insert(Object objekt) throws SQLException {\r\n\t\t \r\n\t\tPomagaloVO ul = (PomagaloVO) objekt;\r\n\r\n\t\tif (ul == null)\r\n\t\t\tthrow new SQLException(\"Insert \" + tablica\r\n\t\t\t\t\t+ \", ulazna vrijednost je null!\");\r\n\t\t \r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\ttry {\r\n\t\t\tconn = conBroker.getConnection();\r\n\r\n\t\t\tps = conn.prepareStatement(insertUpit);\r\n\r\n\t\t\tps.setString(1, ul.getSifraArtikla());\r\n\t\t\tps.setString(2, ul.getNaziv());\r\n\t\t\tps.setInt(3, ul.getPoreznaSkupina().intValue());\r\n\r\n\t\t\tif (ul.getCijenaSPDVom() == null\r\n\t\t\t\t\t|| ul.getCijenaSPDVom().intValue() <= 0)\r\n\t\t\t\tps.setNull(4, Types.INTEGER);\r\n\t\t\telse\r\n\t\t\t\tps.setInt(4, ul.getCijenaSPDVom().intValue());\r\n\r\n\t\t\tString op = ul.getOptickoPomagalo() != null\r\n\t\t\t\t\t&& ul.getOptickoPomagalo().booleanValue() ? DA : NE;\r\n\r\n\t\t\tps.setString(5, op);\r\n\t\t\t\r\n\t\t\tps.setTimestamp(6, new Timestamp(System.currentTimeMillis()));\r\n\t\t\tps.setInt(7, NEPOSTOJECA_SIFRA);\r\n\t\t\tps.setTimestamp(8, null);\r\n\t\t\tps.setNull(9, Types.INTEGER);\r\n\r\n\t\t\tint kom = ps.executeUpdate();\r\n\r\n\t\t\tif (kom == 1) {\r\n\t\t\t\tul.setSifra(Integer.valueOf(0)); // po tome i pozivac zna da je\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// insert uspio...\r\n\t\t\t}// if kom==1\r\n\t\t\telse {\r\n\t\t\t\t//Logger.fatal(\"neuspio insert zapisa u tablicu \" + tablica, null);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// nema catch-anja SQL exceptiona... neka se pozivatelj iznad jebe ...\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tif (ps != null)\r\n\t\t\t\t\tps.close();\r\n\t\t\t} catch (SQLException e1) {\r\n\t\t\t}\r\n\t\t\tconBroker.freeConnection(conn);\r\n\t\t}// finally\r\n\r\n\t}", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "int insert(Lbt72TesuryoSumDPkey record);", "@Override\r\n\tpublic void save(TQssql sql) {\n\r\n\t}", "private void BackupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BackupActionPerformed\n try{\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"salvare.sql\"));\n Vector allData = getData(\"\");\n\n for(int row = 0; row < allData.size(); ++row){\n Person data = (Person)allData.elementAt(row);\n\n String sql = \"insert into \" + tableName + \" values ('\" + data.getName() + \"' , '\" +\n data.getCity() + \"' , '\" + data.getPhone() + \"');\";\n writer.write(sql);\n writer.newLine();\n }\n writer.close();\n JOptionPane.showMessageDialog(this, \"Salvare cu succes!\" , \"salvare\", JOptionPane.INFORMATION_MESSAGE);\n }catch(Exception e){\n JOptionPane.showMessageDialog(this, \"O eroare la salvarea fisierului!\" , \"formWindowOpened\", JOptionPane.ERROR_MESSAGE);\n }\n}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }", "private boolean saveData()\r\n {\n if (tableDataValid())\r\n {\r\n // get the modified rows\r\n Vector vecModifiedRows = getModifiedRows() ;\r\n if (vecModifiedRows != null)\r\n {\r\n System.out.println(\"obtd modified rows successfuly\") ;\r\n }\r\n\r\n HashMap hashStoredProcedure = (HashMap)tableStructureBeanPCDR.getHashStoredProceduresForThisTable();\r\n if(hashStoredProcedure == null)\r\n System.out.println(\"hashStoredProcedure == null\");\r\n //Get the update stored procedure associated witht this table.\r\n StoredProcedureBean updateStoredProcedure =\r\n (StoredProcedureBean)hashStoredProcedure.get(new Integer(1));\r\n\r\n RequestTxnBean requestTxnBean = new RequestTxnBean();\r\n requestTxnBean.setAction(\"MODIFY_DATA\");\r\n requestTxnBean.setStoredProcedureBean(updateStoredProcedure);\r\n requestTxnBean.setRowsToModify(vecModifiedRows) ;\r\n\r\n // the servlet will return if the saving process was successful or not\r\n Boolean success = (Boolean)getDataFromServlet(requestTxnBean) ;\r\n if (success == null) // Error while saving data\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"saveFail_exceptionCode.1102\");\r\n\r\n CoeusOptionPane.showInfoDialog(msg);\r\n return false;\r\n }\r\n else\r\n {//Data Saved Successfully\r\n saveRequired = false;\r\n return true;\r\n }\r\n\r\n }// end if data validation\r\n else\r\n {\r\n return false;\r\n }\r\n }", "private void saveData(){\n\t\tdataBase=mHelper.getWritableDatabase();\n\t\tContentValues values=new ContentValues();\n\t\t\n\t\tvalues.put(DbHelper.KEY_NNAME,nname);\n\t\t//values.put(DbHelper.KEY_LNAME,lname );\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tif(isUpdate)\n\t\t{ \n\t\t\t//update database with new data \n\t\t\tdataBase.update(DbHelper.TABLE_NOTE, values, DbHelper.KEY_ID+\"=\"+id, null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//insert data into database\n\t\t\tdataBase.insert(DbHelper.TABLE_NOTE, null, values);\n\t\t}\n\t\t//close database\n\t\tdataBase.close();\n\t\tfinish();\n\t\t\n\t\t\n\t}", "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "void committed() {\n\t\t\tfor (Entry<Integer, Object> entry : newData.entrySet())\n\t\t\t\toriginalData.put(entry.getKey(), entry.getValue());\n\t\t\treset();\n\t\t\taction = RowAction.UPDATE;\n\t\t}", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "public int insertSensorData(DataValue dataVal) throws Exception;", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 등록을 하다.\");\n\t}", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "@Override\r\n\tpublic int insertData(UserVO userVO) {\n\t\treturn 0;\r\n\t}", "private void updateDB() {\n }", "@Transactional\n DataRistorante insert(DataRistorante risto);", "@Override\r\n public void undoTransaction() {\n data.getStudents().remove(newStu);\r\n data.getStudents().add(stu);\r\n }", "public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }", "private void salvar() {\n setaCidadeBean();\n //Instanciamos o DAO\n CidadeDAO dao = new CidadeDAO();\n //verifica qual será a operação de peristência a ser realizada\n if (operacao == 1) {\n dao.inserir(cidadeBean);\n }\n if (operacao == 2) {\n dao.alterar(cidadeBean);\n }\n habilitaBotoesParaEdicao(false);\n reiniciaTela();\n }", "private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }", "public void save() {\n super.storageSave(listPedidosAssistencia.toArray());\n }", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ServicioEntity entity = factory.manufacturePojo(ServicioEntity.class);\n em.persist(entity);\n dataServicio.add(entity);\n }\n for (int i = 0; i < 3; i++) {\n QuejaEntity entity = factory.manufacturePojo(QuejaEntity.class);\n if (i == 0) {\n entity.setServicio(dataServicio.get(0));\n }\n em.persist(entity);\n data.add(entity);\n }\n }", "private void saveData() {\n try {\n String query;\n query = \"INSERT INTO limit_hd (kode_limit, grup, produk, masa_limit, jumlah_limit, status, pesan_gagal, tgl_mulai_event, tgl_akhir_event, date_create, date_update) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n Connection conn = (Connection) DatabaseConnection.getConnection(dbName2);\n PreparedStatement pst = conn.prepareStatement(query);\n getMaxKodeLimit();\n maxKodeLimit += 1;\n grupColumn = cmbGrup.getSelectedItem().toString();\n produkColumn = cmbProduk.getSelectedItem().toString();\n masaLimitColumn = cmbTransactionPeriod.getSelectedItem().toString();\n jumlahLimitColumn = Integer.parseInt(txtTransactionLimit.getText());\n errorMessageColumn = txaErrorMessage.getText();\n startDate = dtpStartDateEvent.getText();\n endDate = dtpEndDateEvent.getText();\n isStatusColumn = true;\n\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\n Date sqlDate1 = (Date) dateFormatter.parse(startDate);\n Date sqlDate2 = (Date) dateFormatter.parse(endDate);\n\n java.sql.Date startEventDate = new java.sql.Date(sqlDate1.getTime());\n java.sql.Date endEventDate = new java.sql.Date(sqlDate2.getTime());\n\n pst.setInt(1, maxKodeLimit);\n pst.setString(2, grupColumn);\n pst.setString(3, produkColumn);\n pst.setString(4, masaLimitColumn);\n pst.setInt(5, jumlahLimitColumn);\n pst.setBoolean(6, isStatusColumn);\n pst.setString(7, errorMessageColumn);\n pst.setDate(8, startEventDate);\n pst.setDate(9, endEventDate);\n pst.setDate(10, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.setDate(11, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.executeUpdate();\n showLimitHeader();\n defaultSetVariable();\n JOptionPane.showMessageDialog(null, \"Data telah berhasil di simpan\");\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(LimitAddOn.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "@Override\n public void saveValues() {\n \n }", "public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "private void insertData() {\n \n for (int i = 0; i < 3; i++) {\n ClienteEntity editorial = factory.manufacturePojo(ClienteEntity.class);\n em.persist(editorial);\n ClienteData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoPaseoEntity paseo = factory.manufacturePojo(ContratoPaseoEntity.class);\n em.persist(paseo);\n contratoPaseoData.add(paseo);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoHotelEntity editorial = factory.manufacturePojo(ContratoHotelEntity.class);\n em.persist(editorial);\n contratoHotelData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n PerroEntity perro = factory.manufacturePojo(PerroEntity.class);\n //perro.setCliente(ClienteData.get(0));\n //perro.setEstadias((List<ContratoHotelEntity>) contratoHotelData.get(0));\n //perro.setPaseos((List<ContratoPaseoEntity>) contratoPaseoData.get(0));\n em.persist(perro);\n Perrodata.add(perro);\n }\n\n }", "public void updateData() {}", "private void insertData() \n {\n for(int i = 0; i < 2; i++){\n RazaEntity razaEntity = factory.manufacturePojo(RazaEntity.class);\n em.persist(razaEntity);\n razaData.add(razaEntity);\n }\n for (int i = 0; i < 3; i++) {\n EspecieEntity especieEntity = factory.manufacturePojo(EspecieEntity.class);\n if(i == 0)\n {\n especieEntity.setRazas(razaData);\n }\n em.persist(especieEntity);\n especieData.add(especieEntity);\n }\n }", "@Override\n\tvoid make_deposit(DataStore ds){\n\tds.setbalancedepositAccount1(ds.getbalanceAccount1_temp()+ds.getdepositAccount1());\n\t}", "private void updateDatabase() {\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\tArrayList<String> updatedRecords = serializer.serialize(records);\n\t\tDatabaseHandler.writeToDatabase(DATABASE_NAME, updatedRecords);\n\t}", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "@Override\n\tpublic boolean insertOne(finalDataBean t) throws Exception {\n\t\treturn false;\n\t}", "@FXML void actualiserEtudiant(ActionEvent event) throws SQLException {\r\n dataEtudiant.clear();\r\n leadDatabaseDataEtudiant();\r\n }", "public void save()throws Exception{\n if(!pname1.getText().isEmpty() && !qty1.getText().isEmpty() && !prc1.getText().isEmpty() && !rsp1.getText().isEmpty() ){\r\n s_notif1.setId(\"hide\");\r\n ArrayList<Product> ar = new ArrayList<>();\r\n com.mysql.jdbc.Connection conn = db.getConnection();\r\n Statement stm = conn.createStatement();\r\n int rs = stm.executeUpdate(\"UPDATE products SET \"\r\n + \"name='\"+pname1.getText()+\"', \"\r\n + \"qty='\"+qty1.getText()+\"', \"\r\n + \"price='\"+prc1.getText()+\"',\"\r\n + \"re_stock_point='\"+rsp1.getText()+\"' WHERE ID ='\"+S_ID+\"';\");\r\n if(rs > 0){\r\n s_notif1.setId(\"show\");\r\n }\r\n }\r\n loadData();\r\n }", "public void updateDataComp() {\n\t\tdataEntryDao.updateDataComp();\n\t}", "public abstract void leerPersistencia();", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}", "int insert(Kaiwa record);", "public void inserirLigas() throws SQLException {\n observableListLigas = FXCollections.observableArrayList(ligas);\n selecionarLiga.setItems(observableListLigas);\n \n }", "@Override\n public int insert(StorePickStatus arg0) {\n return 0;\n }", "@Override\n\t\t\t\t\t\t\tpublic void updata(Object allData) {\n\t\t\t\t\t\t\t\tif (allData !=null && allData instanceof PhotoGraType) {\n\t\t\t\t\t\t\t\t\tPhotoGraType bean=(PhotoGraType) allData;\n\n\t\t\t\t\t\t\t\t\tPhotoType type=bean.new PhotoType();\n\t\t\t\t\t\t\t\t\ttype.setId(\"0\");\n\t\t\t\t\t\t\t\t\ttype.setName(\"全部城区\");\n\t\t\t\t\t\t\t\t\tbean.getList().add(0, type);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tinitQuyuData(bean.getList());\n\t\t\t\t\t\t\t\t}else if (allData ==null) {\n\t\t\t\t\t\t\t\t\tToast.makeText(getActivity(), \"网络不给力\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "protected void updateData() throws SQLException{\n\t\t//Actualizar array de items dentro del comboBox del menu eliminar\n\t\tItems = d.getAsArray(this.mode);\n\t\t//Actualizar el ComboBox\n\t\tDefaultComboBoxModel<String> model = new DefaultComboBoxModel<String>(Items);\n\t\tcomboBox.setModel(model);\n\t}", "int insert(CptDataStore record);", "@Override\r\n\tpublic int inserta(ReservaBean bean) throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int insertGeunTaeData(HashMap<String, String> params) {\n\t\treturn sqlsession.insert(\"GeuntaeMgnt.insertGeunTaeData\",params);\r\n\t}", "int insert(FileRecordAdmin record);", "private void persistUserDataIfNeeded() throws IOException {\n int amountdatasets = 0;\n for (Transaction t : buffer) {\n amountdatasets += t.getDatasets().size();\n }\n //more than 5 datasets in write buffer --> write committed transactions\n if (amountdatasets >= 5) {\n Set<Transaction> todelete = new HashSet<>();\n\n //only one thread at a time should enter this block\n synchronized (this) {\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" entered persistUserDataIfNeeded sync block\");\n for (Transaction t : buffer) {\n if (t.isCommitted()) {\n for (UserData data : t.getDatasets()) {\n persistData(data);\n }\n todelete.add(t);\n }\n }\n\n //here the deletion happens. Comment out if Abnahme is n�rgeling... :)\n for (Transaction t : todelete) {\n System.out.println(\"removing transaction \" + t.getId() + \" from buffer\");\n buffer.remove(t);\n }\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" left persistUserDataIfNeeded sync block\");\n }\n }\n }", "@Override\r\n\tpublic Integer insert(Wt_collection record) {\n\t\treturn 0;\r\n\t}", "public void saveData() {\n if (dataComplete()) {\n if(validLengths())\n {\n Item old_item = items.get(item_index);\n int item_purchase_status = 0;\n if (!item_purchased.isChecked()) {\n item_purchase_status = 1;\n }\n\n ds.open();\n Item new_item = new Item(old_item.id, item_name.getText().toString(), item_category.getText().toString(),\n item_description.getText().toString(), Double.parseDouble(item_price.getText().toString()), item_purchase_status);\n boolean success = ds.editEntry(new_item);\n ds.close();\n\n if (success) {\n exit();\n } else {\n empty_error.setVisibility(empty_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.VISIBLE);\n }\n }\n else\n {\n empty_error.setVisibility(empty_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.VISIBLE);\n }\n } else {\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n empty_error.setVisibility(empty_error.VISIBLE);\n }\n }", "public void saveData() {\n throw new UnsupportedOperationException(\"Not yet supported\");\n }", "private void register_to_data_table() {\n\n\t\t\tfinal DataClient dc = this.task.data_client;\n\t\t\tfinal Transaction tx = dc.beginTransaction();\n\n\t\t\tfinal String repoid = this.op_repo;\n\t\t\tString uid = this.op_user;\n\n\t\t\tAliasDAO alias_dao = new AliasDAO(dc);\n\t\t\tuid = alias_dao.findUser(uid);\n\n\t\t\tRepoDTM repoinfo = dc.get(uid, RepoDTM.class);\n\t\t\tif (repoinfo == null) {\n\t\t\t\trepoinfo = new RepoDTM();\n\t\t\t\tdc.insert(uid, repoinfo);\n\t\t\t}\n\n\t\t\tMap<String, RepoItem> tab = repoinfo.getTable();\n\t\t\tif (tab.containsKey(repoid)) {\n\t\t\t\tString msg = \"the repo with name [%s] exists.\";\n\t\t\t\tmsg = String.format(msg, repoid);\n\t\t\t\tthrow new SnowflakeException(msg);\n\t\t\t}\n\n\t\t\tURI location = this.repo.getComponentContext().getURI();\n\n\t\t\tRepoItem item = new RepoItem();\n\t\t\titem.setName(repoid);\n\t\t\titem.setLocation(location.toString());\n\t\t\titem.setDescriptor(this.getRepoDescriptorId().toString());\n\t\t\ttab.put(repoid, item);\n\n\t\t\tdc.update(repoinfo);\n\n\t\t\ttx.commit();\n\n\t\t}", "public void saveToDB(String sellerID, ArrayList<String> data) throws SQLException {\n\t\tString sql = \"update contactseller_seller_feedback_stastics set positive_month_1 = ?, positive_month_3= ?, positive_year_1= ?, positive_lifetime= ?, neutral_month_1= ?, neutral_month_3= ?, neutral_year_1= ?, neutral_lifetime= ?, negative_month_1= ?, negative_month_3= ?, negative_year_1= ?, negative_lifetime= ?, count_month_1= ?, count_month_3= ?, count_year_1= ?, count_lifetime= ? where seller_id = ? and country = ?\";\r\n\t\tPreparedStatement pstmt = conn.prepareStatement(sql);\r\n\r\n\t\tfor (int i = 0; i < data.size(); i++) {\r\n\t\t\tpstmt.setString(i + 1, data.get(i).replace(\",\", \"\"));\r\n\t\t}\r\n\t\tpstmt.setString(data.size() + 1, sellerID);\r\n\t\tpstmt.setString(data.size() + 2, this.country.toString());\r\n\t\tpstmt.addBatch();\r\n\t\tpstmt.executeBatch();\r\n\t\t// conn.close();\r\n\t\tSystem.out.println(\"inserted\");\r\n\r\n\t}", "private void readAndSAVE(){\n boolean vaidation_status = true;\n\n achiv_title = edtxt_achiv_title.getText().toString();\n if (TextUtils.isEmpty(achiv_title)){\n edtxt_achiv_title.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_achiv_title.setError(null);\n }\n\n achiv_date = edtxt_achiv_date.getText().toString();\n if (TextUtils.isEmpty(achiv_date)){\n edtxt_achiv_date.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_achiv_date.setError(null);\n }\n\n\n\n achiv_details = edtxt_achiv_details.getText().toString();\n if(achiv_details.isEmpty()){\n vaidation_status = false;\n edtxt_achiv_details.setText(\"Please write Details!!\");\n }\n\n // if all vaidation is true then add all details into firbase database\n if(vaidation_status){\n\n //create Details model\n AchivmentsDetails addNewAchiv = new AchivmentsDetails();\n\n addNewAchiv.setAchv_titles(achiv_title);\n addNewAchiv.setAchv_date(achiv_date);\n addNewAchiv.setAchv_details(achiv_details);\n\n showProgressDialog();\n\n if(mAuth.getCurrentUser()!=null)\n {\n //CHECK IF new achivments has been added or update process.\n String achiv_key;\n if(operationStatus.equals(\"ADD_NEW\")) {\n\n // Get new push key\n achiv_key = mDatabase.child(\"UserNode\").child(mAuth.getCurrentUser().getUid()).child(\"Achivments_Info\").push().getKey();\n addNewAchiv.setAchv_firbase_ID(achiv_key);\n\n } else {\n achiv_key = operationStatus;\n addNewAchiv.setAchv_firbase_ID(achiv_key);\n }\n\n // save the user at UserNode under user UID\n mDatabase.child(\"UserNode\").child(mAuth.getCurrentUser().getUid()).child(\"Achivments_Info\").child(achiv_key).setValue(addNewAchiv, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n\n hideProgressDialog();\n\n if(databaseError==null)\n {\n Toast.makeText(AddNewAchivmentsActivity.this, \"Your Details has been saved !!\",\n Toast.LENGTH_SHORT).show();\n finish();\n }\n }\n });\n }\n\n\n\n }\n }", "public void flushData (){\n\t\tTransaction tx = this.pm.currentTransaction();\n\t\ttry {\n\t\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\t\tthis.pm.currentTransaction().commit();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tApplication.getLogger ().error (\"Error flushing data for persistence. \", e);\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n//\t\ttx.begin();\n\t}", "@Override\r\n\tpublic final void saveObjectData() throws BillingSystemException{\n\t}", "@Override\n\tpublic void preInsert() {\n\n\t}", "int insert(AdminTab record);", "public final /* synthetic */ void saveToDb() {\n DruidPooledConnection druidPooledConnection;\n DruidPooledConnection druidPooledConnection2;\n block18: {\n block17: {\n StringBuilder stringBuilder;\n PreparedStatement preparedStatement;\n MaplePet a2;\n if (!a2.a) {\n return;\n }\n try {\n druidPooledConnection2 = DBConPool.getInstance().getDataSource().getConnection();\n try {\n preparedStatement = druidPooledConnection2.prepareStatement(ConcurrentEnumMap.ALLATORIxDEMO(\";\\t*\\u0018:\\u001cN)\\u000b-\\u001dy=\\u001c:y\\u00008\\u0003<NdNfBy\\u0002<\\u0018<\\u0002ySyQuN:\\u00026\\u001d<\\u0000<\\u001d*NdNfBy\\b,\\u00025\\u0000<\\u001d*NdNfBy\\u001d<\\r6\\u0000=\\u001dySyQuN?\\u00028\\t*NdNfBy\\u000b!\\r5\\u001b=\\u000b=NdNfNuN*\\u001e<\\u000b=NdNfBy\\f,\\b?\\u001d2\\u00075\\u00020\\nySyQuN:\\u000f7>0\\r2;)NdNfBy\\u001d2\\u00075\\u00020\\nySyQy9\\u0011+\\u000b+y\\u001e<\\u001a0\\nySyQ\"));\n try {\n int n2;\n PreparedStatement preparedStatement2 = preparedStatement;\n PreparedStatement preparedStatement3 = preparedStatement;\n preparedStatement.setString(1, a2.h);\n preparedStatement3.setByte(2, a2.e);\n preparedStatement3.setShort(3, a2.B);\n preparedStatement2.setByte(4, a2.H);\n preparedStatement2.setInt(5, a2.J);\n preparedStatement.setShort(6, a2.k);\n stringBuilder = new StringBuilder();\n int n3 = n2 = 0;\n while (n3 < a2.d.length) {\n stringBuilder.append(a2.d[n2]);\n stringBuilder.append(KoreanDateUtil.ALLATORIxDEMO(\"V\"));\n n3 = ++n2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable2;\n if (preparedStatement != null) {\n try {\n preparedStatement.close();\n throwable2 = throwable;\n throw throwable2;\n }\n catch (Throwable throwable3) {\n throwable.addSuppressed(throwable3);\n }\n }\n throwable2 = throwable;\n throw throwable2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable4;\n if (druidPooledConnection2 != null) {\n try {\n druidPooledConnection2.close();\n throwable4 = throwable;\n throw throwable4;\n }\n catch (Throwable throwable5) {\n throwable.addSuppressed(throwable5);\n }\n }\n throwable4 = throwable;\n throw throwable4;\n }\n }\n catch (SQLException sQLException) {\n FilePrinter.printError(ConcurrentEnumMap.ALLATORIxDEMO(\"\\u0014\\u000f)\\u0002<><\\u001aw\\u001a!\\u001a\"), sQLException, KoreanDateUtil.ALLATORIxDEMO(\"e\\u001b`\\u001fB\\u0015R\\u0018\"));\n return;\n }\n {\n String string = stringBuilder.toString();\n PreparedStatement preparedStatement4 = preparedStatement;\n PreparedStatement preparedStatement5 = preparedStatement;\n PreparedStatement preparedStatement6 = preparedStatement;\n String string2 = string;\n preparedStatement6.setString(7, string2.substring(0, string2.length() - 1));\n preparedStatement6.setInt(8, a2.ALLATORIxDEMO);\n preparedStatement5.setInt(9, a2.I);\n preparedStatement5.setShort(10, a2.K);\n preparedStatement4.setInt(11, a2.M);\n preparedStatement4.setInt(12, a2.D);\n preparedStatement4.executeUpdate();\n a2.a = false;\n if (preparedStatement == null) break block17;\n druidPooledConnection = druidPooledConnection2;\n }\n preparedStatement.close();\n break block18;\n }\n druidPooledConnection = druidPooledConnection2;\n }\n if (druidPooledConnection == null) return;\n druidPooledConnection2.close();\n }", "@Override\n\tpublic void insert(RaceZipTbVo vo) throws SQLException {\n\t\t\n\t}", "int insert(Tourst record);", "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}", "private boolean saveData() {\n // get data from input controls\n collectDataFromUI();\n\n if (!validateData()) return false;\n\n boolean isTransfer = mCommon.transactionEntity.getTransactionType().equals(TransactionTypes.Transfer);\n if (!isTransfer) {\n mCommon.resetTransfer();\n }\n\n // Transaction. Need the id for split categories.\n\n if (!saveTransaction()) return false;\n\n // Split Categories\n\n if (mCommon.convertOneSplitIntoRegularTransaction()) {\n saveTransaction();\n }\n\n if(!mCommon.isSplitSelected()) {\n // Delete any split categories if split is unchecked.\n mCommon.removeAllSplitCategories();\n }\n if (!saveSplitCategories()) return false;\n\n return true;\n }", "protected void storeWithoutCommit(ExtObjectContainer db) {\n \ttry {\n \t\tcheckedActivate(3); // TODO: Figure out a suitable depth.\n \t\tthrowIfNotStored(mBoard);\n \t\tif(mMessage != null) throwIfNotStored(mMessage);\n \n \t\tcheckedStore();\n \t}\n \tcatch(RuntimeException e) {\n \t\tcheckedRollbackAndThrow(e);\n \t}\n }", "public void addData() {\n boolean isInserted = my_db.insertData(\"LIC\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"LIC inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mutual Fund\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mutual Fund inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mediclaim\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mediclaim inserted\", Toast.LENGTH_SHORT).show();\n\n }\n }", "public void migrateData() throws Throwable\r\n\t{\r\n\t\tthis.createStagingPrivateInstance();\r\n\t\tthis.maskData();\r\n\t\tthis.importDataInPublicInstance();\r\n\t}", "private void inseredados() {\n // Insert Funcionários\n\n FuncionarioDAO daoF = new FuncionarioDAO();\n Funcionario func1 = new Funcionario();\n func1.setCpf(\"08654683970\");\n func1.setDataNasc(new Date(\"27/04/1992\"));\n func1.setEstadoCivil(\"Solteiro\");\n func1.setFuncao(\"Garcom\");\n func1.setNome(\"Eduardo Kempf\");\n func1.setRg(\"10.538.191-3\");\n func1.setSalario(1000);\n daoF.persisteObjeto(func1);\n\n Funcionario func2 = new Funcionario();\n func2.setCpf(\"08731628974\");\n func2.setDataNasc(new Date(\"21/08/1992\"));\n func2.setEstadoCivil(\"Solteira\");\n func2.setFuncao(\"Caixa\");\n func2.setNome(\"Juliana Iora\");\n func2.setRg(\"10.550.749-6\");\n func2.setSalario(1200);\n daoF.persisteObjeto(func2);\n\n Funcionario func3 = new Funcionario();\n func3.setCpf(\"08731628974\");\n func3.setDataNasc(new Date(\"03/05/1989\"));\n func3.setEstadoCivil(\"Solteiro\");\n func3.setFuncao(\"Gerente\");\n func3.setNome(\"joão da Silva\");\n func3.setRg(\"05.480.749-2\");\n func3.setSalario(3000);\n daoF.persisteObjeto(func3);\n\n Funcionario func4 = new Funcionario();\n func4.setCpf(\"01048437990\");\n func4.setDataNasc(new Date(\"13/04/1988\"));\n func4.setEstadoCivil(\"Solteiro\");\n func4.setFuncao(\"Garçon\");\n func4.setNome(\"Luiz Fernandodos Santos\");\n func4.setRg(\"9.777.688-1\");\n func4.setSalario(1000);\n daoF.persisteObjeto(func4);\n\n TransactionManager.beginTransaction();\n Funcionario func5 = new Funcionario();\n func5.setCpf(\"01048437990\");\n func5.setDataNasc(new Date(\"13/04/1978\"));\n func5.setEstadoCivil(\"Casada\");\n func5.setFuncao(\"Cozinheira\");\n func5.setNome(\"Sofia Gomes\");\n func5.setRg(\"3.757.688-8\");\n func5.setSalario(1500);\n daoF.persisteObjeto(func5);\n\n // Insert Bebidas\n BebidaDAO daoB = new BebidaDAO();\n Bebida bebi1 = new Bebida();\n bebi1.setNome(\"Coca Cola\");\n bebi1.setPreco(3.25);\n bebi1.setQtde(1000);\n bebi1.setTipo(\"Refrigerante\");\n bebi1.setDataValidade(new Date(\"27/04/2014\"));\n daoB.persisteObjeto(bebi1);\n\n Bebida bebi2 = new Bebida();\n bebi2.setNome(\"Cerveja\");\n bebi2.setPreco(4.80);\n bebi2.setQtde(1000);\n bebi2.setTipo(\"Alcoolica\");\n bebi2.setDataValidade(new Date(\"27/11/2013\"));\n daoB.persisteObjeto(bebi2);\n\n Bebida bebi3 = new Bebida();\n bebi3.setNome(\"Guaraná Antatica\");\n bebi3.setPreco(3.25);\n bebi3.setQtde(800);\n bebi3.setTipo(\"Refrigerante\");\n bebi3.setDataValidade(new Date(\"27/02/2014\"));\n daoB.persisteObjeto(bebi3);\n\n Bebida bebi4 = new Bebida();\n bebi4.setNome(\"Água com gás\");\n bebi4.setPreco(2.75);\n bebi4.setQtde(500);\n bebi4.setTipo(\"Refrigerante\");\n bebi4.setDataValidade(new Date(\"27/08/2013\"));\n daoB.persisteObjeto(bebi4);\n\n Bebida bebi5 = new Bebida();\n bebi5.setNome(\"Whisky\");\n bebi5.setPreco(3.25);\n bebi5.setQtde(1000);\n bebi5.setTipo(\"Alcoolica\");\n bebi5.setDataValidade(new Date(\"03/05/2016\"));\n daoB.persisteObjeto(bebi5);\n\n // Insert Comidas\n ComidaDAO daoC = new ComidaDAO();\n Comida comi1 = new Comida();\n comi1.setNome(\"Batata\");\n comi1.setQuantidade(30);\n comi1.setTipo(\"Kilograma\");\n comi1.setDataValidade(new Date(\"27/04/2013\"));\n daoC.persisteObjeto(comi1);\n\n Comida comi2 = new Comida();\n comi2.setNome(\"Frango\");\n comi2.setQuantidade(15);\n comi2.setTipo(\"Kilograma\");\n comi2.setDataValidade(new Date(\"22/04/2013\"));\n daoC.persisteObjeto(comi2);\n\n Comida comi3 = new Comida();\n comi3.setNome(\"Mussarela\");\n comi3.setQuantidade(15000);\n comi3.setTipo(\"Grama\");\n comi3.setDataValidade(new Date(\"18/04/2013\"));\n daoC.persisteObjeto(comi3);\n\n Comida comi4 = new Comida();\n comi4.setNome(\"Presunto\");\n comi4.setQuantidade(10000);\n comi4.setTipo(\"Grama\");\n comi4.setDataValidade(new Date(\"18/04/2013\"));\n daoC.persisteObjeto(comi4);\n\n Comida comi5 = new Comida();\n comi5.setNome(\"Bife\");\n comi5.setQuantidade(25);\n comi5.setTipo(\"Kilograma\");\n comi5.setDataValidade(new Date(\"22/04/2013\"));\n daoC.persisteObjeto(comi5);\n\n\n // Insert Mesas\n MesaDAO daoM = new MesaDAO();\n Mesa mes1 = new Mesa();\n mes1.setCapacidade(4);\n mes1.setStatus(true);\n daoM.persisteObjeto(mes1);\n\n Mesa mes2 = new Mesa();\n mes2.setCapacidade(4);\n mes2.setStatus(true);\n daoM.persisteObjeto(mes2);\n\n Mesa mes3 = new Mesa();\n mes3.setCapacidade(6);\n mes3.setStatus(true);\n daoM.persisteObjeto(mes3);\n\n Mesa mes4 = new Mesa();\n mes4.setCapacidade(6);\n mes4.setStatus(true);\n daoM.persisteObjeto(mes4);\n\n Mesa mes5 = new Mesa();\n mes5.setCapacidade(8);\n mes5.setStatus(true);\n daoM.persisteObjeto(mes5);\n\n // Insert Pratos\n PratoDAO daoPr = new PratoDAO();\n Prato prat1 = new Prato();\n List<Comida> comI = new ArrayList<Comida>();\n comI.add(comi1);\n prat1.setNome(\"Porção de Batata\");\n prat1.setIngredientes(comI);\n prat1.setQuantidadePorcoes(3);\n prat1.setPreco(13.00);\n daoPr.persisteObjeto(prat1);\n\n Prato prat2 = new Prato();\n List<Comida> comII = new ArrayList<Comida>();\n comII.add(comi2);\n prat2.setNome(\"Porção de Frango\");\n prat2.setIngredientes(comII);\n prat2.setQuantidadePorcoes(5);\n prat2.setPreco(16.00);\n daoPr.persisteObjeto(prat2);\n\n Prato prat3 = new Prato();\n List<Comida> comIII = new ArrayList<Comida>();\n comIII.add(comi1);\n comIII.add(comi3);\n comIII.add(comi4);\n prat3.setNome(\"Batata Recheada\");\n prat3.setIngredientes(comIII);\n prat3.setQuantidadePorcoes(3);\n prat3.setPreco(13.00);\n daoPr.persisteObjeto(prat3);\n\n Prato prat4 = new Prato();\n List<Comida> comIV = new ArrayList<Comida>();\n comIV.add(comi2);\n comIV.add(comi3);\n comIV.add(comi4);\n prat4.setNome(\"Lanche\");\n prat4.setIngredientes(comIV);\n prat4.setQuantidadePorcoes(3);\n prat4.setPreco(13.00);\n daoPr.persisteObjeto(prat4);\n\n Prato prat5 = new Prato();\n prat5.setNome(\"Porção especial\");\n List<Comida> comV = new ArrayList<Comida>();\n comV.add(comi1);\n comV.add(comi3);\n comV.add(comi4);\n prat5.setIngredientes(comV);\n prat5.setQuantidadePorcoes(3);\n prat5.setPreco(13.00);\n daoPr.persisteObjeto(prat5);\n\n // Insert Pedidos Bebidas\n PedidoBebidaDAO daoPB = new PedidoBebidaDAO();\n PedidoBebida pb1 = new PedidoBebida();\n pb1.setPago(false);\n List<Bebida> bebI = new ArrayList<Bebida>();\n bebI.add(bebi1);\n bebI.add(bebi2);\n pb1.setBebidas(bebI);\n pb1.setIdFuncionario(func5);\n pb1.setIdMesa(mes5);\n daoPB.persisteObjeto(pb1);\n\n PedidoBebida pb2 = new PedidoBebida();\n pb2.setPago(false);\n List<Bebida> bebII = new ArrayList<Bebida>();\n bebII.add(bebi1);\n bebII.add(bebi4);\n pb2.setBebidas(bebII);\n pb2.setIdFuncionario(func4);\n pb2.setIdMesa(mes4);\n daoPB.persisteObjeto(pb2);\n\n TransactionManager.beginTransaction();\n PedidoBebida pb3 = new PedidoBebida();\n pb3.setPago(false);\n List<Bebida> bebIII = new ArrayList<Bebida>();\n bebIII.add(bebi2);\n bebIII.add(bebi3);\n pb3.setBebidas(bebIII);\n pb3.setIdFuncionario(func2);\n pb3.setIdMesa(mes2);\n daoPB.persisteObjeto(pb3);\n\n PedidoBebida pb4 = new PedidoBebida();\n pb4.setPago(false);\n List<Bebida> bebIV = new ArrayList<Bebida>();\n bebIV.add(bebi2);\n bebIV.add(bebi5);\n pb4.setBebidas(bebIV);\n pb4.setIdFuncionario(func3);\n pb4.setIdMesa(mes3);\n daoPB.persisteObjeto(pb4);\n\n PedidoBebida pb5 = new PedidoBebida();\n pb5.setPago(false);\n List<Bebida> bebV = new ArrayList<Bebida>();\n bebV.add(bebi1);\n bebV.add(bebi2);\n bebV.add(bebi3);\n pb5.setBebidas(bebV);\n pb5.setIdFuncionario(func1);\n pb5.setIdMesa(mes5);\n daoPB.persisteObjeto(pb5);\n\n // Insert Pedidos Pratos\n PedidoPratoDAO daoPP = new PedidoPratoDAO();\n PedidoPrato pp1 = new PedidoPrato();\n pp1.setPago(false);\n List<Prato> praI = new ArrayList<Prato>();\n praI.add(prat1);\n praI.add(prat2);\n praI.add(prat3);\n pp1.setPratos(praI);\n pp1.setIdFuncionario(func5);\n pp1.setIdMesa(mes5);\n daoPP.persisteObjeto(pp1);\n\n PedidoPrato pp2 = new PedidoPrato();\n pp2.setPago(false);\n List<Prato> praII = new ArrayList<Prato>();\n praII.add(prat1);\n praII.add(prat3);\n pp2.setPratos(praII);\n pp2.setIdFuncionario(func4);\n pp2.setIdMesa(mes4);\n daoPP.persisteObjeto(pp2);\n\n PedidoPrato pp3 = new PedidoPrato();\n pp3.setPago(false);\n List<Prato> praIII = new ArrayList<Prato>();\n praIII.add(prat1);\n praIII.add(prat2);\n pp3.setPratos(praIII);\n pp3.setIdFuncionario(func2);\n pp3.setIdMesa(mes2);\n daoPP.persisteObjeto(pp3);\n\n PedidoPrato pp4 = new PedidoPrato();\n pp4.setPago(false);\n List<Prato> praIV = new ArrayList<Prato>();\n praIV.add(prat1);\n praIV.add(prat3);\n pp4.setPratos(praIV);\n pp4.setIdFuncionario(func3);\n pp4.setIdMesa(mes3);\n daoPP.persisteObjeto(pp4);\n\n PedidoPrato pp5 = new PedidoPrato();\n pp5.setPago(false);\n List<Prato> praV = new ArrayList<Prato>();\n praV.add(prat1);\n praV.add(prat2);\n praV.add(prat3);\n praV.add(prat4);\n pp5.setPratos(praV);\n pp5.setIdFuncionario(func1);\n pp5.setIdMesa(mes5);\n daoPP.persisteObjeto(pp5);\n\n }", "int insert(TbSerdeParams record);", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }" ]
[ "0.66712123", "0.6384433", "0.6381724", "0.63307035", "0.62919104", "0.6289884", "0.6274599", "0.6241409", "0.61887306", "0.6112056", "0.60533035", "0.60482806", "0.6042666", "0.5996104", "0.5976286", "0.5965628", "0.5944293", "0.59383106", "0.59376323", "0.59336996", "0.5915533", "0.59105355", "0.5890975", "0.587892", "0.587537", "0.5872669", "0.58560205", "0.5853589", "0.58475745", "0.5842679", "0.58319086", "0.58144534", "0.5809824", "0.58080286", "0.57951784", "0.5790456", "0.5785222", "0.5772662", "0.5771555", "0.57697433", "0.57529134", "0.5752888", "0.5750079", "0.57490075", "0.574735", "0.5742682", "0.57383585", "0.5732527", "0.57323784", "0.57321405", "0.5713743", "0.5711267", "0.5710113", "0.5703854", "0.5701387", "0.5700562", "0.5694706", "0.5690417", "0.5684532", "0.5680272", "0.56786", "0.5677315", "0.567361", "0.5673099", "0.5671912", "0.56622535", "0.5656183", "0.5655357", "0.5650004", "0.5645594", "0.5644184", "0.56426954", "0.5641547", "0.5636378", "0.5634652", "0.5631369", "0.5628656", "0.5625545", "0.5621547", "0.56182575", "0.5617342", "0.56166553", "0.56150484", "0.56084895", "0.56052333", "0.5603238", "0.55994046", "0.5598968", "0.5596105", "0.5594772", "0.5593007", "0.55892336", "0.5570702", "0.5552662", "0.5551071", "0.5543273", "0.55420333", "0.55361295", "0.55265266", "0.55205697", "0.55204415" ]
0.0
-1
Ulozi Rezervaci do data store, at uz insertovanou nebo updatovanou.
void storeReservation(Reservation reservation) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void freshTheData() {\n mData.clear();\n mData.addAll(mDataOrg);\n }", "public void updata() {\n\t\tif (ReaderDataBase.search(this, \"LastReadProcess\", mFilenameString) == 0) {\n\t\t\tReaderDataBase.insertDataBase(this, \"LastReadProcess\",\n\t\t\t\t\tmFilenameString, BookPageFactory.sPercent);\n\t\t} else {\n\t\t\tReaderDataBase.upData(this, \"LastReadProcess\", mFilenameString,\n\t\t\t\t\tBookPageFactory.sPercent);\n\t\t}\n\t}", "private void clearData() {}", "private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "public void removeAllData() {\n dbHelper.removeAllData(db);\n }", "public void eraseData() {\n\t\tname = \"\";\n\t\tprice = 0.0;\n\t\tquantity = 0;\n\t}", "protected void removeOldData() {\n if (!storage.isEmpty()) {\n long timeLowerbound = storage.lastKey() - maxStorageTime;\n while (!storage.isEmpty() && storage.firstKey() < timeLowerbound) {\n storage.pollFirstEntry();\n } \n }\n }", "public void resetAppData() {\n this.materials = new ArrayList<String>();\n this.shoplistGroc = new ArrayList<String>();\n this.shopListMat = new ArrayList<String>();\n this.pantry = new ArrayList<String>();\n this.unassignedChores = new ArrayList<Chore>();\n this.finishedChores = new ArrayList<Chore>();\n this.regUsers= new ArrayList<User>();\n this.adminUsers= new ArrayList<AdminUser>();\n this.currentUserId = 0;\n this.serialNumber = 1;\n }", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "private void persistUserDataIfNeeded() throws IOException {\n int amountdatasets = 0;\n for (Transaction t : buffer) {\n amountdatasets += t.getDatasets().size();\n }\n //more than 5 datasets in write buffer --> write committed transactions\n if (amountdatasets >= 5) {\n Set<Transaction> todelete = new HashSet<>();\n\n //only one thread at a time should enter this block\n synchronized (this) {\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" entered persistUserDataIfNeeded sync block\");\n for (Transaction t : buffer) {\n if (t.isCommitted()) {\n for (UserData data : t.getDatasets()) {\n persistData(data);\n }\n todelete.add(t);\n }\n }\n\n //here the deletion happens. Comment out if Abnahme is n�rgeling... :)\n for (Transaction t : todelete) {\n System.out.println(\"removing transaction \" + t.getId() + \" from buffer\");\n buffer.remove(t);\n }\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" left persistUserDataIfNeeded sync block\");\n }\n }\n }", "@Override\r\n public void undoTransaction() {\n data.getStudents().remove(newStu);\r\n data.getStudents().add(stu);\r\n }", "public void resetData() {\n user = new User();\n saveData();\n }", "public void clearData()\r\n {\r\n \r\n }", "@Override\n\tpublic void clearDBDomande() {\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\tdomande.clear();\n\t\tdb.commit();\n\t}", "public void clearData(){\n\r\n\t}", "@Test\n\tpublic void removeFromBackend()\n\t{\n\t\tData d=new Data();\n\t\td.set(24,-1);\n\t\tassertEquals(d.boardData[24].intValue(),-1);\n\n\t}", "private void remplirUtiliseData() {\n\t}", "@Override\n public void clearData() {\n }", "private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }", "void removeAllData() throws DatabaseNotAccessibleException;", "protected void clearPersistedData() {\n Logger.v(TAG, \"Clearing persisted data\");\n try {\n MemoryPersister memoryPersister = (MemoryPersister) PersisterManager.getDataPersister(PersisterManager.STRATEGY_MEMORY);\n for (Map.Entry<Integer, DataPersister> dataPersisterEntry : memoryPersister.getDataPersisterMap().entrySet()) {\n dataPersisterEntry.getValue().clearPersistedData();\n }\n } catch (DataPersistingException e) {\n e.printStackTrace();\n }\n }", "public void tukarData() {\n this.temp = this.data1;\n this.data1 = this.data2;\n this.data2 = this.temp;\n }", "private void remplirPrestaraireData() {\n\t}", "void clearData();", "public void invalidateData() {\n Log.d(TAG, \"mama MessagesListRepository invalidateData \");\n //messagesRepository.setInitialKey(null);\n messagesRepository.invalidateData();\n }", "public void flushData (){\n\t\tTransaction tx = this.pm.currentTransaction();\n\t\ttry {\n\t\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\t\tthis.pm.currentTransaction().commit();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tApplication.getLogger ().error (\"Error flushing data for persistence. \", e);\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n//\t\ttx.begin();\n\t}", "@Override\n public void rollbackValues() {\n \n }", "protected void clearData() {\n getValues().clear();\n getChildIds().clear();\n getBTreeMetaData().setDirty(this);\n }", "void delData();", "public void clearData(){\r\n data.clear();\r\n this.fireTableDataChanged();\r\n }", "public void cleanupData() {\n\t}", "protected void updateData() throws SQLException{\n\t\t//Actualizar array de items dentro del comboBox del menu eliminar\n\t\tItems = d.getAsArray(this.mode);\n\t\t//Actualizar el ComboBox\n\t\tDefaultComboBoxModel<String> model = new DefaultComboBoxModel<String>(Items);\n\t\tcomboBox.setModel(model);\n\t}", "public void clearData() {\r\n\t\tdata = null;\r\n\t}", "private void clearInsertingValues() {\n mapFieldsIntegers.clear();\n mapFieldsStrings.clear();\n }", "@Override\n\tpublic Bundle saveData() {\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic void clearDBRisposte() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t}", "void committed() {\n\t\t\tfor (Entry<Integer, Object> entry : newData.entrySet())\n\t\t\t\toriginalData.put(entry.getKey(), entry.getValue());\n\t\t\treset();\n\t\t\taction = RowAction.UPDATE;\n\t\t}", "private void saveData() {\n }", "@Override\n\tpublic void updata(Connection conn, Long id, User user) throws SQLException {\n\t\t\n\t}", "private void deleteOldData() {\n Date today = SunshineDateUtils.getNormalizedUtcDateForToday();\n weatherDao.deleteOldWeather(today);\n }", "private void reset() {\n\t\tdata.clear();\n\t}", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "public void updateData() {}", "private void remplirMaterielData() {\n\t}", "public void removeAllData() {\n\t\tList<T> allData = this.getAllData();\r\n\t\t// clean the map\r\n\t\tthis.dataMap.clear();\r\n\t\t\r\n\t\t// notify the subscribers\r\n\t\tthis.notifyDeleted(allData);\r\n\t}", "public void updateDataComp() {\n\t\tdataEntryDao.updateDataComp();\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "public void undoChanges() {\r\n if (getPageDataStoresStatus() == DataStoreBuffer.STATUS_NOT_MODIFIED)\r\n return;\r\n else\r\n _ds.undoChanges(_ds.getRow());\r\n }", "public void resetStore() {\n try {\n db.close();\n uncommited = null;\n uncommitedDeletes = null;\n autoCommit = true;\n bloom = new BloomFilter();\n utxoCache = new LRUCache(openOutCache, 0.75f);\n } catch (IOException e) {\n log.error(\"Exception in resetStore.\", e);\n }\n\n File f = new File(filename);\n if (f.isDirectory()) {\n for (File c : f.listFiles())\n c.delete();\n }\n openDB();\n }", "@FXML void actualiserEtudiant(ActionEvent event) throws SQLException {\r\n dataEtudiant.clear();\r\n leadDatabaseDataEtudiant();\r\n }", "private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }", "public void wipeDatabaseData() {\n\t\tdbHelper.onUpgrade(database, 0, 1);\n\t}", "@Override\n\tpublic void uppdate() {\n\t\t\n\t}", "@Override\n\tpublic void uppdate() {\n\t\t\n\t}", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "public void postOpenInit() {\n logger = Logger.getLogger(Dataset.class);\n clear();\n for (DataPoint point : persistentData) {\n addPoint(point);\n }\n }", "public void clearUpadted() {\n this.updated = false;\n }", "@Override\n\t\t\t\t\t\t\tpublic void updata(Object allData) {\n\t\t\t\t\t\t\t\tif (allData !=null && allData instanceof PhotoGraType) {\n\t\t\t\t\t\t\t\t\tPhotoGraType bean=(PhotoGraType) allData;\n\n\t\t\t\t\t\t\t\t\tPhotoType type=bean.new PhotoType();\n\t\t\t\t\t\t\t\t\ttype.setId(\"0\");\n\t\t\t\t\t\t\t\t\ttype.setName(\"全部城区\");\n\t\t\t\t\t\t\t\t\tbean.getList().add(0, type);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tinitQuyuData(bean.getList());\n\t\t\t\t\t\t\t\t}else if (allData ==null) {\n\t\t\t\t\t\t\t\t\tToast.makeText(getActivity(), \"网络不给力\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "protected void storeWithoutCommit(ExtObjectContainer db) {\n \ttry {\n \t\tcheckedActivate(3); // TODO: Figure out a suitable depth.\n \t\tthrowIfNotStored(mBoard);\n \t\tif(mMessage != null) throwIfNotStored(mMessage);\n \n \t\tcheckedStore();\n \t}\n \tcatch(RuntimeException e) {\n \t\tcheckedRollbackAndThrow(e);\n \t}\n }", "public void forceBackup() {\n // If you configures storage support as a file,\n // method push() send all data from memory into file referenced into properties file.\n // Before writing, all expired data will be flushed.\n DacasTransaction.push();\n\n }", "private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}", "@PrePersist\n\tvoid erstelltam() {\n\t\tthis.erstelltam = new GregorianCalendar();\n\t}", "public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\n\t}", "public boolean clearData(){\r\n\t\t// Clear the map.\r\n\t\tthis.data.clear();\r\n\t\t\r\n\t\t// Verify the data is cleared\r\n\t\tif(this.data.size() > 0) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\t// end if\r\n\t}", "public void clear() { this.store.clear(); }", "public void reiniciarEstadoSalud(){\n EmpleadosPrioridadAlta.clear();\n EmpleadosPrioridadMediaAlta.clear();\n EmpleadosPrioridadMedia.clear();\n EmpleadosPrioridadBaja.clear();\n }", "public void reloadData() {\n\t\tinitializeStormData();\n\t\tsuper.reloadData();\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "public void clean() {\n\t\tdata = new ServerData();\n\t\tdataSaver.clean();\n\t}", "public void preSaveInit() {\n persistentData.clear();\n for (int i = 0; i < getNumPoints(); i++) {\n persistentData.add(getPoint(i));\n }\n }", "public void clearDataCache() {\n\t\t_cumulativeVolumeTable.clear();\n\t\tbookMap.clear();\n\t\tquoteMap.clear();\n\t\tmillisCST = 0L;\n\t}", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "public void migrateData() throws Throwable\r\n\t{\r\n\t\tthis.createStagingPrivateInstance();\r\n\t\tthis.maskData();\r\n\t\tthis.importDataInPublicInstance();\r\n\t}", "public void updatePersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tserializeToFile(file);\n\t\tupdatePersistentSettings();\n\t}", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public void removeAllDataEmpleado() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "void resetData(ReadOnlyEntryBook newData);", "protected void unique() {\n List<Double> unique = new ArrayList<Double>(size());\n for (Double f : data) {\n if (!unique.contains(f)) {\n unique.add(f);\n }\n }\n this.setData(unique);\n }", "public void reback(){\n \n try{ \n cnx = DriverManager.getConnection(url, user,pass);\n String sql = \"SELECT DISTINCT (t1.codigo_producto),(t1.categoria),(t1.producto), t1.unidades FROM tabla_aux t1 INNER JOIN (SELECT producto, MAX(Unidades) as unidades FROM tabla_aux GROUP BY producto) t2 ON t1.producto = t2.producto AND t1.unidades = t2.unidades ORDER BY t1.producto DESC\";\n Statement st = cnx.prepareStatement(sql);\n ResultSet res = st.executeQuery(sql);\n \n while (res.next()){\n ID = res.getString(1); \n MK = res.getString(2); \n MD = res.getString(3); \n UD = res.getInt(4);\n Class.forName(\"com.mysql.jdbc.Driver\"); \n conI = DriverManager.getConnection(url, user,pass);\n String query = \"update producto set Unidades = ? where codigo_producto = ? && categoria = ? && producto = ?\";\n PreparedStatement preparedStmt = conI.prepareStatement(query);\n preparedStmt.setInt (1, UD);\n preparedStmt.setString (2, ID);\n preparedStmt.setString (3, MK);\n preparedStmt.setString (4, MD);\n preparedStmt.executeUpdate();\n }\n Connection conex = DriverManager.getConnection(url, user, pass);\n String Qury = \"TRUNCATE tabla_aux\";\n Statement sts = conex.createStatement();\n sts.executeUpdate(Qury);\n }\n catch(SQLException ex){JOptionPane.showMessageDialog(this,ex);} catch (ClassNotFoundException ex) {\n Logger.getLogger(hacer_ventas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n public void DataIsInserted() {\n }", "public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "public void clear() {\r\n\t\tdata.clear();\r\n\r\n\t}", "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 void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }", "public void cleanUp() {\n logger.info(\"clean up...\");\n this.sequenceNo = calculateSequenceNumber();\n if (this.prevoteStore != null) {\n this.prevoteStore = this.prevoteStore.stream()\n .filter(i -> i.sequence_no >= this.sequenceNo)\n .collect(Collectors.toCollection(ArrayList::new));\n } else {\n this.prevoteStore = new ArrayList<>();\n }\n }", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "protected void clearData() {\n any.type(any.type());\n }", "public void hapusSemuaDataMahasiswa(){\n SQLiteDatabase db = this.getWritableDatabase();\n\n db.execSQL(\"DELETE FROM \" + TABLE_NAME);\n }", "private void remplirFabricantData() {\n\t}", "void clear() {\n data = new Data(this);\n }", "@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}", "public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}", "@Override\n public boolean eliminar(T dato) {\n if (esVacio())\n return (false); \n super.setRaiz(buscarAS(dato));\n int cmp = ((Comparable)dato).compareTo(super.getRaiz().getInfo()); \n //Si se encontro el elemento\n if (cmp==0){\n if (super.getRaiz().getIzq()==null){\n super.setRaiz(super.getRaiz().getDer());\n } \n else {\n NodoBin<T> x = super.getRaiz().getDer();\n super.setRaiz(super.getRaiz().getIzq());\n super.setRaiz(biselar(super.getRaiz(), dato));\n super.getRaiz().setDer(x);\n }\n return (true);\n }\n //El dato no fue encontrado\n return (false);\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "public void saveData() {\n throw new UnsupportedOperationException(\"Not yet supported\");\n }", "@Override\n public int UpdataQuestion(QuestionBean question) {\n return 0;\n }", "void saveData() throws SerializerException;" ]
[ "0.6322744", "0.62433374", "0.6228566", "0.615268", "0.61368394", "0.61094844", "0.6097493", "0.6085743", "0.59590364", "0.5957616", "0.59539074", "0.59539044", "0.5947814", "0.592812", "0.5913068", "0.58886063", "0.58875084", "0.58760977", "0.5869179", "0.5862187", "0.5848636", "0.58221245", "0.581607", "0.58159935", "0.5813058", "0.58004737", "0.5788175", "0.5776116", "0.57690096", "0.5763006", "0.57600826", "0.5757951", "0.57564336", "0.574827", "0.574333", "0.5727664", "0.5727507", "0.5700411", "0.5678998", "0.56784636", "0.5636085", "0.56343216", "0.5609863", "0.56067747", "0.5596982", "0.5589172", "0.5576928", "0.5565486", "0.5558929", "0.5555891", "0.5542237", "0.5536696", "0.55365396", "0.5532523", "0.55242985", "0.55242985", "0.55108714", "0.5503659", "0.54947406", "0.549062", "0.5481361", "0.5469004", "0.5467495", "0.54672664", "0.54654413", "0.5439553", "0.5434188", "0.5434133", "0.54268014", "0.54265577", "0.542424", "0.54218054", "0.53984046", "0.5395918", "0.5391348", "0.53911513", "0.53893334", "0.5376865", "0.5370094", "0.53669196", "0.5365678", "0.536542", "0.5357108", "0.53537077", "0.53519446", "0.5349705", "0.53482574", "0.53417766", "0.53410923", "0.5338151", "0.5332285", "0.5330771", "0.53230715", "0.5314362", "0.53115946", "0.5311222", "0.53104854", "0.5307796", "0.53023833", "0.530217", "0.5300724" ]
0.0
-1
Deletes a Room from the data store.
void deleteRoom(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteRoom(Room room);", "Boolean deleteRoom(String roomId);", "@Override\n\tpublic int deleteRoom(int room_id) {\n\t\treturn roomDao.deleteRoom(room_id);\n\t}", "public void delete(Room room) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.delete(room);\n\t\tsession.flush();\n\t}", "@Override\n\tpublic void delete(Room t) {\n\t\t\n\t}", "private void deleteRoomClicked() {\n postRequestDelete();\n sessionManager.removeRoom(sessionManager.getRoom(), sessionManager.getID());\n sessionManager.leaveRoom();\n }", "@Override\n\tpublic void delete(Room ob) {\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tPreparedStatement ps = cn.prepareStatement(\"DELETE FROM room WHERE id_room = ?\");\n\t\t\tps.setInt(1, ob.getIdRoom());\n\n\t\t\tps.execute();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t}", "@Modifying\n @Query(value = \"delete from RWindow w where w.ROOM_ID = :roomId\", nativeQuery = true )\n int deleteWindowByRoom(@Param(\"roomId\") Long roomId);", "@Modifying\r\n @Query(\"delete from Window w where w.room.id= ?1\")\r\n void deleteByRoom(Long id);", "@Override\n public void delete(Long id) {\n Room room = roomRepository.getOne(id);\n roomRepository.delete(room);\n }", "@Test\r\n\tpublic final void testDeleteRoom() {\n\t\tboolean success = roomServices.addRoom(expected2);\r\n\t\tassertTrue(success);\r\n\t\t// get room (id) due to autoincrement\r\n\t\tRoom copy = roomServices.getRoomByName(expected2.getName());\r\n\t\t// remove room (thru id)+verify\r\n\t\tsuccess = roomServices.deleteRoom(copy);\r\n\t\tassertTrue(success);\r\n\t\t// verify thru id search, verify null result\r\n\t\tRoom actual = roomServices.getRoomById(copy.getId());\r\n\t\tassertNull(actual);\r\n\t}", "public boolean deleteRoom(int roomId) {\r\n try {\r\n SQL = \"DELETE from ROOMS where ID = \" + roomId + \";\";\r\n stmt.executeUpdate(SQL);\r\n return true;\r\n } catch (SQLException err) {\r\n // Find a way to print out the error or not.\r\n return false;\r\n }\r\n\r\n }", "@DeleteMapping(path = \"/rooms/{roomId}\")\n public ResponseEntity<?> deleteRoom(@PathVariable String roomId) {\n try {\n Room room = roomService.findRoomById(roomId);\n roomService.deleteRoom(room.getRoomId());\n return new ResponseEntity<>(HttpStatus.OK);\n } catch (RoomNotFoundException e) {\n throw new NotFoundException(e.getMessage());\n }\n }", "public void deleteChatRoom(ChatRoom cr);", "@Test\n\tpublic void testDeleteRoomPositive() {\n\t\tRoom room;\n\t\tint roomId;\n\n\t\tsuper.authenticate(\"player1\");\n\n\t\troomId = super.getEntityId(\"Room1\");\n\t\troom = this.roomService.findOne(roomId);\n\n\t\tthis.roomService.delete(room);\n\n\t\tsuper.unauthenticate();\n\t}", "@Override\n\tpublic boolean deleteHotelroom(int hotelID, int roomID) {\n\t\tString hotelroomId = String.valueOf(hotelID)\n\t\t\t\t+String.valueOf(roomID);\n\t\tif(map.get(hotelroomId)!=null) {\n\t\t\thotelroomDataHelper.deleteHotelroom(roomID, hotelID);;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void deleteRoom(String roomId) {\n // copy the room from a store to another one\n Room r = getStore().getRoom(roomId);\n\n if (null != r) {\n if (mAreLeftRoomsSynced) {\n Room leftRoom = getRoom(mLeftRoomsStore, roomId, true);\n leftRoom.setIsLeft(true);\n\n // copy the summary\n RoomSummary summary = getStore().getSummary(roomId);\n if (null != summary) {\n mLeftRoomsStore.storeSummary(new RoomSummary(summary, summary.getLatestReceivedEvent(), summary.getLatestRoomState(), getUserId()));\n }\n\n // copy events and receiptData\n // it is not required but it is better, it could be useful later\n // the room summary should be enough to be displayed in the recent pages\n List<ReceiptData> receipts = new ArrayList<>();\n Collection<Event> events = getStore().getRoomMessages(roomId);\n\n if (null != events) {\n for (Event e : events) {\n receipts.addAll(getStore().getEventReceipts(roomId, e.eventId, false, false));\n mLeftRoomsStore.storeLiveRoomEvent(e);\n }\n\n for (ReceiptData receipt : receipts) {\n mLeftRoomsStore.storeReceipt(receipt, roomId);\n }\n }\n\n // copy the state\n leftRoom.getTimeline().setState(r.getTimeline().getState());\n }\n\n // remove the previous definition\n getStore().deleteRoom(roomId);\n }\n }", "public boolean deleteRooms(int id, String location)\n throws RemoteException, DeadlockException;", "@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<Void> deleteRoom(String roomId) {\n return deleteRoom(roomId, null);\n }", "public void removeRoom(Room room) {\n rooms.remove(room);\n }", "@Override\n\tpublic void onDeleteRoomDone(RoomEvent arg0) {\n\t\t\n\t}", "public boolean delRoom(String roomName) {\n\t\ttry{\n\t\t\tif (rooms.remove(roomName)) {\n\t\t\t\treturn true;\n\t\t }\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n\tpublic void delete(List<PropertyRooms> propertyRooms) {\n\t\thibernateTemplate.deleteAll(propertyRooms);\n\t}", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "int deleteByPrimaryKey(Long moepId);", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "int deleteByPrimaryKey(Integer locationId);", "@DeleteMapping(\"/chat-rooms/{id}\")\n public ResponseEntity<Void> deleteChatRoom(@PathVariable String id) {\n log.debug(\"REST request to delete ChatRoom : {}\", id);\n chatRoomRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id)).build();\n }", "private void ExitRoom() {\n stopFirestoreListenerService();\n\n SharedPreferences roomInfo = getSharedPreferences(\"PreviousRoom\", 0);\n SharedPreferences.Editor roomInfoEditor = roomInfo.edit();\n\n roomInfoEditor.putString(\"roomID\", \"\");\n\n roomInfoEditor.apply();\n\n SelectRoomActivity.recentRooms.remove(roomId);\n }", "@Override\n\tpublic int delete(Long id) {\n\t\treturn floorDao.delete(id);\n\t}", "int delRouteStoreByIdRoute(Long id_route);", "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 }", "@RequestMapping(value = \"/Reservation/{reservation_reservationId}/room/{room_roomId}\", method = RequestMethod.DELETE)\n\t@ResponseBody\n\tpublic void deleteReservationRoom(@PathVariable Integer reservation_reservationId, @PathVariable Integer related_room_roomId) {\n\t\treservationService.deleteReservationRoom(reservation_reservationId, related_room_roomId);\n\t}", "@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 }", "@Override\n protected void onDestroy() {\n db.collection(\"users\").document(userId).update(\"room\", FieldValue.delete());\n\n super.onDestroy();\n }", "public String removeRoomById(int roomNo){\r\n\t\t\r\n\t\tif(userService.adminLogIn) {\r\n\t\t\tOptional<Room> room = roomRepository.findById(roomNo);\r\n\t\t\tif (!room.isPresent()) {\r\n\t\t\t\tthrow new RoomNotFoundException(\"room not present!!Cannot delete\");\r\n\t\t\t} else {\r\n\t\t\t\troomRepository.delete(room.get());\r\n\t\t\t\treturn \"deleted successfully\";\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new AdminPermissionRequired(\"admin permission is required!!\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Writer\n int deleteByPrimaryKey(Integer id);", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "public void delete(Long id) {\n gameRepository.delete(id);\n }", "int deleteByPrimaryKey(String managerId);", "@Override\n\tpublic void delete(long id) {\n\t\tmapper.deleteByPrimaryKey(id);\n\t}", "int deleteByPrimaryKey(String maperId);", "int deleteByPrimaryKey(Long autoid);", "Long deleteByPrimaryKey(Long id);", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testDeleteRoomNotLoggedNegative() {\n\t\tRoom room;\n\t\tint roomId;\n\n\t\troomId = super.getEntityId(\"Room1\");\n\t\troom = this.roomService.findOne(roomId);\n\n\t\tthis.roomService.delete(room);\n\n\t}", "public boolean del() {\n return db.delete (TABLE, createWhere());\n }", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);" ]
[ "0.8023458", "0.77970064", "0.7588479", "0.7392459", "0.7292154", "0.704959", "0.7025802", "0.6968021", "0.6937891", "0.6896474", "0.68797195", "0.68601567", "0.6794684", "0.67544967", "0.6481858", "0.64546555", "0.6408335", "0.6385976", "0.63446426", "0.6326288", "0.63249195", "0.63039565", "0.62874347", "0.62060714", "0.60646677", "0.6055847", "0.6046277", "0.6042545", "0.59965825", "0.5990291", "0.59621835", "0.5956109", "0.59531784", "0.595165", "0.59257734", "0.5903012", "0.5871054", "0.5861865", "0.58495945", "0.58461845", "0.58321494", "0.5822067", "0.58152336", "0.58125806", "0.5811535", "0.5807121", "0.5805707", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272", "0.5798272" ]
0.71892107
5
Deletes a ActivityType from the data store.
void deleteActivityType(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteActivity(String activityId) throws ActivityStorageException;", "boolean deleteUserActivityFromDB(UserActivity userActivity);", "@Override\n\tpublic void deleteByType(int type) {\n\t\tsettingDao.deleteByType(type);\n\t}", "int deleteByPrimaryKey(String activityId);", "@Override\n public void deleteAssociated(IActivity activity, NetworkTypeEnum type) {\n if (activity != null) {\n flushChildren(activity.getGuid());\n }\n }", "int deleteByPrimaryKey(Integer typeiId);", "@Override\n public void deleteType(String repositoryId, String typeId, ExtensionsData extension) {\n CmisSpi spi = CmisBindingsHelper.getSPI(session);\n spi.getRepositoryService().deleteType(repositoryId, typeId, extension);\n\n // remove the type from cache\n TypeDefinitionCache cache = CmisBindingsHelper.getTypeDefinitionCache(session);\n cache.remove(repositoryId, typeId);\n }", "public boolean delete(@SuppressWarnings(\"rawtypes\") Class type, String key);", "public void delete(AssetType assetType) {\n if (entityManager.contains(assetType))\n entityManager.remove(assetType);\n else\n entityManager.remove(entityManager.merge(assetType));\n return;\n }", "public void removeByType(long typeId);", "public Boolean deleteActivity(String client, String cisId, AActivity activity);", "private void clearActivityType() {\n this.bitField0_ &= -5;\n this.activityType_ = 0;\n }", "@Override\n\tpublic int delete(int courseTypeNo) {\n\t\treturn courseTypeDaoImpl.delete(courseTypeNo);\n\t}", "@Override\r\n\tpublic void deleteEntity(TypeModePaiement entity) {\n\t\trepository.deleteById(entity.getIdTypeMdp());\r\n\t}", "public void deleteBySubject(int id, TripletType type) throws DAOException;", "public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "int deleteByExample(QtActivitytypeExample example);", "public void removeByDataTypeId(long dataTypeId);", "public void deleteState(String type, String state) {\r\n\t\tTaskType tt = getType(type);\r\n\t\tTaskState ts = getState(type, state);\r\n\t\tif (tt != null && ts != null)\r\n\t\t\ttt.states.remove(ts);\r\n\t}", "int deleteByPrimaryKey(Integer sell_type_id);", "@Override\n\tpublic int deleteActivity(ActivityAbstractInfo activityAbstractInfo) {\n\t\treturn activityAbstractInfoMapper.deleteByPrimaryKey(activityAbstractInfo.getId());\n\t}", "int deleteByPrimaryKey(Integer actId);", "boolean delete(Long id, Class<T> type);", "void deleteTrackerLocationGetType(final Integer id);", "@Override\r\n\tpublic TypeModePaiement delete(TypeModePaiement entity) {\n\t\treturn null;\r\n\t}", "public void deleteLocationType(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationType, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public Integer deletePaymentType(PaymentTypeObject paymentTypeObject) throws AppException;", "public void deleteData(String filename, SaveType type);", "public static void removeByRunType(String runType) {\n\t\tgetPersistence().removeByRunType(runType);\n\t}", "public boolean remove(Type t);", "public int deleteType(BikeType type){ //Deletes the type according to name and price OBSOLETE?\n final int DELETED = 0;\n final int NOT_DELETED = 1;\n final int NOT_FOUND = 2;\n \n if(!findType(type)){//Type not in database\n return NOT_FOUND;\n }else{\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(DELETE_TYPE)){\n \n ps.setString(1, type.getTypeName());\n ps.setDouble(2, type.getRentalPrice());\n ps.executeUpdate();\n return DELETED;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n return NOT_DELETED;\n }", "public void removeByProductType(String productType);", "public void deleteByComplement(int id, TripletType type) throws DAOException;", "public void removeActionType(ActionTypeDescriptor actionType) {\r\n this.actionTypes.remove(actionType);\r\n }", "public Delete versionType(EnumVersionType versionType){\n\t\taddParams(\"versionType\", versionType);\n\t\treturn this;\n\t}", "@CustomAnnotation(value = \"DELETE_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity/{id}\",\n\t\t\tmethod=RequestMethod.DELETE,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Activity> deleteActivity(@PathVariable(\"id\") Long id, @Context HttpServletRequest request){\n\t\tActivity activityForDelete=activityService.findActivity(id);\n\t\tif(activityForDelete!=null){\n\t\t\tactivityService.deleteActivity(activityForDelete.getId());\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<Activity>(activityForDelete, HttpStatus.OK);\n\t}", "public int deleteType(int typeId){ //Deletes the type according to the typeID\n final int DELETED = 0;\n final int NOT_DELETED = 1;\n final int NOT_FOUND = 2;\n \n if(!findType(typeId)){//TypeId not in database\n return NOT_FOUND;\n }else{\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(DELETE_BIKES);\n PreparedStatement ps2 = con.prepareStatement(DELETE_BY_ID);\n PreparedStatement ps3 = con.prepareStatement(DELETE_POSSIBLE);\n PreparedStatement ps4 = con.prepareStatement(BIKE_CHECK + typeId);\n ResultSet rs = ps4.executeQuery()){\n con.setAutoCommit(false);\n if(rs.next()){\n ps.setInt(1, typeId);\n ps2.setInt(1, typeId);\n ps.executeUpdate();\n ps2.executeUpdate();\n }else{\n ps3.setInt(1, typeId);\n ps3.executeUpdate();\n }\n con.commit();\n con.setAutoCommit(true);\n return DELETED;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n return NOT_DELETED;\n }", "@GetMapping(path = \"/api/activity/delete/{id}\")\n public Response deleteActivity(@PathVariable long id){\n return activityService.deleteActivity(id);\n }", "@Override\n\tpublic void delete(ExperTypeVO expertypeVO) {\n\n\t}", "void storeActivityType(ActivityType activityType) throws DataAccessException;", "@Override\n\tpublic boolean deleteStrategy(String strategyType, String strategyId) {\n\t\treturn false;\n\t}", "public final void mo26167a(Activity activity) {\n this.f24001f.remove(activity);\n }", "@Override\n\tpublic boolean delTypeFood(int typeid) {\n\t\treturn fb.delTypeFood(typeid);\n\t}", "public static int deleteMembers(ContentResolver resolver, String where, int type) {\n \tif(type == 1) {\n return resolver.delete(BLACKLIST_URI, where, null);\n \t} else if(type == 2) {\n return resolver.delete(WHITELIST_URI, where, null);\n \t} else {\n return resolver.delete(RECORDLIST_URI, where, null);\n \t}\n }", "public int delOptype(Optype optype) throws Exception {\n\t\treturn mapper.delOptype(optype);\n\t}", "@Override\n\tpublic int deletePendingTransactions(String transactionType) {\n\t\treturn 0;\n\t}", "@DeleteMapping(\"/activities/{id}\")\n\tpublic ResponseEntity <Map<String,Boolean>> deleteActivity(@PathVariable Long id) {\n\t\tActivity activity = activityRepository.findById(id)\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"Activity not exist with id :\" +id));\n\t\tactivityRepository.delete(activity);\n\t\tMap<String,Boolean> response = new HashMap<>();\n\t\tresponse.put(\"deleted\", Boolean.TRUE);\n\t\treturn ResponseEntity.ok(response);\n\t}", "boolean deleteType(String indexName, String typeName);", "int deleteByPrimaryKey(Short act_id);", "@Override\n\tpublic String delFoodType(int typeid) {\n\t\treturn ftb.delFoodType(typeid);\n\t}", "int deleteByExample(TestActivityEntityExample example);", "public static void remove( AttributeType documentAttributeType )\n {\n _dao.delete( documentAttributeType );\n }", "@Override\r\n\tpublic void delete(PartyType entity) {\n\t\t\r\n\t}", "@DELETE\n @Path(\"/actions/{actionTypeId}\")\n public void removeActionType(@PathParam(\"actionTypeId\") String actionTypeId) {\n definitionsService.removeActionType(actionTypeId);\n }", "@Override\n public long deleteJQLRaw(long id, ContactType type) {\n if (deleteJQLRawPreparedStatement3==null) {\n // generate static SQL for statement\n String _sql=\"DELETE FROM contact WHERE id=? and type=?\";\n deleteJQLRawPreparedStatement3 = KriptonDatabaseHelper.compile(_context, _sql);\n }\n KriptonContentValues _contentValues=contentValuesForUpdate(deleteJQLRawPreparedStatement3);\n _contentValues.addWhereArgs(String.valueOf(id));\n _contentValues.addWhereArgs(SQLTypeAdapterUtils.toString(EnumAdapterType.class, type));\n\n // generation CODE_001 -- BEGIN\n // generation CODE_001 -- END\n // log section BEGIN\n if (_context.isLogEnabled()) {\n\n // display log\n Logger.info(\"DELETE FROM contact WHERE id=? and type=?\");\n\n // log for where parameters -- BEGIN\n int _whereParamCounter=0;\n for (String _whereParamItem: _contentValues.whereArgs()) {\n Logger.info(\"==> param%s: '%s'\",(_whereParamCounter++), StringUtils.checkSize(_whereParamItem));\n }\n // log for where parameters -- END\n }\n // log section END\n int result = KriptonDatabaseHelper.updateDelete(deleteJQLRawPreparedStatement3, _contentValues);\n return result;\n }", "@Override\r\n\tpublic int delete(CommonParamDomain t) {\n\t\treturn getPersistanceManager().delete(getNamespace() + \".delete\", t);\r\n\t}", "@Override\n\tpublic void deleteRole_Activity(Integer id) {\n\t\tlogger.debug(\"RoleServiceImpl::deleteRole_Activity id = {}\", id);\n\t\troleMapper.deleteRole_Activity(id);\n\t}", "void deleteTrackerListTasktype(final Integer id);", "int deleteByPrimaryKey(CommonQuestionStrategyTypeKey key);", "int deleteByPrimaryKey(String itemFlow);", "@Override\n\tpublic void deleteByKeyAndType(Setting setting) {\n\t\tsettingDao.deleteByKeyAndType(setting);\n\t}", "@Override\n\tpublic void removeAuth(final String authType) {\n\t\t\n\t}", "int deleteByPrimaryKey(Integer actPrizeId);", "@RequestLine(\"DELETE /zones/{zoneName}/rrsets/{rrType}/{hostName}\")\n Status deleteResourceRecordByNameType(@Param(\"zoneName\") String zoneName,\n @Param(\"rrType\") int rrType,\n @Param(\"hostName\") String hostName);", "public void removeInputType(IInputType type);", "public void deleteTCustAffType(final Integer custAffTypeId) {\n\t\tLOGGER.info(\"=========== Delete TCustAffType ===========\");\n\t\tfinal TCustAffType tCustAffType = genericDAO.get(clazz, custAffTypeId);\n\t\tgenericDAO.remove(tCustAffType);\n\t}", "public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}", "default <T> Ack deleteProperty(ProjectEntity entity, Class<? extends PropertyType<T>> propertyType) {\n return deleteProperty(entity, propertyType.getName());\n }", "@Override\n public void deleteCompactRaw(String password, ContactType type) {\n if (deleteCompactRawPreparedStatement1==null) {\n // generate static SQL for statement\n String _sql=\"DELETE FROM contact WHERE password=? and type=?\";\n deleteCompactRawPreparedStatement1 = KriptonDatabaseHelper.compile(_context, _sql);\n }\n KriptonContentValues _contentValues=contentValuesForUpdate(deleteCompactRawPreparedStatement1);\n _contentValues.addWhereArgs(SQLTypeAdapterUtils.toString(PasswordAdapterType.class, password));\n _contentValues.addWhereArgs(SQLTypeAdapterUtils.toString(EnumAdapterType.class, type));\n\n // generation CODE_001 -- BEGIN\n // generation CODE_001 -- END\n // log section BEGIN\n if (_context.isLogEnabled()) {\n\n // display log\n Logger.info(\"DELETE FROM contact WHERE password=? and type=?\");\n\n // log for where parameters -- BEGIN\n int _whereParamCounter=0;\n for (String _whereParamItem: _contentValues.whereArgs()) {\n Logger.info(\"==> param%s: '%s'\",(_whereParamCounter++), StringUtils.checkSize(_whereParamItem));\n }\n // log for where parameters -- END\n }\n // log section END\n int result = KriptonDatabaseHelper.updateDelete(deleteCompactRawPreparedStatement1, _contentValues);\n }", "int deleteByPrimaryKey(String idTipoPersona) throws SQLException;", "int deleteByPrimaryKey(TbInvCategoryKey key);", "@Test\r\n public void testDeleteBySportActivity() {\r\n SportActivity activity = new SportActivity();\r\n activity.setName(\"Test activity\");\r\n activityDao.createSportActivity(activity);\r\n assertNotNull(activityDao.findSportActivity(activity.getId()));\r\n\r\n ActivityRecord record1 = setActivityRecord();\r\n record1.setActivity(activity);\r\n recordDao.create(record1);\r\n assertNotNull(recordDao.findActivityRecord(record1.getId()));\r\n\r\n ActivityRecord record2 = setActivityRecord();\r\n record1.setActivity(activity);\r\n recordDao.create(record2);\r\n assertNotNull(recordDao.findActivityRecord(record2.getId()));\r\n\r\n recordDao.deleteRecordsBySportActivity(activity);\r\n // TODO lines\r\n assertTrue(recordDao.findRecordsBySportActivity(activity).isEmpty());\r\n }", "public void actionTYPE(Node<TokenAttributes> node) {\n if (node.getChildren().get(0).getNodeData().getText().equals(\"TYPE\")) {\n BIB.removeNode(node);\n }\n }", "public static void destroyType() {\n\t\t\n\t}", "int deleteByPrimaryKey(String licFlow);", "public void deleteRecordByOptionAndType(String option, String type)\n\t{\n\t\tStringBuilder sqlBuilder = new StringBuilder(1024);\n\t\tJdbcTemplate updateTemplate;\n\n\t\tsqlBuilder.append(\"DELETE FROM \");\n\t\tsqlBuilder.append(getTableName());\n\t\tsqlBuilder.append(\" WHERE \");\n\t\tsqlBuilder.append(\"GAZOID ='\");\n\t\tsqlBuilder.append(option);\n\t\tsqlBuilder.append(\"' AND GAZTYP = '\");\n\t\tsqlBuilder.append(type);\n\t\tsqlBuilder.append(\"'\");\n\n\t\tupdateTemplate = getJdbcTemplate();\n\n\t\tif (LOG.isDebugEnabled())\n\t\t{\n\t\t\tLOG.debug(new StringBuilder(\"The executed sql is: \").append(sqlBuilder.toString()).toString());\n\t\t}\n\t\tupdateTemplate.update(sqlBuilder.toString());\n\n\t\tif (isAutocommitable())\n\t\t{\n\t\t\tcommit();\n\t\t}\n\t}", "public Object deleteIssueTypeScheme(Long issueTypeSchemeId, Map<String, Object> params) throws IOException {\n HttpResponse response = deleteIssueTypeSchemeForHttpResponse(issueTypeSchemeId, params);\n TypeReference<Object> typeRef = new TypeReference<Object>() {};\n return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);\n }", "void delete(String typeName, String id);", "public int deleteByRange(TypeData type, long minimumId, long maximumId);", "public CardCollection destroyCardType(String type) ;", "public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}", "int deleteByPrimaryKey(String depCode);", "public String deleteByExample(MaterialTypeExample example) {\r\n SQL sql = new SQL();\r\n sql.DELETE_FROM(\"material_type\");\r\n applyWhere(sql, example, false);\r\n return sql.toString();\r\n }", "@Override\n\tpublic void deleteMechanicalAssetType(String aMechanicalAssetTypeId) {\n\t}", "@Override\n\tpublic Integer deleteFacilitiesType(List<Integer> facilitiesTypeIds) {\n\t\treturn this.facilitiesDao.deleteFacilitiesType(facilitiesTypeIds);\n\t}", "int deleteByPrimaryKey(Integer tfId);", "public void deleteComment(String activityId, String commentId) throws ActivityStorageException;", "int deleteByPrimaryKey(Integer roleId);", "int deleteByPrimaryKey(Integer roleId);", "public void unsetTypeId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TYPEID$2, 0);\n }\n }", "public void deleteOne(ContactModelClass contactModelClass) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, \"id = ?\", new String[] { String.valueOf(contactModelClass.getId()) });\n db.close();\n }", "public static void removeByRunType_G(long groupId, String runType) {\n\t\tgetPersistence().removeByRunType_G(groupId, runType);\n\t}", "int deleteByPrimaryKey(Long accountid);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete WorkType : {}\", id);\n workTypeRepository.deleteById(id);\n workTypeSearchRepository.deleteById(id);\n }", "int deleteByPrimaryKey(Long personId);", "public <T> boolean delete(Class<T> entityClass, String id);", "void unsetType();", "@Override\r\n\tpublic void deleteTipoTramite(Integer idTipoTramite) {\n\t\t\r\n\t}", "int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;" ]
[ "0.677084", "0.6571659", "0.6563333", "0.6450113", "0.63140345", "0.6158744", "0.6125275", "0.61129653", "0.60736823", "0.60462445", "0.5912066", "0.5905096", "0.5891087", "0.5855097", "0.5756762", "0.5749227", "0.5716529", "0.570651", "0.5687698", "0.56788707", "0.5649737", "0.56338847", "0.5599986", "0.5590326", "0.55280906", "0.55087245", "0.55066514", "0.5503492", "0.5497717", "0.54942906", "0.5474789", "0.54705566", "0.54677176", "0.545408", "0.54537493", "0.54363513", "0.54313314", "0.54054236", "0.53887033", "0.53793484", "0.53698736", "0.536978", "0.5341314", "0.5331039", "0.5315437", "0.53081554", "0.530246", "0.5273492", "0.5270377", "0.5242667", "0.5241896", "0.5225386", "0.52179676", "0.5202148", "0.5177155", "0.51618314", "0.51337236", "0.5131359", "0.5125142", "0.5121763", "0.5120409", "0.51199704", "0.5103024", "0.50985444", "0.50961083", "0.50924003", "0.5082657", "0.50812757", "0.50604486", "0.5057784", "0.50492847", "0.50457156", "0.50382423", "0.50259984", "0.50233084", "0.5002294", "0.498461", "0.49836096", "0.49781632", "0.49781144", "0.49674273", "0.494395", "0.49426442", "0.49315625", "0.49298668", "0.49285275", "0.4926503", "0.49227187", "0.49220443", "0.49220443", "0.49181542", "0.4912293", "0.49050072", "0.49022406", "0.49007902", "0.48998725", "0.4894418", "0.4892649", "0.4890433", "0.48887983" ]
0.7081287
0
Deletes a User from the data store.
void deleteUser(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(User user){\n userRepository.delete(user);\n }", "@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}", "public void delete(User user) {\n repository.delete(user);\n }", "@Override\n public boolean deleteUser(User user) {\n return controller.deleteUser(user);\n }", "void deleteUserById(Long id);", "public boolean delete(User user);", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int delete(Users user) {\n\t\t\n\t\treturn userDAO.delete(user);\n\t}", "public void deleteUser(User user) {\n\t\tdelete(user);\r\n\t}", "public void deleteUser(User userToDelete) throws Exception;", "public void delete(User user) {\n\t\tuserDao.delete(user);\n\t}", "public void deleteUser(long id){\n userRepository.deleteById(id);\n }", "@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}", "public void deleteUser(int id) {\n\t\tuserRepository.delete(id);\r\n\t}", "@Override\n public void delete(User user) {\n dao.delete(user);\n }", "@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}", "public void deleteUser(User user) {\r\n\t\tusersPersistence.deleteUser(user);\r\n\t}", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "@Override\r\n\tpublic void deleteByUser(User user) {\n\t\tuserReposotory.delete(user);\r\n\t}", "public void deleteUser(int id) {\r\n userRepo.deleteById(id);\r\n }", "@Override\n\tpublic void deleteUser(User user) {\n\t\tiUserDao.deleteUser(user);\n\t}", "public void deleteUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().delete(user);\t\r\n\t\t\r\n\t}", "void deleteUserById(Integer id);", "public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }", "public void deleteUser(Integer uid);", "public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}", "public void deleteUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USER, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }", "public void deleteUser(String name);", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "public void deleteUserById(Long userId);", "public void deleteUser(final Long id) {\n userRepository.deleteById(id);\n }", "@Override\n\tpublic void delete_User(String user_id) {\n\t\tuserInfoDao.delete_User(user_id);\n\t}", "@Override\n\tpublic void deleteUser(int id) {\n\t\tuserMapper.deleteUser(id);\n\t}", "boolean delete(User user);", "public void deleteUser(long userId);", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "@Override\n\tpublic int deleteUser(Integer id) {\n\t\treturn userDao.deleteUser(id);\n\t}", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "public User delete(String user);", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "void deleteUser(String userId);", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}", "public void deleteUserRecord() {\n\t\tSystem.out.println(\"Calling deleteUserRecord() Method To Delete User Record\");\n\t\tuserDAO.deleteUser(user);\n\t}", "@Override\r\n\tpublic void deleteByIdUser(int id) {\n\t\tuserReposotory.deleteById(id);\r\n\t}", "public void deleteUser(user user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_NAME, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void deleteUser(int userId) {\n\t\tuserDao.deleteUser(userId);\n\t}", "public void deleteUser(String username);", "@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}", "void delete(User user);", "void delete(User user);", "public void deleteUser(int id) {\n\t\tet.begin();\n\t\tem.remove(em.find(User.class, id));\n\t\tet.commit();\n\t}", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "@Override\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userMapper.deleteByPrimaryKey(id);\n\t}", "@Override\r\n\tpublic int delete(int id) {\n\t\treturn userDAO.DeleteUser(id);\r\n\t}", "@Override\r\n\tpublic void delete(User user) {\n\t\tint iRet = dao.delete(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"删除失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"删除成功\");\r\n\t}", "public void deleteUser(User u) {\n\t\tuserRepository.delete(u);\n\t}", "@Override\n\tpublic void deleteUser(Long userId) {\n\t\tusersRepo.deleteById(userId);\n\n\t}", "@Override\r\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userDao.deleteByPrimaryKey(id);\r\n\t}", "public Boolean DeleteUser(User user){\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}", "void deleteUser(int id);", "public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }", "void deleteUser(String username) throws UserDaoException;", "public void deleteUser(int id){\r\n\t\tconfigDao.deleteUserById(id);\r\n\t}", "void deleteUser(User user, String token) throws AuthenticationException;", "public User delete(User user);", "void deleteUser(String deleteUserId);", "@Override\n\tpublic int delete(int uid) {\n\t\treturn new userDaoImpl().delete(uid);\n\t}", "@Override\r\n\tpublic int deleteUser(String userId) {\n\t\treturn userMapper.deleteUser(userId);\r\n\t}", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "public void deleteUser(Integer id) {\n UserModel userModel;\n try {\n userModel = userRepository.findById(id).orElseThrow(IOException::new);\n }\n catch (IOException e) {\n System.out.println(\"User not found\");\n userModel = null;\n }\n userRepository.delete(userModel);\n }", "public void deleteUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USERLIST, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }", "public void deleteUser(Integer id) throws BadRequestException;", "public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }", "@Override\r\n\tpublic void delete(int userId) {\n\t\ttheUserRepository.deleteById(userId);\r\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\tuserDao.delete(id);\n\t\t\n\t}", "public void deleteUser(String id) {\n\t\tSystem.out.println(\"deleteUser\");\n\t\t personDAO.deleteUser(id);\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\tuserDao.delete(id);\n\t}", "public void delete(User u) {\n\t\tUserDao ua=new UserDao();\n\t\tua.delete(u);\n\t\t\n\t}", "public void delete(int id){\n\t\tuserRepository.delete(id);\n\t}", "public void deleteAppUser(AppUserTO appUser) {\n\t\ttry {\n\t\t\tthis.jdbcTemplate.update(\"delete from carbon_app_user where id=?\",\n\t\t\t\t\tappUser.getId());\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in AppUserDAO: deleteAppUser\", e);\n\t\t}\n\t}", "public DeleteUserResponse deleteUser(DeleteUserRequest request) throws GPUdbException {\n DeleteUserResponse actualResponse_ = new DeleteUserResponse();\n submitRequest(\"/delete/user\", request, actualResponse_, false);\n return actualResponse_;\n }", "@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}", "public void deleteUser(User selectedUser) throws SQLException, IOException {\n userManager.deleteUser(selectedUser);\n userManager.emptyLists();\n userManager.fillLists();\n AdminMainViewController.emptyStaticLists();\n AdminMainViewController.adminsObservableList.addAll(userManager.getAdminsList());\n AdminMainViewController.usersObservableList.addAll(userManager.getUsersList());\n }", "@Override\n\tpublic void delete(User user) throws DAOException {\n\t\t\n\t}", "@Override\r\n\tpublic void del(int uid) {\n\t\tuserDao.del(uid);\r\n\t}", "public void deleteUser(int userid) {\n\t\t\n\t}", "public void delete(User usuario);", "public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }", "void deleteUser( String username );", "public int deleteUser(int id) {\n\t\treturn userMapper.deleteUser(id);\r\n\t}", "@Override\n\tpublic int delUser(Integer id)throws Exception {\n\t\treturn userMapper.delUser(id);\n\t}", "@DeleteMapping(\"/users/{id}\")\n\tpublic void deleteUser(@PathVariable int id) {\n\t\tuserService.deleteById(id);\n\t\t\n\t\t\n\t}", "public void delete(User user)throws Exception;", "Integer removeUserByUserId(Integer user_id);", "@PostMapping(\"/authenticate/delete/user\")\n\tpublic ResponseEntity<?> deleteUser(@RequestBody DeleteUserRequest deleteUserRequest) throws Exception {\n\n\t\tRegisterUserResponse response = new RegisterUserResponse();\n\n\t\tuserRepository.deleteById(deleteUserRequest.getUserId());\n\n\t\treturn ResponseEntity.ok(response);\n\t}", "public void delete(User obj) {\n\t\t\n\t}", "public static void deleteUser() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.deleteUser());\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }" ]
[ "0.7912546", "0.78413117", "0.78212106", "0.7819264", "0.7767749", "0.7727969", "0.77274287", "0.7722469", "0.7720661", "0.77180725", "0.77057976", "0.76989216", "0.7691825", "0.76780653", "0.767409", "0.76631635", "0.7658951", "0.76482546", "0.7636758", "0.76336867", "0.761324", "0.76057285", "0.76044023", "0.7598854", "0.75980747", "0.75543237", "0.75494194", "0.75354815", "0.75305134", "0.7512064", "0.7494692", "0.74914604", "0.7490189", "0.7484207", "0.7483684", "0.74807554", "0.74550676", "0.74432355", "0.7439096", "0.74367756", "0.7416812", "0.7397686", "0.73943377", "0.73929757", "0.73889536", "0.738228", "0.73704684", "0.73679084", "0.73374075", "0.73360765", "0.7331914", "0.73272276", "0.73272276", "0.73253894", "0.73209465", "0.7317155", "0.731497", "0.73139423", "0.73073465", "0.73005843", "0.72793037", "0.7278642", "0.7278343", "0.72593707", "0.7254079", "0.724688", "0.72449", "0.723844", "0.72357666", "0.7226973", "0.72245455", "0.7216913", "0.72110903", "0.7199308", "0.71884054", "0.71775526", "0.71674794", "0.7164845", "0.71584773", "0.71501654", "0.7145386", "0.7133165", "0.71141654", "0.71048963", "0.7104081", "0.7097267", "0.70966256", "0.70898944", "0.7080963", "0.7078555", "0.7056278", "0.7056129", "0.70556694", "0.70536673", "0.7051518", "0.7039904", "0.7036177", "0.7020415", "0.70203614", "0.70124316", "0.70007014" ]
0.0
-1
Deletes a Reservation from the data store.
void deleteReservation(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/Reservation/{reservation_reservationId}\", method = RequestMethod.DELETE)\n\t@ResponseBody\n\tpublic void deleteReservation(@PathVariable Integer reservation_reservationId) {\n\t\tReservation reservation = reservationDAO.findReservationByPrimaryKey(reservation_reservationId);\n\t\treservationService.deleteReservation(reservation);\n\t}", "@Test(expected = ReservationNotFoundException.class)\n\tpublic void testDeleteReservation() throws ReservationNotFoundException {\n\t\t// TODO: add a second res that sould be let untouched\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), validStartDate,\n\t\t\t\tvalidEndDate);\n\t\tassertNotNull(res1.getId());\n\t\tString id = res1.getId();\n\t\tbookingManagement.deleteReservation(res1.getId());\n\n\t\tres1 = bookingManagement.getReservation(id);\n\t\tassertTrue(res1 == null);\n\t}", "@GetMapping(\"/trip/{id}/reservation/delete/{reservationID}\")\n public String deleteReservation(@PathVariable(\"id\") long id, \n \t\t@PathVariable(\"reservationID\") long reservationID, Model model) {\n\n \tservice.delete(id, reservationID);\n \n return \"redirect:/trip/\" + id;\n }", "@Test\n @DisplayName(\"Testataan tilausten poisto tietokannasta\")\n void deleteReservation() {\n TablesEntity table = new TablesEntity();\n table.setSeats(2);\n tablesDao.createTable(table);\n\n ReservationsEntity reservation = new ReservationsEntity(\"Antero\", \"10073819\", new Date(System.currentTimeMillis()), table.getId(), new Time(1000), new Time(2000));\n reservationsDao.createReservation(reservation);\n\n // Confirm that the reservation is in DB\n ReservationsEntity reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(reservation, reservationFromDb);\n\n // Delete reservation and confirm that it's not in the DB\n reservationsDao.deleteReservation(reservation);\n\n reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(null, reservationFromDb);\n\n }", "void deleteBookingById(BookingKey bookingKey);", "@Override\n\tpublic int deleteByPrimaryKey(String id) {\n\t\treturn siteReservoirInfoMapper.deleteByPrimaryKey(id);\n\t}", "void cancelReservation(String reservationId) throws ObjectNotFoundException;", "@DeleteMapping(\"/{id}\")\t\n\t@ApiOperation(value = \"Delete reservation\", notes = \"Service to delete a reservation\")\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"Reservation deleted\"),\n\t\t\t@ApiResponse(code = 404, message = \"Reservation not found\"),\n\t\t\t@ApiResponse(code = 400, message = \"Bad request\")\n\t})\n\tpublic ResponseEntity<?> delete(@PathVariable(\"id\")int id){\n\t\tResponseEntity<?> response;\n\t\tReservation reservation = reservationService.get(id);\n\t\tif(reservation==null) {\n\t\t\tMap<String,String> errors = new HashMap<>();\n\t\t\terrors.put(\"Errors\", \"The reservation does not exist\");\n\t\t\tresponse = new ResponseEntity<>(errors,HttpStatus.NOT_FOUND);\n\t\t}else {\n\t\t\treservationService.delete(reservation);\n\t\t\tReservationDTO reservationDTO = new ReservationDTO(reservation);\n\t\t\tresponse = new ResponseEntity<>(reservationDTO,HttpStatus.OK);\n\t\t}\n\t\treturn response;\n\t}", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "public void deleteReserva(Reserva reserva) throws Exception \n\t\t{\n\t\t\tDAOReserva daoReserva = new DAOReserva( );\n\t\t\ttry\n\t\t\t{\n\t\t\t\tthis.conn = darConexion();\n\t\t\t\tdaoReserva.setConn( conn );\n\t\t\t\tif(daoReserva.findReservaById(reserva.getIdReserva()) == null)\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception(\"El reserva que esta intentando eliminar no existe\");\n\t\t\t\t}\n\t\t\t\tdaoReserva.deleteReserva(reserva);\n\n\t\t\t}\n\t\t\tcatch (SQLException sqlException) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\t\tsqlException.printStackTrace();\n\t\t\t\tthrow sqlException;\n\t\t\t} \n\t\t\tcatch (Exception exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t} \n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tdaoReserva.cerrarRecursos();\n\t\t\t\t\tif(this.conn!=null){\n\t\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException exception) {\n\t\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\tthrow exception;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}", "private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Test\n public void testReservationFactoryRemove() {\n ReservationController reservationController = reservationFactory.getReservationController();\n Customer customer = new Customer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n Calendar date = Calendar.getInstance();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n Table table = tableFactory.getTableController().getTable(1);\n reservationController.addReservation(date, customer, 2, table);\n reservationController.removeReservation(1);\n assertEquals(0, reservationController.getReservationList().size());\n }", "public void deleteRoom(Room room);", "@RequestMapping(value = \"/Reservation/{reservation_reservationId}/room/{room_roomId}\", method = RequestMethod.DELETE)\n\t@ResponseBody\n\tpublic void deleteReservationRoom(@PathVariable Integer reservation_reservationId, @PathVariable Integer related_room_roomId) {\n\t\treservationService.deleteReservationRoom(reservation_reservationId, related_room_roomId);\n\t}", "@Override\r\n\tpublic void cancelReservation(Reservation r) {\n\t\tentityManager.remove(entityManager.merge(r));\r\n\t\t\r\n\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testDeleteReservationWithNullID() throws Exception {\n\t\tbookingManagement.deleteReservation(null);\n\t}", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "public void delete(Appointment appointment) {\n\t\tappointmentDao.delete(appointment);\n\t}", "@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 }", "@Override\n\tpublic int delete(int residentId) {\n\t\ttry {\n\t\t\trepository.deleteById(residentId);\n\t\t\treturn 1;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "void deleteRoom(int id) throws DataAccessException;", "void deleteVehicle(String vehicleID);", "@RequestMapping(value = \"/Reservation/{reservation_reservationId}/guest/{guest_guestId}\", method = RequestMethod.DELETE)\n\t@ResponseBody\n\tpublic void deleteReservationGuest(@PathVariable Integer reservation_reservationId, @PathVariable Integer related_guest_guestId) {\n\t\treservationService.deleteReservationGuest(reservation_reservationId, related_guest_guestId);\n\t}", "public void delete()\n\t{\n\t\tif(object.onDelete())\n\t\t{\n\t\t\tremoveFromRegion();\n\t\t}\n\t}", "public void deletar() {\n\t\tClienteDAO Clientedao = new ClienteDAO();\t\r\n\t\tClientedao.delete(this);\r\n\t\t\r\n\t\tnovoRegistro();\r\n\t\tnotifyObservers();\r\n\t}", "Boolean deleteRoom(String roomId);", "public static boolean deleteReserveTime(ReserveTime reserveTime){\n\t reserveTime.setStatus(ReserveTimeStatus.DELETED);\n\t return updateReserveTime(reserveTime);\n }", "@Override\n public void deleteHotel(String hotelId) {\n Optional<Hotel> optionalHotel = hotelRepository.findByHotelId(hotelId);\n Hotel hotel = optionalHotel.orElseThrow(() -> {\n logger.error(\"Hotel information not found | hotelId:{}\", hotelId);\n return new BookingServiceException(\"Hotel information not found | hotelId:\" + hotelId);\n });\n if (hotel.isDeleted()) {\n logger.info(\"Hotel is inactive | hotelId:{}\", hotelId);\n throw new BookingServiceException(\"Hotel is inactive | hotelId:\" + hotelId);\n }\n hotel.setDeleted(true);\n Date lastModifiedDate = new Date();\n hotel.setLastModifiedDate(lastModifiedDate);\n hotelRepository.save(hotel);\n\n List<Room> rooms = hotel.getRooms();\n if (rooms != null && rooms.size() > 0) {\n List<Room> roomList = rooms.stream()\n .filter(room -> !room.isDeleted())\n .peek(room -> {\n room.setDeleted(true);\n room.setLastModifiedDate(lastModifiedDate);\n })\n .collect(Collectors.toList());\n roomRepository.saveAll(roomList);\n }\n logger.info(\"Deleted hotel information successfully | hotelId:{}\", hotelId);\n }", "void deleteBooking(int detail_id) throws DataAccessException;", "int deleteByPrimaryKey(String registerId);", "Address deleteAddress(Long addressId);", "public void deleteEvent() {\r\n database.eventDao().delete(event.uid);\r\n finish();\r\n }", "void storeReservation(Reservation reservation) throws DataAccessException;", "@Override\n\tpublic void delete(Integer id) {\n\t\tString query = \"DELETE from fleet WHERE fleet.planeid=\" + id;\n\t\tDBManager.getInstance().deleteFromDB(query);\n\t}", "@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }", "int deleteByPrimaryKey(String repaymentId);", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "int delTravelById(Long id_travel) throws TravelNotFoundException;", "@Override\r\n public void delete(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement = \"DELETE FROM appointments WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "public void deleteVehicle(final long vehicle) throws SQLException {\n final Statement stmt = connection.createStatement();\n final int num = stmt.executeUpdate(\"DELETE FROM trips WHERE vehicle = \" + vehicle);\n System.out.println(num + \" rows deleted for vehicle = \" + vehicle);\n stmt.close();\n onChange();\n }", "@Test\n\tpublic void testRemoveFacilityFromReservation() throws Exception {\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID,\n\t\t\t\tArrays.asList(infoBuilding.getId(), room1.getId()), validStartDate, validEndDate);\n\n\t\tbookingManagement.removeFacilityFromReservation(res1.getId(), room1.getId());\n\n\t\tres1 = bookingManagement.getReservation(res1.getId());\n\t\tassertNotNull(res1);\n\t\tassertEquals(1, res1.getBookedFacilityIds().size());\n\t\tassertTrue(res1.getBookedFacilityIds().contains(infoBuilding.getId()));\n\t}", "@Override\n\tpublic void delete(Room t) {\n\t\t\n\t}", "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 delete(Repeater repeater)\n {\n new DeleteRepeaterAsyncTask(repeaterDao).execute(repeater);\n }", "@Test\n public void removeTest() {\n reservation3.setId(14L);\n reservationService.remove(reservation3);\n Mockito.verify(reservationDao, Mockito.times(1)).remove(reservation3);\n }", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "public void delete(Room room) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.delete(room);\n\t\tsession.flush();\n\t}", "@RequestMapping(\"/hotel/delete/{id}\")\r\n public String deleteTrip(@PathVariable(\"id\") String hotelId) {\r\n Long idhotel = Long.parseLong(hotelId);\r\n this.hotel.removeById(idhotel);\r\n\r\n return \"redirect:/hotel/list\";\r\n }", "@Override\r\n public void delete(Vehicle vehicle) {\n }", "int deleteByPrimaryKey(String taxregcode);", "int deleteByPrimaryKey(Integer rebateId);", "public void delete() throws Exception{\n\t\tm_service = new DistrictService();\n\t\tString deleteId = \"3751~`~`~`~@~#\";\n\t\tDecoder objPD = new Decoder(deleteId);\n\t\tString objReturn = m_service.delete(objPD);\n\t\tSystem.out.println(objReturn);\n\t}", "public List<ProgramScheduled> deleteProgramScheduleById(int scheduleId);", "public String undo() {\n\t\treservationDB.deleteReservation(name, reserving.getOrigin(), reserving.getDestination());\n\t\tString response = cid + \",undo,reserve,\" + name + \",\" + reserving.toString();\n\t\treturn response;\n\t}", "public void delete() throws Exception\n {\n dao.delete(this);\n }", "@Transactional\n public void delete(String routers_id) throws NoSuchRoutersException {\n var routers = routersRepository.findById(routers_id).get();//2.0.0.M7\n\n if (routers == null) throw new NoSuchRoutersException();\n routersRepository.delete(routers);\n }", "@Override\n\tpublic void deleteById(String id) {\n\t\tcontractDao.delete(id);\n\t}", "int deleteByExample(SrHotelRoomInfoExample example);", "public void deleteById(String id);", "@Override\n\tpublic int deleteRoom(int room_id) {\n\t\treturn roomDao.deleteRoom(room_id);\n\t}", "public void deleteAgenda(Agenda agenda){\n Session sessao = HibernateUtil.getSessionFactory().openSession();\n Transaction transactio = sessao.beginTransaction(); \n sessao.delete(agenda);\n transactio.commit();\n sessao.close();\n }", "public void deleteDistrict(District District);", "void deleteconBooking(int confirm_id) throws DataAccessException;", "public void deleteRoute(Route route) throws SQLException {\n\t\trDb.deleteRoute(route);\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\tshipperDao.delete(id);\r\n\t}", "@RequestMapping(path = \"/{reservationId}\", method = RequestMethod.DELETE)\n public ResponseEntity<Void> deleteComments(\n @PathVariable long reservationId) {\n\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n }", "public void delete(Integer id) {\n vehicleMaintenanceRepository.deleteById(id);\n }", "int deleteByPrimaryKey(String deptCode);", "@Override\n\tpublic boolean fnDeleteRoom(String adminId, String date, String roomNumber,\n\t\t\tString timeSlots) {\n\t\tHashMap<String, HashMap<String, HashMap<String, String>>> dateWiseRoomDetails = getdateWiseRoomDetails(adminId\n\t\t\t\t.substring(0, 3).toUpperCase());\n\t\tif (dateWiseRoomDetails.get(date) == null) {\n\t\t\treturn false;\n\t\t}\n\t\tHashMap<String, String> timeSlotsOfARoom = dateWiseRoomDetails\n\t\t\t\t.get(date).get(roomNumber);\n\t\tif (timeSlotsOfARoom == null)\n\t\t\treturn false;\n\t\tfnTracelog(\"Delete\" + timeSlots);\n\t\tfor (String timeSlot : timeSlots.split(\",\")) {\n\t\t\tfnTracelog(\"Loop\" + timeSlot);\n\t\t\tString bookingID = timeSlotsOfARoom.get(timeSlot);\n\t\t\tfnRemoveBookingId(bookingID);\n\t\t\ttimeSlotsOfARoom.remove(timeSlot);\n\t\t}\n\t\treturn true;\n\t}", "public void delete() throws NotAuthorizedException, ConflictException,\n\t\t\tBadRequestException {\n\t}", "int delRouteById(Long id_route) throws RouteNotFoundException;", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "int deleteByPrimaryKey(Long idreg);", "@Override\n\tpublic void delete(Integer deptno) {\n\t\t\n\t}", "void delete(SecretIdentifier secretIdentifier);", "@Override\n\tpublic int deleteFromLicenseProxyAppointmentByPrimaryKey(Integer id) {\n\t\treturn licenseProxyAppointmentMapper.deleteByPrimaryKey(id);\n\t}", "@RequestMapping(\"/delete\")\n\tpublic String delete(@RequestParam Long bookingId) {\n\t\tbookingRepository.delete(bookingId);\n\t return \"booking #\"+bookingId+\" deleted successfully\";\n\t}", "@DeleteMapping(\"/{hotelId}\")\n public ResponseEntity<Void> deleteHotelWithId(@PathVariable Long hotelId){\n hotelService.deleteHotelById(hotelId);\n return new ResponseEntity<>(HttpStatus.OK);\n }", "@Override\r\n\t@Transactional\r\n\tpublic void delete(String id) {\n\t\tcodeRangeDisMapper.deleteById(id);\r\n\t}", "Reservation loadReservation(int id) throws DataAccessException;", "public void eliminarTripulante(Long id);", "@Override\n\tpublic void delete(Room ob) {\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tPreparedStatement ps = cn.prepareStatement(\"DELETE FROM room WHERE id_room = ?\");\n\t\t\tps.setInt(1, ob.getIdRoom());\n\n\t\t\tps.execute();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t}", "@RequestMapping(value = \"/Reservation/{reservation_reservationId}/transactionses/{transactions_transactionId}\", method = RequestMethod.DELETE)\n\t@ResponseBody\n\tpublic void deleteReservationTransactionses(@PathVariable Integer reservation_reservationId, @PathVariable Integer related_transactionses_transactionId) {\n\t\treservationService.deleteReservationTransactionses(reservation_reservationId, related_transactionses_transactionId);\n\t}", "@Delete(\"DELETE from addresses WHERE id_address=#{addressId}\")\n void deleteAddress(int addressId);", "int deleteByPrimaryKey(Integer roleId);", "int deleteByPrimaryKey(Integer roleId);", "public int deleteXPmScheduleAddressByPK(XPMScheduleAddressPK theXPmScheduleAddressPK,String recFulNam,Date recDate) throws AAException, RemoteException ;", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "int deleteByPrimaryKey(String courseId);", "public static boolean deleteReserveTimeList(List<ReserveTime> reserveTimes){\n\t\tConnection connection = DBConnection.getConnection();\n\t\tfor(ReserveTime reserveTime : reserveTimes) {\n\t\t\treserveTime.setStatus(ReserveTimeStatus.DELETED);\n\t\t\tif(!executeInsertUpdate(reserveTime, updateCommand + reserveTime.getID(), connection)) {\n\t\t\t\tDBConnection.closeConnection(connection);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tDBConnection.closeConnection(connection);\n\t\treturn true;\n\t}", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete() throws SQLException {\n DatabaseConnector.updateQuery(\"DELETE FROM course \"\n + \"WHERE courseDept='\" + this.courseDept \n + \"' AND courseNum = '\" + this.courseNum + \"'\");\n }", "public void deleteByVaiTroID(long vaiTroId);", "int deleteByPrimaryKey(PersonRegisterDo record);", "int deleteByPrimaryKey(String debtsId);", "private void deleteRoomClicked() {\n postRequestDelete();\n sessionManager.removeRoom(sessionManager.getRoom(), sessionManager.getID());\n sessionManager.leaveRoom();\n }", "public void eliminar(Long id) throws AppException;" ]
[ "0.7224269", "0.70398164", "0.6708403", "0.6663895", "0.6112937", "0.60559577", "0.6026937", "0.60216415", "0.6004961", "0.58651984", "0.58524656", "0.583569", "0.58282983", "0.5819725", "0.58174384", "0.57570916", "0.5712069", "0.5706969", "0.55899185", "0.55882704", "0.5559047", "0.55476415", "0.5521413", "0.5520412", "0.5511758", "0.550631", "0.54941285", "0.5453514", "0.544484", "0.54285264", "0.5421661", "0.538973", "0.5382368", "0.53725964", "0.5368873", "0.5366249", "0.53640693", "0.5345936", "0.53160256", "0.53141", "0.53111875", "0.5311182", "0.5290741", "0.5280299", "0.5277925", "0.5268939", "0.5259472", "0.5251788", "0.5241657", "0.52387625", "0.523636", "0.52252954", "0.522471", "0.5221129", "0.5220582", "0.520957", "0.52080655", "0.5205808", "0.5203619", "0.5199771", "0.5199403", "0.5197209", "0.5192588", "0.5190983", "0.51882505", "0.51863706", "0.5183668", "0.5176857", "0.51743686", "0.51705164", "0.5166679", "0.5160743", "0.515872", "0.5158234", "0.5142603", "0.5142268", "0.51392686", "0.5138302", "0.51365006", "0.51327854", "0.51325905", "0.5126761", "0.512539", "0.5121459", "0.5120814", "0.5120814", "0.5119195", "0.51160055", "0.5115687", "0.51132566", "0.5111958", "0.5111538", "0.5111538", "0.5111538", "0.5110936", "0.5110634", "0.5108769", "0.5104913", "0.5103352", "0.51033074" ]
0.7232128
0