CN109976835A - A kind of method and system managing Obj State - Google Patents

A kind of method and system managing Obj State Download PDF

Info

Publication number
CN109976835A
CN109976835A CN201711443584.XA CN201711443584A CN109976835A CN 109976835 A CN109976835 A CN 109976835A CN 201711443584 A CN201711443584 A CN 201711443584A CN 109976835 A CN109976835 A CN 109976835A
Authority
CN
China
Prior art keywords
state
relationship
source
relationship object
conversion
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.)
Pending
Application number
CN201711443584.XA
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201711443584.XA priority Critical patent/CN109976835A/en
Publication of CN109976835A publication Critical patent/CN109976835A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4498Finite state machines

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of method and systems for managing Obj State, are related to field of computer technology.In the case that one specific embodiment of this method comprises determining that the state of source object is converted, the relationship object that the source object influences is determined according to preset object relationship set;State after determining the source object and source object conversion meets preset influence condition, then obtains the state of the relationship object;Judge whether to convert the state of the relationship object according to the state transition rules of the state of the relationship object and the preset relationship object.The embodiment can be realized state of the object-based correlation across Object Management group object, and provide rigorous, the perfect state based on object relationship and automatically process mechanism, so that the condition managing under complex object relationship scene orderly carries out and is able to achieve automation.

Description

