CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@samaira • 19 Aug, 2009
what is a sequence generator??how it works?and y do we need it ??and where it is used ??😕
@sookie • 19 Aug, 2009 Re: sequence generator

samaira
what is a sequence generator??how it works?and y do we need it ??and where it is used ??😕
Hi samaira,

After reading your question, the very first thing that is troubling me is from where the hell out of this world - you got this term ?

I am not clear in what respect this kind of question is asked but I am answering it from my Database point of view which I know[I am sure to understand my answer, many questions will arise in your mind but don't hesitate to ask them.Shoot them]. We people use it in context of JPA(Java Persistence API)
SequenceGenerator is an annotation used in an entity class. Now you might be thinking what is an entity class? In simple terms, an entity class is a simple POJO class that maps directly to our table.

E.g I have a table named EMPLOYEE and I have a similar entity class name named ' 'Employee' then in that class I can use that SequenceGenerator as an annotation. Now what it will do if I add it right? I need to add it to a particular column(preferably a primary key column) so as to generate unique keys(used as identifiers for the records) every time an entity is persisted in the database (in layman terms a record inserted in the table)

So moral of the story is it generates unique keys for every persisted object each time automatically.

Hope you understood something and also I told in the context you asked for. 😐

Thanks !
@samaira • 19 Aug, 2009 i'll tell u what we have in our syllabus.
A sequence generator is a sequential circuit which generates a prescribed sequence(e.g 10100 this sequence is repeated after particular interval) at its output.It is possible to design a sequence generator using counters or shift registers.The available sequence is applied to the input of the detector.It checks the sequence bit by bit.If the required bit is at its input then the detector moves to the next state
now this was in our syllabus which i didnt understood and want explanation and the working😔
@sookie • 19 Aug, 2009
samaira
i'll tell u what we have in our syllabus.
A sequence generator is a sequential circuit which generates a prescribed sequence(e.g 10100 this sequence is repeated after particular interval) at its output.It is possible to design a sequence generator using counters or shift registers.The available sequence is applied to the input of the detector.It checks the sequence bit by bit.If the required bit is at its input then the detector moves to the next state
now this was in our syllabus which i didnt understood and want explanation and the working😔
Oh, so sorry. You were asking this digital circuit's question. I guess some Electronics engineers over here would have better answer than a software engineer for this.
@Kaustubh Katdare • 19 Aug, 2009 • 1 like Thread moved to electronics engineering section.
@Harshad Italiya • 21 Aug, 2009 • 1 like well the simple example of the sequencial circuit is FLIP FLOP. i think you are familier with it. and as said in your post Shift register or counter ciruitry can be used to generat sequence code for that you have to make special combination of counter,shift registers for generation of perticular sequence...

The available sequence is applied to the input of the detector.It checks the sequence bit by bit.If the required bit is at its input then the detector moves to the next state

this is possible if you want to generate the status after checking input sequence.. for that there is comparator logic might be used comparator compares the input bit by bit with the reference and gives appropriate output either 0 or 1.

hop you might got some basic idea about the working of the topic which you had posted...
still you have any query please be more clear..
5.5k views

Related Posts

@Ankita Katdare · Aug 2, 2011

The ScoreItNow service is used to: Respond to GRE revised General Test Analytical Writing topics created and tested by ETS test authors. Submit your responses online and get immediate scores...
4.2k views

@SHIVAJIKARNATAKA · Mar 24, 2013

i want to know about EBIZ ..how we can earn money from this?how it will work.. please can anyone help me i in this ragard this
10.5k views

@Kaustubh Katdare · Aug 20, 2013

Was wondering why laptop manufacturers don't offer 4G or 3G connectivity built right into the machine itself. These days, most of the laptops have to rely on external dongles or...
3.1k views

@Kaustubh Katdare · Aug 25, 2014

ISRO's ambitious Mars Orbiter took the leap of faith towards the red planet from Sriharikota, India on November 5, 2013. ISRO's confirmed that the journey so far has been as...
6.5k views

@Ankita Katdare · Aug 29, 2015

Can there be a smartphone that can cater to two diverse user groups aka customers from metro as well as the Tier 2 and 3 cities? It seems, Videocon Mobiles...
3.9k views