CN109241551A - The persistence method of arch dam pouring construction simulation object - Google Patents
The persistence method of arch dam pouring construction simulation object Download PDFInfo
- Publication number
- CN109241551A CN109241551A CN201810758630.3A CN201810758630A CN109241551A CN 109241551 A CN109241551 A CN 109241551A CN 201810758630 A CN201810758630 A CN 201810758630A CN 109241551 A CN109241551 A CN 109241551A
- Authority
- CN
- China
- Prior art keywords
- attribute
- simulation object
- data
- persistence
- simulation
- 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
- 238000004088 simulation Methods 0.000 title claims abstract description 95
- 230000002688 persistence Effects 0.000 title claims abstract description 48
- 238000010276 construction Methods 0.000 title claims abstract description 46
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000011084 recovery Methods 0.000 claims abstract description 10
- 238000013507 mapping Methods 0.000 claims description 24
- 238000003860 storage Methods 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000003780 insertion Methods 0.000 claims description 5
- 230000037431 insertion Effects 0.000 claims description 5
- 241000406668 Loxodonta cyclotis Species 0.000 claims 1
- 230000008569 process Effects 0.000 abstract description 11
- 230000000875 corresponding effect Effects 0.000 description 17
- 238000005516 engineering process Methods 0.000 description 9
- 230000002045 lasting effect Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000005266 casting Methods 0.000 description 2
- 238000005094 computer simulation Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 238000009412 basement excavation Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005183 dynamical system Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000005243 fluidization Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000004540 process dynamic Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000004454 trace mineral analysis Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/08—Construction
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Geometry (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- Architecture (AREA)
- Quality & Reliability (AREA)
- Pure & Applied Mathematics (AREA)
- Educational Administration (AREA)
- Mathematical Optimization (AREA)
- Game Theory and Decision Science (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Structural Engineering (AREA)
- Civil Engineering (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of persistence method of arch dam pouring construction simulation object, and a large amount of object informations involved in simulation process can be saved in database;And Reconstruction Simulation object can be fetched from database.Step includes: step 1. building persistence environment.The export of step 2. simulation object: a simulation object example is selected;According to instance properties data type, all properties data are converted into character string;It generates the SQL statement of object write-in database and submits database, to complete the object instance persistence;Such as all examples of method persistence.The recovery of step 3. simulation object: the contingency table of object is obtained first;Selected one record it is to be restored;It establishes a new simulation object example and selectes an attribute, obtain the attribute-name and data type;Corresponding numerical value is obtained from selected record;Restore attribute data using the numerical value of attribute, type, offset, and then restores all properties of example;As method restores all examples of simulation object.
Description
Technical field
The invention belongs to Construction for Hydroelectric Project, process simulation and computer application fields, and in particular to a kind of arch dam
The persistence method of pouring construction simulation object.
Technical background
Arch dam pours a large amount of system status information involved in simulation process, in terms of program analysis, parameter testing
Demand needs to preserve the data of class object example in memory in simulation process in system, and when needed
Utilize data reconstruction simulation object.The process is known as the persistence of simulation object, and the demand of this persistence is mostly derived from following
Three aspects:
(1) requirement of dynamic is emulated.Arch dam pouring construction system is a dynamical system, and system parameter becomes at any time
Change and changes.Such as: when starting construction, only light crane equipment or a small amount of heavy lift.With work progress depth
Enter, the quantity and ability of lifting equipment gradually increase.These variations are generally closed with certain nodes in construction speed or system
Connection.Therefore, it is necessary to the parametric environmentals that analogue system is capable of handling dynamic change.And dynamic model parameter, then need to emulate be
System provides certain interface method dynamic processing analogue system attribute, and wherein one of solution is to utilize persistence technology.
(2) requirement of relaying emulation.For hydraulic and hydroelectric engineering analogue system, since engineering construction is difficult fully according to applying
Work plan carries out, and " a plan may not be able to keep up with changes " is the FAQs of work progress management, and the demand for relaying emulation is come into being.Institute
Meaning " relaying emulation " is exactly system in simulation process, and user can require to interrupt perhaps pause modification or setting system at any time
It is continued to run after system service condition or generic attribute.The function needs analogue system that there is one kind can submit the emulation in memory
Class object example to persistent storage medium method, then to load.Meanwhile this lasting medium provide one kind can be by
The method that user's access, modification, additions and deletions emulate class object, so that user can reach modification emulation system by modifying lasting medium
The purpose of object in system.
(3) distributed emulation requirement.The calculation amount of large artificial system is very huge, and Distributed Parallel Computing is to shorten meter
A kind of effective means of evaluation time.But the distribution of calculating task and the transmitting of calculating parameter are difficult to simple system message
Transmitting solves.And in the occasion for carrying out parallel artificial, it is more complicated also dangerous that data are transmitted using the mode of shared drive.Cause
This, it is necessary to the transmission mode of analogue system calculating parameter, the i.e. persistence or fluidization aids of analogue system class object are provided, formed
The data packet of analogue system state, by calculating parameter from being distributed to calculate node.Emulating class persistence is offline shared data
Important means.
China starts the appliance computer emulation technology in hydroelectric project concrete construction in the early 1980s.
It is set by the scientific research institution of representative and East China Investigation and Design Institute, Chengdu exploration of Wuhan University, University Of Tianjin and Sichuan University
The meter major designs unit such as research institute and Kunming survey and design research institute is cooperated, in each large-scale arch dam construction, using meter
Calculation machine emulation technology carries out dynamic analog to arch dam construction overall process, and has pushed new technology such as random rotation network, fuzzy net
The application in simulations such as network, petri net, VR technology, achieves great successes.
So far, Computer Simulation has been applied to many aspects in hydraulic and hydroelectric engineering.Wuhan University is to voe
The concreting of arch dam and dam abutment, dam foundation excavation are emulated, and obtained each pour pours sequence, have obtained difference
The system schemas decision index systems such as placing intensity, cable machine utilization rate under scheme.University Of Tianjin proposes high arch dam construction overall process
Dynamic simulation model building theory and method, high arch dam construction process and temperature stress coupling Simulation analysis theories and high arch dam construction
Intelligent simulation and multi-scheme optimisation technique theories and methods and technology, have pushed the fast development of Construction simulation technology, then will
Stochastic queue theory is introduced into concrete dam pouring sequential optimization, is established and is considered running space collision problem between cable machine and examine
The concrete arch dams for considering cable machine productivity Utilizing question pour simplation visualizing system.Chengdu surveying and designing institute passes through to small stream Lip river
It crosses Dam and carries out concrete construction and computer simulation, for different cable machines arrangement, the dam concrete side of pouring
Case proposes the computer emulation method of dam concrete placement, combines digital dam comprehensive followed by Construction simulation technology
The field data that information platform provides carries out trace analysis to construction speed, quickly preferably mentions with progress monitoring for arrangement and method for construction
For decision.
To sum up, the less consideration system dynamic of the Construction simulation system constructed at present, the need for relaying emulation, distributed emulation
It asks, needs to meet the demand using persistence technology building analogue system.
Summary of the invention
The present invention is to carry out to solve the above-mentioned problems, and it is an object of the present invention to provide a kind of arch dam pouring construction simulation object
Persistence method (as shown in Figure 1), realize the access of simulation object.
The content of present invention includes three major parts: 1, it is consistent to establish data structure for ORM persistence environment construction
Database table and simulation object environment;2, simulation object instance data exports, i.e., the simulation object in memory is saved in data
In the table of library;3, simulation object example is from database recovery, by the emulation in the simulation object information reconstruction memory in database table
Object.The following detailed description of the content of this programme:
ORM persistence environment construction (step 1)
ORM persistence environment construction of the invention, needs to establish two-part software and its mapping relations, the two softwares
It is: arch dam pouring construction simulation software and data base management system.Wherein data base management system does not require particularly, as long as
Support the data base management system of SQL standard, present invention relates solely to the contents of parameter table structure.Persistence environment is intended to build
The mapping relations of vertical arch dam pouring construction simulation object and data base table recording, as shown in Figure 2.
Arch dam pouring construction simulation object
Construction system is analyzed with object oriented analysis method, works out Construction simulation software.Foundation can persistence base class
CInstClass derives each simulation object by base class.The structure of simulation object CBlocks is as shown in table 1 below, including a series of
Attribute and method, persistence only need processing attribute.Explanation can be in the invention of lasting classification object by taking CBlocks as an example below
Hold.
1 simulation object CBlocks structure table of table
As it can be seen that can lasting classification using attribute TableName save corresponding database table name, belonged to using Items
Property be directed toward an array of pointers, save relevant to such simulation object instance data, the data in Items are to need persistently
Change the data of processing.In order to realize the quick access of object instance attribute, an attribute mapping array is specially established
FldTlts, structure are as shown in table 2 below.
The structure table of 2 attribute of table mapping array FldTlts
The optional parameters of DtTp is as shown in table 3 below in table 2.The offset of Offset storage location, needs according to category in table 2
Property the relative position that stores in memory of data determine.The built-in data type storage of system can be used in high-level language
Width Function obtains attribute occupy-place width, then adds up and obtain.
The accessible attribute data type table of table 3
Data base table recording
In order to which the simulation object in memory to be saved in database table, the persistence of simulation object is realized.It needs to establish
Database table structure corresponding with class object attribute.The corresponding field of each object properties, the data type of object properties with
Field data types are corresponding.Database table structure is described as follows shown in table 4.
Table 4 can the corresponding database table structure of persistence object illustrate table
The mapping relations of example and record
In order to keep the consistency (data class of the storage of storage and class object in database table of class object in memory
The improper conversion of type can bring information to lose).It needs to establish the field variable of the attribute variable of memory storage and database table
Mapping relations, and keep the consistency of the two data structure.Mapping relations between simulation object attribute and database table structure
Be stored in can lasting classification attribute mapping array FldTlts in, mapping relations structure is as shown in table 5.
Mapping table between 5 simulation object attribute of table and database table structure
Export (the step 2) of simulation object
If certain simulation object O has n example to be denoted as O1,…,On, each example Oi(i=1 ..., n) it include m attribute note
For Oi1,…,Oim, each attribute Oij(j=1 ..., m) there is its attribute item description information Pj(it is stored in aforementioned attributes array
In FldTlts), the structure T with database table TjIt is corresponding.In order to by the example O of the simulation object in memoryiAll export need
The step of wanting is as shown in Figure 3.
Step 2-1. selectes an object instance.In above-mentioned n example, example O is selectedi(i=1 ..., n).
Step 2-2. selectes an attribute of the object instance.For selected example Oi, select an attribute Oij(j=
1,…,m)。
Step 2-3. is according to the data type conversion data format of attribute.Based on aforementioned persistence information environment, according to Oij
Obtain its corresponding attribute data type information Pj.Obtain PjIn include " DtTp " indicate the data type of the attribute.It is available
The data type of acquirement, by OijIt is converted to correct character string type and format is stand-by.
All properties data are converted to character string by step 2-4..For example OiAll properties Oij, with step 2-2
~step 2-3, can be by example OiAll properties be converted into character string type.
Step 2-5. is generated the SQL statement of object write-in database.It is using the template of SQL insertion sentence, front is raw
At each attribute data character string combinations at insertion table T SQL statement.
Step 2-6. completes the object instance persistence.Above-mentioned SQL statement is submitted into data base management system, it can be complete
At example OiPersistence operation.For example OiObject ID (ID) the case where being had existed in table T, first will need
It is deleted, the insertion sentence of step of reruning 1-5.
All object instances of step 2-7. persistence.For all Oi, i=1 ..., n, execute above-mentioned steps 2-1~
All examples of simulation object O can be all saved in database table T, complete leading for all object instances by step 2-6
Out.
Recovery (the step 3) of simulation object
It is corresponding with database table T if certain simulation object O, it now needs simulation object example from restoring in database table T
Come.If database table T has n item to record T1,…,Tn, the example of corresponding n simulation object is denoted as O1,…,On;Every record includes
M field T1,…,TmM attribute O of corresponding objects example1,…,Om;Tj(j=1 ..., m) and OjThe mapping of (j=1 ..., m)
Relationship is determined by the mapping relations R of example and record.In order to by simulation object example Oi, i=1 ..., n from database table T from
The step of recovering, needing is as shown in Figure 4.
Step 3-8. obtains its contingency table according to simulation object.There are many simulation objects in analogue system, for specific
Simulation object obtains the corresponding relationship of the object and database table according to its persistence mapping relations.
Step 3-9. selectes a record of contingency table.Specific record is navigated in database table.For according to right
The case where restoring particular instance as ID, navigates to specific record using ID;And the case where for restoring all examples, it can be first
Navigate to the 1st article of record.
Step 3-10. establishes a new example of simulation object.Object instance to be restored is established, is that its storage allocation is empty
Between.
Step 3-11. selectes an attribute of new example.In new object instance, an attribute is selected as to be restored
Attribute.
Step 3-12. obtains the attribute-name and data type of the attribute.According to object factory information, the name of the attribute is obtained
Title and data type information.
Step 3-13. obtains current property value from current record.It location field and is taken in database table according to attribute-name
Value.
Step 3-14. restores attribute data using numerical value, type, offset.Navigate to the emulation pair first in memory
As the IP address of example, the IP address of the attribute is navigated to using offset, and attribute type is recycled to determine the attribute
Memory in determining address range is replaced with attribute value by data width, complete to instant example, current property value it is extensive
It is multiple.
Step 3-15. restores all properties of associated instance from current record.For each attribute, repeat the above steps 3-
4~step 3-7 can complete all properties whole assignment of the example.
Step 3-16. restores all examples of simulation object from contingency table.The data-base recording that restores is needed for each,
Repeat the above steps 3-2~step 3-8, can all recover all examples of the object from corresponding database table
Come.
The action and effect of invention
The persistence method of arch dam pouring construction simulation object provided by the present invention can will be in internal storage data and database
Data structure establish mapping relations, and then what be can be convenient is separately stored to the simulation object example in memory in memory or exports
To database table, convenient for data analysis and data sharing;It, can be by example from database when needing to reload system mode
Middle taking-up restores, to realize the dynamic adjustment of simulation parameter;Further calculated using what class object persistence can be convenient
Distribute calculating parameter between process.This method is applied in arch dam casting process analogue system and achieves good effect.
Detailed description of the invention
Fig. 1 is the flow chart of arch dam pouring construction simulation object persistence method of the present invention;
Fig. 2 is poured for arch dam in step 1 in the persistence method of arch dam pouring construction simulation object of the present invention and is applied
Work simulation object persistence mapping relations figure;
Fig. 3 is the flow chart of step 2 in the persistence method of arch dam pouring construction simulation object of the present invention;
Fig. 4 is the flow chart of step 3 in the persistence method of arch dam pouring construction simulation object of the present invention;
Fig. 5 is the internal storage data hum pattern of Items [289] involved in the embodiment of the present invention;
Fig. 6 is that the internal storage data of Items [289] involved in the embodiment of the present invention exports as data base table recording information
Figure;
Fig. 7 is that the internal storage data of Blks.Items involved in the embodiment of the present invention exports as data base table recording (part)
Hum pattern;
Fig. 8 actually pours progress (part) hum pattern for dam involved in the embodiment of the present invention;
Fig. 9 is memory information (part) hum pattern of the Blks.Items [0] after recovery involved in the embodiment of the present invention.
Specific embodiment
Specific implementation below in conjunction with attached drawing to the persistence method of arch dam pouring construction simulation object of the present invention
Scheme is described in detail.
<embodiment>
Persistence environment explanation
Below by taking the CBlocks class in 2000 data base management system of SQL Server as an example, illustrate arch dam pouring construction
The persistence processing step of simulation object example.
Step 1.ORM persistence environment construction
Database table corresponding with CBlocks class is " pour " table.In analogue system execution, instantiate first
CBlocks class is Blks (only having an example in commission), and the Items attribute in Blks class saves the reality of simulation object
Example;FldTlts saves the mapping relations of instance properties and database table, as shown in above-mentioned 6 left side of table;" pour " table is corresponding
Structure as shown on the right side of the following table 6.
The part attribute and its mapping parameters table of 6 CBlocks.Items of table
The export of step 2.CBlocks object instance data
Below by taking the CBlocks class in the emulation of arch dam pouring construction as an example, illustrate simulation object example without loss of generality
Derived process.It is the example Blks of CBlocks class as used in simulation calculation, so following expression uses
Blks。
In simulated program operational process, the data of Blks are constantly changing, to reflect pouring in arch dam casting process
Build storehouse real time information.After issuing and being ordered derived from Blks object instance, it then follows the contents of the present invention, it can will be right through following steps
As example exports.
Step 2-1. selectes a simulation object example.The reality of this example selection Blks.Items [289] i.e. No. 289 pours
Example is export example operation.Partial data in Blks.Items [289] is as shown in Figure 5.
Step 2-2. selectes an attribute of the object instance.Blks.Items [289] include a series of attribute (see
Fig. 6), the attribute list saved according to FldTlts, first selection attribute ObjID.
Step 2-3. is according to the data type conversion data format of attribute.The attribute data map information that Blks class saves is shown in
Above-mentioned table 6.Therefrom inquiry is it is found that the data type of attribute ObjID is Integer.According to the data type conversion attribute of attribute
Data 295011009 are character string type ' 295011009 '.
All properties data are converted to character string by step 2-4..For all properties of [289] example Blks.Items:
ObjID, SaveTime, Modified, FldID, StrmID, BotZ, TgtZ can be by realities with step 2-2~step 2-3
The all properties of example CBlocks.Items [289] are converted into character string type.
Note that due to the InCell parameter of Modified be it is no, do not need save in the database, therefore, above-mentioned steps
2-2~step 2-3 can skip Modified attribute.
Step 2-5. is generated the SQL statement of object write-in database.The mapping relations established using above-mentioned table 6, need to
The object instance data information that database is written forms SQL statement with corresponding field name:
Insert Into pour (object number, holding time, monolith, storehouse number, Bottom Altitude, cope level)
Values(295011009,N'1899-12-30 00:00:00',11,0,604.0,607.0)
Before sentence is submitted to data base management system, if the object has existed (by object number field
Judgement), then it is first deleted, rerun above-mentioned insertion sentence.
The export of the step 2-6. example is completed.Above-mentioned SQL statement is submitted into data base management system, example is completed and leads
Out.
All object instances of step 2-7. persistence.For all Blks.Items, above-mentioned steps 2-1~step is executed
All examples of simulation object Blks.Items can be all saved in database table " pour " by 2-6, and it is all right to complete
As the export of example.Pour table is as shown in Figure 7 after the completion.
The recovery of step 3.CBlocks object instance
For simulation object data derived before the recovery from database, or in order to load modified simulation object
Instance parameter is required from the simulation object restored in Blks.
If certain moment dam actually pours progress typing pour table (as shown in Figure 8), need according to reality into
Degree rebuilds the simulation object example of Blks.
Step 3-1. obtains its contingency table according to simulation object.Blks.TableName attribute is read, is obtained associated
Database table is " pour ".
Step 3-2. selectes a record of contingency table.It includes 221 storehouse concretings that progress is actually poured in this example
Block.By the way of order recovery, first record selected first.Corresponding information is as shown in table 7 below.
The 1st storehouse Massive Concrete Blocks record sheet of table 7
Step 3-3. establishes a new example of simulation object.The AddNewItem method of Blks.Items object is called,
New Item example is established, and is its storage allocation space.Due to being first example, it is Blks.Items [0].
Step 3-4. selectes an attribute of new example.In Blks.Items [0] example, the conduct of ObjID attribute is selected
Attribute to be restored, i.e. Blks.Items [0] .ObjID.
Step 3-5. obtains the attribute-name and data type of the attribute.According to Blks.FldTlts mapping association information, take
Obtaining the corresponding Property Name of ObjID is " object number ", data type int, offset 0.
Step 3-6. obtains current property value from current record.It location field and is obtained in database table according to attribute-name
Data obtain the numerical value of current attribute using FieldByName (' object number ') the .AsInteger method of ADO
295020001。
Step 3-7. restores attribute data using numerical value, type, offset.It obtains first in memory real to simulation object
The IP address $ 5F4E6D0 of example Blks.Items [0] navigates to rising for attribute Blks.Items [0] .ObjID using offset
Dot address $ 5F4E6D0 recycles attribute type Int to determine the data width 4 of the attribute, determines that the address range of the attribute is $
5F4E6D0~$ 5F4E6D4, finally by 295020001 be written the address range, complete to instant example, current property value it is extensive
It is multiple.
Step 3-8. restores the example and all properties from current record.For the attribute of [0] each Blks.Items, weight
Multiple above-mentioned steps 3-4~step 3-7, can memory information such as Fig. 9 institute by all properties full recovery of the example, after recovery
Show.
Step 3-9. restores all examples of simulation object from contingency table.The example restored is needed for each, in repetition
Step 3-2~step 3-8 is stated, all examples of the object can all be recovered from database table.
Above embodiments are only the illustration done to technical solution of the present invention.Arch dam according to the present invention pours
The persistence method of Construction simulation object is not merely defined in described content in the embodiment above, but is wanted with right
It asks subject to limited range.Any modification or benefit that those skilled in the art of the invention are made on the basis of the embodiment
It fills or equivalence replacement, all in claim range claimed of the invention.
Claims (4)
1. a kind of persistence method of arch dam pouring construction simulation object, which comprises the following steps:
Step 1. persistence environment construction:
Establish the mapping relations of arch dam pouring construction simulation software and data base management system, comprising: simulation object and database
The mapping relations and simulation object attribute and database literary name of the mapping relations of table, simulation object example and data base table recording
The corresponding relationship of section;
The export of step 2. simulation object:
Step 2-1. selectes an object instance;
Step 2-2. selectes an attribute of the object instance;
Step 2-3. is according to the data type conversion data format of attribute;
All properties data are converted to character string according to step 2-2 and step 2-3 by step 2-4.;
Step 2-5. is generated the SQL statement of object write-in database;
Step 2-6. completes the object instance persistence;
Step 2-7. is according to step 2-1 to all object instances of step 2-6 persistence;
The recovery of step 3. simulation object:
Step 3-1. obtains its contingency table according to simulation object;
Step 3-2. selectes a record of contingency table;
Step 3-3. establishes a new example of simulation object;
Step 3-4. selectes an attribute of new example;
Step 3-5. obtains the attribute-name and data type of the attribute;
Step 3-6. obtains current property value from current record;
Step 3-7. restores attribute data using numerical value, type, offset;
Step 3-8. restores all properties of associated instance according to step 3-4 to step 3-7 from current record;
Step 3-9. restores all examples of simulation object according to step 3-2 to step 3-8 from contingency table.
2. the persistence method of arch dam pouring construction simulation object according to claim 1, it is characterised in that:
Wherein, in step 1, be to save corresponding database table name using attribute, using special array of pointers, save and such
Relevant simulation object instance data maps corresponding relationship using attribute mapping storage of array.
3. the persistence method of arch dam pouring construction simulation object according to claim 1, it is characterised in that:
Wherein, in step 2-3, it is based on persistence information environment, its corresponding attribute data class is obtained according to selected attribute
Attribute data type information is converted to correct character string type and format by type information;
In step 2-4, for selected example, using step 2-2 and step 2-3, all properties of example are converted into word
Accord with string type;
In step 2-5, using the template of SQL insertion sentence, the character string combinations for each attribute data that front is generated are at slotting
Enter the SQL statement of correspondence database table;
In step 2-6, SQL statement is submitted into data base management system, i.e. completion example OiPersistence operation;For reality
The case where object ID of example has existed in database table, needs first to be deleted, the parenthesis of step of reruning 2-5
Sentence;
In step 2-7, for all examples, step 2-1 to step 2-6, Column Row are executed, simulation object is led in completion
Out.
4. the persistence method of arch dam pouring construction simulation object according to claim 1, it is characterised in that:
Wherein, in step 3-1, the object and data are obtained according to its persistence mapping relations for specific simulation object
The corresponding relationship of library table;
In step 3-2, specific record is navigated in database table: the feelings for restoring particular instance according to object ID
Condition navigates to specific record using ID;And the case where for restoring all examples, the 1st article of record can be navigated to first;
In step 3-7, navigates to the IP address of the simulation object example first in memory, utilize offset and data class
Type carries out unified variable positioning, and carries out assignment;
In step 3-8, for each attribute, step 3-4 to step 3-7, Row Column, by all properties of the example are repeated
Whole assignment are completed;
In step 3-9, the data-base recording that restores is needed for each, and the 3-2 that repeats the above steps~step 3-8 is right by this
All examples of elephant are all recovered from corresponding database table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810758630.3A CN109241551A (en) | 2018-07-11 | 2018-07-11 | The persistence method of arch dam pouring construction simulation object |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810758630.3A CN109241551A (en) | 2018-07-11 | 2018-07-11 | The persistence method of arch dam pouring construction simulation object |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109241551A true CN109241551A (en) | 2019-01-18 |
Family
ID=65072422
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810758630.3A Pending CN109241551A (en) | 2018-07-11 | 2018-07-11 | The persistence method of arch dam pouring construction simulation object |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109241551A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110284465A (en) * | 2019-06-28 | 2019-09-27 | 中国电建集团成都勘测设计研究院有限公司 | Arch dam pour construction control method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001015054A1 (en) * | 1999-08-25 | 2001-03-01 | Bullant Technology Pty Ltd | Computing system and programming environment therefor |
CN101339559A (en) * | 2008-07-18 | 2009-01-07 | 北京航空航天大学 | Long lasting implementing method for data |
CN102054034A (en) * | 2010-12-27 | 2011-05-11 | 华中科技大学 | Implementation method for business basic data persistence of enterprise information system |
CN107247822A (en) * | 2017-05-10 | 2017-10-13 | 南京戎光软件科技有限公司 | One kind makes the light-weighted method of BIM models |
-
2018
- 2018-07-11 CN CN201810758630.3A patent/CN109241551A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001015054A1 (en) * | 1999-08-25 | 2001-03-01 | Bullant Technology Pty Ltd | Computing system and programming environment therefor |
CN101339559A (en) * | 2008-07-18 | 2009-01-07 | 北京航空航天大学 | Long lasting implementing method for data |
CN102054034A (en) * | 2010-12-27 | 2011-05-11 | 华中科技大学 | Implementation method for business basic data persistence of enterprise information system |
CN107247822A (en) * | 2017-05-10 | 2017-10-13 | 南京戎光软件科技有限公司 | One kind makes the light-weighted method of BIM models |
Non-Patent Citations (2)
Title |
---|
钟登华等: "面向对象的高拱坝施工全过程动态仿真", 《天津大学学报》 * |
韩家琪: "基于三维实体模型的拱坝浇筑仿真研究", 《低温建筑技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110284465A (en) * | 2019-06-28 | 2019-09-27 | 中国电建集团成都勘测设计研究院有限公司 | Arch dam pour construction control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Fritzson et al. | The OpenModelica integrated environment for modeling, simulation, and model-based development | |
US8046207B2 (en) | Digital effects analysis in modeling environments | |
JP2008521138A (en) | Method for analysis of control systems | |
EP1560087A2 (en) | Method and apparatus for translation of process models to facilitate usage by plural simulation applications | |
CN111159951B (en) | Coupling method based on ABAQUS finite element and boundary element | |
CN109858161A (en) | A kind of Abaqus Meshing Method based on Midas modeling and Matlab conversion | |
CN108763741A (en) | A kind of hydraulic hose fluid structurecoupling Numerical Predicting Method | |
CN106951593B (en) | Method and device for generating configuration file of protection measurement and control device | |
CN103389964B (en) | Apparatus and method for solving mathematical programming problem | |
Wang et al. | An Improved Grey Prediction Model Based on Matrix Representations of the Optimized Initial Value. | |
CN109241551A (en) | The persistence method of arch dam pouring construction simulation object | |
CN107291933B (en) | Petri network-based soft PLC system data synchronization method | |
CN114281509A (en) | Spacecraft multi-user collaborative task planning system based on scene description | |
GB2343533A (en) | Fluid analyzer has grid dimension generation section | |
Widl et al. | Novel simulation concepts for buildings and community energy systems based on the Functional Mock-up Interface specification | |
CN115375867B (en) | Method, system, equipment and medium for calculating geothermal resource quantity by using grid model | |
CN115293069B (en) | System for intelligent optimization of simulation control parameters of aircraft external flow field | |
CN102542103A (en) | Simulation comprehensive integration system capable of supporting multiple tasks on basis of WEB | |
CN116561393B (en) | Ten thousand yuan GDP water consumption visualization system and method based on water consumption factors | |
Polter et al. | A cyber physical system for dynamic production adaptation | |
Haimes | Concurrent distributed visualization and solution steering | |
Haimes et al. | A Tractable Approach to understanding the results from large-scale 3D transient simulations | |
Zhongru et al. | Parallel Finite Element Algorithm Based on PVM and its Implementation in Geotechnical Engineering Software | |
CN117111899A (en) | Industrial simulation software based on PloughCAE and application thereof in development of aeroengine | |
CN102331748B (en) | Intelligent active inhibiting system for dynamic and static deformation of bed body |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190118 |