A kind of method and system managing Obj State
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and systems for managing Obj State.
Background technique
In actual application, object is frequently not isolated existing, between general object objective reality it is various each The relationship of sample, and the correlation between object will lead to the correlation of state between object.Such as cargo and order this The state of two different objects: in practical applications, the execution state of order is that have close phase with the storage and transportation state of cargo Guan Xing, because in order including detailed list of goods.When the cargo in inventory starts to be moved to picking area from warehouse shelf, cargo State is become " picking " from " storage ", and the state of order becomes " in picking ";When all cargos in the detailed list of goods of order After picking, the state of order becomes " picking completion ready for delivery ".For another example: the execution shape of the associated logistics transportation list of order State may also will affect the state of order.
The management to Obj State is realized by assembled scheme that finite state machine binding events drive in the prior art, But the relationship that influences each other of the state between different objects cannot be considered by this way.And for the correlation of above-mentioned object Property, it can only change by the relationship between artificial monitored object, and by sending external event order to finite state machine The state of relationship object.For example, when the state of an object changes, after the relationship object for manually monitoring the object, and Judge whether to convert the state of the relationship object, change the state of the relationship object if necessary, this is to the relationship pair The finite state machine of elephant sends state transition command.
During stating invention in realization, at least there are the following problems in the prior art for inventor's discovery: in face of multiple When miscellaneous object relationship and its condition managing scene, without rigorous, the complete auto state treatment mechanism based on object relationship, So that system mode managerial confusion is unordered;In addition, the randomness of artificial state's control is easy to cause state between object different It causes, influences the correctness and reliability of system.
Summary of the invention
In view of this, the embodiment of the present invention provide it is a kind of manage Obj State method and system, can be realized based on pair State of the correlation of elephant across Object Management group object, and provide rigorous, the perfect state based on object relationship and locate automatically Reason mechanism, so that the condition managing under complex object relationship scene orderly carries out and is able to achieve automation.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side for managing Obj State is provided Method.
The method of the management Obj State of the embodiment of the present invention comprises determining that the case where state of source object is converted Under, the relationship object that the source object influences is determined according to preset object relationship set;If the source object and described State after source object conversion meets preset influence condition, then obtains the state of the relationship object;According to the relationship pair The state transition rules of the state of elephant and the preset relationship object judge whether to convert the state of the relationship object.
Optionally, judged according to the state transition rules of the state of the relationship object and the preset relationship object The step of whether converting the state of the relationship object includes: to judge whether the state of the relationship object meets the source object State transition rules;If it is satisfied, then converting the state of the relationship object;Otherwise, the shape of the relationship object is not converted State.
Optionally, after the state for converting the relationship object, further includes: save the relationship object state conversion Record;And the state after the output relationship object conversion.
Optionally, determine that the state of source object is converted by finite state machine, and, by finite state machine according to The state transition rules of the state of the relationship object and the preset relationship object judge whether to convert the relationship pair The state of elephant.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of management Obj State System.
The system of the management Obj State of the embodiment of the present invention includes: relationship object determining module, for determining source object State converted in the case where, then relationship pair that the source object influences is determined according to preset object relationship set As;Relationship object state selection module, if met for the state after the source object and source object conversion preset Influence condition then obtains the state of the relationship object;State conversion module, for according to the state of the relationship object and The state transition rules of the preset relationship object judge whether to convert the state of the relationship object.
Optionally, the state conversion module is also used to, and judges whether the state of the relationship object meets the source pair The state transition rules of elephant;If it is satisfied, then converting the state of the relationship object;Otherwise, the relationship object is not converted State.
Optionally, the state conversion module is also used to, and saves the record of the relationship object state conversion;And output State after the relationship object conversion.
Optionally, the state conversion module is finite state machine.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of management Obj State Electronic equipment.
The electronic equipment of the management Obj State of the embodiment of the present invention includes: one or more processors;Storage device is used In storing one or more programs, when one or more of programs are executed by one or more of processors, so that described The method that one or more processors realize the management Obj State of any of the above-described.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of computer-readable medium, It is stored thereon with computer program, which is characterized in that the management pair of any of the above-described is realized when described program is executed by processor As the method for state.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because determines that the state of source object carries out In the case where conversion, the relationship object that the source object influences is considered.If there are relationship objects for the source object, according to the source pair The state conversion of elephant determines whether to influence the state conversion of relationship object.A kind of object-based correlation is provided to realize The mechanism of state interdependence effects across object, so that the condition managing under complex object relationship scene is orderly carried out and is able to achieve Automation.Moreover, can be avoided the inconsistency of state between object caused by the randomness of manual control Obj State, thus The correctness and reliability of raising system, efficiently solving existing finite state machine can not correlation between adaption object The problem of brought state change across object.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the method for management Obj State according to an embodiment of the present invention;
Fig. 2 is the schematic diagram for the system that the method for management Obj State according to an embodiment of the present invention is realized;
Fig. 3 is the schematic diagram of state managing unit according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of Obj State network of personal connections administrative unit according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of the main modular of the system of management Obj State according to an embodiment of the present invention;
Fig. 6 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 7 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the schematic diagram of the main flow of the method for management Obj State according to an embodiment of the present invention, such as Fig. 1 institute Show, the method for the management Obj State of the embodiment of the present invention specifically includes that
Step S101: it in the case where determining that the state of source object is converted, is determined according to preset object relationship set The relationship object that source object influences out.Wherein, object is abstract object, attribute letter needed for being accommodated according to actual use scene Breath, for example, some things (such as cargo in warehouse) or a job task (such as order execution).Implement in the present invention In example, the state of source object is managed by finite state machine, the triggering which converts according to Obj State judges source Whether the state of object meets the state transition rules of the source object.If met, to determine that the state of source object is turned The case where changing.The object relationship set description relationship of object between any two, that is, state out the correlation between object, therefore root The more than one relationship object that source object is influenced can be determined according to the object relationship set.
Step S102: if the state after source object and source object conversion meets preset influence condition, relationship is obtained The state of object.Based on each relationship object, whether the state after judging source object and source object conversion meets preset shadow The condition of sound, that is, after the state conversion for judging source object, if the state conversion of relationship object can be triggered.If source object and source State after object conversion does not meet preset influence condition, then illustrates that the state conversion of source object cannot trigger relationship object State conversion, at this point, the state of the relationship object is without conversion.If the state after object and source object conversion meets default Influence condition, then need to continue to convert the state of the relationship object, but the conversion of the state of the relationship object need Get the state of the relationship object.
Step S103: judge whether to turn according to the state transition rules of the state of relationship object and preset relationship object Change the state of relationship object.After by the above process, the state of the relationship object is got, judges that the state of relationship object is The no state transition rules for meeting source object;If it is satisfied, then the state of transformational relation object;Otherwise, not transformational relation object State.Also, after the state of transformational relation object, the record of preservation relation Obj State conversion;And output relation State after object conversion, convenient for the inquiry and management in later period.
Finite state machine FSM (Finite State Machine) be indicate limited state and between these states into The mathematical model of the possible path of row transfer.It is made of limited state and mutual transfer, at any time can only One in state in given number.When receiving an external input, state machine is based on transfer path and generates one Output, i.e., from source, state is converted into new state.Finite State Machine has in fields such as communication, computer, automation controls It is widely applied.In above process, determine that the state of source object is converted by finite state machine, and, by limited State machine judges whether to convert according to the state of the relationship object and the state transition rules of the preset relationship object The state of the relationship object.Finite state machine includes several elements: the management of state, the triggering of state, the conversion of state, shape The output of state.The existing state machine based on object building, complete condition managing and control closed loop generally be directed to object, And this closed loop is relatively independent, cannot embody the influence relationship between object.
Fig. 2 is the schematic diagram for the system that the method for management Obj State according to an embodiment of the present invention is realized.Such as Fig. 2 institute Show, the system that the method for the management Obj State of the embodiment of the present invention is realized includes finite state machine and Obj State network of personal connections. Wherein, finite state machine is based on state managing unit 201, trigger unit 202, converting unit 203 and output unit 204, monitoring The conversion and monitoring of the realization Obj State of unit 205.Obj State network of personal connections include Obj State network of personal connections administrative unit 207, Selecting unit 208 and acquisition are for 209.
Fig. 3 is the schematic diagram of state managing unit according to an embodiment of the present invention, as shown in figure 3, state managing unit 201 Including state set, state transition graph and state transition rules.It include all possible state of each object in state set, Such as the state 1, state 2, state 3 ... state n for including in the state set in Fig. 3.It is each right to be managed by state set The state of elephant defines and modifies, deletes the state of object.State transition graph refers to the variation from source state to dbjective state Relationship description two-by-two, relationship will form a graph structure two-by-two for these.It is all including each object in the state transition graph Possible state change path, such as L1, L2, L3 and L4 in Fig. 3.Also, it can be by state transition graph to these state changes It modifies and deletes in path.The triggering reason needed for converting from source state to dbjective state is depicted in state transition rules, should Triggering reason, which refers to, meets state transition rules.For example, after some state triggering reason input finite state machine, it can be according to state Change path L1 and realize that state 1 arrives the conversion of state 2, in this process, state 1 is source state, and state 2 is dbjective state.
Fig. 4 is the schematic diagram of Obj State network of personal connections administrative unit according to an embodiment of the present invention, as shown in figure 4, object State relation net administrative unit 207 includes that object set, object relationship figure and state influence relationship.It include institute in the object set Have using the present embodiment system carry out condition managing object, object 1 as shown in Figure 4, object 2, object 3 ... object 4, And it the management such as can be added, delete to object by object set.Object relationship figure is depicted right in object relationship set As relationship between any two, the relationship that object 1 as shown in Figure 4 influences object 2 is expressed as R1, and object 1 influences the pass of object 3 System is expressed as R2, and the relationship that object 2 influences object 3 is expressed as R3, and the relationship that object 2 influences object n is expressed as R4.It is right by this As relational graph can create the relationship between object, and these relationships are modified and deleted.State influences relationship description and goes out source The influence relationship of the state of the state and relationship object (target object) of object, and description are realized and are met needed for the influence relationship Influence condition (rule condition).As shown in Figure 4, object 1 and state 1 meet the influence condition of setting, and can be according to right The relationship R1 for influencing object 2 as 1 realizes that the state of object 2 is converted to object 2.
Obj State conversion startup program 206, which is used to initialize Obj State or receives external input, carries out triggering state turn It changes.Obj State converts startup program 206 after receiving the triggering reason of input, calls the trigger unit of finite state machine 202 carry out the judgement of state turnaround dynamics, that is, judge whether the state of object meets the state of the object of state managing unit storage Transformation rule, such as: the condition that meets of inventory's outbound state triggering is that kinds of goods storage has to be larger than equal to demand.Wherein, should State transition rules are to be configured according to the practical business of user's usage scenario, and safeguarded by state managing unit.Touching Bill member 202 can convert the calling of startup program by Obj State and determine come triggering state reason, can also be by external object State machine relationship object is found based on object influences relationship affect in state change after, call having for the relationship object automatically The trigger unit of state machine is limited to trigger the state conversion of relationship object.Also, trigger unit 202 is defeated to monitoring unit 206 The detailed record log of current state triggering out, so that monitoring unit 206 stores the more detailed logging, convenient for the operation Inquiry.The incoming triggering reason of 202 determine object state of trigger unit conversion startup program 206 meets state transition rules, Then call converting unit 203.State transduction pathway in 203 matching status transition diagram of converting unit turns the source state of object It is changed to dbjective state, then output unit 204 is called to export the dbjective state after conversion.Also, converting unit 203 will be to prison The detailed record log that unit 206 exports current state conversion is controlled, so that monitoring unit 206 stores the more detailed logging, Convenient for the inquiry to the operation.Output unit 204 is used to export the dbjective state of object, and calls in Obj State network of personal connections Selecting unit 208 inquires the object that the object of the dbjective state is influenced.The object of the dbjective state is source object, is influenced Object is relationship object, and there may be one or more relationship objects for a source object.
Selecting unit 208 in Obj State network of personal connections is according to the matching of source object and relationship object in object relationship figure Relationship finds out relationship object.Based on the relationship object inquired, acquiring unit 209 is called to obtain the state of relationship object, but Be acquiring unit 209 obtain relationship object state when, need to judge source object and the source object conversion after state whether It is satisfied with preset influence condition.The influence condition is stored in Obj State network of personal connections administrative unit 207, and the influence item Part is configured according to the practical business of user's usage scenario.If acquiring unit 209 judges that source object and the source object turn State after changing is not content with preset influence condition, then is judged to not passing through, and then do not allow spread state to influence.If sentenced Pass through calmly, then obtains the state of the relationship object, and the relationship object and the relationship object returned based on selecting unit 208 State calls the trigger unit of the finite state machine of the relationship object, and then triggers the state conversion process of relationship object.
Technical solution according to an embodiment of the present invention can realize different Obj States based on the incidence relation between object Conversion, solve the problems, such as between different objects that state change is associated with unusual fluctuation;For object-oriented in practical application scene Complex state manage and control problem reliable, consistent, general solution be provided;And object relationship network is based on for building State change automatic spread network across object ability support, the final state consistency for solving various objects in network are provided Problem.The finite state machine for solving object-oriented can not the state across object brought by the correlation between adaption object The problem that influences each other of variation.The technical solution of this embodiment of the present invention provide it is rigorous, perfect based on object relationship from Dynamic state processing mechanism avoids artificial so that the condition managing under complex object relationship scene is orderly and is able to achieve automation The inconsistency of state between object caused by the randomness of state control, to improve the correctness and reliability of system.
Fig. 5 is the schematic diagram of the main modular of the system of management Obj State according to an embodiment of the present invention, such as Fig. 5 institute Show, the system 500 of the management Obj State of the embodiment of the present invention includes relationship object determining module 501, the choosing of relationship object state Select module 502 and state conversion module 503.
Relationship object determining module 501 is used for, in the case where determining that the state of source object is converted, then according to preset Object relationship set determines the relationship object that source object influences.
Relationship object state selection module 502 is used for, if source object and source object conversion after state meet it is preset Influence condition then obtains the state of relationship object.
State conversion module 503 is used for, according to the state of relationship object and the state of preset relationship object conversion rule Then judge whether the state of transformational relation object.State conversion module is finite state machine.State conversion module is also used to, judgement Whether the state of relationship object meets the state transition rules of source object;If it is satisfied, then the state of transformational relation object;It is no Then, the not state of transformational relation object.State conversion module is also used to, the record of preservation relation Obj State conversion;And it is defeated State after relationship object conversion out.
Technical solution according to an embodiment of the present invention can realize different Obj States based on the incidence relation between object Conversion, solve the problems, such as between different objects that state change is associated with unusual fluctuation;For object-oriented in practical application scene Complex state manage and control problem reliable, consistent, general solution be provided;And object relationship network is based on for building State change automatic spread network across object ability support, the final state consistency for solving various objects in network are provided Problem.The finite state machine for solving object-oriented can not the state across object brought by the correlation between adaption object The problem that influences each other of variation.The technical solution of this embodiment of the present invention provide it is rigorous, perfect based on object relationship from Dynamic state processing mechanism avoids artificial so that the condition managing under complex object relationship scene is orderly and is able to achieve automation The inconsistency of state between object caused by the randomness of state control, to improve the correctness and reliability of system.
Fig. 6 is shown can be using the method for the management Obj State of the embodiment of the present invention or the system of management Obj State Exemplary system architecture 600.
As shown in fig. 6, system architecture 600 may include terminal device 601,602,603, network 604 and server 605. Network 604 between terminal device 601,602,603 and server 605 to provide the medium of communication link.Network 604 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 601,602,603 and be interacted by network 604 with server 605, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 601,602,603 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 601,602,603 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 605 can be to provide the server of various services, such as utilize terminal device 601,602,603 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request carry out the processing such as analyzing, and processing result is fed back into terminal device.
It should be noted that the method for management Obj State provided by the embodiment of the present invention is generally held by server 605 Row, correspondingly, the system for managing Obj State is generally positioned in server 605.
It should be understood that the number of terminal device, network and server in Fig. 6 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 7, it illustrates the computer systems 700 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 7 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 709, and/or from can Medium 711 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 701, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include relationship object determining module, relationship object state selection module and state conversion module.Wherein, the title of these modules is at certain The restriction to the module itself is not constituted in the case of kind, for example, relationship object determining module is also described as " for true Determine source object state converted in the case where, then determine what the source object influenced according to preset object relationship set The module of relationship object ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes In the case that the equipment comprises determining that the state of source object is converted, institute is determined according to preset object relationship set State the relationship object of source object influence;State after determining the source object and source object conversion meets preset influence item Part then obtains the state of the relationship object;According to the state of the relationship object and the shape of the preset relationship object State transformation rule judges whether to convert the state of the relationship object.
Technical solution according to an embodiment of the present invention can realize different Obj States based on the incidence relation between object Conversion, solve the problems, such as between different objects that state change is associated with unusual fluctuation, be object-oriented in practical application scene Complex state manage and control problem reliable, consistent, general solution be provided.Also, object relationship is based on for building The state change automatic spread network across object of network provides ability support, the final state one for solving various objects in network Cause property problem.The finite state machine for solving object-oriented can not be brought by the correlation between adaption object across object The problem that influences each other of state change.The technical solution of the embodiment of the present invention provides rigorous, perfect based on object relationship Auto state administrative mechanism avoids people so that the condition managing under complex object relationship scene is orderly and is able to achieve automation The inconsistency of state between object caused by the randomness of work state control, to improve the correctness and reliability of system.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (10)

1. a kind of method for managing Obj State characterized by comprising
In the case where determining that the state of source object is converted, the source object shadow is determined according to preset object relationship set Loud relationship object;
If the state after the source object and source object conversion meets preset influence condition, the relationship pair is obtained The state of elephant;
Judged whether to convert institute according to the state transition rules of the state of the relationship object and the preset relationship object State the state of relationship object.
2. the method according to claim 1, wherein according to the state of the relationship object and preset described The state transition rules of relationship object judge whether that the step of converting the state of the relationship object includes:
Judge whether the state of the relationship object meets the state transition rules of the source object;
If it is satisfied, then converting the state of the relationship object;Otherwise, the state of the relationship object is not converted.
3. the method according to claim 1, wherein after the state for converting the relationship object, further includes:
Save the record of the relationship object state conversion;And
State after exporting the relationship object conversion.
4. method according to claim 1-3, which is characterized in that determine the shape of source object by finite state machine State is converted, and, by finite state machine according to the state of the relationship object and the preset relationship object State transition rules judge whether to convert the state of the relationship object.
5. a kind of system for managing Obj State characterized by comprising
Relationship object determining module is then closed according to preset object in the case where determining that the state of source object is converted Assembly closes the relationship object for determining that the source object influences;
Relationship object state selection module, if met for the state after the source object and source object conversion preset Influence condition then obtains the state of the relationship object;
State conversion module, for converting rule according to the state of the relationship object and the state of the preset relationship object Then judge whether to convert the state of the relationship object.
6. system according to claim 5, which is characterized in that the state conversion module is also used to, and judges the relationship Whether the state of object meets the state transition rules of the source object;If it is satisfied, then converting the state of the relationship object; Otherwise, the state of the relationship object is not converted.
7. system according to claim 5, which is characterized in that the state conversion module is also used to, and saves the relationship The record of Obj State conversion;And the state after the output relationship object conversion.
8. according to the described in any item systems of claim 5-7, which is characterized in that the state conversion module is finite state Machine.
9. a kind of electronic equipment for managing Obj State characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-4.
10. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-4 is realized when row.
CN201711443584.XA 2017-12-27 2017-12-27 A kind of method and system managing Obj State Pending CN109976835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711443584.XA CN109976835A (en) 2017-12-27 2017-12-27 A kind of method and system managing Obj State

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711443584.XA CN109976835A (en) 2017-12-27 2017-12-27 A kind of method and system managing Obj State

Publications (1)

Publication Number Publication Date
CN109976835A true CN109976835A (en) 2019-07-05

Family

ID=67072214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711443584.XA Pending CN109976835A (en) 2017-12-27 2017-12-27 A kind of method and system managing Obj State

Country Status (1)

Country Link
CN (1) CN109976835A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273969A (en) * 2020-01-20 2020-06-12 腾讯科技(深圳)有限公司 State switching method, device, equipment and storage medium
CN115587564A (en) * 2022-10-17 2023-01-10 北京云枢创新软件技术有限公司 Method and system for extracting state change in finite state machine

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120789A1 (en) * 2001-02-27 2002-08-29 Raidcore Inc. Finite state machine with a single process context for a RAID system
CN1744512A (en) * 2004-08-30 2006-03-08 华为技术有限公司 Network resource management method
US20080168010A1 (en) * 2007-01-05 2008-07-10 Challenger James R Distributable And Serializable Finite State Machine
CN102109984A (en) * 2009-12-28 2011-06-29 北京大学 Method and system for processing state machine
CN104268767A (en) * 2014-10-22 2015-01-07 中国建设银行股份有限公司 Core service object consistency processing method and core service object agency
CN105183172A (en) * 2015-09-28 2015-12-23 联想(北京)有限公司 Information processing method and electronic equipment
CN106997288A (en) * 2016-01-22 2017-08-01 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107291560A (en) * 2016-03-31 2017-10-24 北京三星通信技术研究有限公司 A kind of content of smart machine determines method and apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120789A1 (en) * 2001-02-27 2002-08-29 Raidcore Inc. Finite state machine with a single process context for a RAID system
CN1744512A (en) * 2004-08-30 2006-03-08 华为技术有限公司 Network resource management method
US20080168010A1 (en) * 2007-01-05 2008-07-10 Challenger James R Distributable And Serializable Finite State Machine
CN102109984A (en) * 2009-12-28 2011-06-29 北京大学 Method and system for processing state machine
CN104268767A (en) * 2014-10-22 2015-01-07 中国建设银行股份有限公司 Core service object consistency processing method and core service object agency
CN105183172A (en) * 2015-09-28 2015-12-23 联想(北京)有限公司 Information processing method and electronic equipment
CN106997288A (en) * 2016-01-22 2017-08-01 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107291560A (en) * 2016-03-31 2017-10-24 北京三星通信技术研究有限公司 A kind of content of smart machine determines method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273969A (en) * 2020-01-20 2020-06-12 腾讯科技(深圳)有限公司 State switching method, device, equipment and storage medium
CN115587564A (en) * 2022-10-17 2023-01-10 北京云枢创新软件技术有限公司 Method and system for extracting state change in finite state machine

Similar Documents

Publication Publication Date Title
WO2019001099A1 (en) Information pushing method and device
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN110209677A (en) The method and apparatus of more new data
CN109492053A (en) Method and apparatus for accessing data
CN109614402A (en) Multidimensional data query method and device
CN109241033A (en) The method and apparatus for creating real-time data warehouse
CN110473036A (en) A kind of method and apparatus generating order number
CN108776692A (en) Method and apparatus for handling information
CN109656744A (en) The method and apparatus for realizing data check and injection are explained based on Java
AU2014229049A1 (en) System and method for managing business partners and associated assets in favor of a plurality of enterprises
CN110515741A (en) A kind of degradation processing method and device based on local task queue
CN109960212A (en) Task sending method and device
CA2332401A1 (en) Work-flow system for web-based applications
CN110473043A (en) A kind of item recommendation method and device based on user behavior
CN109976835A (en) A kind of method and system managing Obj State
CN108984197A (en) A kind of code update method and device
CN115862227A (en) Storage processing method of storage cabinet, client, electronic equipment and storage medium
CN110083457A (en) A kind of data capture method, device and data analysing method, device
CN110109983A (en) A kind of method and apparatus operating Redis database
CN109814957A (en) A kind of label addition method and device for IOS system
CN109976919A (en) A kind of transmission method and device of message request
CN110389976A (en) A kind of dispatching method and device of multi-interface data
CN110321242A (en) Data processing method and device
CN108985673B (en) Inventory list generation method and device
CN106484391A (en) Dynamic Service autgmentability

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190705