The present application is related to and claims the benefit under 35 U.S.C. §119(a) to a Korean patent application filed in the Korean Intellectual Property Office on Sep. 30, 2008 and assigned Serial No. 10-2008-0095864, the entire disclosure of which is hereby incorporated by reference.
The present invention relates generally to a portable terminal. More particularly, the present invention relates to an apparatus and a method for controlling an alarm operation of the portable terminal.
In the modern society, the use of portable terminals is greatly increasing thanks to their convenience and necessity. Now, the portable terminal has become a necessity. To further elevate the utilization of the portable terminal, service providers and terminal manufacturers offer a great number of additional functions. For example, the portable terminal includes phone book, game, scheduler, short message service, multimedia message service, cell broadcasting service, Internet service, e-mail, morning call, alarm, MP3 play, and digital camera functions.
Among the functions of the portable terminals, a morning call and alarm functions were used as an alarm clock. Recently, as almost everybody possesses his/her own portable terminal, the morning call and alarm functions of the portable terminal are more frequently used than the alarm function of the alarm clock. When using the general morning call and alarm functions of the portable terminal, a user sets his/her intended alarm time and an intended period of the alarm. Typically, the period is selected to one of the options provided by the portable terminal and can be set to one time, every day, or a specific day.
In order to not ring the alarm at a specific day within the set period, the user needs to change the alarm setting personally. For example, when the alarm is set to ring from Monday to Friday and a particular Monday is a day off or a vacation, the user may not want the alarm on the particular Monday. In this case, the user needs to change the alarm setting personally. Additionally, to ring the alarm again on the next Monday, the user has to modify the setting after the particular Monday. In other words, the portable terminal cannot perform the exception handling with respect to the alarm operation. Therefore, what is needed is a method for addressing the inconvenience of the user in the alarm function.
To address the above-discussed deficiencies of the prior art, it is a primary aspect of the present invention to provide an apparatus and a method for exception handling in an alarm operation of a portable terminal.
Another aspect of the present invention is to provide an apparatus and a method for controlling an alarm according to a defined rule in a portable terminal.
Yet another aspect of the present invention is to provide an apparatus and a method for determining a rule to control an alarm in a portable terminal.
According to one aspect of the present invention, a method for controlling an alarm in a portable terminal includes determining whether an input fact to analyze an exceptional situation of an alarm operation is generated; analyzing the exceptional situation by rule using at least one fact; and when there is an alarm which is placed in the exceptional situation, cancelling the alarm.
According to another aspect of the present invention, an apparatus for a portable terminal includes a rule engine that, when an input fact is generated to analyze an exceptional situation of an alarm operation, analyzes the exceptional situation by rule using at least one fact; and an alarm manager for, when there is an alarm which is placed in the exceptional situation, cancelling the alarm.
Other aspects, advantages, and salient features of the invention will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses exemplary embodiments of the invention.
Before undertaking the DETAILED DESCRIPTION OF THE INVENTION below, it may be advantageous to set forth definitions of certain words and phrases used throughout this patent document: the terms “include” and “comprise,” as well as derivatives thereof, mean inclusion without limitation; the term “or,” is inclusive, meaning and/or; the phrases “associated with” and “associated therewith,” as well as derivatives thereof, may mean to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have, have a property of, or the like; and the term “controller” means any device, system or part thereof that controls at least one operation, such a device may be implemented in hardware, firmware or software, or some combination of at least two of the same. It should be noted that the functionality associated with any particular controller may be centralized or distributed, whether locally or remotely. Definitions for certain words and phrases are provided throughout this patent document, those of ordinary skill in the art should understand that in many, if not most instances, such definitions apply to prior, as well as future uses of such defined words and phrases.
For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which like reference numerals represent like parts:
Throughout the drawings, like reference numerals will be understood to refer to like parts, components and structures.
Exemplary embodiments of the present invention provide a technique for exception handling in an alarm operation of a portable terminal. Hereinafter, the portable terminals cover cellular phones, Personal Communication Systems (PCSs), Personal Digital Assistants (PDAs), and International Mobile Telecommunication (IMT) 2000 terminals.
Prior to the exception handling of the alarm operation, the portable terminal needs to analyze the exceptional situation. To analyze the exceptional situation, the portable terminal can use schedule information or calendar information of a user. That is, the portable terminal analyzes the exceptional situation using the schedule information or the calendar information of the user input through a scheduler function of the portable terminal.
A rule engine of the portable terminal analyzes the exceptional situation. The rule engine can use facts constituting the schedule information, the calendar information, and alarm information as its input parameters and analyzes the exception according to a predefined rule. For example, when the schedule information, such as, for example, a vacation, travel, and conference, has been stored, date, time, title, and place are used as the facts. As for the calendar information, the date of a regular holiday can be used as the fact. Namely, the rule engine extracts the facts from the schedule information, the calendar information, and the alarm information and analyzes the exceptional situation of the currently registered alarm according to the predefined rule.
The rule for the exception analysis can vary in form. In this exemplary embodiment of the present invention, the rule can be a set of simple conditions. For example, the conditions can include ‘If it is a regular holiday, the alarm does not ring.’ and ‘If on the trip, the alarm does not ring.’ Alternatively, the rule can be implemented using a rete algorithm. The rete algorithm allows the fast analysis because it stores the rules in the rete network and evaluates only the changed facts. When the facts are input to the lowest nodes of the rete network, intermediate nodes evaluate the facts by rule and highest nodes determine whether to control the alarm by aggregating the analysis results.
For example, it is assumed that the rule of Table 1 is applied.
The rule of Table 1 is written in an Extensible Markup Language (XML) in advance and registered to the rule engine. Next, the facts input to the rule engine are stored to the lowest node, passed through the evaluation through the rule matching by degrees, and are activated at the highest node. When the activation result is true, the rule engine forwards the result to an alarm manger which controls the alarm. The rule of Table 1 can be expressed in the XML as shown in Table 2.
The rule of Table 1 and Table 2 is expressed as the rete network in
The structure of the rete network in
The aforementioned exceptional situation is analyzed when the facts required for the analysis are generated. More specifically, when a new alarm is registered or when a new schedule is input, the analysis is conducted on the exceptional situation. The portable terminal can query the user whether to control the alarm in the analyzed exceptional situation. For example, the portable terminal displays a screen requesting the user's selection using a pop-up window. The user's selection request, using the pop-up window, can additionally display at least one of the schedule information and the alarm information. When the user selects the alarm control, the portable terminal cancels the alarm corresponding to the exceptional situation.
The rule applied to the exceptional situation analysis can be added, deleted, and updated through the input of the portable terminal from the outside. For example, when the rule of Table 2 is written using the XML, the portable terminal can receive and add the rule written in the XML from the outside. Additionally, the user can create his/her intended rule at will and build its optimized alarm control rule by inputting the created rule to the portable terminal.
Now, the structure and the operations of the portable terminal for controlling the alarm as stated above are described in detail by referring to the drawings.
The portable terminal of
The display unit 202 displays visual information. More particularly, under the control of the controller 212, the display unit 202 can display status, numbers, characters, images and videos of the portable terminal in the visual forms viewable to the user. For example, the display unit 202 can be implemented using one of a Cathode-Ray Tube (CRT), a Liquid Crystal Display (LCD), and an Organic Light-Emitting Diode (OLED). The input unit 204 includes a means for recognizing the user's input. The input unit 204 can provide information, generated according to the user's input, to the controller 212. For example, the input unit 204 includes at least one input means of a keypad, a touch pad, and a microphone.
The schedule storage 206 can store the schedule information input through the scheduler function. When the schedule is added or updated, the schedule storage 206 can provide the added or updated schedule information to the rule engine 208. For example, when the schedule titled “a day off in a specific period” is added through the scheduler function, the schedule storage 206 informs the rule engine 208 of the start time and the end time of the period and the title.
The rule engine 208 can analyze the exceptional situation with respect to the alarm according to the predefined rule using the fed input facts. The rule engine 208 analyzes the exceptional situation when a new fact is generated, and provides the analysis result to the controller 212. For example, the rule engine 208 analyzes the exceptional situation according to the rule built with the set of the simple conditions, or according to the rule configured as the rete network as illustrated in
The alarm manager 210 can store the alarm schedule input through the alarm setting function. When the alarm time arrives, the alarm manager 210 informs the controller 212 of the arrival of the alarm time. Under the control of the controller 212, the alarm manager 210 cancels the registered alarm. More specifically, when a new alarm is registered, the alarm manager 210 provides the alarm time of the new alarm to the rule engine 208. For example, when the alarm is set to ring at a specific time on a specific day, the alarm manager 210 informs the rule engine 208 of the specific day and the specific time.
The controller 212 can control the functions of the portable terminal. For example, the controller 212 can provide the screen data to be displayed on the display unit 202 to the display unit 202, and can control the operation corresponding to the input data fed from the input unit 204. The controller 212 provides the schedule information input through the scheduler function to the schedule storage 206, and provides the alarm information input through the alarm function to the alarm manager 210.
More specifically, the controller 212 can provide the new rule input from the outside to the rule engine 208. When the exceptional situation is informed from the rule engine 208, the controller 212 executes the function of inquiring about whether to control the alarm corresponding to the exceptional situation. For example, the controller 212 displays the pop-up window, which requests the user to make a selection, through the display unit 202. In so doing, through the pop-up window, the controller 212 can display not only the user's selection request but also at least a portion of the schedule information and the alarm information. Upon confirming the user's selection on the alarm control via the input unit 204, the controller 212 controls the alarm manager 210 to cancel the alarm corresponding to the exceptional situation.
In step 301, the portable terminal determines whether the input fact for the exceptional situation analysis is generated or not. For example, the input fact is generated by the newly registered alarm or the newly input schedule. Namely, the portable terminal determines whether the alarm is newly registered or the schedule is newly input.
When the input fact generates, the portable terminal analyzes the exceptional situation according to the defined rule using the input fact in step 303. For example, the portable terminal analyzes the exceptional situation according to the rule built with the set of the simple conditions, or according to the rule configured as the rete network as illustrated in
In step 305, the portable terminal checks for the alarm corresponding to the exceptional situation. That is, the portable terminal determines whether there is a case where the exceptional situation analysis result is true. When there is no alarm corresponding to the exceptional situation, the portable terminal finishes this process.
When detecting the alarm corresponding to the exceptional situation, the portable terminal queries the user whether to control the alarm in step 307. For example, the portable terminal displays the pop-up window requesting the user's selection. The pop-up window can display not only the user's selection request but also at least one of the schedule information and the alarm information in addition.
In step 309, the portable terminal checks for the user's selection. More specifically, the portable terminal checks whether or not the user chooses to control the alarm. When the user chooses not to control the alarm, the portable terminal finishes this process.
Alternatively, when the user chooses to control the alarm, the portable terminal cancels the alarm corresponding to the exceptional situation in step 311. That is, the portable terminal cancels the alarm corresponding to the exceptional situation not to ring at the set time.
In
As the portable terminal controls the registered alarm according to the rule by reflecting the user's intention, the user does not have to reset the alarm in person for the exception handling of the alarm.
While the invention has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2008-0095864 | Sep 2008 | KR | national |