CN108984504A - A kind of model parameter storage method, device and equipment - Google Patents
A kind of model parameter storage method, device and equipment Download PDFInfo
- Publication number
- CN108984504A CN108984504A CN201810763494.7A CN201810763494A CN108984504A CN 108984504 A CN108984504 A CN 108984504A CN 201810763494 A CN201810763494 A CN 201810763494A CN 108984504 A CN108984504 A CN 108984504A
- Authority
- CN
- China
- Prior art keywords
- parameter
- spreading
- value
- model
- definition
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000007480 spreading Effects 0.000 claims abstract description 150
- 241000208340 Araliaceae Species 0.000 claims description 7
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 7
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 7
- 235000008434 ginseng Nutrition 0.000 claims description 7
- 238000007667 floating Methods 0.000 claims description 3
- 235000013399 edible fruits Nutrition 0.000 claims 1
- 230000003044 adaptive effect Effects 0.000 abstract description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004913 activation Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 206010017472 Fumbling Diseases 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001172 regenerating effect Effects 0.000 description 1
- 230000008929 regeneration Effects 0.000 description 1
- 238000011069 regeneration method Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of model parameter storage methods, by storing the underlying parameter of model object to the first parameter list, the spreading parameter of model object is stored in the form of Longitudinal Extension to the second parameter list, the attribute for needing to carry out to arrange the increased model object of extension ability in the first parameter list in script is stored in the second parameter list in the form of row extension, without modifying the structure of the first parameter list and the second parameter list, newly-increased attribute can be stored without newly-built table, simplify the program of model extension, to more convenient model extension, more adaptive model data volume increasing demand, alleviate the operating pressure that model data manages and maintains.The invention also discloses a kind of model parameter storage device and equipment, have above-mentioned beneficial effect.
Description
Technical field
The present invention relates to model management fields, more particularly to a kind of model parameter storage method, device and equipment.
Background technique
A kind of modeling pattern in the prior art is to store model definition and parameter in table form, in the base of table
It is managed and maintained on plinth.For some die bodies, there may be multiple attributes to be stored for model object therein, often
Attribute has its definition and parameter value.With the increase that model stores, the attribute for needing to store also is bound to increase.However table
Lattice after generation, fix by columns, is merely able to carry out Longitudinal Extension in a manner of increasing row, and can not increase column to carry out cross
To extension.This to have increased an attribute in the die body newly corresponding to increase this attribute it is necessary to a newly-built table
Column, and the content of original table is transferred in new table.Increasingly increase now in model data, this storage mode makes
Model data to manage and maintain workload increasingly heavy.
Therefore, how conveniently to increase the storage of attribute newly when the attribute of model parameter increases, and then facilitate the extension of model,
Mitigate the operating pressure that model data manages and maintains, is this field art personnel's technical issues that need to address.
Summary of the invention
The object of the present invention is to provide a kind of model parameter storage method, device and equipment, for the category in model parameter
Property conveniently increase the storage of attribute when increasing newly, and then facilitate the extension of model, mitigate the work pressure that model data manages and maintains
Power.
In order to solve the above technical problems, the present invention provides a kind of model parameter storage method, comprising:
Receive model object;
The underlying parameter value of the model object is stored to the first parameter list;
Judge whether the model object includes spreading parameter undefined in first parameter list;
If it is, being stored the definition of the spreading parameter and parameter value in the form of Longitudinal Extension to the second parameter
Table.
Optionally, second parameter list includes that spreading parameter defines table and spreading parameter value table;
Correspondingly, described store the definition of the spreading parameter and parameter value in the form of Longitudinal Extension to the second parameter
Table specifically includes:
Judge the spreading parameter defines the definition that the spreading parameter whether is stored in table;
If it is, defining the ID value corresponding with the definition of the spreading parameter stored in table according to the spreading parameter
The parameter value of the spreading parameter is stored to the spreading parameter value table;
Increase determining for the spreading parameter in table in the form of Longitudinal Extension if it is not, then defining in the spreading parameter
Justice generates corresponding with definition ID value by preset rules, and according to the ID value of generation by the ginseng of the spreading parameter
Numerical value is stored to the spreading parameter value table.
Optionally, the spreading parameter defines table and specifically includes object type column, parameter coding column, parameter name column, ginseng
Value type column and default value column.
Optionally, the spreading parameter value table specifically includes die body ID column, parameter ID column, integer value column, floating point values
Column, character tandem and time column.
Optionally, further includes:
When receiving inquiry request, the model object in the inquiry request is obtained;
The underlying parameter value of the model object is read in first parameter list;
The definition that the spreading parameter of the model object is read in table is defined in the spreading parameter;
The parameter value of the spreading parameter is read in the spreading parameter value table according to described be defined on;
Return to the underlying parameter value of the reading and the parameter value of spreading parameter.
Optionally, further includes:
When the number of the definition write-in of the spreading parameter within a preset time is greater than preset value, third parameter is created
Table;
Content in first parameter list is copied into the third parameter list, and by second parameter list with institute
It states the corresponding content of definition and the third parameter list is written in the form of arranging extension;
It saves the third parameter list and first parameter list is replaced with the third parameter list.
Optionally, the model object is specially power spot market model object.
In order to solve the above technical problems, the present invention also provides a kind of model parameter storage devices, comprising:
Receiving module, for receiving model object;
First memory module, for storing the underlying parameter value of the model object to the first parameter list;
Judgment module, for judging whether the model object includes extension ginseng undefined in first parameter list
Number;If it is, the second memory module of activation;
Second memory module, for storing the definition of the spreading parameter and parameter value in the form of Longitudinal Extension
To the second parameter list.
Optionally, second parameter list includes that spreading parameter defines table and spreading parameter value table;
Second memory module specifically includes:
Judging submodule, for judging that the spreading parameter defines whether be stored with the definition of the spreading parameter in table;
If it is, activation sub-module stored so that the sub-module stored defined according to the spreading parameter stored in table with it is described
The corresponding ID value that defines of spreading parameter stores the parameter value of the spreading parameter to the spreading parameter value table;If not,
It then activates and defines submodule so that the definition submodule defines the increase in the form of Longitudinal Extension in table in the spreading parameter
The definition of the spreading parameter generates corresponding with definition ID value by preset rules, and make the sub-module stored according to
The ID value generated stores the parameter value of the spreading parameter to the spreading parameter value table.
The definition submodule increases the extension for defining in the spreading parameter in the form of Longitudinal Extension in table
The definition of parameter generates ID value corresponding with the definition, and the definition of the storage spreading parameter by preset rules;
The sub-module stored, for defining the definition with the spreading parameter stored in table according to the spreading parameter
Corresponding ID value stores the parameter value of the spreading parameter to the spreading parameter value table.
In order to solve the above technical problems, the present invention also provides a kind of model parameters to store equipment, comprising:
Memory, for storing instruction, described instruction include the step of model parameter storage method described in above-mentioned any one
Suddenly;
Processor, for executing described instruction.
Model parameter storage method provided by the present invention, by storing the underlying parameter of model object to the first parameter
Table stores the spreading parameter of model object in the form of Longitudinal Extension to the second parameter list, so that needing in script first
The attribute that the increased model object of column extension ability is carried out in parameter list can be deposited in the second parameter list in the form of row extension
Storage can store newly-increased attribute without the structure of the first parameter list of modification and the second parameter list, without newly-built table,
The program of model extension is simplified, so that more convenient model extension, more adaptive model data volume increasing demand, subtract
The operating pressure that light model data manages and maintains.The present invention also provides a kind of model parameter storage device and equipment, have
Above-mentioned beneficial effect.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the first model parameter storage method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of second model parameter storage method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the third model parameter storage method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of model parameter storage device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another model parameter storage device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram that a kind of model parameter provided in an embodiment of the present invention stores equipment.
Specific embodiment
Core of the invention is to provide a kind of model parameter storage method, device and equipment, for the category in model parameter
Property conveniently increase the storage of attribute when increasing newly, and then facilitate the extension of model, mitigate the work pressure that model data manages and maintains
Power.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of the first model parameter storage method provided in an embodiment of the present invention.As shown in Figure 1, model
Parameter storage method includes:
S10: model object is received.
S11: the underlying parameter value of model object is stored to the first parameter list.
S12: whether judgment models object includes spreading parameter undefined in the first parameter list;If it is, entering step
Rapid S13.
S13: the definition of spreading parameter and parameter value are stored in the form of Longitudinal Extension to the second parameter list.
The step S10 to step S13 of the embodiment of the present invention proposes a kind of storage scheme in model parameter storage, phase
Than the mode for regenerating table when the prior art is in the attribute for increasing model object, using the first of a fixed attribute
The mode of second parameter list of parameter list and extended attribute storage, without newly-built table.
For step S11, the first parameter list is basic parameter list, i.e., wherein stores the basic normal of model object
The attribute seen, the core place as model storage.The structure of first parameter list is the horizontal table structure of fixed column, is stored with fixation
Model object attribute, user can according to need setting the first parameter list in attribute.When newly-increased model object, with row
Parameter value of attribute etc. is written in the first parameter list by the definition of attribute included by model object for the form of extension.When need
When wanting the parameter of reading model object, relative application software can also be used and efficiently read by fixed interface, can specifically join
Examine table read-write mode in the prior art.
For step S12 and step S13, definition and parameter value for each extended attribute, equally with row extension
Form be written into the second parameter list.It is often a new attribute in the second parameter list different from the first parameter list
Increase a line, all indicate its definition and parameter value, to make to carry out the increased category of column extension ability in the first parameter list
Property, storage is realized by row extension in the second parameter list.
Model parameter storage method provided in an embodiment of the present invention, by storing the underlying parameter of model object to first
Parameter list stores the spreading parameter of model object in the form of Longitudinal Extension to the second parameter list, so that needing in script
The attribute that the increased model object of column extension ability is carried out in first parameter list can be in the second parameter list with the shape of row extension
Formula storage can store newly-increased without the structure of the first parameter list of modification and the second parameter list, without newly-built table
Attribute simplifies the program of model extension, thus the increasingly increased need of more convenient model extension, more adaptive model data volume
It asks, alleviates the operating pressure that model data manages and maintains.
In a kind of specific implementation, model object can be power spot market model object.The mould of power spot market
Type object includes market member, generating set, load object etc..And in the prior art, power spot market is commonly used solid
Fixed model, when the research of power spot market is also in the stage of fumbling, using difficult based on the modeling technique under mature mechanism
To adapt to the variation requirement of power spot market model structure.Therefore model parameter storage method provided in an embodiment of the present invention exists
Beneficial effect is had more in the modeling process of power spot market.
Fig. 2 is the flow chart of the specific embodiment of second model parameter storage method provided in an embodiment of the present invention.
As shown in Fig. 2, on the basis of the above embodiments, in another embodiment, the second parameter list include spreading parameter define table and
Spreading parameter value table;Correspondingly, step S13 is specifically included:
S20: judge spreading parameter defines the definition that spreading parameter whether is stored in table;If it is, entering step
S21;If it is not, then entering step S22.
S21: ID value corresponding with spreading parameter definition that is storing in table is defined according to spreading parameter by spreading parameter
Parameter value is stored to spreading parameter value table.
S22: defining the definition for increasing spreading parameter in table in the form of Longitudinal Extension in spreading parameter, raw by preset rules
The parameter value of spreading parameter is stored to spreading parameter value table at ID value corresponding with definition, and according to the ID value of generation.
In specific implementation, since the definition of spreading parameter and parameter value are generally all made of multiple fields, if will expand
The definition and parameter value for opening up parameter are stored into the same table, for the spreading parameter of the identical definition of different model objects,
A large amount of duplicate definition will be written.Therefore the definition of spreading parameter is stored into spreading parameter to define in table, regeneration and definition
Corresponding ID value, and the parameter value of spreading parameter is stored into spreading parameter value table according to ID value.Join hence in extension
Number defines definition stored in table, no longer needs to be written, and only corresponding ID value need to be defined according to searching, in spreading parameter value
The ID value and write parameters value are associated in table.
Optionally, spreading parameter, which defines table, can specifically include object type column, parameter coding column, parameter name column, ginseng
Value type column and default value column.I.e. spreading parameter define the row of table may include object type, parameter coding, parameter name,
The fields such as Parameter Value Type and default value.
Optionally, spreading parameter value table can specifically include die body ID column, parameter ID column, integer value column, floating point values
Column, character tandem and time column.That is the row of spreading parameter value table may include die body ID, parameter ID, integer value, floating-point
The fields such as value, character string and time.
When increasing a model object newly, the definition information of the spreading parameter of reading model object is fixed according to spreading parameter
Adopted information generates the parameter maintenance item in corresponding model parameter maintenance interface, and according to Parameter Value Type and default value control ginseng
Number input stores correlation model parameters after completing model maintenance into the first parameter list and spreading parameter value table respectively.
Further, on the basis of model parameter storage method provided in an embodiment of the present invention, can also include:
When receiving inquiry request, the model object in inquiry request is obtained.
The underlying parameter value of reading model object in the first parameter list.
The definition of the spreading parameter of reading model object in table is defined in spreading parameter.
According to the parameter value for being defined on reading spreading parameter in spreading parameter value table.
Return to the parameter value of the underlying parameter value and spreading parameter that read.
It is certain type of flexibly to increase by way of defining the definition for increasing spreading parameter in table in spreading parameter
The property parameters of model object do not modify first parameter list on basis, spreading parameter defines table and spreading parameter definition value table
Structure does not also have an impact related application interface.
And parameter value defines corresponding ID value by it to define the value of its storage column, application program is read according to unified interface
The parameter of the parameter value of model object, interface transmitting includes die body ID, parameter ID, returns to corresponding parameter value.
The definition of spreading parameter and parameter value are stored into two by model parameter storage method provided in an embodiment of the present invention
In table, hence for duplicate definition, without carrying out a large amount of duplicate write-ins, and at the time of reading, it can be joined according to extension
Number defines the definition in table, and corresponding spreading parameter value is retrieved into spreading parameter value table, compared to first reality of the invention
Example is applied, write-in and reading can be more rapidly performed by.
Fig. 3 is the flow chart of the third model parameter storage method provided in an embodiment of the present invention.As shown in figure 3, upper
On the basis of stating embodiment, in another embodiment, model parameter storage method further include:
Model parameter storage method according to claim 1, which is characterized in that further include:
S30: when the number of the definition write-in of institute's spreading parameter within a preset time is greater than preset value, third parameter is created
Table.
S31: being copied into third parameter list for the content in the first parameter list, and by the second parameter list with the definition pair
Third parameter list is written in the content answered in the form of arranging extension.
S32: saving third parameter list and replaces the first parameter list with third parameter list.
In specific implementation, when the write-in number for being defined on preset time of spreading parameter is greater than preset value, it is believed that should
It is defined as newly-increased Common definitions, therefore newly-built third parameter list, is newly-increased definition on the basis of original first parameter list
Increase by a column, and the new of third parameter list is written into content corresponding with newly-increased definition in original second parameter list and is added.
It further, can also include: to delete content corresponding with the definition in the second parameter list.
Model parameter storage method provided in an embodiment of the present invention further includes reaching in the definition write frequency of spreading parameter
When to a certain degree, create third parameter list, set this definition to the definition of underlying parameter, further facilitate it is subsequent storage with
The process of reading.
The corresponding each embodiment of model parameter storage method as detailed above, on this basis, the invention also discloses
Model parameter storage device corresponding with the above method.
Fig. 4 is a kind of structural schematic diagram of model parameter storage device provided in an embodiment of the present invention.As shown in figure 4, mould
Shape parameter storage device includes:
Receiving module 401, for receiving model object;
First memory module 402, for storing the underlying parameter value of model object to the first parameter list;
Whether judgment module 403 includes spreading parameter undefined in the first parameter list for judgment models object;If
It is then to activate the second memory module;
Second memory module 404, for being stored the definition of spreading parameter and parameter value in the form of Longitudinal Extension to
Two parameter lists.
Fig. 5 is the structural schematic diagram of another model parameter storage device provided in an embodiment of the present invention.As shown in figure 5,
On the basis of the above embodiments, in another embodiment, the second parameter list includes that spreading parameter defines table and spreading parameter value
Table;
Second memory module 404 specifically includes:
Judging submodule 501, for judging that spreading parameter defines whether be stored with the definition of spreading parameter in table;If
Be then activate sub-module stored so that sub-module stored defined according to spreading parameter it is being stored in table with spreading parameter definition pair
The ID value answered stores the parameter value of spreading parameter to spreading parameter value table;If it is not, then activation defines submodule so that definition
Submodule defines the definition for increasing spreading parameter in table in the form of Longitudinal Extension in spreading parameter, generates by preset rules and fixed
The corresponding ID value of justice, and store sub-module stored the parameter value of spreading parameter to spreading parameter value according to the ID value of generation
Table.
Submodule 502 is defined, increases determining for spreading parameter in table in the form of Longitudinal Extension for defining in spreading parameter
Justice generates ID value corresponding with definition, and the definition of storage spreading parameter by preset rules;
Sub-module stored 503, for defining ID corresponding with spreading parameter definition that be storing in table according to spreading parameter
Value stores the parameter value of spreading parameter to spreading parameter value table.
Since the embodiment of device part is corresponded to each other with the embodiment of method part, the embodiment of device part is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
Fig. 6 is the structural schematic diagram that a kind of model parameter provided in an embodiment of the present invention stores equipment.As shown in fig. 6, should
Model parameter storage equipment can generate bigger difference because configuration or performance are different, may include at one or more
Device (central processing units, CPU) 610 (for example, one or more processors) and memory 620 is managed,
The storage medium 630 of one or more storage application programs 633 or data 632 (such as deposit by one or more magnanimity
Store up equipment).Wherein, memory 620 and storage medium 630 can be of short duration storage or persistent storage.It is stored in storage medium 630
Program may include one or more modules (diagram does not mark), each module may include to one in computing device
Series of instructions operation.Further, processor 610 can be set to communicate with storage medium 630, set in model parameter storage
The series of instructions operation in storage medium 630 is executed on standby 600.
Model parameter, which stores equipment 600, to include one or more power supplys 640, one or more are wired
Or radio network interface 650, one or more input/output interfaces 660, and/or, one or more operating systems
631, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMEtc..
Step in model parameter storage method described in above-mentioned Fig. 1 to Fig. 3 is based on by model parameter storage equipment should
Structure shown in fig. 6 is realized.
It is apparent to those skilled in the art that for convenience and simplicity of description, the model of foregoing description
Parameter stores the specific work process of equipment and computer readable storage medium, can be with reference to the correspondence in preceding method embodiment
Process, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed method, apparatus, equipment and calculating
Machine readable storage medium storing program for executing, may be implemented in other ways.For example, Installation practice described above is only schematic
, for example, the division of module, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple module or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, device
Or the indirect coupling or communication connection of module, it can be electrical property, mechanical or other forms.Module as illustrated by the separation member
It may or may not be physically separated, the component shown as module may or may not be physics mould
Block, it can it is in one place, or may be distributed on multiple network modules.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
If integrated module is realized and when sold or used as an independent product in the form of software function module, can
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application
Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
A kind of model parameter storage method provided by the present invention, device and equipment are described in detail above.It says
Each embodiment is described in a progressive manner in bright book, and the highlights of each of the examples are the differences with other embodiments
Place, the same or similar parts in each embodiment may refer to each other.For the device disclosed in the embodiment, due to its with
Method disclosed in embodiment is corresponding, so being described relatively simple, reference may be made to the description of the method.It should refer to
It out, for those skilled in the art, without departing from the principle of the present invention, can also be to the present invention
Some improvement and modification can also be carried out, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. a kind of model parameter storage method characterized by comprising
Receive model object;
The underlying parameter value of the model object is stored to the first parameter list;
Judge whether the model object includes spreading parameter undefined in first parameter list;
If it is, being stored the definition of the spreading parameter and parameter value in the form of Longitudinal Extension to the second parameter list.
2. model parameter storage method according to claim 1, which is characterized in that second parameter list includes extension ginseng
Number defines table and spreading parameter value table;
Correspondingly, described store the definition of the spreading parameter and parameter value to the second parameter list in the form of Longitudinal Extension has
Body includes:
Judge the spreading parameter defines the definition that the spreading parameter whether is stored in table;
If it is, defining the ID value corresponding with the definition of the spreading parameter that stores in table according to the spreading parameter for institute
The parameter value for stating spreading parameter is stored to the spreading parameter value table;
If it is not, then defining the definition for increasing the spreading parameter in table in the form of Longitudinal Extension in the spreading parameter, press
Preset rules generate ID value corresponding with the definition, and are deposited the parameter value of the spreading parameter according to the ID value of generation
It stores up to the spreading parameter value table.
3. model parameter storage method according to claim 2, which is characterized in that the spreading parameter defines table and specifically wraps
Include object type column, parameter coding column, parameter name column, Parameter Value Type column and default value column.
4. model parameter storage method according to claim 2, which is characterized in that the spreading parameter value table specifically includes
Die body ID column, parameter ID column, integer value column, floating point values column, character tandem and time column.
5. model parameter storage method according to claim 2, which is characterized in that further include:
When receiving inquiry request, the model object in the inquiry request is obtained;
The underlying parameter value of the model object is read in first parameter list;
The definition that the spreading parameter of the model object is read in table is defined in the spreading parameter;
The parameter value of the spreading parameter is read in the spreading parameter value table according to described be defined on;
Return to the underlying parameter value of the reading and the parameter value of spreading parameter.
6. model parameter storage method according to claim 1, which is characterized in that further include:
When the number of the definition write-in of the spreading parameter within a preset time is greater than preset value, third parameter list is created;
Content in first parameter list is copied into the third parameter list, and by second parameter list with it is described fixed
The third parameter list is written in the corresponding content of justice in the form of arranging extension;
It saves the third parameter list and first parameter list is replaced with the third parameter list.
7. model parameter storage method according to claim 1, which is characterized in that the model object is specially that electric power is existing
Goods market model object.
8. a kind of model parameter storage device characterized by comprising
Receiving module, for receiving model object;
First memory module, for storing the underlying parameter value of the model object to the first parameter list;
Judgment module, for judging whether the model object includes spreading parameter undefined in first parameter list;Such as
Fruit is then to activate the second memory module;
Second memory module, for being stored the definition of the spreading parameter and parameter value in the form of Longitudinal Extension to
Two parameter lists.
9. model parameter storage device according to claim 8, which is characterized in that second parameter list includes extension ginseng
Number defines table and spreading parameter value table;
Second memory module specifically includes:
Judging submodule, for judging that the spreading parameter defines whether be stored with the definition of the spreading parameter in table;If
Be then activate sub-module stored so that the sub-module stored defined according to the spreading parameter it is being stored in table with the extension
The corresponding ID value that defines of parameter stores the parameter value of the spreading parameter to the spreading parameter value table;If it is not, then swashing
It is living to define submodule so that the definition submodule defines in table in the form of Longitudinal Extension described in increase in the spreading parameter
The definition of spreading parameter generates ID value corresponding with the definition by preset rules, and makes the sub-module stored according to generation
The ID value parameter value of the spreading parameter is stored to the spreading parameter value table.
The definition submodule increases the spreading parameter for defining in the spreading parameter in the form of Longitudinal Extension in table
Definition, generate corresponding with definition ID value by preset rules, and store the definition of the spreading parameter;
The sub-module stored, for defined according to the spreading parameter stored in table it is corresponding with the definition of the spreading parameter
ID value the parameter value of the spreading parameter is stored to the spreading parameter value table.
10. a kind of model parameter stores equipment characterized by comprising
Memory, for storing instruction, described instruction include model parameter storage method described in claim 1 to 7 any one
The step of;
Processor, for executing described instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810763494.7A CN108984504A (en) | 2018-07-12 | 2018-07-12 | A kind of model parameter storage method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810763494.7A CN108984504A (en) | 2018-07-12 | 2018-07-12 | A kind of model parameter storage method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108984504A true CN108984504A (en) | 2018-12-11 |
Family
ID=64537741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810763494.7A Pending CN108984504A (en) | 2018-07-12 | 2018-07-12 | A kind of model parameter storage method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984504A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111209652A (en) * | 2019-12-26 | 2020-05-29 | 国电南瑞科技股份有限公司 | Method and device for constructing time sequence of static equipment model of power system |
CN112768320A (en) * | 2020-12-27 | 2021-05-07 | 常熟开关制造有限公司(原常熟开关厂) | Circuit breaker setting parameter rapid transplanting method, mobile terminal and circuit breaker controller |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6574631B1 (en) * | 2000-08-09 | 2003-06-03 | Oracle International Corporation | Methods and systems for runtime optimization and customization of database applications and application entities |
CN101546259A (en) * | 2008-03-28 | 2009-09-30 | 国际商业机器公司 | Object-relation mapping system supporting model extension in runtime, and method thereof |
CN103279899A (en) * | 2013-05-13 | 2013-09-04 | 中国南方电网有限责任公司 | Method and system for expanding electric network operation panoramic model |
CN103577483A (en) * | 2012-08-07 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Data storage method, data storage system, data access method and data access system |
CN103955370A (en) * | 2014-04-28 | 2014-07-30 | 华为软件技术有限公司 | Persistence device and method of domain object model |
-
2018
- 2018-07-12 CN CN201810763494.7A patent/CN108984504A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6574631B1 (en) * | 2000-08-09 | 2003-06-03 | Oracle International Corporation | Methods and systems for runtime optimization and customization of database applications and application entities |
CN101546259A (en) * | 2008-03-28 | 2009-09-30 | 国际商业机器公司 | Object-relation mapping system supporting model extension in runtime, and method thereof |
CN103577483A (en) * | 2012-08-07 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Data storage method, data storage system, data access method and data access system |
CN103279899A (en) * | 2013-05-13 | 2013-09-04 | 中国南方电网有限责任公司 | Method and system for expanding electric network operation panoramic model |
CN103955370A (en) * | 2014-04-28 | 2014-07-30 | 华为软件技术有限公司 | Persistence device and method of domain object model |
Non-Patent Citations (1)
Title |
---|
FLYCASH: "元数据-模型-实例数据库设计的典型范式", 《HTTPS://WWW.JIANSHU.COM/P/74C310B1D89F》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111209652A (en) * | 2019-12-26 | 2020-05-29 | 国电南瑞科技股份有限公司 | Method and device for constructing time sequence of static equipment model of power system |
CN112768320A (en) * | 2020-12-27 | 2021-05-07 | 常熟开关制造有限公司(原常熟开关厂) | Circuit breaker setting parameter rapid transplanting method, mobile terminal and circuit breaker controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109508355A (en) | A kind of data pick-up method, system and terminal device | |
JP5298117B2 (en) | Data merging in distributed computing | |
CN109726174A (en) | Data archiving method, system, equipment and storage medium | |
CN109146081B (en) | Method and device for creating model project in machine learning platform | |
CN106663023B (en) | Virtual machine in cloud application is grouped | |
CA2386272A1 (en) | Collaborative design | |
CN102236672A (en) | Method and device for importing data | |
CN106446019B (en) | A kind of software function treating method and apparatus | |
CN103309650A (en) | Generating method and device of persistence layer codes | |
CN106951254B (en) | Method and device for multiplexing similar service function modules in payment system | |
CN102118281A (en) | Method, device and network equipment for automatic testing | |
CN107992403B (en) | IO performance test method, device, equipment and computer readable storage medium | |
CN110532058B (en) | Management method, device and equipment of container cluster service and readable storage medium | |
CN111949832A (en) | Method and device for analyzing dependency relationship of batch operation | |
CN104317957A (en) | Open platform and system for processing reports and report processing method | |
CN107402926A (en) | A kind of querying method and query facility | |
CN105573774B (en) | Application Parameters management and configuration method | |
CN109753573A (en) | A kind of processing method and processing device based on chart database building preset model | |
CA3148489C (en) | Method of and device for assessing data query time consumption, computer equipment and storage medium | |
CN108984504A (en) | A kind of model parameter storage method, device and equipment | |
CN107102995A (en) | A kind of determination method and device of SQL executive plans | |
CN115578096A (en) | Block chain parallel transaction method, device, equipment and storage medium | |
CN113177021B (en) | Data export method and device for different data sources | |
CN103365923A (en) | Method and device for assessing partition schemes of database | |
CN105607975A (en) | Method, device and system for testing disk arrays |
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 |
Application publication date: 20181211 |
|
RJ01 | Rejection of invention patent application after publication |