CN107844366A - Power grid application service calling method, device, storage medium and computer equipment - Google Patents

Power grid application service calling method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN107844366A
CN107844366A CN201710923089.2A CN201710923089A CN107844366A CN 107844366 A CN107844366 A CN 107844366A CN 201710923089 A CN201710923089 A CN 201710923089A CN 107844366 A CN107844366 A CN 107844366A
Authority
CN
China
Prior art keywords
service
request
information
file
call
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.)
Granted
Application number
CN201710923089.2A
Other languages
Chinese (zh)
Other versions
CN107844366B (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.)
NR Electric Co Ltd
Guangzhou Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
NR Electric Co Ltd
Guangzhou Power Supply Bureau 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 NR Electric Co Ltd, Guangzhou Power Supply Bureau Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201710923089.2A priority Critical patent/CN107844366B/en
Publication of CN107844366A publication Critical patent/CN107844366A/en
Application granted granted Critical
Publication of CN107844366B publication Critical patent/CN107844366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of power grid application service calling method, device, storage medium and computer equipment.This method includes receiving the service invocation request that service call end is sent;If service invocation request is information inquiring request, by application service corresponding to corresponding interface interchange to obtain power information corresponding to information inquiring request, and power information is back to service call end;If service invocation request is asked for analyzing and processing, the call result information of application service is called to service call end to perform analyzing and processing operation corresponding to analyzing and processing request, and return by application service corresponding to corresponding interface interchange.By to application service corresponding to interface interchange corresponding to the use of different types of service invocation request, realize the unified call of different application service, power information and application service are shared, it is easy to call operations staff is unified to obtain data from different application systems, simplify scheduling operation, dispatching efficiency can be improved.

Description

Power grid application service calling method, device, storage medium and computer equipment
Technical field
The present invention relates to technical field of power systems, more particularly to a kind of power grid application service calling method, device, deposits Storage media and computer equipment.
Background technology
The scheduling of power system is automatic based on scheduling for ensuring that the safety operation level of supply of electric power plays an important role Change system is realized.Dispatch automated system includes multiple application systems, and each application system realizes electric power data using application service Processing and calculating.
With developing rapidly for power system, the structure and the method for operation of power system expand and complicated increasingly, to ensure The security and economy of Operation of Electric Systems, management and running personnel need the electricity to each application system in dispatch automated system Force data and analysis information are grasped, considered comprehensively, the actual motion state of power system are comprehensively grasped rapidly, with accurate The various problems occurred in Operation of Electric Systems are made correct processing by prediction and the operation trend of analysis power system.So And be independent between each application system in traditional dispatch automated system, management and running personnel are needed respectively from different Application system obtains electric power data, and cumbersome, dispatching efficiency is low.
The content of the invention
Based on this, it is necessary to for dispatching efficiency it is low the problem of, there is provided a kind of power grid application that can improve dispatching efficiency Service calling method, device, storage medium and computer equipment.
A kind of power grid application service calling method, including:
Receive the service invocation request that service call end is sent;
If the service invocation request is information inquiring request, pass through interface interchange corresponding to described information inquiry request The power information of acquisition is back to institute by corresponding application service to obtain power information corresponding to described information inquiry request State service call end;
If the service invocation request is asked for analyzing and processing, pass through interface interchange corresponding to the analyzing and processing request Corresponding application service returns to the tune for calling application service to perform analyzing and processing operation corresponding to the analyzing and processing request With object information to the service call end.
A kind of power grid application service call device, including:
Request receiving module, for receiving the service invocation request of service call end transmission;
Query calls module, for when the service invocation request is information inquiring request, being inquired about by described information Application service corresponding to interface interchange corresponding to request will be obtained with obtaining power information corresponding to described information inquiry request Power information be back to the service call end;
Calling module is analyzed, for when the service invocation request is asked for analyzing and processing, passing through the analyzing and processing Application service corresponding to interface interchange corresponding to request is returned with performing analyzing and processing operation corresponding to the analyzing and processing request The call result information of readjustment application service is to the service call end.
Above-mentioned power grid application service calling method and device, the service invocation request sent for service call end is information The situation of inquiry request, please to obtain information inquiry by application service corresponding to the interface interchange of corresponding informance inquiry request Power information corresponding to asking simultaneously is back to service call end;It is analyzing and processing for the service invocation request that service call end is sent The situation of request, application service corresponding to the interface interchange of request is handled by correspondence analysis, with analyzing and processing corresponding to execution Operate and return to corresponding call result information to service call end;In this way, by being adopted to different types of service invocation request The application service corresponding to corresponding interface interchange, realize the unified call of different application service so that power information and should It can be shared with service, be easy to call operations staff is unified to obtain data from different application systems, simplify scheduling operation, can improve Dispatching efficiency.
A kind of storage medium, is stored with computer program, is realized when the computer program of storage is executed by processor above-mentioned The step of power grid application service calling method.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, the step of realizing above-mentioned power grid application service calling method described in the computing device during computer program.
Above-mentioned storage medium and computer equipment, due to the step of realizing above-mentioned power grid application service calling method, together The unified call of different application service can be achieved in reason so that power information and application service can be shared, and be easy to call operation people Member is unified to obtain data from different application systems, simplifies scheduling operation, can improve dispatching efficiency.
Brief description of the drawings
Fig. 1 is the flow chart of power grid application service calling method in an embodiment;
Fig. 2 is the flow chart of power grid application service calling method in another embodiment;
Fig. 3 is the structure chart of power grid application service call device in an embodiment;
Fig. 4 is power grid application service call schematic diagram in an application examples;
Fig. 5 is the communication sequential chart of client and service end in an application examples.
Embodiment
With reference to figure 1, in one embodiment, there is provided a kind of power grid application service calling method, this method include following step Suddenly:
S110:Receive the service invocation request that service call end is sent.
Service invocation request is used for request call application service.During the different application service of service call end request call, Send different types of service invocation request.Wherein, service call end can be client.
S130:If service invocation request is information inquiring request, pass through interface interchange pair corresponding to information inquiring request The power information of acquisition is back to service call by the application service answered to obtain power information corresponding to information inquiring request End.
Information inquiring request is used for request call application service with Query Information.The type pair of interface and service invocation request Should, application service is corresponding with interface, that is, is determined that interface can determine that the application service of calling.The type of service invocation request is determined Surely the interface used, interface determine the application service called.Specifically, information inquiring request can include a variety of;Different letters Ceasing interface corresponding to inquiry request can be different, so as to which the corresponding application service called is different.
S150:If service invocation request is asked for analyzing and processing, by analyzing and processing interface interchange pair corresponding to request The application service answered returns to the call result for calling application service to perform analyzing and processing operation corresponding to analyzing and processing request Information is to service call end.
Analyzing and processing request is used for request call application service to be analyzed and processed.Analyzing and processing request can include more Kind;Interface corresponding to different analyzing and processing requests can be different, so as to which the corresponding application service called is different.For example, analysis Processing operation can analyze the running status of power network.Call result information calls the information of the result of application service for instruction, Successful information and failure information can be included, the information of description failure cause can also be included.
Above-mentioned power grid application service calling method, the service invocation request sent for service call end please for information inquiry Situation about asking, it is corresponding to obtain information inquiring request by application service corresponding to the interface interchange of corresponding informance inquiry request Power information and be back to service call end;It is analyzing and processing request for the service invocation request that service call end is sent Situation, application service corresponding to the interface interchange of request is handled by correspondence analysis, to analyze and process operation simultaneously corresponding to execution Call result information corresponding to return is to service call end;It is in this way, corresponding by being used to different types of service invocation request Interface interchange corresponding to application service, realize the unified call of different application service so that power information and application service It can share, be easy to call operations staff is unified to obtain data from different application systems, simplify scheduling operation, scheduling effect can be improved Rate.
In one embodiment, information inquiring request includes object data inquiry request, the inquiry of historical data request and text Part inquiry request.Wherein, object data inquiry request is used for the data of the specified object at requesting query current time;Historical data The data that inquiry request is used in the specified historical time section of acquisition request;File request is used for the file that requesting query is specified.It is right Ying Di, step S130 include step (a1) to step (a3).
Step (a1):If service invocation request is object data inquiry request, called by object data query interface Object data is back to service and adjusted by object data inquiry service to obtain object data corresponding to object data inquiry request With end.
Interface corresponding to object data inquiry request is object data query interface, and what object data query interface called should It is object data inquiry service with service.Object data inquiry service is used for number of objects corresponding to query object data inquiry request According to.Specifically, object data inquiry request can carry the querying condition of object data to be checked, object data inquiry service The object data according to corresponding to being searched querying condition.
Step (a2):If service invocation request is asked for the inquiry of historical data, pass through the inquiry of historical data interface interchange Historical data is back to service and adjusted by the inquiry of historical data service to obtain historical data corresponding to the inquiry of historical data request With end.
Interface corresponding to the inquiry of historical data request is the inquiry of historical data interface, and the inquiry of historical data interface interchange is answered It is the inquiry of historical data service with service.The inquiry of historical data service is used for history number corresponding to enquiry of historical data inquiry request According to.Specifically, the inquiry of historical data request can carry the querying condition of historical data to be checked, the inquiry of historical data service The historical data according to corresponding to being searched querying condition.
Step (a3):If service invocation request is file query requests, pass through file polling interface interchange file polling File is back to service call end by service to obtain file corresponding to file query requests.
Interface corresponding to file query requests is file polling interface, and the application service of file polling interface interchange is file Inquiry service.File polling service is used to inquire about file corresponding to file query requests.Specifically, file query requests can carry There are the querying condition of file to be checked, file polling service file according to corresponding to being searched querying condition.
By the way that for object data inquiry request, the inquiry of historical data request and file query requests, object is respectively adopted Data-query interfaces, the inquiry of historical data interface and each self-corresponding object data inquiry service of file polling interface interchange, go through The service of history data query and file polling service, the inquiry for realizing object data, historical data and file obtain, are easy to understand Many power informations.
Connect the following detailed description of the object data query interface, the inquiry of historical data interface and file polling of an application examples Mouthful.
Object data inquiry service GetData:Provide object data query function.Service call end, which provides, to be needed to inquire about Parameter and querying condition (Message), call object data inquiry service to parameter and querying condition analysis after, expired The object data that requires enough simultaneously feeds back to service call end.Object data query interface is defined as follows table 1:
Table 1
The inquiry of historical data services GetHisData:The some objects of inquiry at the appointed time section is provided to service call end Interior relevant historical data or statistics, and the method that these historical datas correspond to time point.Service call end need to Service end transmits the information such as data name, initial time, end time, historical data type, and service end is according to service call end The above- mentioned information of offer inquires about to obtain historical data, and by these data according to returning to service call after established form tissue End.It is defined as follows table 2:
Table 2
File polling services GetFileData:For transmitting various files between service call end and service end, such as E language sections file, XML model file etc..It is defined as follows table 3:
Table 3
In one embodiment, file query requests include basic document inquiry request, electric network model file acquisition is asked With operation section file acquisition request.Wherein, basic document refers to the alternative document in addition to model file and section file.Basis File query requests are used for requesting query basic document;Electric network model file acquisition asks the model text for acquisition request power network Part;Operation section file acquisition asks the section file for acquisition request power network.Accordingly, step (a3) includes step (a31) to step (a33).
Step (a31):If file query requests based on service invocation request, called by basic document query interface Basic document is back to service and adjusted by basic document inquiry service to obtain basic document corresponding to basic document inquiry request With end.
File polling interface based on interface corresponding to basic document inquiry request, what basic document query interface called answers With file polling service based on service.Basic document inquiry service is used to inquire about basis text corresponding to basic document inquiry request Part.Specifically, basic document inquiry request can carry the classification information of basic document to be checked, basic document inquiry service The basic document according to corresponding to searching classification information.
Step (a32):If service invocation request is asked for electric network model file acquisition, pass through electric network model file acquisition Interface interchange obtains operation of power networks model service to obtain model file corresponding to the request of electric network model file acquisition, and by model File is back to service call end.
Interface corresponding to the request of electric network model file acquisition is electric network model file acquisition interface, electric network model file acquisition The application service of interface interchange is acquisition operation of power networks model service.Operation of power networks model service is obtained to be used to obtain corresponding mould Type file.Specifically, the request of electric network model file acquisition can carry the classification information of model file to be checked, obtain power network Moving model service model file according to corresponding to searching classification information.
Step (a33):If service invocation request is the file acquisition request of operation section, by running section file acquisition Interface interchange obtains power grid measurement service to obtain section file corresponding to operation section file acquisition request, and by section file It is back to service call end.
Interface corresponding to the request of section file acquisition is run as operation section file acquisition interface, runs section file acquisition The application service of interface interchange is acquisition power grid measurement service.Power grid measurement is obtained to service for obtaining corresponding section file. Specifically, the classification information of section file to be checked can be carried by running the request of section file acquisition, obtain power grid measurement clothes Business section file according to corresponding to searching classification information.
The file for calling frequency higher in dispatch automated system has model file and section file.By by file polling File query requests, the request of electric network model file acquisition and the file acquisition request of operation section based on requests classification, for normal Model file and the single interface of section document design improve scheduling convenience to call corresponding application service.
Electric network model file acquisition interface and operation section file acquisition interface the following detailed description of an application examples.
Obtain operation of power networks model service GetNetModel:Model issuing service is provided based on the newest of XML file format Electric network model description, including primary equipment and measurement information.Sender firstly generates the GUID of this time inquiry as unique mark Know.After opposite end interface service receives inquiry GUID, newest XML model file is returned into sender.Incoming parameter is such as Table 4, return parameters such as table 5 below, the specific definition of interface are as shown in table 6 below.
Table 4
Table 5
Table 6
Obtain power grid measurement service GetNetCase (String GUID String CaseType):Offer is based on E language The newest power network SCADA of file is measured and state estimation measures, and sender firstly generates the GUID of this time inquiry as unique Mark, and incoming measurement type and measuring range., will be right after opposite end interface service receives inquiry GUID and file type The current measurement file answered returns to sender.Incoming parameter such as table 7 below, return parameters such as table 8 below, the specific definition of interface is such as Shown in table 9 below.
Table 7
Table 8
Table 9
In one embodiment, analyzing and processing request includes section setting request, equipment state sets request, output state Request and operating analysis request are set.Accordingly, step S150 includes step (b1) to step (b4).
Step (b1):If service invocation request, which is section, sets request, set interface interchange that operation is set by section Section service, section information corresponding to request is set to be arranged to information to be analyzed, and call result corresponding to return in section Information is to service call end.
Interface corresponding to section setting request is that section sets interface, and it is to set that section, which sets the application service of interface interchange, Run section service.Specifically, section sets request to carry the condition of section information to be placed, sets operation section clothes The section information of respective conditions is arranged to information to be analyzed by business.
Step (b2):If service invocation request, which is equipment state, sets request, interface interchange is set by equipment state Equipment state service is set, and to set request to adjust in the information to be analyzed set according to equipment state, equipment state setting please State is moved back in the throwing of equipment corresponding to asking, and call result information corresponding to returning is to service call end.
Interface corresponding to equipment state setting request is that equipment state sets interface, and equipment state sets answering for interface interchange It is that equipment state service is set with service.Specifically, equipment state sets request to carry device type to be placed and need The status information of setting, status information include running status and inspecting state;Equipment state service is set to be treated what is set point The throwing state of moving back of equipment in analysis information corresponding to device type is arranged to the state corresponding to status information.
Step (b3):If service invocation request, which is output state, sets request, interface interchange is set by output state Equipment output service is set, and to be set according to output state in the information to be analyzed for asking adjustment to set, the setting of output state please The power generating value of equipment corresponding to asking, and call result information corresponding to returning is to service call end.
Interface corresponding to the setting request of output state is that output state sets interface, and output state sets answering for interface interchange It is to set equipment to contribute to service with service.Specifically, output state sets request to carry device type to be placed and need The power generating value of setting;Equipment output is set to service the output of the equipment in the information to be analyzed that will have been set corresponding to device type Data are arranged to corresponding power generating value.
Step (b4):If service invocation request is asked for operating analysis, pass through operating analysis interface interchange operation of power networks Analysis Service, to carry out operation of power networks analysis according to the information to be analyzed set, and call result information corresponding to return is extremely Service call end.
Interface corresponding to operating analysis request is operating analysis interface, and the application service of operating analysis interface interchange is power network Operating analysis service.
By setting request, equipment state to set request, output state to set request and operating analysis to ask for section, Section, which is respectively adopted, sets interface, equipment state to set interface, output state to set interface and operating analysis interface interchange each It is corresponding that the service of operation section is set, equipment state service is set, the service of equipment output and operation of power networks Analysis Service are set, it is real Show section setting, equipment state setting, the setting of output state and operating analysis, be easy to grasp the running status of power network comprehensively.
In one embodiment, operating analysis request includes Load flow calculation request, result of calculation obtains request, static security Analysis request and analysis result obtain request.Accordingly, step (b4) includes step (b41) to step (b44).
Step (b41):If service invocation request is asked for Load flow calculation, pass through Load flow calculation interface interchange Load flow calculation Service, to carry out Load flow calculation according to the information to be analyzed that has set, and call result information corresponding to returning is to service call End.
Interface corresponding to Load flow calculation request is Load flow calculation interface, and the application service of Load flow calculation interface interchange is trend Calculate service.
Step (b42):If service invocation request, which is result of calculation, obtains request, interface interchange is obtained by result of calculation Calculation of tidal current service is obtained, to obtain the result of calculation of Load flow calculation, and result of calculation is back to service call end.
Interface corresponding to result of calculation acquisition request is that result of calculation obtains interface, and result of calculation obtains answering for interface interchange It is to obtain calculation of tidal current service with service.Wherein, result of calculation is to carry out the result that Load flow calculation obtains.
Step (b43):If service invocation request is asked for static security analysis, pass through static security analysis interface interchange Static security analysis service, to carry out static security analysis according to the information to be analyzed set, and return to corresponding calling knot Fruit information is to service call end.
Interface corresponding to static security analysis request is static security analysis interface, and static security analysis interface interchange is answered It is static security analysis service with service.
Step (b44):If service invocation request, which is analysis result, obtains request, interface interchange is obtained by analysis result Static security analysis result of calculation service is obtained, to obtain the analysis result of static security analysis, and analysis result is back to Service call end.
Interface corresponding to analysis result acquisition request is that analysis result obtains interface, and analysis result obtains answering for interface interchange It is to obtain static security analysis result of calculation service with service.Wherein, analysis result is to carry out the knot that static security analysis obtains Fruit.
The operation analyzed the running status of power network generally has Load flow calculation and static security analysis.By using tide Stream calculation interface, result of calculation acquisition interface, static security analysis interface and analysis result acquisition interface call respective respectively Application service, to respond Load flow calculation request respectively, result of calculation obtains request, static security analysis request and analysis result obtain Request is taken, realizes Load flow calculation and static security analysis to power network, scheduling convenience height.
The following detailed description of an application examples section set interface, equipment state set interface, output state set interface, Load flow calculation interface, result of calculation obtain interface, static security analysis interface and analysis result and obtain interface.
Operation section service SetGridCase is set:Service caller can be made to obtain the state at some moment of power network Estimated result section.Corresponding interface is defined as follows table 10:
Table 10
Equipment state is set to service SetEquipmentState:Service caller can be carried out to the power network section of analysis State is moved back in the throwing of primary equipment, for changing the method for operation of power network.Corresponding interface is defined as follows table 11:
Table 11
Set equipment to contribute and service SetEquipmentValue:Service call end can be carried out to the power network section of analysis The throwing of generator or load is set to move back state, for changing the method for operation of power network.Corresponding several mouthfuls are defined as follows table 12:
Table 12
Obtain calculation of tidal current service GetFlowResult.Corresponding interface is defined as follows table 13:
Table 13
Obtain static security analysis result of calculation service GetNetCAResult.Corresponding interface is defined as follows table 14:
Table 14
Call Load flow calculation service CallPowerflow.Corresponding interface is defined as follows table 15:
Table 15
Call static security analysis service CallNetCA.Corresponding interface is defined as follows table 16:
Table 16
In one embodiment, with reference to figure 2, before step S110, in addition to step S100.
S100:Receive user's logging request that service call end is sent, and return login result and with user's logging request Corresponding identification number is to service call end.
The username and password of user's login is carried in user's logging request.Login result includes logining successfully, stepping on Record the results such as the code error of failure, the user name mistake of input, input.After receiving user's logging request, it can distribute and user Identification number corresponding to name is unique, for distinguishing different users.
Specifically, if receiving user's logging request of service call end transmission for the first time, user's logging request is preserved Corresponding username and password, and login result and identification number corresponding with user's logging request are returned to service call end.If Non-first time receives user's logging request of service call end transmission, then verifies user name and close corresponding to user's logging request Code, verification by when return to login result and identification number corresponding with user's logging request to service call end.
Accordingly, after step S110, in addition to step S120.
S120:Power is called according to corresponding to identification number corresponding to user's logging request determines whether service invocation request Limit.
If there is calling authority, perform step S130 or perform step S150.Specifically, can be previously provided with each mark Know number calling authority of corresponding user.For example correspond to and store each identification number and service invocation request, corresponding relation is searched, if connecing The service invocation request of receipts is corresponding with current identification number, then it represents that has calling authority, otherwise without calling authority.
Form by using user's login and user's progress purview certification to login, the safety of service call can be improved Property.
In one embodiment, with continued reference to Fig. 2, after step S100, in addition to step S101.
S101:Receive the user log off request that service call end is sent, the identification number institute that the user log off of storage is asked Corresponding account information is deleted.
Account information includes username and password.By providing the service of user log off, releasable computing resource, saving is deposited Store up space.
With reference to figure 3, in one embodiment, there is provided a kind of power grid application service call device, including request receiving module 110th, query calls module 130 and analysis calling module 150.
Request receiving module 110 is used for the service invocation request for receiving the transmission of service call end.
Query calls module 130 is used for when service invocation request is information inquiring request, passes through information inquiring request pair Power information is back to by application service corresponding to the interface interchange answered with obtaining power information corresponding to information inquiring request Service call end.
Calling module 150 is analyzed to be used for when service invocation request is asked for analyzing and processing, by analyzing and processing request pair Application service corresponding to the interface interchange answered returns to calling application to perform analyzing and processing operation corresponding to analyzing and processing request The call result information of service is to service call end.
Above-mentioned power grid application service call device, the service invocation request sent for service call end please for information inquiry Situation about asking, it is corresponding to obtain information inquiring request by application service corresponding to the interface interchange of corresponding informance inquiry request Power information and be back to service call end;It is analyzing and processing request for the service invocation request that service call end is sent Situation, application service corresponding to the interface interchange of request is handled by correspondence analysis, to analyze and process operation simultaneously corresponding to execution Call result information corresponding to return is to service call end;It is in this way, corresponding by being used to different types of service invocation request Interface interchange corresponding to application service, realize the unified call of different application service so that power information and application service It can share, be easy to call operations staff is unified to obtain data from different application systems, simplify scheduling operation, scheduling effect can be improved Rate.
In one embodiment, information inquiring request includes object data inquiry request, the inquiry of historical data request and text Part inquiry request.Query calls module 130 includes object data query unit (not shown), (figure is not for inquiry of historical data unit Show) and file polling unit (not shown).
Object data query unit be used for when service invocation request is object data inquiry request, by number of objects it is investigated that The inquiry service of interface interchange object data is ask to obtain object data corresponding to object data inquiry request, and object data is returned It is back to service call end.
Inquiry of historical data unit is used to, when service invocation request is that the inquiry of historical data is asked, look into by historical data The service of interface interchange the inquiry of historical data is ask to obtain historical data corresponding to the inquiry of historical data request, and historical data is returned It is back to service call end.
File polling unit is used for when service invocation request is file query requests, passes through file polling interface interchange text File is back to service call end by part inquiry service to obtain file corresponding to file query requests.
By the way that for object data inquiry request, the inquiry of historical data request and file query requests, object is respectively adopted Data-query interfaces, the inquiry of historical data interface and each self-corresponding object data inquiry service of file polling interface interchange, go through The service of history data query and file polling service, the inquiry for realizing object data, historical data and file obtain, are easy to understand Many power informations.
In one embodiment, file query requests include basic document inquiry request, electric network model file acquisition is asked With operation section file acquisition request.Specifically, file polling unit is in file query requests based on service invocation request, Basic document inquiry service is called to obtain basic document corresponding to basic document inquiry request by basic document query interface, And basic document is back to service call end;When service invocation request is that electric network model file acquisition is asked, pass through power network Model file obtains interface interchange and obtains operation of power networks model service to obtain model corresponding to the request of electric network model file acquisition File, and model file is back to service call end;When service invocation request is asked for operation section file acquisition, pass through Operation section file acquisition interface interchange obtains power grid measurement service to obtain section corresponding to the file acquisition request of operation section File, and section file is back to service call end.
By the way that file query requests are categorized as into basic document inquiry request, electric network model file acquisition is asked and operation is disconnected Face file acquisition request, it is corresponding using clothes to call for conventional model file and the single interface of section document design Business, improve scheduling convenience.
In one embodiment, analyzing and processing request includes section setting request, equipment state sets request, output state Request and operating analysis request are set.Analyzing calling module 150 includes section setting unit (not shown), equipment state setting list First (not shown), output state set unit (not shown) and operating analysis unit (not shown).
Section setting unit is used to, when service invocation request is that section sets request, set interface interchange to set by section Operation section service is put, sets section information corresponding to request to be arranged to information to be analyzed in section, and return to corresponding adjust With object information to service call end.
Equipment state setting unit is used to, when service invocation request is that equipment state sets request, set by equipment state Put interface interchange and equipment state service is set, to set request to adjust equipment in the information to be analyzed set according to equipment state State sets the throwing of equipment corresponding to request to move back state, and call result information corresponding to returning is to service call end.
Output state set unit is used to, when service invocation request is that output state sets request, set by output state Put interface interchange and equipment output service is set, contributed with being set according to output state in the information to be analyzed for asking adjustment to set State sets the power generating value of equipment corresponding to request, and call result information corresponding to returning is to service call end.
Operating analysis unit is used to, when service invocation request is that operating analysis is asked, pass through operating analysis interface interchange electricity Analysis of Isolated Net Running service, to carry out operation of power networks analysis, and call result corresponding to return according to the information to be analyzed set Information is to service call end.
By setting request, equipment state to set request, output state to set request and operating analysis to ask for section, Section, which is respectively adopted, sets interface, equipment state to set interface, output state to set interface and operating analysis interface interchange each It is corresponding that the service of operation section is set, equipment state service is set, the service of equipment output and operation of power networks Analysis Service are set, it is real Show section setting, equipment state setting, the setting of output state and operating analysis, be easy to grasp the running status of power network comprehensively.
In one embodiment, operating analysis request includes Load flow calculation request, result of calculation obtains request, static security Analysis request and analysis result obtain request.Specifically, operating analysis unit service invocation request be Load flow calculation ask when, By Load flow calculation interface interchange Load flow calculation service, to carry out Load flow calculation according to the information to be analyzed set, and return Corresponding call result information is to service call end;When service invocation request is that result of calculation obtains request, tied by calculating Fruit obtains interface interchange and obtains calculation of tidal current service, to obtain the result of calculation of Load flow calculation, and result of calculation is returned To service call end;It is static by static security analysis interface interchange when service invocation request is that static security analysis is asked Safety analysis service, to carry out static security analysis, and call result letter corresponding to return according to the information to be analyzed set Cease to service call end;When service invocation request is that analysis result obtains request, interface interchange is obtained by analysis result and obtained Static security analysis result of calculation service is taken, to obtain the analysis result of static security analysis, and analysis result is back to clothes End is called in business.
Obtain interface, static security analysis interface and analysis result by using Load flow calculation interface, result of calculation and obtain Interface calls respective application service respectively, and to respond Load flow calculation request respectively, result of calculation obtains request, static security point Analysis is asked and analysis result obtains request, realizes the Load flow calculation and static security analysis to power network, scheduling convenience height.
In one embodiment, above-mentioned power grid application service call device also includes user authentication module (not shown), uses Before the service invocation request for receiving that service call end is sent in request receiving module 110, receive what service call end was sent User's logging request, and login result and identification number corresponding with user's logging request are returned to service call end;And asking After seeking the service invocation request that the reception service call of receiving module 110 end is sent, the mark according to corresponding to user's logging request Number determine whether to call authority corresponding to service invocation request, if there is calling authority, control query calls module 130 and point Analyse calling module 150 and perform corresponding function.Form by using user's login and user's progress purview certification to login, can Improve the security of service call.
In one embodiment, user authentication module is additionally operable to receiving user's logging request of service call end transmission, And after returning to login result and identification number corresponding with user's logging request to service call end, receive service call end and send User log off request, the account information corresponding to identification number that the user log off of storage is asked deletes.
Wherein, account information includes username and password.By providing the service of user log off, releasable computing resource, Save memory space.
In one embodiment, there is provided a kind of storage medium, be stored with computer program, the computer program of storage is processed The step of device realizes above-mentioned power grid application service calling method when performing.Specifically, storage medium is readable storage medium storing program for executing.
In one embodiment, there is provided a kind of computer equipment, including memory, processor and storage are on a memory and can The computer program run on a processor, above-mentioned power grid application service calling method is realized during computing device computer program The step of.
Above-mentioned storage medium and computer equipment, due to the step of realizing above-mentioned power grid application service calling method, together The unified call of different application service can be achieved in reason so that power information and application service can be shared, and be easy to call operation people Member is unified to obtain data from different application systems, simplifies scheduling operation, can improve dispatching efficiency.
Above-mentioned power grid application service calling method and device can be based on electric power application service bus and realize, by electric power application Equipment is as service end where service bus.As shown in Figure 4.Electric power application service bus transmits letter between providing different application systems The common data channel of breath, it is possible to achieve the data transfer between different application systems, realize that application service is mutually shared.Definition electricity Each interface of power application service bus, data communication protocol, interface interchange method, data organizational form etc., docking port and correlation The semanteme of data is arranged.For example obtain operation of power networks model service GetNetModel and use based on XML file format Electric network model describes, and obtains power grid measurement service GetNetCase then using the power network SCADA measurements based on E language files and shape State estimation measurement etc..The communication criterion of standardization can allow between different application and pass through HTTP communications protocols and specified format Mutual data are intercoursed, make it unrelated with programming language, platform and hardware.As shown in figure 5, for as service call end The communication sequential chart of client and service end.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

  1. A kind of 1. power grid application service calling method, it is characterised in that including:
    Receive the service invocation request that service call end is sent;
    It is corresponding by interface interchange corresponding to described information inquiry request if the service invocation request is information inquiring request Application service to obtain power information corresponding to described information inquiry request, and the power information of acquisition is back to the clothes End is called in business;
    It is corresponding by interface interchange corresponding to the analyzing and processing request if the service invocation request is asked for analyzing and processing Application service with perform it is described analyzing and processing request corresponding to analyzing and processing operation, and return call application service calling knot Fruit information is to the service call end.
  2. 2. power grid application service calling method according to claim 1, it is characterised in that described information inquiry request includes Object data inquiry request, the inquiry of historical data request and file query requests;If the service invocation request is information Inquiry request, then inquired about by application service corresponding to interface interchange corresponding to described information inquiry request with obtaining described information Power information corresponding to request, and the power information of acquisition is back to the service call end, including:
    If the service invocation request is object data inquiry request, by object data query interface call number of objects it is investigated that Service is ask to obtain object data corresponding to the object data inquiry request, and the object data is back to the service Call end;
    If the service invocation request is asked for the inquiry of historical data, looked into by the inquiry of historical data interface interchange historical data Service is ask to obtain historical data corresponding to the inquiry of historical data request, and the historical data is back to the service Call end;
    If the service invocation request is file query requests, by file polling interface interchange file polling service to obtain File corresponding to the file query requests, and the file is back to the service call end.
  3. 3. power grid application service calling method according to claim 2, it is characterised in that the file query requests include Basic document inquiry request, the request of electric network model file acquisition and the file acquisition request of operation section;If the service is adjusted It is file query requests with request, then by file polling interface interchange file polling service to obtain the file query requests Corresponding file, and the file is back to the service call end, including:
    If file query requests based on the service invocation request, basic document is called to look into by basic document query interface Service is ask to obtain basic document corresponding to the basic document inquiry request, and the basic document is back to the service Call end;
    If the service invocation request is asked for electric network model file acquisition, obtained by electric network model file acquisition interface interchange Power taking network operation model service is to obtain model file corresponding to electric network model file acquisition request, and by model text Part is back to the service call end;
    If the service invocation request is the file acquisition request of operation section, obtained by running section file acquisition interface interchange Power grid measurement service is taken to obtain section file corresponding to the operation section file acquisition request, and the section file is returned It is back to the service call end.
  4. 4. power grid application service calling method according to claim 1, it is characterised in that the analyzing and processing request includes Section sets request, equipment state to set request, output state to set request and operating analysis request;If the service is adjusted It is analyzing and processing request with request, then analyzes and processes application service corresponding to interface interchange corresponding to request by described to perform Analyzing and processing operation corresponding to the analyzing and processing request, and return and call the call result information of application service to the service End is called, including:
    If the service invocation request, which is section, sets request, set interface interchange that operation section service is set by section, To set section information corresponding to request to be arranged to information to be analyzed in the section, and call result information corresponding to return is extremely The service call end;
    If the service invocation request, which is equipment state, sets request, set interface interchange that equipment shape is set by equipment state State service, request is set to set request to adjust equipment state described in the information to be analyzed set according to the equipment state State is moved back in the throwing of corresponding equipment, and call result information corresponding to returning is to the service call end;
    If the service invocation request, which is output state, sets request, interface interchange is set to set equipment to go out by output state Power service, request is set to set request to adjust output state described in the information to be analyzed set according to the output state The power generating value of corresponding equipment, and call result information corresponding to returning is to the service call end;
    If the service invocation request is operating analysis request, by operating analysis interface interchange operation of power networks Analysis Service, To carry out operation of power networks analysis according to the information to be analyzed set, and call result information corresponding to return to the service is adjusted With end.
  5. 5. power grid application service calling method according to claim 4, it is characterised in that the operating analysis request includes Load flow calculation request, result of calculation obtain request, static security analysis request and analysis result and obtain request;If the clothes Call request be engaged in as operating analysis request, then by operating analysis interface interchange operation of power networks Analysis Service, has been set with basis Information to be analyzed carry out operation of power networks analysis, and return corresponding to call result information to the service call end, including:
    If the service invocation request is asked for Load flow calculation, by Load flow calculation interface interchange Load flow calculation service, with root Load flow calculation is carried out according to the information to be analyzed that has set, and call result information corresponding to returning is to the service call end;
    If the service invocation request, which is result of calculation, obtains request, interface interchange is obtained by result of calculation and obtains trend meter Result service is calculated, to obtain the result of calculation of Load flow calculation, and the result of calculation is back to the service call end;
    If the service invocation request is asked for static security analysis, pass through static security analysis interface interchange static security point Analysis service, to carry out static security analysis according to the information to be analyzed that has set, and call result information corresponding to returning is to institute State service call end;
    If the service invocation request, which is analysis result, obtains request, interface interchange is obtained by analysis result and obtains static peace Complete analysis result of calculation service, to obtain the analysis result of static security analysis, and the analysis result is back to the clothes End is called in business.
  6. 6. according to the power grid application service calling method described in claim any one of 1-5, it is characterised in that described to receive service Before calling the service invocation request that end is sent, in addition to:
    Receive user's logging request that the service call end is sent, and return login result and with user's logging request pair The identification number answered is to the service call end;
    After the service invocation request for receiving service call end and sending, in addition to:
    Calling corresponding to whether having the service invocation request according to judging identification number corresponding to user's logging request Authority;
    If if so, it is information inquiring request then to perform the service invocation request, pass through described information inquiry request pair Application service corresponding to the interface interchange answered is to obtain power information corresponding to described information inquiry request, and by the electric power of acquisition Information is back to the step of service call end, if or perform the service invocation request as analyzing and processing request, Application service corresponding to interface interchange corresponding to request is analyzed and processed to perform corresponding to the analyzing and processing request by described The step of analyzing and processing operation, and returning to call result information to the service call end for calling application service.
  7. 7. power grid application service calling method according to claim 6, it is characterised in that described to receive the service call The user's logging request sent is held, and returns to login result and identification number corresponding with user's logging request to the service After calling end, in addition to:
    The user log off request that the service call end is sent is received, the identification number institute that the user log off of storage is asked is right The account information answered is deleted.
  8. A kind of 8. power grid application service call device, it is characterised in that including:
    Request receiving module, for receiving the service invocation request of service call end transmission;
    Query calls module, for when the service invocation request is information inquiring request, passing through described information inquiry request Application service corresponding to corresponding interface interchange is to obtain power information corresponding to described information inquiry request, and by the electricity of acquisition Force information is back to the service call end;
    Calling module is analyzed, for when the service invocation request is asked for analyzing and processing, being asked by the analyzing and processing Application service corresponding to corresponding interface interchange returns to tune to perform analyzing and processing operation corresponding to the analyzing and processing request With the call result information of application service to the service call end.
  9. 9. a kind of storage medium, is stored with computer program, it is characterised in that when the computer program of storage is executed by processor Realize as any one of claim 1-7 the step of method.
  10. 10. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that realized described in the computing device during computer program as described in claim any one of 1-7 The step of method.
CN201710923089.2A 2017-09-30 2017-09-30 Power grid application service calling method and device, storage medium and computer equipment Active CN107844366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710923089.2A CN107844366B (en) 2017-09-30 2017-09-30 Power grid application service calling method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710923089.2A CN107844366B (en) 2017-09-30 2017-09-30 Power grid application service calling method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN107844366A true CN107844366A (en) 2018-03-27
CN107844366B CN107844366B (en) 2021-02-05

Family

ID=61662243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710923089.2A Active CN107844366B (en) 2017-09-30 2017-09-30 Power grid application service calling method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107844366B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108921304A (en) * 2018-06-08 2018-11-30 北京中电普华信息技术有限公司 A kind of processing method of electric service, system and mobile operation client
CN112732807A (en) * 2020-12-30 2021-04-30 福建卓融信息技术有限公司 Interface calling method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901431A (en) * 2010-07-23 2010-12-01 南京国电南自轨道交通工程有限公司 Full-configuration power scheduling management information system and structuring method thereof
CN103297520A (en) * 2013-05-23 2013-09-11 中国南方电网有限责任公司 Power grid running service system and method for implementing same
CN105069702A (en) * 2015-08-10 2015-11-18 国家电网公司 Power grid integrated information processing method
US20150370795A1 (en) * 2005-12-29 2015-12-24 Amazon Technologies, Inc. Method and apparatus for stress management in a searchable data service
CN105868429A (en) * 2015-01-21 2016-08-17 国家电网公司 Analytic method library system suitable for online digital simulation of active power distribution network
CN106776903A (en) * 2016-11-30 2017-05-31 国网重庆市电力公司电力科学研究院 A kind of big data shared system and method that auxiliary tone is sought suitable for intelligent grid

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370795A1 (en) * 2005-12-29 2015-12-24 Amazon Technologies, Inc. Method and apparatus for stress management in a searchable data service
CN101901431A (en) * 2010-07-23 2010-12-01 南京国电南自轨道交通工程有限公司 Full-configuration power scheduling management information system and structuring method thereof
CN103297520A (en) * 2013-05-23 2013-09-11 中国南方电网有限责任公司 Power grid running service system and method for implementing same
CN105868429A (en) * 2015-01-21 2016-08-17 国家电网公司 Analytic method library system suitable for online digital simulation of active power distribution network
CN105069702A (en) * 2015-08-10 2015-11-18 国家电网公司 Power grid integrated information processing method
CN106776903A (en) * 2016-11-30 2017-05-31 国网重庆市电力公司电力科学研究院 A kind of big data shared system and method that auxiliary tone is sought suitable for intelligent grid

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖笋: "基于SOA架构的海上油田群电网EMS***设计及其实现", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108921304A (en) * 2018-06-08 2018-11-30 北京中电普华信息技术有限公司 A kind of processing method of electric service, system and mobile operation client
CN112732807A (en) * 2020-12-30 2021-04-30 福建卓融信息技术有限公司 Interface calling method and device

Also Published As

Publication number Publication date
CN107844366B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN101926140B (en) Orthogonal frequency division multiple access with carrier sense
CN109446071A (en) Interface test method, interface test device, electronic equipment and storage medium
CN112511218B (en) Satellite ground station monitoring system based on microservice
CN109213842A (en) A kind of intelligent customer service implementation method, device and storage medium
CN109510840A (en) Sharing method, device, computer equipment and the storage medium of unstructured data
US11870934B2 (en) Smart capacity for workload routing
Shaoshuai et al. MODM-based evaluation model of service quality in the Internet of Things
CN110166271A (en) A kind of method and apparatus detecting network node abnormality
CN107844366A (en) Power grid application service calling method, device, storage medium and computer equipment
CN103297520B (en) Operation of power networks service system and implementation method
CN106874371A (en) A kind of data processing method and device
CN109660487A (en) Authorization method, storage medium, electronic equipment and system based on H5 webpage
CN110428836A (en) Internet of things equipment control method, information forwarding device and Internet of Things server
CN105591792B (en) A kind of recommended method and device of service moulding plate
CN105205905B (en) The method, apparatus and system that a kind of business hall is called out the numbers
KR20140013892A (en) Method of comparing output in a plurality of information systems
US10250476B2 (en) Identifying modifications to technical characteristics of a communication channel to alter user perception of communication channel performance
Huang et al. Learning-aided stochastic network optimization with imperfect state prediction
CN110929269A (en) System authority management method, device, medium and electronic equipment
CN114727309A (en) Network optimization method and equipment
CN109189753A (en) A kind of method and device for adding user information in HUE
CN109495217A (en) A kind of artificial intelligence communication data monitoring system and monitoring method
CN107360065A (en) Information-pushing method and device
Guo et al. A trusted web services assessment model based on six dimensional QoS framework and end-to-end monitoring
CN117459583A (en) Bill direct connection method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231102

Address after: 510620, No. two, No. 2, Tianhe South Road, Guangzhou, Guangdong, Tianhe District

Patentee after: Guangzhou Power Supply Bureau of Guangdong Power Grid Co.,Ltd.

Address before: 510620, No. two, No. 2, Tianhe South Road, Guangzhou, Guangdong, Tianhe District

Patentee before: Guangzhou Power Supply Bureau of Guangdong Power Grid Co.,Ltd.

Patentee before: NR ELECTRIC Co.,Ltd.

Effective date of registration: 20231102

Address after: 510620, No. two, No. 2, Tianhe South Road, Guangzhou, Guangdong, Tianhe District

Patentee after: Guangzhou Power Supply Bureau of Guangdong Power Grid Co.,Ltd.

Patentee after: NR ELECTRIC Co.,Ltd.

Address before: 510620, No. two, No. 2, Tianhe South Road, Guangzhou, Guangdong, Tianhe District

Patentee before: GUANGZHOU POWER SUPPLY Co.,Ltd.

Patentee before: NR ELECTRIC Co.,Ltd.