CN106294720A - Animal pedigree generates method and device - Google Patents
Animal pedigree generates method and device Download PDFInfo
- Publication number
- CN106294720A CN106294720A CN201610646163.6A CN201610646163A CN106294720A CN 106294720 A CN106294720 A CN 106294720A CN 201610646163 A CN201610646163 A CN 201610646163A CN 106294720 A CN106294720 A CN 106294720A
- Authority
- CN
- China
- Prior art keywords
- animal
- pedigree
- display
- generated
- copulation
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Abstract
The invention provides a kind of animal pedigree and generate method and device, wherein, the method includes: the animal pedigree being obtained user's input by browser generates request, described animal pedigree generates request and includes animal identification and the pedigree type of described animal pedigree to be generated that animal pedigree to be generated is corresponding, and described pedigree type includes animal individual unique display and copulation relation unique display;Each animal that described animal pedigree to be generated comprises is determined according to described animal identification, and the copulation relation between each animal described and paternity;Each animal comprised according to described pedigree type, described animal pedigree to be generated, and the animal pedigree that the copulation relation between each animal described is corresponding with the generation request of described animal pedigree with the paternity described browser display of control.The present invention is by browser and server cooperating so that user checks animal pedigree by browser, easy to use, and motility is high.
Description
Technical field
The present invention relates to technical field of animal husbandry, generate method and device in particular to a kind of animal pedigree.
Background technology
Pedigree refers to that recording a certain family each number of members, kinship and relevant hereditary character or heredopathia from generation to generation exists
The diagram of distribution situation in this family.In animals and plants thremmatology, pedigree refers to be bred the offspring of gained by common ancestor.Pass through
Pedigree open-and-shut can find out the parental source of a certain individuality, is producing and can arrange near in life according to actual needs
Hand over or outbreeding, thus carry out scientific research and review the source etc. of meat.Such as during Animal Genetics, by checking
The pedigree of animal, selects specific trait individuality to cultivate, optimizing animal kind.
Existing animal pedigree generate method based on C/S model, i.e. Client (client)/Server (server) mould
Formula.Generating method by existing pedigree, to generate the detailed process of pedigree of a certain animal as follows: terminal unit (as computer,
Panel computer etc.) in install be specifically designed to the specific software checking animal pedigree, this terminal unit is received by this specific software
The pedigree that user sends generates request, and the generation request of this pedigree is reported to server, and server reports according to terminal unit
Pedigree generates request and retrieves in data base, generates and generates, with this pedigree, the pedigree that request is corresponding, under the pedigree that will obtain
Sending in terminal unit, terminal unit shows the pedigree received.
Need to install to be specifically designed in terminal unit to check animal pedigree owing to existing animal pedigree generates method
Specific software, rely on this specific software generate animal pedigree, the most existing animal pedigree generate method in-convenience in use, do not prop up
Hold and generate and check animal pedigree, very flexible whenever and wherever possible.
Summary of the invention
In view of this, it is an object of the invention to provide a kind of animal pedigree and generate method and device, it is possible to whenever and wherever possible
Generating and check animal pedigree, motility is high.
For solving the problems referred to above, first aspect, embodiments provide a kind of animal pedigree and generate method, described side
Method includes: the animal pedigree being obtained user's input by browser generates request, and described animal pedigree generates request and includes to be generated
Animal identification corresponding to animal pedigree become and the pedigree type of described animal pedigree to be generated, described pedigree type includes
Animal individual unique display and copulation relation unique display;Described animal pedigree bag to be generated is determined according to described animal identification
Copulation relation between each animal contained, and each animal described and paternity;According to described pedigree type, described in treat
Each animal that the animal pedigree generated comprises, and copulation relation and the paternity control between each animal described is described
Browser display generates, with described animal pedigree, the animal pedigree that request is corresponding.
In conjunction with first aspect, embodiments provide the first possible embodiment of first aspect, wherein, according to
Described animal identification determines each animal that described animal pedigree to be generated comprises, and the copulation between each animal described
Relation and paternity, including: making a look up according to described animal identification, obtain that described animal pedigree to be generated comprises is each
Paternity between individual animal, and each animal described;Phase will be had according to the paternity between each animal described
It is set to copulation relation with two animals of offspring.
In conjunction with first aspect, embodiments provide the embodiment that first aspect the second is possible, wherein, according to
Each animal that described pedigree type, described animal pedigree to be generated comprise, and the copulation pass between each animal described
It is to control described browser display with paternity to generate, with described animal pedigree, the animal pedigree that request is corresponding, including: work as institute
State pedigree type when being animal individual unique display, the display time of each animal that described animal pedigree to be generated comprises is set
Number is 1;When described pedigree type is copulation relation unique display, it is judged that currently moving in described animal pedigree to be generated
Whether thing exists filial generation, and when described current animal does not exists filial generation, the display number of times arranging described current animal is 1, works as institute
State current animal dis when filial generation, the display number of times of the filial generation that display number of times is described current animal of described current animal is set
Sum;According to the display copulation relation between number of times, each animal of each animal in described animal pedigree to be generated and parent
Subrelation controls described browser display and generates, with described animal pedigree, the animal pedigree that request is corresponding.
In conjunction with the embodiment that first aspect the second is possible, the third may to embodiments provide first aspect
Embodiment, wherein, according to the display friendship between number of times, each animal of each animal in described animal pedigree to be generated
Relation of joining controls described browser display with paternity and generates, with described animal pedigree, the animal pedigree that request is corresponding, including:
Control described browser and arrange corresponding with each animal according to the display number of times of each animal in described animal pedigree to be generated
The quantity of node;Control described browser according to copulation relation between each animal in described animal pedigree to be generated and
Each node is attached by paternity, obtains generating, with described animal pedigree, the animal pedigree that request is corresponding.
In conjunction with the third possible embodiment of first aspect, embodiments providing first aspect the 4th kind may
Embodiment, wherein, described method also includes: generate animal pedigree miscellaneous function interface, described animal pedigree miscellaneous function
It is one or more that interface includes with in lower interface: site position change interface, individual data items display interface, pedigree translation connect
Mouthful, pedigree bursts forth interface and animal pedigree saving interface;Monitor described animal pedigree miscellaneous function interface;Hold according to snoop results
The operation that row is corresponding with described animal pedigree miscellaneous function interface.
In conjunction with the embodiment that first aspect is above-mentioned, embodiments provide the 5th kind of possible enforcement of first aspect
Mode, wherein, described method also includes: obtain the link of the animal pedigree of described browser display;The described link that will obtain
It is converted into the Quick Response Code of correspondence.
Second aspect, embodiments provides a kind of animal pedigree generating means, and described device includes: acquisition request
Module, generates request for being obtained the animal pedigree of user's input by browser, and described animal pedigree generates request and includes treating
Animal identification corresponding to animal pedigree generated and the pedigree type of described animal pedigree to be generated, described pedigree type bag
Include animal individual unique display and copulation relation unique display;Determine module, treat described in determining according to described animal identification
Each animal that comprises of animal pedigree generated, and the copulation relation between each animal described and paternity;Control mould
Block, for each animal of comprising according to described pedigree type, described animal pedigree to be generated, and each animal described it
Between copulation relation and paternity control described browser display and generate with described animal pedigree and ask corresponding animal pedigree.
In conjunction with second aspect, embodiments provide the first possible embodiment of second aspect, wherein, described
Determine that module includes: parent-offspring searches unit, for making a look up according to described animal identification, obtain described animal system to be generated
Each animal that spectrum comprises, and the paternity between each animal described;Copulation arranges unit, for according to described each
Two animals with identical offspring are set to copulation relation by the paternity between animal.
In conjunction with second aspect, embodiments provide the embodiment that second aspect the second is possible, wherein, described
Control module includes: first arranges unit, for when described pedigree type is animal individual unique display, arranges described to be generated
The display number of times of each animal that the animal pedigree become comprises is 1;Second arranges unit, for when described pedigree type is for handing over
When joining relation unique display, it is judged that whether the current animal in described animal pedigree to be generated exists filial generation, when described currently
When animal does not exists filial generation, the display number of times arranging described current animal is 1, when described current animal dis is in filial generation, arranges
The display number of times sum of the filial generation that display number of times is described current animal of described current animal;Display control unit, is used for pressing
According to the display copulation relation between number of times, each animal of each animal in described animal pedigree to be generated and paternity control
Make described browser display and generate, with described animal pedigree, the animal pedigree that request is corresponding.
In conjunction with the embodiment that second aspect the second is possible, the third may to embodiments provide second aspect
Embodiment, wherein, described display control unit includes: node control subelement, be used for controlling described browser according to institute
The display number of times stating each animal in animal pedigree to be generated arranges the quantity of the node corresponding with each animal;Connect and control
Subelement, for controlling described browser according to copulation relation between each animal in described animal pedigree to be generated and parent
Each node is attached by subrelation, obtains generating, with described animal pedigree, the animal pedigree that request is corresponding.
In the embodiment of the present invention, first pass through browser and obtain the animal pedigree generation request of user's input, then basis
Animal identification determines each animal that animal pedigree to be generated comprises, and copulation relation and the parent-offspring between each animal is closed
System, each animal comprised finally according to pedigree type, animal pedigree to be generated, and the copulation relation between each animal
Control browser display with paternity and generate, with animal pedigree, the animal pedigree that request is corresponding.Due to the method in the present embodiment
And device is without installing specific software in terminal unit, it is only necessary to rely on the browser in terminal unit to can be realized as animal
Checking of pedigree, the most compared with prior art, the method and device in the present embodiment is not limited to when and where, it is possible to
Time generate and check animal pedigree everywhere, easy to use, motility is high, thus alleviates existing animal pedigree and generate method and use
Inconvenient, do not support to generate and check animal pedigree whenever and wherever possible, the problem of very flexible.
For making the above-mentioned purpose of the present invention, feature and advantage to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by embodiment required use attached
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to this
A little accompanying drawings obtain other relevant accompanying drawings.
Fig. 1 shows that the animal pedigree that first embodiment of the invention is provided generates the first schematic flow sheet of method;
Fig. 2 shows that the animal pedigree that first embodiment of the invention is provided generates the second schematic flow sheet of method;
Fig. 3 shows a kind of animal pedigree signal during animal individual unique display that first embodiment of the invention provided
Figure;
Fig. 4 shows a kind of animal pedigree signal during copulation relation unique display that first embodiment of the invention provided
Figure;
Fig. 5 shows that the animal pedigree that first embodiment of the invention is provided generates the third schematic flow sheet of method;
Fig. 6 shows the first module composition signal of the animal pedigree generating means that second embodiment of the invention provided
Figure;
Fig. 7 shows the second module composition signal of the animal pedigree generating means that second embodiment of the invention provided
Figure;
Fig. 8 shows the third module composition signal of the animal pedigree generating means that second embodiment of the invention provided
Figure.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention
Middle accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
It is a part of embodiment of the present invention rather than whole embodiments.Generally real with the present invention illustrated described in accompanying drawing herein
The assembly executing example can be arranged with various different configurations and design.Therefore, below to the present invention's provided in the accompanying drawings
The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention
Execute example.Based on embodiments of the invention, the institute that those skilled in the art are obtained on the premise of not making creative work
There are other embodiments, broadly fall into the scope of protection of the invention.
In view of existing animal pedigree generate method need rely on specific software, therefore in-convenience in use, do not support
Any place, any time generate at any time and check animal pedigree, very flexible, embodiments provide a kind of animal system
Spectrum generates method and device, is specifically described below by embodiment.
Embodiment 1
Fig. 1 is the first schematic flow sheet that the animal pedigree that first embodiment of the invention is provided generates method, the party
Method can be performed by server, and the method comprises the following steps:
Step S1, the animal pedigree being obtained user's input by browser generates request, and this animal pedigree generates request bag
Including animal identification corresponding to animal pedigree to be generated and the pedigree type of animal pedigree to be generated, this pedigree type includes
Animal individual unique display and copulation relation unique display.
The embodiment of the present invention uses B/S pattern, i.e. Browser (browser)/Server (server) pattern, wherein browses
Device is arranged in terminal unit, and terminal unit can be computer, smart mobile phone, panel computer etc., and the embodiment of the present invention is by clear
Look at device and server cooperating so that user checks animal pedigree by browser.The present embodiment is arranged at browser interface
Having input window, the animal pedigree that browser obtains user's input by this input window generates request, and browser is defeated by user
The animal pedigree entered generates request and reports to server, so that server obtains animal pedigree and generates request, this animal pedigree is raw
One-tenth request can be a URL (Uniform Resource Locator, URL), comprises in the parameter of URL
Animal identification that animal pedigree to be generated is corresponding and the pedigree type of animal pedigree to be generated.Wherein, this animal identification
Can be ID (identification, identity number) or any one of numbering, this pedigree type bag of animal to be checked
Including animal individual unique display and copulation relation unique display, animal individual unique display refers to this animal pedigree bag to be generated
Each animal contained only shows once in this animal pedigree, is connected by copulation relation and paternity between each animal,
Copulation relation unique display refers in this animal pedigree that copulation between each animal obtains the process of each filial generation and all separates
Display.
Step S2, determines, according to this animal identification, each animal that this animal pedigree to be generated comprises, and each moves
Copulation relation between thing and paternity.
This step specifically includes following two sub-step (1) and (2):
(1) make a look up according to animal identification, obtain each animal that animal pedigree to be generated comprises, and each moves
Paternity between thing.
(2) according to the paternity between each animal, two animals with identical offspring are set to copulation relation.
In above-mentioned sub-step (1), server according to this animal identification search animal pedigree to be generated comprise each move
During paternity between thing, and each animal, it is possible to use SQL statement makes a look up in data base.Wherein, data base
Can set up as follows: first the relevant information of multiple animals needing to be included in data base, this relevant information bag are set
Include animal ID, numbering, sex, kind, father ID, mother ID etc., then select data base management system, create tables of data,
After the relevant information of each animal above-mentioned is entered in the tables of data of establishment, obtain data base.
In above-mentioned sub-step (1), it is previously provided with the algebraically of animal shown by animal pedigree in server, as set in advance
Put animal pedigree display three generations animal, i.e. the animal that animal identification that animal pedigree input with user is corresponding is the last reign of a dynasty, shows
The last reign of a dynasty and more than last reign of a dynasty three generations animal, in the case of this kind, server using animal corresponding for animal identification as most end
In generation, make a look up in data base, obtain last reign of a dynasty and more than last reign of a dynasty three generations animal, each animal lookup obtained
Each animal comprised as animal pedigree.Owing to being provided with the father ID and mother ID of each animal in data base, therefore take
Business device can also search the paternity obtained between each animal that animal pedigree comprises in data base.
In other embodiments of the invention, server is not intended to the display algebraically of animal pedigree, acquiescence search all with
The animal that animal identification is corresponding has the animal of paternity, and each comprised as animal pedigree by the animal found moves
Thing.
In above-mentioned sub-step (2), two animals with identical offspring are set to copulation relation by server.In the present invention
Other embodiments in, the copulation relation between each animal and paternity can also be previously provided with in data base, service
Device can directly make a look up according to animal identification, obtains each animal that animal pedigree to be generated comprises, and each moves
Copulation relation between thing and paternity.
Step S3, each animal comprised according to this pedigree type, this animal pedigree to be generated, and each animal it
Between copulation relation and paternity control browser display and generate with animal pedigree and ask corresponding animal pedigree.
Fig. 2 is the second schematic flow sheet that the animal pedigree that first embodiment of the invention is provided generates method, the party
Method also includes following two sub-step:
Step S31, arranges the display number of times of each animal that animal pedigree to be generated comprises according to pedigree type.
When this pedigree type is animal individual unique display, each animal that this animal pedigree to be generated comprises is set
Display number of times be 1;When this pedigree type is copulation relation unique display, need to judge again in animal pedigree to be generated
Current animal whether there is filial generation, when this current animal does not exists filial generation, the display number of times arranging this current animal is 1,
When this current animal dis is in filial generation, arrange this current animal display number of times be this current animal filial generation display number of times it
With.
Wherein, when this pedigree type is copulation relation unique display, it is contemplated that the size of animal in animal pedigree is more
Time, in order to improve the computational efficiency of each animal display number of times, it is preferred to use in the following manner calculates the display number of times of each animal:
First determine, according to paternity, the animal that filial generation algebraically is most, list the equation of the display number of times solving this animal, then look into
Look for the offspring animal of this animal, list the equation of the display number of times solving this offspring animal, carry out according to this, arrange according to paternity
Going out to solve the equation of the display number of times of each animal, until finding the animal not having filial generation, determining that this does not has the animal of filial generation
Display number of times is 1, and then solves the display number of times obtaining each animal according to the separate equation listed.
Step S32, according to the display of each animal copulation between number of times, each animal in the animal pedigree that this is to be generated
Relation controls browser display with paternity and generates, with this animal pedigree, the animal pedigree that request is corresponding.
This step specifically can be realized by following two process:
(1) control browser to arrange and each animal according to the display number of times of each animal in this animal pedigree to be generated
The quantity of corresponding node;
(2) browser is controlled according to copulation relation between each animal in this animal pedigree to be generated and paternity
Each node is attached, obtains generating, with this animal pedigree, the animal pedigree that request is corresponding.
Specifically, server controls browser arranges each node corresponding with each animal, and control browser according to
The display number of times of each animal arranges the quantity of each node.After node is provided with, between server is according further to each animal
Copulation relation and paternity control browser each node is attached, thus obtain with animal pedigree generate request right
The animal pedigree answered.
In the embodiment of the present invention, server can also arrange, according to the sex of each animal, each knot that each animal is corresponding
The shape of point, and control browser and show each node according to the shape set, so that user is distinguished by node shape
Animal Sex, more intuitively.
The drawing process of animal pedigree all completes at browser, can use the skills such as JavaScript, HTML5Canvas
Art.The concrete drawing process of animal pedigree is as follows: browser according to HTML (Hyper Text Markup Language, super civilian
This markup language) DIV (DIVision separates) node that arranges on the page, initialize a painting canvas (Canvas);On painting canvas
Legend needed for graphing (illustrates node shape and the color of buck and jenny, and each by way of example
Copulation relation between animal and the connection mode etc. of paternity);The data that browser is returned according to server, this number
Close according to the copulation relation shown between number of times, each animal and parent-offspring including each animal in this animal pedigree to be generated
System, is plotted to node and line on picture;Node is bound the details of the animal corresponding with node, these details
The numbering of animal, date of birth, picture, kind, Variety Introduction etc. can be included, show corresponding with node simultaneously on node
The numbering of animal and kind information;When setting chooses a certain node to be current node, number identical node with it and choose simultaneously;
The animal pedigree structure generating request corresponding with this animal pedigree completes.
Fig. 3 is a kind of animal pedigree schematic diagram during animal individual unique display of the present embodiment offer.As it is shown on figure 3,
This animal pedigree has 6 animals, and each animal only shows a node, and node shows numbering and the kind information of animal,
It is male that rectangle node represents the sex of animal, and the sex that circular node represents animal is female;Two that have identical filial generation are moved
For copulation relation between thing, if Y240 and Y241 is copulation relation;It is paternity between parental generation and filial generation, such as Y242 and Y243
It it is the filial generation of Y240 and Y241;This animal pedigree can be shown and backcrosses and hybridisation events, such as belong to back between Y242 and Y244
Hand over, belong to hybridization between Large-tail sheep Y240 and Small-fat-tail sheep Y241, belong between Large-tail sheep Y242 and Small-fat-tail sheep Y243
Hybridization.
Fig. 4 is a kind of animal pedigree schematic diagram during copulation relation unique display of the present embodiment offer.As shown in Figure 4,
This animal pedigree has 6 animals, and each animal not only shows a node, and the number of node is arranging according to server
Arriving, such as Y244 and Y245 does not has filial generation, and they respectively show a node;Y242 has 2 filial generation Y244 and Y245, Y242
Show two nodes;Y243 has 1 filial generation Y244, Y243 to show a node;Y240 and Y241 has two filial generation Y242 (2
Node) and Y243 (1 node), Y240 and Y241 respectively shows 2+1=3 node;Out of Memory is dynamic with individual unique display
System spectrum is identical.
In the embodiment of the present invention, first pass through browser and obtain the animal pedigree generation request of user's input, then basis
Animal identification determines each animal that animal pedigree to be generated comprises, and copulation relation and the parent-offspring between each animal is closed
System, each animal comprised finally according to pedigree type, animal pedigree to be generated, and the copulation relation between each animal
Control browser display with paternity and generate, with animal pedigree, the animal pedigree that request is corresponding.Due to the method in the present embodiment
Without installing specific software in terminal unit, it is only necessary to rely on the browser in terminal unit to can be realized as animal pedigree
Checking, the most compared with prior art, the method in the present embodiment is not limited to when and where, it is possible to generate also whenever and wherever possible
Checking animal pedigree, easy to use, motility is high, thus alleviate existing animal pedigree generate method in-convenience in use, do not prop up
Hold and generate and check animal pedigree whenever and wherever possible, the problem of very flexible.
The convenience being managed animal pedigree in view of user, the animal pedigree in the embodiment of the present invention generates method
In addition to providing animal pedigree systematic function, it is also possible to include other function, such as, each node support is allowed to drag and double
Check details when hitting, allow whole animal pedigree support translate and to burst forth, preserve the animal of display on browser display interface
Pedigree etc..Based on this, said method also includes: (1) generates animal pedigree miscellaneous function interface, in order to user selects above-mentioned auxiliary
Assist energy.Wherein, animal pedigree miscellaneous function interface include following in one or more: site position change interface, individuality
Data show that interface, pedigree translate interface, pedigree bursts forth interface and animal pedigree saving interface;(2) this animal pedigree is monitored auxiliary
Help functional interface;(3) operation corresponding with animal pedigree miscellaneous function interface is performed according to snoop results.
Wherein, perform the operation corresponding with animal pedigree miscellaneous function interface according to snoop results and specifically may include that (a)
When snoop results is the site position change request that site position change interface gets user, change according to this site position
The node of request conversion correspondence position in browser display interface;B () is that individual data items display interface obtains when snoop results
Getting the individual data items of user when checking request, the individual data items asking corresponding animal is checked in display with individual data items, this
Volume data includes the information such as the age of animal, sex, kind, raising situation, growing state;C () is that pedigree is put down when snoop results
When transposing mouth gets the pedigree translation request of user, change animal pedigree in browser display circle according to the translation request of this pedigree
Position in face;(d) when snoop results be pedigree burst forth interface get the pedigree of user burst forth request time, by this animal pedigree
From browser display interface, any point bursts forth out;E () is that animal pedigree saving interface gets user when snoop results
Animal pedigree when preserving request, preserve the animal pedigree of display on browser display interface.
Fig. 5 shows that the animal pedigree that the present embodiment provides generates the third schematic flow sheet of method.As it is shown in figure 5,
User checks the animal pedigree of generation for convenience, generates the base of flow process corresponding to method at the animal pedigree shown in above-mentioned Fig. 1
On plinth, it is further comprising the steps of that the animal pedigree in the embodiment of the present invention generates method: step S4, obtains the dynamic of browser display
The link of system spectrum;Step S5, is converted into the Quick Response Code of correspondence by this link obtained.The code library that can general increase income or
Instruments etc. disclosed in line change into Quick Response Code the link got, such as the online maker of forage Quick Response Code.
The Quick Response Code generated can be printed on the label of animal, or on the label of meat corresponding to animal, is carrying out
Science breeding research and when reviewing the source of meat, the barcode scanning instrument such as can pass through that wechat " is swept and swept ", scans above-mentioned label
On Quick Response Code, check this animal or animal pedigree corresponding to meat easily.
Understand based on above-mentioned analysis, compared with animal pedigree based on the B/S pattern generation method in correlation technique, this
The animal pedigree that bright embodiment provides generates method and has the advantages that (1) uses B/S pattern, is not only restricted to terminal and sets
Standby configuring condition, terminal unit is without being provided with designated software, it is only necessary to possesses most basic browser and just can check dynamic
System is composed;(2) it is not limited to when and where, it is possible to generate and check animal pedigree whenever and wherever possible, easy to use, motility
Good;(3) can generate the animal pedigree of two kinds of pedigree types, user can select voluntarily according to the demand of oneself, facilitates user
Check data;(4) support containing backcrossing, the generation of the animal pedigree of hybridization information, it is adaptable to any animal is individual, range of application
Extensively.
Embodiment two
Method in corresponding above-described embodiment one, the embodiment of the present invention additionally provides a kind of animal pedigree generating means, uses
In the method performed in above-described embodiment one.Fig. 6 shows the animal pedigree generating means that second embodiment of the invention is provided
The first module composition schematic diagram, as shown in Figure 6, the animal pedigree generating means in the present embodiment includes: acquisition request mould
Block 100, generates request for being obtained the animal pedigree of user's input by browser, and this animal pedigree generates request and includes to be generated
Animal identification corresponding to animal pedigree become and the pedigree type of this animal pedigree to be generated, this pedigree type includes animal
Individual unique display and copulation relation unique display;Determine module 200, for determining this to be generated moving according to this animal identification
System composes each animal of comprising, and the copulation relation between this each animal and paternity;Control module 300, is used for
Each animal comprised according to this pedigree type, this animal pedigree to be generated, and the copulation relation between this each animal
Control browser display with paternity and generate, with this animal pedigree, the animal pedigree that request is corresponding.
Above-mentioned determine that module 200 includes: parent-offspring searches unit, for making a look up according to this animal identification, obtain this and treat
Each animal that the animal pedigree generated comprises, and the paternity between this each animal;Copulation arranges unit, for root
According to the paternity between this each animal, two animals with identical offspring are set to copulation relation.
In the present embodiment, it is contemplated that different pedigree types, control module 300 includes: first arranges unit, for when being somebody's turn to do
When pedigree type is animal individual unique display, the display number of times arranging each animal that this animal pedigree to be generated comprises is equal
It is 1;Second arranges unit, for when this pedigree type is copulation relation unique display, it is judged that this animal pedigree to be generated
In current animal whether there is filial generation, when this current animal does not exists filial generation, the display number of times arranging this current animal is
1, when this current animal dis is in filial generation, the display number of times of the filial generation that display number of times is this current animal of this current animal is set
Sum;Display control unit, for according in this animal pedigree to be generated between the display number of times of each animal, each animal
Copulation relation and paternity control browser display and generate with this animal pedigree and ask corresponding animal pedigree.
Wherein, display control unit includes: node controls subelement, for controlling browser according to this animal to be generated
In pedigree, the display number of times of each animal arranges the quantity of the node corresponding with each animal;Connect and control subelement, be used for controlling
Each node is entered by browser processed according to copulation relation and paternity between each animal in this animal pedigree to be generated
Row connects, and obtains generating, with this animal pedigree, the animal pedigree that request is corresponding.
In the embodiment of the present invention, the animal pedigree that first acquisition request module 100 obtains user's input by browser is raw
Become request, it is then determined that module 200 determines each animal that animal pedigree to be generated comprises, and each according to animal identification
Copulation relation between animal and paternity, last control module 300 comprises according to pedigree type, animal pedigree to be generated
Each animal, and copulation relation between each animal and paternity control that browser display generates with animal pedigree please
Seek corresponding animal pedigree.Owing to the device in the present embodiment is without installing specific software in terminal unit, it is only necessary to rely on
Browser in terminal unit can be realized as checking of animal pedigree, the most compared with prior art, the dress in the present embodiment
Putting and be not limited to when and where, it is possible to generate and check animal pedigree whenever and wherever possible, easy to use, motility is high, thus slow
Solve existing animal pedigree generate method in-convenience in use, do not support to generate and check animal pedigree, very flexible whenever and wherever possible
Problem.
Convenience animal pedigree being managed in view of user, the animal pedigree generating means in the embodiment of the present invention
In addition to providing animal pedigree systematic function, it is also possible to include other function, such as, each node support is allowed to drag and double
Check details when hitting, allow whole animal pedigree support translate and to burst forth, preserve the animal of display on browser display interface
Pedigree etc..Based on this, as it is shown in fig. 7, the device in the present embodiment also includes: interface generation module 400, it is used for generating animal system
Spectrum miscellaneous function interface, it is one or more that this animal pedigree miscellaneous function interface includes with in lower interface: site position is changed
Interface, individual data items show that interface, pedigree translate interface, pedigree bursts forth interface and animal pedigree saving interface;Interface monitors mould
Block 500, is used for monitoring this animal pedigree miscellaneous function interface;Operation executing module 600, for performing according to snoop results and being somebody's turn to do
The operation that animal pedigree miscellaneous function interface is corresponding.
Wherein, operation executing module 600 includes: site position operating unit, for when snoop results be site position more
When reconfiguration mouth gets the site position change request of user, convert corresponding node clear according to the change request of this site position
Look at the position in device display interface;Data display operation unit, is used for when snoop results is that individual data items display interface gets
When the individual data items of user checks request, the individual data items asking corresponding animal, this number of individuals are checked in display with individual data items
According to including the information such as the age of animal, sex, kind, raising situation, growing state;Translation unit, for when monitoring knot
When fruit gets the pedigree translation request of user for pedigree translation interface, change animal pedigree clear according to the translation request of this pedigree
Look at the position in device display interface;Burst forth operating unit, for when snoop results be pedigree burst forth that interface gets user be
Spectrum is bursted forth when asking, and bursts forth out by this animal pedigree any point from browser display interface;Preserve operating unit, be used for
When snoop results is the animal pedigree preservation request that animal pedigree saving interface gets user, preserve browser display interface
The animal pedigree of upper display.
Fig. 8 shows the third module composition signal of the animal pedigree generating means that second embodiment of the invention provided
Figure.Check the animal pedigree of generation in view of user for convenience, as shown in Figure 8, the animal pedigree in the embodiment of the present invention is raw
Device is become also to include: link acquisition module 700, for obtaining the link of the animal pedigree of browser display;Link modular converter
800, for this link obtained being converted into the Quick Response Code of correspondence.
Understand based on above-mentioned analysis, compared with the animal pedigree generating means based on B/S pattern in correlation technique, this
The animal pedigree generating means that bright embodiment provides has the advantages that (1) uses B/S pattern, is not only restricted to terminal and sets
Standby configuring condition, terminal unit is without being provided with designated software, it is only necessary to possesses most basic browser and just can check dynamic
System is composed;(2) it is not limited to when and where, it is possible to generate and check animal pedigree whenever and wherever possible, easy to use, motility
Good;(3) can generate the animal pedigree of two kinds of pedigree types, user can select voluntarily according to the demand of oneself, facilitates user
Check data;(4) support containing backcrossing, the generation of the animal pedigree of hybridization information, it is adaptable to any animal is individual, range of application
Extensively.
The animal pedigree generating means that the embodiment of the present invention is provided can be the specific hardware on equipment or be installed on
Software on equipment or firmware etc..The device that the embodiment of the present invention is provided, it realizes principle and the technique effect of generation and front
State embodiment of the method identical, for briefly describing, the not mentioned part of device embodiment part, refer to phase in preceding method embodiment
Answer content.Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, system described above,
The specific works process of device and unit, is all referred to the corresponding process in said method embodiment, does not repeats them here.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can be by other side
Formula realizes.Device embodiment described above is only that schematically such as, the division of described unit, the most only one are patrolled
Volume function divides, and actual can have other dividing mode when realizing, the most such as, multiple unit or assembly can in conjunction with or can
To be integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some communication interfaces, device or unit or communication link
Connect, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme
's.
It addition, each functional unit in the embodiment that the present invention provides can be integrated in a processing unit, it is possible to
Being that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.
If described function is using the form realization of SFU software functional unit and as independent production marketing or use, permissible
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is the most in other words
The part contributing prior art or the part of this technical scheme can embody with the form of software product, this meter
Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual
People's computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.
And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
It should also be noted that similar label and letter represent similar terms, therefore, the most a certain Xiang Yi in following accompanying drawing
Individual accompanying drawing is defined, then need not it be defined further and explains in accompanying drawing subsequently, additionally, term " the
One ", " second ", " the 3rd " etc. are only used for distinguishing and describe, and it is not intended that instruction or hint relative importance.
It is last it is noted that the detailed description of the invention of embodiment described above, the only present invention, in order to the present invention to be described
Technical scheme, be not intended to limit, protection scope of the present invention is not limited thereto, although with reference to previous embodiment to this
Bright it is described in detail, it will be understood by those within the art that: any those familiar with the art
In the technical scope that the invention discloses, the technical scheme described in previous embodiment still can be modified or can be light by it
It is readily conceivable that change, or wherein portion of techniques feature is carried out equivalent;And these are revised, change or replace, do not make
The essence of appropriate technical solution departs from the spirit and scope of embodiment of the present invention technical scheme.All should contain the protection in the present invention
Within the scope of.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.
Claims (10)
1. an animal pedigree generates method, it is characterised in that described method includes:
The animal pedigree being obtained user's input by browser generates request, and described animal pedigree generates request and includes to be generated
Animal identification that animal pedigree is corresponding and the pedigree type of described animal pedigree to be generated, described pedigree type includes animal
Individual unique display and copulation relation unique display;
Determine, according to described animal identification, each animal that described animal pedigree to be generated comprises, and each animal described it
Between copulation relation and paternity;
Each animal comprised according to described pedigree type, described animal pedigree to be generated, and between each animal described
Copulation relation and paternity control described browser display and generate with described animal pedigree and ask corresponding animal pedigree.
Method the most according to claim 1, it is characterised in that determine described animal to be generated according to described animal identification
Copulation relation between each animal that pedigree comprises, and each animal described and paternity, including:
Make a look up according to described animal identification, obtain each animal that described animal pedigree to be generated comprises, and described
Paternity between each animal;
According to the paternity between each animal described, two animals with identical offspring are set to copulation relation.
Method the most according to claim 1, it is characterised in that according to described pedigree type, described animal system to be generated
Each animal of comprising of spectrum, and copulation relation between each animal described and paternity control described browser display with
Described animal pedigree generates the animal pedigree that request is corresponding, including:
When described pedigree type is animal individual unique display, each animal that described animal pedigree to be generated comprises is set
Display number of times be 1;
When described pedigree type is copulation relation unique display, it is judged that the current animal in described animal pedigree to be generated is
No there is filial generation, when described current animal does not exists filial generation, the display number of times arranging described current animal is 1, works as when described
Front animal dis when filial generation, arrange described current animal display number of times be described current animal filial generation display number of times it
With;
According to the display copulation relation between number of times, each animal of each animal in described animal pedigree to be generated and parent-offspring
Relation controls described browser display and generates, with described animal pedigree, the animal pedigree that request is corresponding.
Method the most according to claim 3, it is characterised in that according to each animal in described animal pedigree to be generated
Show that the copulation relation between number of times, each animal and paternity control described browser display and generate with described animal pedigree
The animal pedigree that request is corresponding, including:
Control described browser to arrange and each animal according to the display number of times of each animal in described animal pedigree to be generated
The quantity of corresponding node;
Control described browser according to copulation relation between each animal in described animal pedigree to be generated and paternity
Each node is attached, obtains generating, with described animal pedigree, the animal pedigree that request is corresponding.
Method the most according to claim 4, it is characterised in that described method also includes:
Generating animal pedigree miscellaneous function interface, described animal pedigree miscellaneous function interface includes with in lower interface or many
Individual: site position change interface, individual data items show that interface, pedigree translate interface, pedigree bursts forth interface and animal pedigree preserves
Interface;
Monitor described animal pedigree miscellaneous function interface;
The operation corresponding with described animal pedigree miscellaneous function interface is performed according to snoop results.
6. according to the method described in any one of claim 1 to 5, it is characterised in that described method also includes:
Obtain the link of the animal pedigree of described browser display;
The described link obtained is converted into the Quick Response Code of correspondence.
7. an animal pedigree generating means, it is characterised in that described device includes:
Acquisition request module, generates request for being obtained the animal pedigree of user's input by browser, and described animal pedigree is raw
Request is become to include animal identification and the pedigree type of described animal pedigree to be generated, the institute that animal pedigree to be generated is corresponding
State pedigree type and include animal individual unique display and copulation relation unique display;
Determine module, for determining, according to described animal identification, each animal that described animal pedigree to be generated comprises, and
Copulation relation between each animal described and paternity;
Control module, for each animal comprised according to described pedigree type, described animal pedigree to be generated and described
It is corresponding with the generation request of described animal pedigree that copulation relation between each animal controls described browser display with paternity
Animal pedigree.
Device the most according to claim 7, it is characterised in that described determine that module includes:
Parent-offspring searches unit, for making a look up according to described animal identification, obtains what described animal pedigree to be generated comprised
Paternity between each animal, and each animal described;
Copulation arranges unit, for being set by two animals with identical offspring according to the paternity between each animal described
It is set to copulation relation.
Device the most according to claim 7, it is characterised in that described control module includes:
First arranges unit, for when described pedigree type is animal individual unique display, arranges described animal to be generated
The display number of times of each animal that pedigree comprises is 1;
Second arranges unit, for when described pedigree type is copulation relation unique display, it is judged that described animal to be generated
Whether the current animal in pedigree exists filial generation, when described current animal does not exists filial generation, arranges the aobvious of described current animal
Showing that number of times is 1, when described current animal dis is in filial generation, the display number of times arranging described current animal is described current animal
The display number of times sum of filial generation;
Display control unit, for according to the display number of times of each animal in described animal pedigree to be generated, each animal it
Between copulation relation and paternity control described browser display and generate with described animal pedigree and ask corresponding animal pedigree.
Device the most according to claim 9, it is characterised in that described display control unit includes:
Node controls subelement, for controlling described browser according to the display of each animal in described animal pedigree to be generated
Number of times arranges the quantity of the node corresponding with each animal;
Connect and control subelement, for controlling described browser according in described animal pedigree to be generated between each animal
Each node is attached by copulation relation and paternity, obtains generating the animal system that request is corresponding with described animal pedigree
Spectrum.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610646163.6A CN106294720B (en) | 2016-08-09 | 2016-08-09 | Animal pedigree generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610646163.6A CN106294720B (en) | 2016-08-09 | 2016-08-09 | Animal pedigree generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106294720A true CN106294720A (en) | 2017-01-04 |
CN106294720B CN106294720B (en) | 2020-01-24 |
Family
ID=57667313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610646163.6A Active CN106294720B (en) | 2016-08-09 | 2016-08-09 | Animal pedigree generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294720B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113946695A (en) * | 2021-12-20 | 2022-01-18 | 山东新希望六和集团有限公司 | Method and device for generating animal pedigree and computer equipment |
CN113961724A (en) * | 2021-12-22 | 2022-01-21 | 山东新希望六和集团有限公司 | Method and device for updating animal pedigree and computer equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040134440A1 (en) * | 2003-01-09 | 2004-07-15 | Yang Da | Compact pedigrees showing heritable traits for many individuals |
CN101833677A (en) * | 2010-03-31 | 2010-09-15 | 华南理工大学 | System and method for carrying out pedigree tracing and realizing many-to-many seed selection by using RFID (Radio Frequency Identification Device) |
CN103984678A (en) * | 2013-02-07 | 2014-08-13 | 姜巍 | Genealogy writing method and system |
-
2016
- 2016-08-09 CN CN201610646163.6A patent/CN106294720B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040134440A1 (en) * | 2003-01-09 | 2004-07-15 | Yang Da | Compact pedigrees showing heritable traits for many individuals |
CN101833677A (en) * | 2010-03-31 | 2010-09-15 | 华南理工大学 | System and method for carrying out pedigree tracing and realizing many-to-many seed selection by using RFID (Radio Frequency Identification Device) |
CN103984678A (en) * | 2013-02-07 | 2014-08-13 | 姜巍 | Genealogy writing method and system |
Non-Patent Citations (2)
Title |
---|
姜洋 等: "基于图数据库的在线族谱编录系统", 《计算机应用》 * |
白乃远 等: "《HTML5跨平台游戏设计 从入门到超人气游戏开发实战》", 30 April 2016, 清华大学出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113946695A (en) * | 2021-12-20 | 2022-01-18 | 山东新希望六和集团有限公司 | Method and device for generating animal pedigree and computer equipment |
CN113961724A (en) * | 2021-12-22 | 2022-01-21 | 山东新希望六和集团有限公司 | Method and device for updating animal pedigree and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106294720B (en) | 2020-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159977B (en) | Information interactive processing method and device | |
CN105608319B (en) | A kind of mask method and annotation equipment of digital pathological section | |
CN105760290B (en) | The problem of being tested based on webpage front-end localization method and relevant apparatus, system | |
US20150220311A1 (en) | Computer implemented modeling system and method | |
CN103186457A (en) | Method and device for automatically generating test case | |
CN109358851A (en) | Creation method, device and the computer readable storage medium of chart components | |
CN110399420A (en) | A kind of deriving method, electronic equipment and the medium of configurableization Excel format | |
CN107679183A (en) | Grader training data acquisition methods and device, server and storage medium | |
CN106777971A (en) | A kind of intelligent hospital guide's method and its device | |
CN106021403B (en) | Client service method and device | |
CN108804322A (en) | Automated testing method, device, computer equipment and storage medium | |
CN103020219A (en) | Network-based expert system tool for power grid fault diagnosis | |
Vuppalapati et al. | Automating tiny ml intelligent sensors devops using microsoft azure | |
CN107957940A (en) | A kind of test log processing method, system and terminal | |
CN109657125A (en) | Data processing method, device, equipment and storage medium based on web crawlers | |
CN105912324A (en) | Method and device for generating Web page | |
CN105718527A (en) | Method and device for generating review examination questions | |
CN106294720A (en) | Animal pedigree generates method and device | |
CN109670042A (en) | A kind of examination question classification and grade of difficulty method based on recurrent neural network | |
Han et al. | A crop trait information acquisition system with multitag-based identification technologies for breeding precision management | |
CN106910075B (en) | The intelligent processing system and method that client mobile communication is complained | |
CN106096159B (en) | A kind of implementation method of distributed system behavior simulation analysis system under cloud platform | |
Aggogeri et al. | Automating the simulation of SME processes through a discrete event parametric model | |
CN104133680A (en) | Fast building method of ERP form module | |
CN110532448A (en) | Document Classification Method, device, equipment and storage medium neural network based |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 834000 Karamay, Karamay, Tian Shan Road, deputy No. 51, No. Applicant after: Xinjiang Seven-color Flower Information Technology Co., Ltd. Address before: 834000 Karamay, Karamay, Tian Shan Road, deputy No. 51, No. Applicant before: Karamay Qisehua Agel Ecommerce Ltd |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |