CN112396403B - Alarm clock setting method and device, computer equipment and storage medium - Google Patents
Alarm clock setting method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112396403B CN112396403B CN202011360145.4A CN202011360145A CN112396403B CN 112396403 B CN112396403 B CN 112396403B CN 202011360145 A CN202011360145 A CN 202011360145A CN 112396403 B CN112396403 B CN 112396403B
- Authority
- CN
- China
- Prior art keywords
- time
- getting
- students
- student
- alarm clock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000000875 corresponding effect Effects 0.000 claims description 19
- 235000021152 breakfast Nutrition 0.000 claims description 6
- 238000009499 grossing Methods 0.000 claims description 6
- 238000013507 mapping Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 230000008030 elimination Effects 0.000 claims description 3
- 238000003379 elimination reaction Methods 0.000 claims description 3
- 230000002596 correlated effect Effects 0.000 claims description 2
- 206010063385 Intellectualisation Diseases 0.000 abstract description 3
- 238000005406 washing Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000006399 behavior Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 241000251468 Actinopterygii Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 235000012054 meals Nutrition 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/109—Time management, e.g. calendars, reminders, meetings or time accounting
- G06Q10/1093—Calendar-based scheduling for persons or groups
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9532—Query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/20—Education
- G06Q50/205—Education administration or guidance
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Human Resources & Organizations (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Health & Medical Sciences (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Mathematical Physics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Electric Clocks (AREA)
Abstract
The embodiment of the invention provides a setting method and device of an alarm clock, computer equipment and a storage medium, wherein the method comprises the following steps: determining students residing in the same dormitory; inquiring a school timetable of students on appointed dates; according to the school timetable, setting the time for the students to get up in the date for prompting the students to get up time; generating a text applied to an alarm clock and prompting to get up for students; and sending the time of getting up and the text to a terminal corresponding to the student so as to set the time of getting up as an alarm clock and convert the text into the bell of the alarm clock. The alarm clock which is set by getting up time from the school timetable ensures the normal school time of students; meanwhile, the alarm clock is automatically set based on a school timetable and a text, and students are not required to manually select the time and the bell of the alarm clock, so that the complicated operation of manually setting the alarm clock is reduced; in addition, the alarm clock texts generated by different students are different, and the ring of the alarm clock also has personalized differences, so that the individuation and the intellectualization of the alarm clock setting method are reflected.
Description
Technical Field
The embodiment of the invention relates to the technical field of intelligent control, in particular to a setting method and device of an alarm clock, computer equipment and a storage medium.
Background
Along with the popularization of the digital campus, the school improves the management level and the operation efficiency, and students can conveniently acquire campus related information through the APP or the applet, so that the effective management of respective learning lives is realized.
The time of getting up is the first thing in the day for students, if the time of getting up is inaccurate, the attendance of subsequent courses and the state of listening to the courses are likely to be influenced, and therefore, the setting of the getting-up alarm clock is particularly important.
Under the general circumstances, the student selects time and the ringtone of alarm clock through artificial to reach the purpose of waking up through setting up a plurality of alarm clocks, operation process is loaded down with trivial details, and alarm clock ringtone is comparatively single, simultaneously, if the student forgets to set for the alarm clock, then probably can influence the time of getting up on the next day, thereby influences the state that the student was on class.
Disclosure of Invention
The embodiment of the invention provides a setting method and device of an alarm clock, computer equipment and a storage medium, which are used for solving the problems of complicated operation and single bell sound of manually setting the alarm clock.
In a first aspect, an embodiment of the present invention provides a method for setting an alarm clock, where the method includes:
determining students residing in the same dormitory;
inquiring a school timetable of the students on a appointed date;
according to the school timetable, setting the time for the students to get up in the date for prompting the students to get up time;
generating a text applied to an alarm clock and prompting to get up for the student;
and sending the getting-up time and the text to a terminal corresponding to the student, so that the getting-up time is set as an alarm clock, and the text is converted into the bell sound of the alarm clock.
Optionally, the setting the time for the student to get up in the date according to the class table to obtain the time for getting up includes:
reading the time of the first class of the student in the class in the date from the class list as the class time;
determining a time for the student to process a transaction from a dormitory to the classroom as a transaction time;
subtracting the transaction time on the basis of the course time to obtain the time for prompting the user to get up in the date, and obtaining the time for getting up.
Optionally, the transaction includes washing, breakfast, and starting from a dormitory to reach the classroom;
The determining a time for the student to process a transaction from a dormitory to the arrival at the classroom as a transaction time includes:
inquiring the distance between a dormitory and the classroom;
calculating the time spent for passing the distance in a preset passing mode, and taking the time as passing time;
inquiring the number of students on the course at the course time;
calculating the additional time consumption of passing the distance according to the number, wherein the additional time consumption of passing is positively correlated with the distance and the number;
and calculating the sum value between the passing time and the extra time, and obtaining the time of the students from the dormitory to reach the classroom as the transaction time.
Optionally, the calculating the distance of the traffic by the number is additionally time-consuming, and includes, as additional time:
dividing the distance into a plurality of unit distances;
randomly distributing the number to a plurality of unit distances to obtain the number of units;
substituting and mapping the number of the units into a preset Peer growth curve for each unit distance to obtain unit time;
and calculating the sum value among all the unit times, and obtaining additional time for passing the distance as additional time.
Optionally, the setting the time for the student to get up in the date according to the class table to obtain the time for getting up further includes:
determining a conflict between said time of getting up of two of said students;
advancing the time of getting up of one of the students to eliminate the conflict.
Optionally, said determining a conflict between said time of getting up of two of said students comprises:
calculating a difference between the getting-up times of two students as a getting-up time difference;
if the time difference of getting up is smaller than a preset time threshold, confirming that the two students collide with each other;
said advancing said time of getting up of one of said students to eliminate said conflict, comprising:
inquiring a first numerical value, a second numerical value, a third numerical value and a fourth numerical value, wherein the first numerical value is the number of the first student which is in conflict before occurrence, the second numerical value is the number of the first student which is in conflict before occurrence and is in advance of the getting-up time, the third numerical value is the number of the second student which is in conflict before occurrence, and the fourth numerical value is the number of the second student which is in advance of the getting-up time when the second student is in conflict before occurrence;
Smoothing the ratio between the second value and the first value according to the average probability of the early getting-up time when the conflict occurs, and obtaining a first early probability;
smoothing the ratio between the fourth value and the third value according to the average probability of the early getting-up time when the conflict occurs, and obtaining a second early probability;
if the first advance probability is smaller than the second advance probability, advancing the getting-up time of a first student so that the getting-up time difference is larger than or equal to the time threshold;
if the first advance probability is equal to the second advance probability, randomly advancing the getting-up time of one of the students so that the getting-up time difference is greater than or equal to the time threshold;
and if the first advance probability is greater than the second advance probability, advancing the getting-up time of a second student so that the getting-up time difference is greater than or equal to the time threshold.
Optionally, the generating the text applied to the alarm clock and prompting the student to get up includes:
inquiring labels which correspond to the students and represent characters;
searching a text which is set for the tag and applied to an alarm clock and prompts to get up;
Inquiring the name of the student, the order of the getting-up time and the information of the first class course in the class list;
and writing the names of the students, the order of the getting-up time and the information of the first class course in the class list into the text.
In a second aspect, an embodiment of the present invention further provides a device for setting an alarm clock, where the device includes:
the student determination module is used for determining students living in the same dormitory;
the school timetable inquiry module is used for inquiring the school timetable of the students on the appointed date;
the getting-up time obtaining module is used for obtaining getting-up time according to the school timetable, wherein the getting-up time is set in the date for the students and used for prompting the getting-up time;
the text generation module is used for generating a text applied to an alarm clock and prompting the students to get up;
and the getting-up time and text sending module is used for sending the getting-up time and the text to a terminal corresponding to the student so as to set the getting-up time as an alarm clock and convert the text into the bell sound of the alarm clock.
Optionally, the get-up time obtaining module includes:
the course time reading sub-module is used for reading the time of the first course of the student in the class as the course time in the date and in the class from the class list;
A transaction time determination submodule, configured to determine a time from when the student processes a transaction from a dormitory to when the student arrives at the classroom, as a transaction time;
and the getting-up time determining submodule is used for subtracting the transaction time on the basis of the course time to obtain the time for prompting getting-up in the date and obtain the getting-up time.
Optionally, the transaction includes washing, breakfast, and starting from a dormitory to reach the classroom;
a transaction time determination sub-module comprising:
the distance inquiring unit is used for inquiring the distance between the dormitory and the classroom;
the passing time calculation unit is used for calculating the time spent by passing the distance in a preset passing mode and taking the time as passing time;
a number inquiry unit for inquiring the number of students who are on class at the course time;
an extra time calculation unit, configured to calculate, according to the number, an extra time for passing the distance, where the extra time is positively related to the distance and the number as extra time;
and the transaction time calculation unit is used for calculating the sum value between the passing time and the additional time and obtaining the time of the students from the dormitory to arrive at the classroom as the transaction time.
Optionally, the additional time calculating unit includes:
a unit distance segmentation subunit for segmenting the distance into a plurality of unit distances;
a unit number obtaining subunit, configured to randomly allocate the number to a plurality of unit distances to obtain a unit number;
the unit time mapping subunit is used for substituting and mapping the number of the units into a preset Peer growth curve for each unit distance so as to obtain unit time;
and the additional time meter obtaining unit is used for calculating the sum value among all the unit times and obtaining additional time consumption for passing the distance as additional time.
Optionally, the get-up time obtaining module further includes:
a conflict determination sub-module for determining a conflict between the time of getting up of two of the students;
and the conflict elimination sub-module is used for advancing the getting-up time of one of the students so as to eliminate the conflict.
Optionally, the conflict determination submodule includes:
a getting-up time difference calculating unit for calculating a difference between the getting-up times of the two students as a getting-up time difference;
a get-up time conflict determination unit, configured to confirm a conflict between the get-up times of two students if the get-up time difference is smaller than a preset time threshold;
The conflict resolution sub-module includes:
the numerical value query unit is used for querying a first numerical value, a second numerical value, a third numerical value and a fourth numerical value, wherein the first numerical value is the number of the first student which is in conflict before, the second numerical value is the number of the first student which is in conflict before and is in advance of the time of getting up, the third numerical value is the number of the second student which is in conflict before, and the fourth numerical value is the number of the second student which is in conflict before and is in advance of the time of getting up;
a first advance probability obtaining unit, configured to smooth a ratio between the second value and the first value according to an average probability of an advance getting-up time when a collision occurs, to obtain a first advance probability;
a second advance probability obtaining unit, configured to smooth a ratio between the fourth value and the third value according to an average probability of an advance getting-up time when a collision occurs, to obtain a second advance probability;
a first getting-up time advancing unit for advancing the getting-up time of a first one of the students so that the getting-up time difference is greater than or equal to the time threshold if the first advance probability is smaller than the second advance probability;
A second getting-up time advance unit configured to advance the getting-up time of one of the students at random if the first advance probability is equal to the second advance probability so that the getting-up time difference is greater than or equal to the time threshold;
and the third getting-up time advancing unit is used for advancing the getting-up time of a second student if the first advancing probability is larger than the second advancing probability so that the getting-up time difference is larger than or equal to the time threshold.
Optionally, the text generation module includes:
the label inquiry sub-module is used for inquiring labels which correspond to the students and represent characters;
the text searching sub-module is used for searching texts which are set for the tag, are applied to an alarm clock and prompt for getting up;
the information inquiry sub-module is used for inquiring the names of the students, the order of the getting-up time and the information of first class courses in the class list;
and the information writing sub-module is used for writing the names of the students, the order of the getting-up time and the information of the first class course in the class list into the text.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
One or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of setting an alarm clock as described in any one of the first aspects.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements a method for setting an alarm clock according to any one of the first parties.
In this embodiment, by determining students residing in the same dormitory, inquiring a class chart of the students on a specified date, setting the time for the students to get up in the date according to the class chart to prompt the students to get up, generating a text applied to an alarm clock and prompting the students to get up, and sending the get up time and the text to a terminal corresponding to the students so as to set the get up time as the alarm clock and convert the text into a ring of the alarm clock. The alarm clock which is set by getting up time from the school timetable ensures the normal school time of students; meanwhile, the alarm clock is automatically set based on a school timetable and a text, and students are not required to manually select the time and the bell of the alarm clock, so that the complicated operation of manually setting the alarm clock is reduced; in addition, the alarm clock texts generated by different students are different, and the ring of the alarm clock also has personalized differences, so that the individuation and the intellectualization of the alarm clock setting method are reflected.
Drawings
Fig. 1 is a flowchart of a method for setting an alarm clock according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a growth curve function model according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a setting device of an alarm clock according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for setting an alarm clock according to a first embodiment of the present invention, where the method is applicable to a case where a school sets a personalized alarm clock according to a course and personal habits of a student, and the method may be performed by an alarm clock setting device, which may be implemented by software and/or hardware, and may be configured in a computer device, such as a server, a workstation, a personal computer, etc., where the workstation is a type of multi-function computer having a performance higher than that of a microcomputer based on a personal computing environment and a distributed network computing environment, including a terminal connected to the server.
The following describes an exemplary method for providing an alarm clock for a terminal by using a server background, and the method specifically comprises the following steps:
step 101, determining students residing in the same dormitory.
In schools, different students usually live in the same dormitory, the school tables among the students are different, the time of the first class in the day is different for the different students due to the difference of the school tables, and different alarm clocks are set for the different students by determining the students living in the same dormitory. In one example, the background may query for information of students in a dormitory by dormitory numbers, and the queried information may be name, telephone, class, specialty, etc.
Step 102, inquiring a school timetable of the students on a specified date.
The school is aimed at the difference of student professions, different courses are arranged for students, all courses can generate a class chart according to the date and time of the lessons, therefore, the same course on a plurality of students or the same class chart used by a plurality of students can appear, and therefore, the relationship between the students and the courses and the relationship between the students and the class chart are many-to-one. The school timetable comprises information such as course date, course time, course name, lesson address and the like, and after the background confirms students in the same dormitory, the school timetable of the students on appointed date is inquired, wherein the appointed date is used for determining the date of setting the alarm clock, for example, when the school timetable of the young classmates on 11 th 2020 is inquired, the alarm clock is set for the young classmates on 11 th 2020, the date of setting the alarm clock is determined by inquiring the school timetable, and the accuracy of setting the alarm clock is improved.
Step 103, setting the time for the students to get up in the date according to the school timetable to obtain the time for getting up.
After inquiring a class chart of a student on a specified date, setting the time for the student to get up in the date by the background according to the class chart, so as to obtain the time for the student to get up, thereby realizing the self-adaptive setting of the time for the student according to the class chart and ensuring that the student can normally get on class.
In one embodiment of the invention, step 103 comprises the steps of:
step 1031, reading the time of the student to take the course in the class in the date from the school timetable as the course time.
The school timetable contains the date and time of the lesson taken by the student, and also includes the time of the first lesson in the classroom, which represents the time the student arrived at the classroom at the latest. The background reads the time of the student in the day and the first course in the class from the class chart, and takes the time as the read course time, for example, the course time is 2020, 11, 8:10.
step 1032, determining the time for the student to process the transaction from the time of the dormitory to the time of the arrival at the classroom as the transaction time.
After the students get up, the students can only reach the classroom after finishing some transactions, wherein the transactions processed by the students comprise washing, breakfast, starting from the dormitory and reaching the classroom, and the background is used as the transaction time by determining the time from the time the students process the transactions from the dormitory to the time the students reach the classroom. For the time consumption of students to process washing, breakfast and other matters, statistics of corresponding information can be performed by means of questionnaires, analysis of user behavior data (such as card swiping time and check-in time in a meal hall) and the like, and the embodiment is not limited to this.
In one embodiment of the invention, the background can determine the student's business time by:
step 10321, inquiring the distance between dormitory and classroom.
For example, the electronic map may be used to locate the dormitory where the student lives and the classroom where the student is located, and calculate the distance between the two locating points, thereby obtaining the distance between the dormitory and the classroom.
Step 10322, calculating the time spent for passing the distance in a preset passing mode as the passing time.
For the journey between dormitory and classroom, students can choose to walk from dormitory to reach classroom, or choose to ride a bicycle to go to classroom, choose different passing modes, the time spent by students to pass the distance is different, the time can be calculated by dividing the distance by speed, the formula is used, for example t=s/v, students can preset a passing mode for the journey from dormitory to classroom, and the background can calculate the time spent by passing the distance in the preset passing mode and take the time as passing time.
Step 10323, inquiring the number of students who are on class at the course time.
For steps 10321-10322, the passage time calculated by the background only considers the influence of the passage mode on the time consumed by the passage of the distance, and the following steps take the number of students in the distance as the influence factor of the passage time.
Different students may be on lessons at the same course time, so that the situation that the number of people is excessive before the course time occurs on the same journey, and road congestion is caused, so that the passing time of the students is influenced. In order to avoid the situation that the accuracy of the calculated time consumption of the traffic is low due to the congestion of the road, the background is required to inquire the number of students who are in class at the course time so as to estimate the time consumption of the traffic.
Step 10324, calculating the traffic distance by number and taking additional time as additional time.
After the background inquires the number of students on class at the course time, the additional time for passing the distance from the dormitory to the class is calculated according to the number, and the additional time for passing the distance is taken as the additional time for passing the distance. As the distance increases, the time taken to pass through the distance increases, in addition, the number of students increases, the more the road is congested, the time taken to pass through the distance also increases, and therefore, the time taken to pass through the distance is positively related to the distance and the number.
In one example, the distance may be divided into a plurality of unit distances, and the number may be randomly allocated to the plurality of unit distances to obtain the number of units, and for each unit distance, the number of units may be substituted into a predetermined pilger growth curve to be mapped to obtain the unit time, and the sum value between all the unit times may be calculated to obtain the additional time for the passing distance as the additional time.
The term "Peel growth curve" refers to a function describing a growth curve (S curve) whose change speed is a trend of "slow-fast-slow", as shown in FIG. 2, which can visually describe a trend of a change in the number of people over a certain distance, and thus, the Peel growth curve is used to map the number of units to obtain a unit time. For example, the distance S is divided into a plurality of unit distances S1, S2, S3, and S4, where S1, S2, S3, and S4 may or may not be equal to each other, the number of units randomly allocated to the unit distances S1, S2, S3, and S4 is N1, N2, N3, and N4, where N1, N2, N3, and N4 may or may not be equal to each other, the unit time T1 is mapped by a pilger growth curve for S1, the unit time T2 is mapped by a pilger growth curve for S2, the unit time T3 is mapped by a pilger growth curve for S3, and the unit time T4 is mapped by a pilger growth curve for S4, and the obtained additional time t=t1+t2+t3+t4.
Step 10325, calculating the sum value between the passing time and the additional time, and obtaining the time for the students to arrive at the classroom from the dormitory as the business time.
In one example, the background may sum the transit time and the additional time to get the time for the student to leave the dormitory and arrive in the classroom, and take that time as the business time. As the distances from the student to the classroom are taken as the time influencing factors when the business time is calculated, the accuracy of setting the time of the alarm clock for the student based on the business time is further improved, and the individuation of setting the alarm clock is embodied.
And 1033, subtracting the transaction time on the basis of the course time to obtain the time for prompting the getting-up in the date, and obtaining the getting-up time.
The background processes the acquired course time and transaction time, and the students can get the time for prompting the getting-up, namely the getting-up time, by subtracting the transaction time on the basis of the course time as the students get the class after finishing the transaction after getting up. For example, the course time acquired by the mobile phone is 8:10, the transaction time is 1 hour, and the time of getting up is 7 after subtracting the transaction time from the course time: 10.
in another embodiment of the present invention, step 103 further comprises the following steps, in succession to step 1031-step 1033:
Step 1034, determining a conflict between the rise times of the two students.
One dormitory can hold a plurality of students, courses of different students are different, corresponding getting-up time is also different, if the alarm clock is set manually, the alarm clock of different students can ring at the same time, and the time of arriving at the classroom is delayed due to the mutual influence of the students after getting up.
For different students in the same dormitory, the getting-up time obtained by the background according to the school table may be similar, and there may be a situation that the getting-up time conflicts at this time, for example, the getting-up time of the a-student is determined to be 7: the rise time of the 00, B classmate is 7:02, the time conflict may occur due to the washing time of the student a and the washing time of the student B, so that the background should further determine the time conflict of the student getting up.
In one example, the difference between the getting-up times of two students may be calculated as a getting-up time difference, and if the getting-up time difference is smaller than a preset time threshold, a conflict between the getting-up times of the two students may be confirmed, wherein the time threshold is at least equal to the washing time, whereas if the getting-up time difference is greater than or equal to the preset time threshold, a conflict between the getting-up times of the two students may be confirmed, and the students may get up according to the determined getting-up time without delaying time each other.
Step 1035, advancing the getting-up time of one of the students to eliminate the conflict.
After the background confirms that the getting-up time of students conflicts, the getting-up time of one student is advanced, so that the conflicts are eliminated, and each student in the same dormitory can normally take lessons.
In one example, the background may resolve the conflict by:
inquiring a first numerical value, a second numerical value, a third numerical value and a fourth numerical value, wherein the first numerical value is the number of the first students which are in conflict before occurrence, the second numerical value is the number of the first students which are in conflict before occurrence, the first numerical value is the number of the second students which are in conflict before occurrence, and the fourth numerical value is the number of the second students which are in conflict before occurrence, the first numerical value is the number of the first students which are in time of getting up before occurrence.
On the one hand, the ratio between the second value and the first value is smoothed according to the average probability of the early getting-up time when the conflict occurs, and the first early probability is obtained. By way of example, where X represents a first value and Y represents a second value, smoothing may be achieved by (Y+A)/(X+B), where A and B are constants of very large values, such as 2000, 4000, etc., and A/B represents the average probability.
On the other hand, the ratio between the fourth value and the third value is smoothed according to the average probability of the early getting-up time when the conflict occurs, and the second early probability is obtained. By way of example, where M represents a third value and N represents a fourth value, smoothing may be achieved by (n+a)/(m+b), where a and B are constants of very large values, such as 2000, 4000, etc., and a/B represents the average probability.
The first advance probability is compared with the second advance probability.
In one case, if the first advance probability is less than the second advance probability, the time of getting up of the first student is advanced so that the time difference of getting up is greater than or equal to the time threshold. In this embodiment, the first advance probability is smaller than the second advance probability, which means that the probability of the first student getting-up time advance is smaller than the probability of the second student getting-up time advance, and therefore, in order to ensure fairness of the advanced getting-up time, when the first advance probability is smaller than the second advance probability, the getting-up time of the first student is advanced so that the getting-up time difference is greater than or equal to a time threshold value for determining a conflict, and when the getting-up time difference is greater than or equal to the time threshold value, the conflict is eliminated.
In another case, if the first advance probability is equal to the second advance probability, the time of getting up of one of the students is advanced at random so that the time difference of getting up is greater than or equal to the time threshold. In this embodiment, the first advance probability is equal to the second advance probability, which means that the probability of the first student getting-up time being advanced is equal to the probability of the second student getting-up time being advanced, in which case the getting-up time of one of the students may be advanced at random such that the getting-up time difference is greater than or equal to a time threshold value, which is used to determine a collision, and the collision is eliminated when the getting-up time difference is greater than or equal to the time threshold value.
In yet another case, if the first advance probability is greater than the second advance probability, the time of getting up of the second student is advanced so that the time difference of getting up is greater than or equal to the time threshold. In this embodiment, the first advance probability is greater than the second advance probability, which means that the probability of the first student getting-up time being advanced is greater than the probability of the second student getting-up time being advanced, and in order to ensure fairness of the advanced getting-up time, the getting-up time of the second student should be advanced such that the getting-up time difference is greater than or equal to a time threshold value, wherein the time threshold value is used to determine a conflict, and when the getting-up time difference is greater than or equal to the time threshold value, the conflict is resolved.
Step 104, generating a text applied to an alarm clock and prompting the students to get up.
After the background obtains the getting-up time of the students, further generating a text applied to the alarm clock and prompting the students to get up.
In a specific implementation, the label which corresponds to the student and indicates the character can be searched, the label is set, the label is applied to an alarm clock and a text for prompting the student to get up, the name of the student, the order of the student, the information of the first hall course in the class list are searched, and the name of the student, the order of the student and the information of the first hall course in the class list are written into the text.
The background can record the labels of students in advance by analyzing the behavior data of the students, other student marks and the like, and is used for representing the characters of the students, and a series of templates can be maintained for different characters, and the labels can be, for example, the literature young, the second order, and the like. Each label is provided with a text applied to an alarm clock and prompting to get up, and the background inquires the label of a student and searches the text set for the label, and an exemplary text corresponding to the word "the young in the literature" can be the most difficult choice made by us sometimes, finally becomes the most beautiful thing made by us "," the dream of people if people do not want, and what is left in salted fish respectively ", and the text corresponding to the word" the second element "can be the word" the other people cannot take the heart of you, so that the words do not need to be actively acted "," the me cannot worry about waiting because the longer the waiting time is, the more happy we will get after waiting, and the like. Meanwhile, the background stores the names, the order of the getting-up time and the information of the first class courses in the school timetable, and the background obtains the names, the order of the getting-up time and the information of the first class courses in the school timetable through inquiry and writes the information into the text of the label corresponding to the student. In one example, the background may first put the label, the text, the name, the order of the time to get up, and the order of the time to get up into a table, where each cell in the table has a corresponding coordinate, and the background may determine the position of the cell where the student name is located by adopting a character string matching manner, and query the label corresponding to the student according to a certain rule, the text set for the label, the order of the time to get up, and the information of the first class course in the class table, and the embodiment does not limit the query manner. Through the mode, different texts applied to the alarm clock and prompting the user to get up can be generated for different students, so that individuation of setting the alarm clock is further embodied.
Step 105, the getting-up time and the text are sent to the terminal corresponding to the student, so that the getting-up time is set as an alarm clock, and the text is converted into a bell of the alarm clock.
The background sends the getting-up time and the text to a terminal corresponding to the student, wherein the terminal can be a mobile phone, a tablet and the like, the mobile phone receives the getting-up time sent by the background by taking the mobile phone as an example, the management authority of the alarm clock is obtained through an alarmManager function, and the getting-up time is set in the system through a setAlarm function; the mobile phone recognizes the text by using the universal detector, converts the recognized text information into a corresponding audio packet by using the texttospechsettings function, stores the audio packet in a system path folder of the alarm clock, and directly calls and plays the audio packet when the alarm clock time is up, thereby realizing the conversion from the received text to the alarm clock bell.
In one example, the rise time acquired in the background is 7:00, the text is "little bright classmate, you want to get up for the first time, little red classmate, little plain classmate, plum blossom classmate are queuing etc. you, also high-count Abao teacher 8:10 in teaching a room 506 and so on you have a lesson-! The background sends the obtained getting-up time and the obtained text to a terminal corresponding to the student, and the mobile phone sends 7:00 is set as an alarm clock, the text is converted into the bell of the alarm clock, and at 7: when the 00 alarm clock rings, the mobile phone can play a 'little bright classmate', you want to get up for the first time, little red classmate, chen Ping classmate, plum blossom classmate are queuing and other you, and also a high number of Abao teacher 8:10 in teaching a room 506 and so on you have a lesson-! "to wake up students to get up.
In this embodiment, by determining students residing in the same dormitory, inquiring a class chart of the students on a specified date, setting the time for the students to get up in the date according to the class chart to prompt the students to get up, generating a text applied to an alarm clock and prompting the students to get up, and sending the get up time and the text to a terminal corresponding to the students so as to set the get up time as the alarm clock and convert the text into a ring of the alarm clock. The alarm clock which is set by getting up time from the school timetable ensures the normal school time of students; meanwhile, the alarm clock is automatically set based on a school timetable and a text, and students are not required to manually select the time and the bell of the alarm clock, so that the complicated operation of manually setting the alarm clock is reduced; in addition, the alarm clock texts generated by different students are different, and the ring of the alarm clock also has personalized differences, so that the individuation and the intellectualization of the alarm clock setting method are reflected.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Example two
Fig. 3 is a block diagram of a setting device of an alarm clock according to a second embodiment of the present invention, which may specifically include the following modules:
a student determination module 201 for determining students residing in the same dormitory;
a school timetable inquiry module 202, configured to inquire a school timetable of the student on a specified date;
a getting-up time obtaining module 203, configured to obtain a getting-up time according to the schedule, where the student is set with a time for prompting getting-up in the date;
a text generation module 204, configured to generate a text for the student, where the text is applied to an alarm clock and prompts to get up;
and the getting-up time and text sending module 205 is configured to send the getting-up time and the text to a terminal corresponding to the student, so as to set the getting-up time as an alarm clock, and convert the text into a bell of the alarm clock.
In one embodiment of the present invention, the getting-up time obtaining module 203 includes:
the course time reading sub-module is used for reading the time of the first course of the student in the class as the course time in the date and in the class from the class list;
a transaction time determination submodule, configured to determine a time from when the student processes a transaction from a dormitory to when the student arrives at the classroom, as a transaction time;
And the getting-up time determining submodule is used for subtracting the transaction time on the basis of the course time to obtain the time for prompting getting-up in the date and obtain the getting-up time.
In one embodiment of the invention, the transaction comprises washing, breakfast, going from dormitory to the classroom;
a transaction time determination sub-module comprising:
the distance inquiring unit is used for inquiring the distance between the dormitory and the classroom;
the passing time calculation unit is used for calculating the time spent by passing the distance in a preset passing mode and taking the time as passing time;
a number inquiry unit for inquiring the number of students who are on class at the course time;
an extra time calculation unit, configured to calculate, according to the number, an extra time for passing the distance, where the extra time is positively related to the distance and the number as extra time;
and the transaction time calculation unit is used for calculating the sum value between the passing time and the additional time and obtaining the time of the students from the dormitory to arrive at the classroom as the transaction time.
In one embodiment of the present invention, the additional time calculating unit includes:
A unit distance segmentation subunit for segmenting the distance into a plurality of unit distances;
a unit number obtaining subunit, configured to randomly allocate the number to a plurality of unit distances to obtain a unit number;
the unit time mapping subunit is used for substituting and mapping the number of the units into a preset Peer growth curve for each unit distance so as to obtain unit time;
and the additional time meter obtaining unit is used for calculating the sum value among all the unit times and obtaining additional time consumption for passing the distance as additional time.
In one embodiment of the present invention, the getting-up time obtaining module 203 further includes:
a conflict determination sub-module for determining a conflict between the time of getting up of two of the students;
and the conflict elimination sub-module is used for advancing the getting-up time of one of the students so as to eliminate the conflict.
In one embodiment of the invention, the conflict determination submodule includes:
a getting-up time difference calculating unit for calculating a difference between the getting-up times of the two students as a getting-up time difference;
a get-up time conflict determination unit, configured to confirm a conflict between the get-up times of two students if the get-up time difference is smaller than a preset time threshold;
The conflict resolution sub-module includes:
the numerical value query unit is used for querying a first numerical value, a second numerical value, a third numerical value and a fourth numerical value, wherein the first numerical value is the number of the first student which is in conflict before, the second numerical value is the number of the first student which is in conflict before and is in advance of the time of getting up, the third numerical value is the number of the second student which is in conflict before, and the fourth numerical value is the number of the second student which is in conflict before and is in advance of the time of getting up;
a first advance probability obtaining unit, configured to smooth a ratio between the second value and the first value according to an average probability of an advance getting-up time when a collision occurs, to obtain a first advance probability;
a second advance probability obtaining unit, configured to smooth a ratio between the fourth value and the third value according to an average probability of an advance getting-up time when a collision occurs, to obtain a second advance probability;
a first getting-up time advancing unit for advancing the getting-up time of a first one of the students so that the getting-up time difference is greater than or equal to the time threshold if the first advance probability is smaller than the second advance probability;
A second getting-up time advance unit configured to advance the getting-up time of one of the students at random if the first advance probability is equal to the second advance probability so that the getting-up time difference is greater than or equal to the time threshold;
and the third getting-up time advancing unit is used for advancing the getting-up time of a second student if the first advancing probability is larger than the second advancing probability so that the getting-up time difference is larger than or equal to the time threshold.
In one embodiment of the present invention, the text generation module 204 includes:
the label inquiry sub-module is used for inquiring labels which correspond to the students and represent characters;
the text searching sub-module is used for searching texts which are set for the tag, are applied to an alarm clock and prompt for getting up;
the information inquiry sub-module is used for inquiring the names of the students, the order of the getting-up time and the information of first class courses in the class list;
and the information writing sub-module is used for writing the names of the students, the order of the getting-up time and the information of the first class course in the class list into the text.
The alarm clock setting device provided by the embodiment of the invention can execute the alarm clock setting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 4 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 4, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing the setting method of the alarm clock provided by the embodiment of the present invention.
Example IV
The fourth embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process of the alarm clock setting method described above, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (8)
1. A method for setting an alarm clock, comprising:
determining students residing in the same dormitory;
inquiring a school timetable of the students on a appointed date;
according to the school timetable, setting the time for the students to get up in the date for prompting the students to get up time;
generating a text applied to an alarm clock and prompting to get up for the student;
sending the getting-up time and the text to a terminal corresponding to the student, so as to set the getting-up time as an alarm clock and convert the text into a bell of the alarm clock;
The step of obtaining the getting-up time according to the time for the student to get-up in the date, which comprises the following steps:
determining a conflict between said time of getting up of two of said students;
advancing the time of getting up of one of the students to eliminate the conflict;
said determining a conflict between said times of getting up for two of said students comprising:
calculating a difference between the getting-up times of two students as a getting-up time difference;
if the time difference of getting up is smaller than a preset time threshold, confirming that the two students collide with each other;
said advancing said time of getting up of one of said students to eliminate said conflict, comprising:
inquiring a first numerical value, a second numerical value, a third numerical value and a fourth numerical value, wherein the first numerical value is the number of the first student which is in conflict before occurrence, the second numerical value is the number of the first student which is in conflict before occurrence and is in advance of the getting-up time, the third numerical value is the number of the second student which is in conflict before occurrence, and the fourth numerical value is the number of the second student which is in advance of the getting-up time when the second student is in conflict before occurrence;
Smoothing the ratio between the second value and the first value according to the average probability of the early getting-up time when the conflict occurs, and obtaining a first early probability;
smoothing the ratio between the fourth value and the third value according to the average probability of the early getting-up time when the conflict occurs, and obtaining a second early probability;
if the first advance probability is smaller than the second advance probability, advancing the getting-up time of a first student so that the getting-up time difference is larger than or equal to the time threshold;
if the first advance probability is equal to the second advance probability, randomly advancing the getting-up time of one of the students so that the getting-up time difference is greater than or equal to the time threshold;
and if the first advance probability is greater than the second advance probability, advancing the getting-up time of a second student so that the getting-up time difference is greater than or equal to the time threshold.
2. The method of claim 1, wherein the setting the time to get up for the student in the date according to the class schedule is used to prompt the time to get up, further comprising:
Reading the time of the first class of the student in the class in the date from the class list as the class time;
determining a time for the student to process a transaction from a dormitory to the classroom as a transaction time;
subtracting the transaction time on the basis of the course time to obtain the time for prompting the user to get up in the date, and obtaining the time for getting up.
3. The method of claim 2, wherein the transaction comprises a wash, breakfast, departure from a dormitory to the classroom;
the determining a time for the student to process a transaction from a dormitory to the arrival at the classroom as a transaction time includes:
inquiring the distance between a dormitory and the classroom;
calculating the time spent for passing the distance in a preset passing mode, and taking the time as passing time;
inquiring the number of students on the course at the course time;
calculating the additional time consumption of passing the distance according to the number, wherein the additional time consumption of passing is positively correlated with the distance and the number;
and calculating the sum value between the passing time and the extra time, and obtaining the time of the students from the dormitory to reach the classroom as the transaction time.
4. A method according to claim 3, wherein said calculating said distance of traffic by said number is additionally time consuming, as additional time, comprising:
dividing the distance into a plurality of unit distances;
randomly distributing the number to a plurality of unit distances to obtain the number of units;
substituting and mapping the number of the units into a preset Peer growth curve for each unit distance to obtain unit time;
and calculating the sum value among all the unit times, and obtaining additional time for passing the distance as additional time.
5. The method of any one of claims 1-4, wherein the generating text for the student that is applied to an alarm clock, prompting to get up, comprises:
inquiring labels which correspond to the students and represent characters;
searching a text which is set for the tag and applied to an alarm clock and prompts to get up;
inquiring the name of the student, the order of the getting-up time and the information of the first class course in the class list;
and writing the names of the students, the order of the getting-up time and the information of the first class course in the class list into the text.
6. An alarm clock setting device, characterized by comprising:
The student determination module is used for determining students living in the same dormitory;
the school timetable inquiry module is used for inquiring the school timetable of the students on the appointed date;
the getting-up time obtaining module is used for obtaining getting-up time according to the school timetable, wherein the getting-up time is set in the date for the students and used for prompting the getting-up time;
the text generation module is used for generating a text applied to an alarm clock and prompting the students to get up;
the get-up time and text sending module is used for sending the get-up time and the text to a terminal corresponding to the student so as to set the get-up time as an alarm clock and convert the text into a bell of the alarm clock;
the getting-up time obtaining module includes:
a conflict determination sub-module for determining a conflict between the time of getting up of two of the students;
a conflict elimination sub-module for advancing the time of getting up of one of the students to eliminate the conflict;
the conflict determination submodule includes:
a getting-up time difference calculating unit for calculating a difference between the getting-up times of the two students as a getting-up time difference;
a get-up time conflict determination unit, configured to confirm a conflict between the get-up times of two students if the get-up time difference is smaller than a preset time threshold;
The conflict resolution sub-module includes:
the numerical value query unit is used for querying a first numerical value, a second numerical value, a third numerical value and a fourth numerical value, wherein the first numerical value is the number of the first student which is in conflict before, the second numerical value is the number of the first student which is in conflict before and is in advance of the time of getting up, the third numerical value is the number of the second student which is in conflict before, and the fourth numerical value is the number of the second student which is in conflict before and is in advance of the time of getting up;
a first advance probability obtaining unit, configured to smooth a ratio between the second value and the first value according to an average probability of an advance getting-up time when a collision occurs, to obtain a first advance probability;
a second advance probability obtaining unit, configured to smooth a ratio between the fourth value and the third value according to an average probability of an advance getting-up time when a collision occurs, to obtain a second advance probability;
a first getting-up time advancing unit for advancing the getting-up time of a first one of the students so that the getting-up time difference is greater than or equal to the time threshold if the first advance probability is smaller than the second advance probability;
A second getting-up time advance unit configured to advance the getting-up time of one of the students at random if the first advance probability is equal to the second advance probability so that the getting-up time difference is greater than or equal to the time threshold;
and the third getting-up time advancing unit is used for advancing the getting-up time of a second student if the first advancing probability is larger than the second advancing probability so that the getting-up time difference is larger than or equal to the time threshold.
7. A computer device, the computer device comprising:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of setting an alarm clock as claimed in any one of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements a method of setting an alarm clock as claimed in any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011360145.4A CN112396403B (en) | 2020-11-27 | 2020-11-27 | Alarm clock setting method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011360145.4A CN112396403B (en) | 2020-11-27 | 2020-11-27 | Alarm clock setting method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112396403A CN112396403A (en) | 2021-02-23 |
CN112396403B true CN112396403B (en) | 2024-01-26 |
Family
ID=74604644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011360145.4A Active CN112396403B (en) | 2020-11-27 | 2020-11-27 | Alarm clock setting method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112396403B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060121478A (en) * | 2005-05-24 | 2006-11-29 | 엘지전자 주식회사 | Method for setting and displaying class schedule of telecommunication terminal |
CN105512867A (en) * | 2016-02-26 | 2016-04-20 | 广东小天才科技有限公司 | Method and device for setting course alarm clock |
CN105808716A (en) * | 2016-03-07 | 2016-07-27 | 广东欧珀移动通信有限公司 | Alarm clock reminding method and apparatus as well as terminal |
CN107241503A (en) * | 2017-06-06 | 2017-10-10 | 努比亚技术有限公司 | Method, equipment and the computer-readable recording medium of setting alarm clock time |
CN108040175A (en) * | 2017-12-01 | 2018-05-15 | 广东欧珀移动通信有限公司 | Alarm clock setting method, mobile terminal and computer-readable recording medium |
-
2020
- 2020-11-27 CN CN202011360145.4A patent/CN112396403B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060121478A (en) * | 2005-05-24 | 2006-11-29 | 엘지전자 주식회사 | Method for setting and displaying class schedule of telecommunication terminal |
CN105512867A (en) * | 2016-02-26 | 2016-04-20 | 广东小天才科技有限公司 | Method and device for setting course alarm clock |
CN105808716A (en) * | 2016-03-07 | 2016-07-27 | 广东欧珀移动通信有限公司 | Alarm clock reminding method and apparatus as well as terminal |
CN107241503A (en) * | 2017-06-06 | 2017-10-10 | 努比亚技术有限公司 | Method, equipment and the computer-readable recording medium of setting alarm clock time |
CN108040175A (en) * | 2017-12-01 | 2018-05-15 | 广东欧珀移动通信有限公司 | Alarm clock setting method, mobile terminal and computer-readable recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN112396403A (en) | 2021-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108492827B (en) | Wake-up processing method, device and the storage medium of application program | |
US11347942B2 (en) | Information processing apparatus, information processing method, and storage medium | |
US20180060818A1 (en) | Conference assistance system and conference assistance method | |
US11663250B2 (en) | Method for capturing and updating database entries of CRM system based on voice commands | |
WO2019062193A1 (en) | Information display method and device | |
US20200349415A1 (en) | Method for capturing and storing contact information from a physical medium using machine learning | |
US20130035929A1 (en) | Information processing apparatus and method | |
US20180144308A1 (en) | Natural language calendar | |
CN110399488B (en) | Text classification method and device | |
CN106601256B (en) | The method and mobile terminal of speech recognition | |
US10641619B1 (en) | Gas meter query method based on compound internet of things (IoT) and IoT system | |
CN105262601A (en) | Group member information processing method and system | |
JP7436077B2 (en) | Skill voice wake-up method and device | |
EP3761288A1 (en) | Print, and production method and production system for touch-and-talk content of print | |
CN108153875B (en) | Corpus processing method and device, intelligent sound box and storage medium | |
US20210319481A1 (en) | System and method for summerization of customer interaction | |
US8429182B2 (en) | Populating a task directed community in a complex heterogeneous environment based on non-linear attributes of a paradigmatic cohort member | |
US20210141865A1 (en) | Machine learning based tenant-specific chatbots for performing actions in a multi-tenant system | |
CN110008445A (en) | Event extraction method and device, electronic equipment | |
US20160335573A1 (en) | Describing a paradigmatic member of a task directed community in a complex heterogeneous environment based on non-linear attributes | |
CN103825957A (en) | Design and realization method of mobile phone and other mobile learning systems based on cloud computing | |
CN112396403B (en) | Alarm clock setting method and device, computer equipment and storage medium | |
US20150262313A1 (en) | Multiplicative incentive mechanisms | |
CN109712443A (en) | A kind of content is with reading method, apparatus, storage medium and electronic equipment | |
CN115357793A (en) | Information recommendation method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510700 northwest of the first floor, building 6, No. 62, Nanxiang 1st Road, Huangpu District, Guangzhou, Guangdong (for office use only) Applicant after: Guangzhou Hongtu Digital Technology Co.,Ltd. Address before: 510663 northwest, 1st floor, building 6, No. 62, Nanxiang 1st Road, Huangpu District, Guangzhou City, Guangdong Province Applicant before: GUANGZHOU HONGTU EDUCATION NETWORK TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |