CN108154345B - Event scheduling method, device, equipment and storage medium - Google Patents

Event scheduling method, device, equipment and storage medium Download PDF

Info

Publication number
CN108154345B
CN108154345B CN201711432197.6A CN201711432197A CN108154345B CN 108154345 B CN108154345 B CN 108154345B CN 201711432197 A CN201711432197 A CN 201711432197A CN 108154345 B CN108154345 B CN 108154345B
Authority
CN
China
Prior art keywords
node
event
time
name
new
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
Application number
CN201711432197.6A
Other languages
Chinese (zh)
Other versions
CN108154345A (en
Inventor
周敏杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Mehdi Houstton Medicalsystem Technology Co ltd
Original Assignee
Suzhou Mehdi Houstton Medicalsystem Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Mehdi Houstton Medicalsystem Technology Co ltd filed Critical Suzhou Mehdi Houstton Medicalsystem Technology Co ltd
Priority to CN201711432197.6A priority Critical patent/CN108154345B/en
Publication of CN108154345A publication Critical patent/CN108154345A/en
Application granted granted Critical
Publication of CN108154345B publication Critical patent/CN108154345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • G06Q10/1093Calendar-based scheduling for persons or groups

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a scheduling method, a scheduling device, scheduling equipment and a storage medium for events. The method comprises the following steps: acquiring an event scheduling request input by a user, wherein the event scheduling request comprises an event name and an event time; searching node information of nodes on a time axis according to the event name, wherein the node information comprises the node name and node time; if the node with the consistent node name and the event name is found, deleting the node, and generating a new node according to the event time, wherein the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time; and sequencing other nodes on the time axis after the nodes are deleted and the new nodes to generate a new time axis, and executing corresponding events according to the node information of the nodes on the new time axis. The embodiment of the invention realizes the real-time display of the change of the time axis and improves the convenience of event arrangement operation.

Description

Event scheduling method, device, equipment and storage medium
Technical Field
Embodiments of the present invention relate to communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for arranging an event.
Background
Through the Internet technology, on one hand or a plurality of the events are connected in series according to the time sequence to form a relatively complete recording system, and then the events are presented to a user in a form of pictures and texts, wherein the time axis is called by the user. The time axis can be applied to different fields, and the biggest function of the time axis is systematization, integration and precision of things. The details of event scheduling can be presented on timelines, where each timeline is formed by one or more time nodes in series. In order to better embody the function of the time axis, in the practical process, the time axis is often required to be edited according to the practical situation, and the editing operation includes modification, new creation and deletion.
In the prior art, a method for editing a timeline includes: after the time nodes are edited, the time nodes need to be submitted to a server to store data, then the time nodes are reordered, and finally the time nodes return to the corresponding display interface to display the modified time axis, so that the operation is complex and errors are easy to make.
Disclosure of Invention
The invention provides a scheduling method, a scheduling device, a scheduling apparatus and a storage medium for events, so as to display the change of a time axis in real time and improve the convenience of event scheduling operation.
In a first aspect, an embodiment of the present invention provides a scheduling method for an event, where the method includes:
acquiring an event scheduling request input by a user, wherein the event scheduling request comprises an event name and an event time;
searching node information of nodes on a time axis according to the event name, wherein the node information comprises the node name and node time;
if the node with the node name consistent with the event name is found, deleting the node, and generating a new node according to the event time, wherein the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time;
and sequencing other nodes on the time axis after the nodes are deleted and the new nodes to generate a new time axis, and executing corresponding events according to the node information of the nodes on the new time axis.
Optionally, the obtaining an event scheduling request input by a user, where the event scheduling request includes an event name and an event time, further includes:
acquiring a time axis and establishing a bus object associated with the time axis, wherein the time axis comprises at least one node;
establishing a node monitoring object associated with each node;
the acquiring an event scheduling request input by a user, the event scheduling request including an event name and an event time, further includes:
and generating notification information according to the event scheduling request and calling the bus object to send the notification information to the node monitoring object, wherein the notification information is used for indicating the node monitoring object to execute a search operation, and the notification information comprises a node identifier corresponding to the event time.
Optionally, the node includes a node identifier, and the bus object includes a first array, where the first array includes a first object generated by associating the node monitoring object with the node identifier;
generating notification information according to the event scheduling request and calling the bus object to send the notification information to the node monitoring object, where the notification information is used to instruct the node monitoring object to perform a lookup operation, and after the notification information includes a node identifier corresponding to the event time, the method further includes:
the bus object determines the node monitoring object from the first array based on the node identification to cause the node monitoring object to receive the notification information.
Optionally, the searching for node information of a node on a time axis according to the event name, where the node information includes a node name and a node time, includes:
and when the node monitoring object receives the notification information, searching node information of the nodes on the time axis according to the event name, wherein the node information comprises the node name and the node time.
Optionally, the obtaining an event scheduling request input by a user, where the event scheduling request includes an event name and an event time, includes:
the method comprises the steps of obtaining an event scheduling request which is input by a user and meets preset conditions, wherein the event scheduling request comprises an event name and an event time.
In a second aspect, an embodiment of the present invention further provides an event scheduling apparatus, including:
the event scheduling request acquisition module is used for acquiring an event scheduling request input by a user, and the event scheduling request comprises an event name and an event time;
the node information searching module is used for searching node information of nodes on a time axis according to the event names, wherein the node information comprises the node names and the node time;
a new node generating module, configured to delete a node if a node whose node name is consistent with the event name is found, and generate a new node according to the event time, where the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time;
and the new time shaft generation module is used for sequencing other nodes on the time shaft after the nodes are deleted and the new nodes, generating a new time shaft, and executing corresponding events according to the node information of the nodes on the new time shaft.
Optionally, the apparatus further comprises:
the bus object establishing module is used for acquiring a time axis and establishing a bus object associated with the time axis, wherein the time axis comprises at least one node;
the node monitoring object establishing module is used for establishing a node monitoring object associated with each node;
after the event scheduling request obtaining module, the method further includes:
and the notification information sending module is used for generating notification information according to the event scheduling request and calling the bus object to send the notification information to the node monitoring object, wherein the notification information is used for indicating the node monitoring object to execute a search operation, and the notification information comprises a node identifier corresponding to the event time.
Optionally, the node includes a node identifier, and the bus object includes a first array, where the first array includes a first object generated by associating the node monitoring object with the node identifier;
after the notification information sending module, the method further comprises:
a node monitoring object determining module, configured to determine, by the bus object, the node monitoring object from the first array based on the node identifier, so that the node monitoring object receives the notification information.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a scheduling method for events as described above.
In a fourth aspect, the 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 the scheduling method for events as described above.
The invention obtains the event arrangement request input by the user, the event arrangement request can comprise the event name and the time event time, the node information of the node on the time axis is searched according to the event name, the node information can comprise the node name and the node time, if the node with the consistent node name and the event name is searched, the node is deleted, a new node is generated according to the event time, the node name of the new node is consistent with the event name, the node time of the new node is consistent with the event time, the new time axis is generated after other nodes on the time axis after the node is deleted are sequenced with the new node, the corresponding event is executed according to the node information of the node on the new time axis, the problems that the nodes need to be submitted to a server to store data after being edited in the prior art are solved, the nodes are re-sequenced again, and finally the modified time axis is returned to the corresponding display interface to display, the method has the advantages of solving the problems of complex operation and easy error, realizing the real-time display of the change of the time axis and improving the convenience of event arrangement operation.
Drawings
FIG. 1 is a flow chart of a scheduling method for events according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a scheduling method for events according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of an arrangement apparatus for events according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a scheduling method for events according to an embodiment of the present invention, where the embodiment is applicable to a case where event scheduling is embodied on a time axis in real time, and the method may be performed by a scheduling apparatus for events, which may be implemented in software and/or hardware, and which may be configured in a device, such as a computer. As shown in fig. 1, the method specifically includes the following steps:
s110, acquiring an event scheduling request input by a user, wherein the event scheduling request comprises an event name and an event time;
in a specific embodiment of the present invention, acquiring an event scheduling request input by a user may be understood as that the user triggers an operation of editing event scheduling, where the event scheduling request may include an event name and an event time, and the event scheduling request may be generated in a text entry manner or a voice entry manner in an input box that is set on a time input interface and pops up after clicking, and of course, a generation manner of the specific event scheduling request may be set according to an actual situation, which is not specifically limited herein. The event name may represent a name of the to-do-event, and correspondingly, the event time may be corresponding to the event name, that is, the time when the event represented by the event name occurs, that is, the time when the to-do-event occurs, and more specifically, the event represented by the event name may be an event that needs to be modified, newly created, or deleted. The specific expression form of the event name and the event time may be set according to the actual situation, and is not particularly limited herein.
For example, in a hospital appointment registration system, this event name may be expressed as "patient a has appointment with doctor a" and the event time may be expressed as "x year x month x day x hour x min"; in the course arrangement system of the school, this event name may be expressed as "classroom a arranges for xx lessons that teacher a teaches x specialties", and the event time may be expressed as "× year × month × day × hour × minute to × × ×," hour × minute "; in the entry examination system, this event name may be expressed as "examinee a selects examination room a for examination subject a", and the event time may be expressed as "x year x month x day x hour x minute to x hour x minute"; in the hotel booking system, this event name may be expressed as "consumer a booked x floor x room", and the event time may be expressed as "× year × × × × × × × month × × × × × × time × × × minute to × × × time ×); in the shared-bicycle reserved-use-car system, the event name may be expressed as "the bicycle numbered xxx that the user a reserved the xxx position", and the event time may be expressed as "divide by xxx to xxx.
S120, searching node information of the nodes on the time axis according to the event names, wherein the node information comprises the node names and the node time;
in a specific embodiment of the present invention, the node information of the node on the time axis is searched according to the event name to trigger a subsequent editing operation performed on the node, where the editing operation may be a modification, a new creation, or a deletion. The time axis may be formed by connecting a plurality of time nodes in series, each node has corresponding node information, where the node information may include a node name and a node time, the node name may represent a name of an event to occur or already occur on the node, and correspondingly, the node time may be corresponding to the node name, that is, a time when an event represented by the node name occurs, that is, a time when the event to occur or already occurs, and more specifically, the node represented by the node name may be a node that needs to be modified, newly created, or deleted. In addition, the specific representation form of the node name and the node time, that is, the specific representation form of the time axis, may be set according to the actual situation, and is not specifically limited herein.
Illustratively, also in the hospital's appointment registration system, this node name may be expressed as "patient a has appointment for doctor a" and the node time may be expressed as "x year x month x day x hour x minute"; in the course arrangement system of the school, this node name may be expressed as "classroom a arranges for xx lessons that teacher a teaches x specialties", and the node time may be expressed as "× year × month × day × hour × minute to × ×, ×" hour × minute "; in the entry examination system, this node name may be expressed as "examinee a selects examination room a for examination subject a", and the node time may be expressed as "xx by month x day x hour x minute to xx by hour x minute"; in a hotel booking system, this node name may be expressed as "consumer a booked x floor x room", and the node time may be expressed as "x year x month x day x hour x min to x hour x min"; in the shared-bicycle-reserved-use-car system, the node name may be expressed as "the bicycle numbered xxx that the user a reserved the xxx position", and the node time may be expressed as "time divided by" to "time divided by".
S130, if the node with the consistent node name and the event name is found, deleting the node, and generating a new node according to the event time, wherein the name of the new node is consistent with the event name, and the time of the new node is consistent with the event time;
in a specific embodiment of the present invention, a node with a node name consistent with an event name is searched, where the consistency is understood as that the similarity between the node name and the event name satisfies a preset threshold, more specifically, the similarity between the expression form of the node name and the event name and the content satisfies the preset threshold, or the similarity between keywords of the node name and the event name satisfies the preset threshold after the keywords of the node name and the event name are extracted, where the preset threshold may be greater than or equal to a certain value. It should be understood that the above-mentioned criterion and manner for determining whether the node name is consistent with the event name may be set according to actual situations, and is not limited specifically herein.
When the name of the node consistent with the name of the event is found according to the name of the event, that is, the corresponding node is found, the editing operation on the node is triggered, specifically, the operation of deleting the node is executed, that is, the current node needs to be deleted first no matter the node needs to be modified or deleted, and the node deletion can be understood as deleting all information contained in the node. And then, generating a new node according to the event time, and keeping the name of the new node consistent with the event name, and keeping the time of the new node consistent with the event time. Through the operation, the event arrangement request input by the user can be embodied as the editing operation performed on the node on the time axis, namely embodied as the editing operation performed on the time axis. In addition, it should be noted that the time axis may be presented on a set time display interface, and the operations of deleting a node and generating a new node may be directly embodied on the time display interface, that is, after a user inputs an event arrangement request on the set time input interface, the event arrangement request may be directly displayed on the time display interface through a subsequent search and determination operation, that is, the operations may implement real-time display of editing operations performed on the node, thereby greatly improving convenience of input. And the user does not need to submit the input event arrangement request to the server to execute the storage operation, reorder all the nodes and return to the time display interface to display the new node.
For example, the event name may be expressed as "patient a has reserved doctor a" and the event time is "11/30/2017 with 2/pm 15 min"; the node name is 'patient A has reserved doctor A', and the node time is '2017, 11, 30, morning, 10 am, 45 minutes'. Since there is a node whose node name coincides with the event name, an operation of deleting the node is performed, and a new node is generated according to the event time "15 minutes 2 pm on 11/30/11/2017", the name of the new node coincides with the event name, that is, "patient a has reserved doctor a", and the time of the new node coincides with the event time, that is, "15 minutes 2 pm on 30/11/2017".
And S140, sequencing other nodes on the time axis after the nodes are deleted and the new nodes to generate a new time axis, and executing corresponding events according to the node information of the nodes on the new time axis.
In the specific embodiment of the present invention, since the node information of each node includes the node time, the new time axis is generated by sequencing other nodes and the new node on the time axis after the node is deleted, which can be understood as that the new time axis is generated by sequencing other nodes and the new node on the time axis after the node is deleted according to the sequence of the node time of each node. In addition, since the node information of each node also includes the node name, the event represented by the node name can be understood to be executed according to the node time when the corresponding event is executed according to the node information of the node on the new time axis.
Illustratively, in the appointment registration system of a hospital, the number of nodes is 5, where the current new node is ranked as 3 in the above 5 nodes, and specifically, the node information of each node is as follows: the node name of the node 1 is 'doctor A reserved by patient D', and the node time is '15 minutes in 9 am of 11 and 30 months in 2017'; the node name of the node 2 is 'doctor B is reserved by patient C', and the node time is '45 minutes in 9 am of 11 and 30 months in 2017'; the node name of the node 3 is 'doctor a reserved by the patient a', the node time is '15 minutes in 2 pm in 11/30/2017', and it needs to be noted that the node 3 is just a generated new node; the node name of the node 4 is 'doctor A reserved by patient C', and the node time is '15 minutes in 11 am at 11 am on 11 months and 30 months in 2017'; the node name of the node 5 is "doctor B reserved by patient E", and the node time is "1 pm 30 minutes in 11/30/2017". The ordering of the nodes on the current time axis is node 1, node 2, node 3, node 4, and node 5. Therefore, the node time sequence of the 5 nodes can be reordered into the node 1, the node 2, the node 4, the node 5 and the node 3. The reordered nodes generate a new timeline. The event represented by the node name is performed according to the node time of each node on the new time axis, such as patient a finding doctor a to see the disease 15 minutes at 11/30/11/2017/2/pm.
Further, it should be noted that the scheduling method of events provided in the above S110 to S140 can be applied to various fields related to the operation of time nodes, and the scheduling system and the flight scheduling system are not limited thereto, except the aforementioned reservation registration system of hospital, course arrangement system of school, registration examination system, hotel room reservation system and shared single-vehicle reservation car system.
In the technical scheme of this embodiment, by obtaining an event scheduling request input by a user, where the event scheduling request may include an event name and a time event time, searching node information of a node on a time axis according to the event name, where the node information may include a node name and a node time, deleting the node if a node whose node name is consistent with the event name is found, generating a new node according to the event time, where the node name of the new node is consistent with the event name and the node time of the new node is consistent with the event time, sequencing other nodes on the time axis after deleting the node and the new node, generating a new time axis, and executing a corresponding event according to the node information of the node on the new time axis, the problem that in the prior art, after editing the node, the node needs to be submitted to a server to store data, then sequencing the node again, and finally returning to a corresponding display interface to display the modified time axis, the method has the advantages of solving the problems of complex operation and easy error, realizing the real-time display of the change of the time axis and improving the convenience of event arrangement operation.
Further, on the basis of the above technical solution, an event scheduling request input by a user is obtained, where the event scheduling request includes an event name and an event time, and the method may further include:
acquiring a time axis and establishing a bus object associated with the time axis, wherein the time axis comprises at least one node;
establishing a node monitoring object associated with each node;
in the embodiment of the invention, each time a time axis is acquired, a bus object associated with the time axis, such as EventBus and the like, is established, wherein the EventBus is a publish/subscribe event bus, and the main function is to transmit information between Fragment, Activity or Service threads instead of Intent, Handler or BroadCast, and to decouple the sender and the receiver. Meanwhile, each time a node is acquired, a node monitoring object associated with the node is established, and the node monitoring object is used for receiving notification information generated subsequently and executing searching operation. The time axis is formed by connecting at least one node in series, an event scheduling request recorded on a set time input interface and node information displayed on a set time display interface are stored in a node monitoring object, initially, the content included in the event scheduling request and the content included in the node information are consistent, namely the event time in the event scheduling request and the node time in the node information are consistent, and the event name and the node name are also consistent.
The method specifically includes the following steps that after an event scheduling request input by a user is obtained, the event scheduling request includes an event name and an event time, and the method further includes:
and generating notification information according to the event scheduling request and calling the bus object to send the notification information to the node monitoring object, wherein the notification information is used for indicating the node monitoring object to execute searching operation and comprises a node identifier corresponding to the event time.
In a specific embodiment of the present invention, the notification information is generated according to the event scheduling request, and when the notification information needs to be sent to the node monitoring object, the notification information can be implemented by calling a bus object, specifically, by calling a sending interface of the bus object. The notification information is used to instruct the node monitoring object to perform a subsequent lookup operation, where the notification information includes a node identifier corresponding to the event time, and the node identifier is used to uniquely identify the event scheduling request, and may be a number.
Further, on the basis of the above technical solution, the node includes a node identifier, the bus object includes a first array, and the first array includes a first object generated by associating the node monitoring object with the node identifier;
generating notification information according to the event scheduling request and calling the bus object to send the notification information to the node monitoring object, where the notification information is used to instruct the node monitoring object to perform a lookup operation, and after the notification information includes a node identifier corresponding to the event time, the method may further include:
the bus object determines a node monitor object from the first array based on the node identification such that the node monitor object receives the notification information.
In an embodiment of the present invention, the node may include a node identifier, where the node is each node on the time axis, that is, the node identifiers are used to uniquely identify the nodes corresponding to the node identifiers. The bus object may include a first array established, and further, the first array may include a first object generated by associating the node monitoring object with the node identifier, in other words, the first object is stored in the first array. Note that the node id corresponding to the event time included in the notification information described above and the node id described herein function the same, and the node id corresponding to the event time in the notification information belongs to the node id described herein. The bus object may determine a corresponding node monitor object from the first array based on the node identifier, so that the node monitor object receives the notification information.
Further, on the basis of the above technical solution, node information of a node on a time axis is searched according to an event name, where the node information includes the node name and the node time, and the searching specifically may include:
and when the node monitoring object receives the notification information, searching node information of the nodes on the time axis according to the event name, wherein the node information comprises the node name and the node time.
In a specific embodiment of the present invention, the notification information further includes an event time, i.e., an event time entered on the set time input interface. When the determined node monitoring object receives the notification information, the node monitoring object searches node information of the node on the time axis according to the event name, wherein the node information comprises the node name and the node time.
Through the operation, only when the node monitoring object receives the notification information, the subsequent searching operation is carried out, so that the occupied resources are less, and the performance is better.
Further, on the basis of the above technical solution, an event scheduling request input by a user is obtained, where the event scheduling request includes an event name and an event time, and the method specifically includes:
and acquiring an event scheduling request which is input by a user and meets a preset condition, wherein the event scheduling request comprises an event name and an event time.
In an embodiment of the present invention, the preset condition may be set in advance according to actual conditions, for example, a time period in which the event time in the event scheduling request is located is set, that is, only the event time in the event scheduling request is in the time period, and the event scheduling request meets the requirement. Accordingly, if the event scheduling request input by the user does not meet the preset condition, a prompt message may be sent to the user to prompt the user to re-input. The prompt information may be presented in the form of a pop-up prompt box, or in the form of different colors, and is set according to the actual situation, which is not limited specifically herein.
Through the operation, the reasonability of the event arrangement request input by the user is verified, the performance is further improved, and the user experience is improved.
Example two
Fig. 2 is a flowchart of a scheduling method for events according to an embodiment of the present invention, where the embodiment is applicable to a case where event scheduling is embodied on a time axis in real time, and the method may be performed by a scheduling apparatus for events, which may be implemented in software and/or hardware, and which may be configured in a device, such as a computer. As shown in fig. 2, the method specifically includes the following steps:
s210, acquiring a time axis and establishing a bus object associated with the time axis, wherein the time axis comprises at least one node;
s220, establishing a node monitoring object associated with each node;
s230, acquiring an event scheduling request input by a user, wherein the event scheduling request comprises an event name and an event time;
s240, judging whether the event scheduling request meets a preset condition; if yes, executing S250; if not, returning to execute S230;
s250, generating notification information according to the event scheduling request and calling the bus object to send the notification information to the node monitoring object, wherein the notification information is used for indicating the node monitoring object to execute searching operation and comprises a node identifier corresponding to the event time;
s260, the node comprises a node identifier, the bus object comprises a first array, and the first array comprises a first object generated by the association of the node monitoring object and the node identifier; the bus object determines a node monitoring object from the first array based on the node identification so that the node monitoring object receives notification information;
s270, when the node monitoring object receives the notification information, searching node information of the nodes on the time axis according to the event name, wherein the node information comprises the node name and the node time;
s280, if the node with the consistent node name and the event name is found, deleting the node, and generating a new node according to the event time, wherein the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time;
and S290, sequencing other nodes on the time axis after the nodes are deleted and the new nodes, generating a new time axis, and executing corresponding events according to the node information of the nodes on the new time axis.
In the technical scheme of this embodiment, by obtaining an event scheduling request input by a user, where the event scheduling request may include an event name and a time event time, searching node information of a node on a time axis according to the event name, where the node information may include a node name and a node time, deleting the node if a node whose node name is consistent with the event name is found, generating a new node according to the event time, where the node name of the new node is consistent with the event name and the node time of the new node is consistent with the event time, sequencing other nodes on the time axis after deleting the node and the new node, generating a new time axis, and executing a corresponding event according to the node information of the node on the new time axis, the problem that in the prior art, after editing the node, the node needs to be submitted to a server to store data, then sequencing the node again, and finally returning to a corresponding display interface to display the modified time axis, the method has the advantages of solving the problems of complex operation and easy error, realizing the real-time display of the change of the time axis and improving the convenience of event arrangement operation.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an event scheduling apparatus according to a third embodiment of the present invention, where this embodiment is applicable to a case where event scheduling is embodied on a time axis in real time, the apparatus may be implemented in software and/or hardware, and the apparatus may be configured in a device, such as a computer. As shown in fig. 3, the apparatus specifically includes:
an event scheduling request obtaining module 310, configured to obtain an event scheduling request input by a user, where the event scheduling request includes an event name and an event time;
a node information searching module 320, configured to search node information of a node on a time axis according to the event name, where the node information includes a node name and a node time;
a new node generation module 330, configured to delete a node if a node whose node name is consistent with the event name is found, and generate a new node according to the event time, where the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time;
and a new time axis generation module 340, configured to generate a new time axis after sequencing the new node and other nodes on the time axis after deleting the node, and execute a corresponding event according to the node information of the node on the new time axis.
In the technical solution of this embodiment, the event scheduling request obtaining module 310 obtains an event scheduling request input by a user, where the event scheduling request may include an event name and a time event time, the node information searching module 320 searches node information of nodes on a time axis according to the event name, and the node information may include a node name and a node time, the new node generating module 330 deletes a node if a node whose node name is consistent with the event name is found, and generates a new node according to the event time, where the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time, and the new time axis generating module 340 sorts other nodes on the time axis after the node is deleted with the new node, generates a new time axis, and executes corresponding events according to the node information of the nodes on the new time axis, so as to solve the problem that a server needs to store data after editing the nodes in the prior art, and then the nodes are sorted again, and finally the modified time axis is displayed on a corresponding display interface, so that the problems of complex operation and easy error are solved, the change of the time axis is displayed in real time, and the convenience of event arrangement operation is improved.
Further, on the basis of the above technical solution, the apparatus may further include:
the bus object establishing module is used for acquiring a time axis and establishing a bus object associated with the time axis, wherein the time axis comprises at least one node;
the node monitoring object establishing module is used for establishing a node monitoring object associated with each node;
after the event scheduling request obtaining module 310, the method may further include:
and the notification information sending module is used for generating notification information according to the event arrangement request and calling the bus object to send the notification information to the node monitoring object, the notification information is used for indicating the node monitoring object to execute searching operation, and the notification information comprises a node identifier corresponding to the event time.
Further, the node comprises a node identifier, the bus object comprises a first array, and the first array comprises a first object generated by associating the node monitoring object with the node identifier;
after the notification information sending module, the method may further include:
and the node monitoring object determining module is used for determining the node monitoring object from the first array by the bus object based on the node identification so that the node monitoring object receives the notification information.
Further, the node information searching module 320 may specifically include:
and when the node monitoring object receives the notification information, searching node information of the nodes on the time axis according to the event name, wherein the node information comprises the node name and the node time.
Further, the event scheduling request obtaining module 310 may specifically include:
and acquiring an event scheduling request which is input by a user and meets a preset condition, wherein the event scheduling request comprises an event name and an event time.
The event scheduling device provided by the embodiment of the invention can execute the event scheduling method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an arrangement apparatus for events according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary device 412 suitable for use in implementing embodiments of the present invention. The device 412 shown in fig. 4 is only an example and should not impose any limitation on the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, device 412 is in the form of a general purpose computing device. The components of device 412 may include, but are not limited to: one or more processors 416, a system memory 428, and a bus 418 that couples the various system components including the system memory 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, 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.
Device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. Program modules 442 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown, network adapter 420 communicates with the other modules of device 412 over bus 418. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by executing programs stored in the system memory 428, for example, implementing a scheduling method for events provided by an embodiment of the present invention, including:
acquiring an event scheduling request input by a user, wherein the event scheduling request comprises an event name and an event time;
searching node information of nodes on a time axis according to the event name, wherein the node information comprises the node name and node time;
if the node with the consistent node name and the event name is found, deleting the node, and generating a new node according to the event time, wherein the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time;
and sequencing other nodes on the time axis after the nodes are deleted and the new nodes to generate a new time axis, and executing corresponding events according to the node information of the nodes on the new time axis.
EXAMPLE five
An 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 a scheduling method for events provided by an embodiment of the present invention, where the method includes:
acquiring an event scheduling request input by a user, wherein the event scheduling request comprises an event name and an event time;
searching node information of nodes on a time axis according to the event name, wherein the node information comprises the node name and node time;
if the node with the consistent node name and the event name is found, deleting the node, and generating a new node according to the event time, wherein the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time;
and sequencing other nodes on the time axis after the nodes are deleted and the new nodes to generate a new time axis, and executing corresponding events according to the node information of the nodes on the new time axis.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 the context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A scheduling method for events, comprising:
establishing a node monitoring object associated with each node;
acquiring a time axis and establishing a bus object associated with the time axis, wherein the time axis comprises at least one node;
acquiring an event scheduling request input by a user, wherein the event scheduling request comprises an event name and an event time; the event time is the time when the event represented by the event name occurs;
generating notification information according to the event scheduling request and calling the bus object to send the notification information to the node monitoring object, wherein the notification information is used for indicating the node monitoring object to execute a search operation, and the notification information comprises a node identifier corresponding to the event time;
searching node information of nodes on a time axis according to the event name, wherein the node information comprises the node name and node time;
the searching for the node information of the node on the time axis according to the event name, wherein the node information comprises the node name and the node time, and comprises the following steps:
when the node monitoring object receives the notification information, searching node information of the nodes on the time axis according to the event name, wherein the node information comprises the node name and the node time;
if the node with the node name consistent with the event name is found, deleting the node, and generating a new node according to the event time, wherein the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time;
and sequencing other nodes on the time axis after the nodes are deleted and the new nodes to generate a new time axis, and executing corresponding events according to the node information of the nodes on the new time axis.
2. The method of claim 1, wherein the node comprises a node identifier, wherein the bus object comprises a first array comprising a first object generated by associating the node monitor object with the node identifier;
generating notification information according to the event scheduling request and calling the bus object to send the notification information to the node monitoring object, where the notification information is used to instruct the node monitoring object to perform a lookup operation, and after the notification information includes a node identifier corresponding to the event time, the method further includes:
the bus object determines the node monitoring object from the first array based on the node identification to cause the node monitoring object to receive the notification information.
3. The method according to claim 1 or 2, wherein the obtaining of the user-entered event scheduling request, the event scheduling request including an event name and an event time, comprises:
the method comprises the steps of obtaining an event scheduling request which is input by a user and meets preset conditions, wherein the event scheduling request comprises an event name and an event time.
4. A scheduling apparatus for events, comprising:
the node monitoring object establishing module is used for establishing a node monitoring object associated with each node;
the bus object establishing module is used for acquiring a time axis and establishing a bus object associated with the time axis, wherein the time axis comprises at least one node;
the event scheduling request acquisition module is used for acquiring an event scheduling request input by a user, and the event scheduling request comprises an event name and an event time; the event time is the time when the event represented by the event name occurs;
a notification information sending module, configured to generate notification information according to the event scheduling request and call the bus object to send the notification information to the node monitoring object, where the notification information is used to instruct the node monitoring object to perform a lookup operation, and the notification information includes a node identifier corresponding to the event time;
the node information searching module is used for searching node information of nodes on a time axis according to the event names, wherein the node information comprises the node names and the node time;
the node information searching module may specifically include:
when the node monitoring object receives the notification information, searching node information of the nodes on the time axis according to the event name, wherein the node information comprises the node name and the node time;
a new node generation module, configured to delete a node if a node whose node name is consistent with the event name is found, and generate a new node according to the event time, where the node name of the new node is consistent with the event name, and the node time of the new node is consistent with the event time;
and the new time axis generation module is used for generating a new time axis after sequencing other nodes on the time axis after the nodes are deleted and the new nodes, and executing corresponding events according to the node information of the nodes on the new time axis.
5. The apparatus of claim 4, wherein the node comprises a node identifier, wherein the bus object comprises a first array comprising a first object generated by associating the node monitor object with the node identifier;
after the notification information sending module, the method further comprises:
a node monitoring object determining module, configured to determine, by the bus object, the node monitoring object from the first array based on the node identifier, so that the node monitoring object receives the notification information.
6. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the scheduling method for events of any of claims 1-3.
7. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the scheduling method for events according to any one of claims 1 to 3.
CN201711432197.6A 2017-12-26 2017-12-26 Event scheduling method, device, equipment and storage medium Active CN108154345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711432197.6A CN108154345B (en) 2017-12-26 2017-12-26 Event scheduling method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711432197.6A CN108154345B (en) 2017-12-26 2017-12-26 Event scheduling method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108154345A CN108154345A (en) 2018-06-12
CN108154345B true CN108154345B (en) 2022-08-09

Family

ID=62462987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711432197.6A Active CN108154345B (en) 2017-12-26 2017-12-26 Event scheduling method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108154345B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108665744A (en) * 2018-07-13 2018-10-16 王洪冬 A kind of intelligentized English assistant learning system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103562846B (en) * 2011-06-01 2017-07-14 皇家飞利浦有限公司 Timeline show tools
CN103259701A (en) * 2012-12-04 2013-08-21 中国科学院沈阳自动化研究所 Message bus implementation method for complex production process management system
CN103578065A (en) * 2013-11-25 2014-02-12 方正国际软件有限公司 Time axis display system and method for diagnosis and treatment activities
CN105427217A (en) * 2014-12-17 2016-03-23 伊斯雷尔·巴肯 Interactive image electronic medical treatment research and management system
CN105243534A (en) * 2015-09-23 2016-01-13 北京嘉和美康信息技术有限公司 Reservation time setting method, reservation time control and reservation platform
CN107357713B (en) * 2017-07-20 2020-11-20 苏州浪潮智能科技有限公司 Event management display method and system

Also Published As

Publication number Publication date
CN108154345A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
US11416676B2 (en) Using text messages to interact with spreadsheets
US20190230056A1 (en) Incorporating selectable application links into message exchange threads
CN109889424B (en) Information processing method, device and storage medium
WO2011051547A1 (en) Method and apparatus for presenting polymorphic notes in a graphical user interface
CN111190882B (en) Target template creation method and device, electronic equipment and storage medium
US20150052201A1 (en) Updating time-related information in post to make it more relevant for the requester on subsequent retrieval of post
US9148392B1 (en) Systems and methods for aggregating event information
CN110555072A (en) Data access method, device, equipment and medium
CN111143422B (en) Data retrieval method, data retrieval device, storage medium and electronic equipment
CN111338797A (en) Task processing method and device, electronic equipment and computer readable storage medium
CN114049927A (en) Disease data processing method and device, electronic equipment and readable medium
CN113574555A (en) Intelligent summarization based on context analysis of auto-learning and user input
CN114330272A (en) Medical record template generation method and device, electronic equipment and storage medium
CN108154345B (en) Event scheduling method, device, equipment and storage medium
US20100174760A1 (en) Tracking Multi-Session Meeting Statuses
US8429182B2 (en) Populating a task directed community in a complex heterogeneous environment based on non-linear attributes of a paradigmatic cohort member
US9443211B2 (en) Describing a paradigmatic member of a task directed community in a complex heterogeneous environment based on non-linear attributes
CN112148847B (en) Voice information processing method and device
CN114253922A (en) Resource directory management method, resource management method, device, equipment and medium
CN113722007A (en) Configuration method, device and system of VPN branch equipment
US9563879B2 (en) Providing accurate recipient lists by correlating tagged keywords to recipient lists
US10289665B2 (en) Creating and consuming multi-dimensional representations
CN116011410B (en) Method, device, network disk and storage medium for realizing document call content
CN109977036B (en) Method and device for caching process template, storage medium and electronic equipment
CN112445790B (en) Report data storage method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant