CN106713419A - Online classroom teaching synchronization method and system based on state machines - Google Patents

Online classroom teaching synchronization method and system based on state machines Download PDF

Info

Publication number
CN106713419A
CN106713419A CN201611070011.2A CN201611070011A CN106713419A CN 106713419 A CN106713419 A CN 106713419A CN 201611070011 A CN201611070011 A CN 201611070011A CN 106713419 A CN106713419 A CN 106713419A
Authority
CN
China
Prior art keywords
state
state machine
instruction
teacher
student
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611070011.2A
Other languages
Chinese (zh)
Other versions
CN106713419B (en
Inventor
刘德建
欧宁
林怡倩
黄良江
钟良德
郭玉湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN201611070011.2A priority Critical patent/CN106713419B/en
Publication of CN106713419A publication Critical patent/CN106713419A/en
Application granted granted Critical
Publication of CN106713419B publication Critical patent/CN106713419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/08Electrically-operated educational appliances providing for individual presentation of information to a plurality of student stations
    • G09B5/14Electrically-operated educational appliances providing for individual presentation of information to a plurality of student stations with provision for individual teacher-student communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The invention relates to the field of online education, and particularly relates to an online classroom teaching synchronization method and system based on state machines. According to invention, the state machines are configured according to the business logic of online classroom teaching; the state machines comprise a state machine on the teacher side and a state machine on the student side; and the state of the teacher side and the student side is synchronized according to the state machines. The teacher side and the student side are synchronized according to the state machines, which improves the reliability of online classroom teaching.

Description

A kind of online class teaching synchronous method and system based on state machine
Technical field
The present invention relates to online education field, more particularly to a kind of online class teaching synchronous method based on state machine and System.
Background technology
Existing online class teaching plan is carried out according to classroom instruction flow mostly, coupled between Service Component it is larger, Once go wrong to be difficult to return to normal condition, reliability is difficult to ensure under the unstable scene of network state.
The content of the invention
The technical problems to be solved by the invention are:There is provided it is a kind of based on state machine online class teaching synchronous method and System, improves the reliability of online class teaching.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:
The present invention provides a kind of online class teaching synchronous method based on state machine, including:
S1, the service logic configuration status machine imparted knowledge to students according to online class;The state machine includes the state machine of teacher side With the state machine of student side;
S2, the state according to the state machine synchronization teacher side and student side.
The present invention also provides a kind of online class teaching synchronization system based on state machine, including:
Configuration module, for the service logic configuration status machine imparted knowledge to students according to online class;The state machine includes teacher The state machine at end and the state machine of student side;
Synchronization module, for the state according to the state machine synchronization teacher side and student side.
The beneficial effects of the present invention are:Teacher side and student side are configured by the service logic imparted knowledge to students according to online class State machine, so as to after student side goes offline because of other factorses such as networks, in reconnect during teacher side, can respectively obtain teacher The current state of the state machine of end and student side, according to state machine synchronization teacher side and student side, so as to improve online class The reliability of teaching.
Brief description of the drawings
Fig. 1 is a kind of flow chart element of the online class teaching synchronous method specific embodiment based on state machine of the present invention Figure;
Fig. 2 is a kind of structural frames of the online class teaching synchronous method specific embodiment based on state machine of the present invention Figure;
Fig. 3 is the state machine of online class teaching;
Fig. 4 is the state machine for practising scene with hall;
Label declaration:
1st, configuration module;2nd, synchronization module;
21st, first acquisition unit;22nd, second acquisition unit;23rd, the 3rd acquiring unit;24th, transmitting element;
3rd, the first judge module;4th, sending module;5th, the second judge module;6th, performing module;7th, preserving module.
Specific embodiment
It is to describe technology contents of the invention, the objects and the effects in detail, below in conjunction with implementation method and coordinates attached Figure is explained.
The design of most critical of the present invention is:By state machine synchronization teacher side and student side, realize improving online class The reliability of teaching.
As shown in figure 1, the present invention provides a kind of online class teaching synchronous method based on state machine, including:
S1, the service logic configuration status machine imparted knowledge to students according to online class;The state machine includes the state machine of teacher side With the state machine of student side;
S2, the state according to the state machine synchronization teacher side and student side.
Further, the S2 is specially:
The current state of student side is obtained from the state machine of student side, first state is obtained;
State corresponding with the first state is obtained from the state machine of teacher side, the second state is obtained;
The current state of teacher side is obtained from the state machine of teacher side, the third state is obtained;
Teacher side is sent from second State Transferring to the described 3rd according to the state machine of the teacher side to student side First instruction of state and the first data.
Seen from the above description, realize according to the current state synchronization student side of the current state of student side and teacher side and Teacher side so that student side can quickly recover to state corresponding with teacher side.
Further, also include:
Judge it is described first instruction whether any state by teacher side from after the third state or the third state change to The instruction that any state before final state or final state is triggered, if so, not performing first instruction then.
Seen from the above description, when student side is in during state is recovered, other instructions of teacher side transmission are not performed, Such as, before synchronously completing, teacher side is transformed into the instruction that NextState is triggered by current state, it is ensured that student side is in synchronization During avoid because message time sequence problem causes state disorderly.
Further, before the S2, also include:
Student side receives the second instruction that teacher side sends;
Student side is judged with the presence or absence of the data needed for performing second instruction, if it is not, then:
Student side asks the second data corresponding with the described second instruction to teacher side;
After student side receives second data, second instruction is performed.
Seen from the above description, performing corresponding instruction again after related resource is completely received can ensure that instruction is performed just True property, improves Consumer's Experience.
Further, also include:
The current state of the state machine of student side is preserved in real time.
Seen from the above description, realize when student side be connected with teacher side again, can from student side break before state Start synchronous, the synchronous efficiency of raising.
As shown in Fig. 2 the present invention also provides a kind of online class teaching synchronization system based on state machine, including:
Configuration module 1, for the service logic configuration status machine imparted knowledge to students according to online class;The state machine includes teacher The state machine at end and the state machine of student side;
Synchronization module 2, for the state according to the state machine synchronization teacher side and student side.
Further, the synchronization module includes:
First acquisition unit 21, the current state for obtaining student side from the state machine of student side, obtains the first shape State;
Second acquisition unit 22, for obtaining state corresponding with the first state from the state machine of teacher side, obtains To the second state;
3rd acquiring unit 23, the current state for obtaining teacher side from the state machine of teacher side, obtains the 3rd shape State;
Transmitting element 24, sends from second state according to the state machine of the teacher side for teacher side to student side Change to the first instruction of the third state and the first data.
Further, also include:
First judge module 3, for judge first instruction whether by teacher side from the third state or the third state it The instruction that any state that any state afterwards is changed to before final state or final state is triggered, if so, not performing described first then Instruction.
Further, also include:
Sending module 4, the second instruction that teacher side sends is received for student side;
Second judge module 5, for judging student side with the presence or absence of the data needed for performing second instruction, if it is not, Then:Student side asks the second data corresponding with the described second instruction to teacher side;
Performing module 6, for after student side receives second data, performing second instruction.
Further, also include:
Preserving module 7, the current state of the state machine for preserving student side in real time.
Knowable to foregoing description, a kind of online class teaching synchronization system based on state machine provided by the present invention, The state synchronized of student side and teacher side is realized, so as to realize improving the reliability of online class teaching.
Embodiment:
S1, the service logic configuration status machine imparted knowledge to students according to online class;The state machine includes the state machine of teacher side With the state machine of student side;
Wherein, the service logic that online class is imparted knowledge to students is disassembled first and is therefrom taken out corresponding state with rule Then, the degree of coupling between reduction business.Analysis online class teaching service logic, by flowsheet simulation be courseware explanation, with hall Exercise, screen such as push at the service link, and the link such as go to school and leave school, log on combination technology ultimately forms what online class was imparted knowledge to students State machine is as shown in figure 3, the state machine imparted knowledge to students according to the online class configures the state machine in student side and teacher side.Business Component operationally, is dynamically verified and transition status by online class teaching state machine, ensures online class teaching state Reliability.
Need to be its corresponding shape of configuration to ensure that the business scenario normally runs for complex business scenario State machine, such as state machine with hall exercise scene are as shown in Figure 4.
S2, the state according to the state machine synchronization teacher side and student side.Specially:Obtained from the state machine of student side The current state of student side is taken, first state is obtained;Shape corresponding with the first state is obtained from the state machine of teacher side State, obtains the second state;The current state of teacher side is obtained from the state machine of teacher side, the third state is obtained;Teacher side root According to the teacher side state machine to student side send from second State Transferring to the third state first instruction and First data;Judge it is described first instruction whether any state by teacher side from after the third state or the third state change to The instruction that any state before final state or final state is triggered, if so, not performing first instruction then.
For example, the first student side disconnects the connection with teacher side due to factors such as unstable networks, the first student side is hung up The state machine of itself.Before disconnecting, the first student side is in state " in inscribing ".When the first student side reconnects teacher During end, teacher side has turned to " teacher has wound " state.Therefore, according to the state machine for practising scene with hall, the first student side is same Step is from " in inscribing " state to the state " teacher has wound " state.Specially:Student continues to inscribe in the first student side, After student does topic and finish in the first student side, answer is submitted to teacher side, and go to the state of " student has been filed on answer ".And Paper is submitted to teacher side, perform operation of handing in an examination paper.Teacher side sends winding instruction, obtains the paper that student side is submitted to, student side Go to " teacher has wound " state.
When the first student side is in the state for recovering synchronous, other student sides are still pressing the rule of state machine just with teacher side Often operating.Now, teacher side can also be sent to the first student side by the instruction that State Transferring is triggered.First student side judges The instruction being currently received whether the instruction triggered by the state after " teacher has wound " by teacher side, if so, then first learn Causing trouble wouldn't perform the instruction.Such as, during the first student side recovers synchronization, teacher side is issued " teacher announces result " Instruction, the student side in addition to the first student side has received paper answer, has gone to " student has obtained result " state, teacher side " student has obtained result " state is also gone to after paper answer is sent.But, now, the first student side not yet completes to recover synchronous Operation, therefore, the first student side is receiving the instruction of " teacher announces result " that teacher side is sent due to normal State Transferring When, the command signal is kept in, after the completion of simultaneously operating to be restored, the first student side performs corresponding reception and instructs, and changes extremely " student has obtained result " state.
When student side does not receive the resource needed for performing command adapted thereto completely, the state machine of itself can be also hung up, wait to provide Source jumps to corresponding state again after receiving.Specially:
Student side receives the second instruction that teacher side sends;
Student side is judged with the presence or absence of the data needed for performing second instruction, if it is not, then:
Student side asks the second data corresponding with the described second instruction to teacher side;
After student side receives second data, second instruction is performed.
For example, teacher side switchs to " doing topic timing " state from " transmission exercise " state.Teacher side sends to student side and counts Shi Zhiling, due to the influence of the factors such as network speed, the data resource of corresponding exercise is not also complete to be received, and student cannot at partial students end Start to inscribe, therefore riming instructions wouldn't be performed, after the data resource of corresponding exercise is completely received, then perform riming instructions simultaneously Go to " doing topic timing " state.If when student side switchs to " doing topic timing " state, teacher side turns from " doing topic timing " state Be " teacher has wound " state, then student side according to state machine synchronization from " doing topic timing " state to " teacher has wound " state it Between state.
Additionally, during student side is synchronous with teacher side, also needing to preserve the current shape of the state machine of student side in real time State.
If student side is only because network factors are disconnected with the teacher side short time, state machine can automatically save current shape State.But, if student side need to restart system due to failure, after system is restarted, the state of state machine can return to state. Therefore, the current state of state machine is first synchronized to the last state of the student side preserved before system reboot, is conducive to improving extensive The efficiency of multiple state synchronized.
In sum, the present invention is provided a kind of online class teaching synchronous method and system based on state machine, pass through According to online class impart knowledge to students service logic configuration teacher side and student side state machine so that when student side because network etc. other After factor goes offline, in reconnect during teacher side, the current state of the state machine of teacher side and student side can be respectively obtained, according to State machine synchronization teacher side and student side, so as to improve the reliability of online class teaching.The present invention also provides one kind and is based on The online class teaching synchronization system of state machine, realizes the state synchronized of student side and teacher side.
Embodiments of the invention are the foregoing is only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair The equivalents that bright specification and accompanying drawing content are made, or the technical field of correlation is directly or indirectly used in, similarly include In scope of patent protection of the invention.

Claims (10)

1. it is a kind of based on state machine online class teaching synchronous method, it is characterised in that including:
S1, the service logic configuration status machine imparted knowledge to students according to online class;The state machine includes state machine and of teacher side The state machine caused trouble;
S2, the state according to the state machine synchronization teacher side and student side.
2. the online class teaching synchronous method based on state machine according to claim 1, it is characterised in that S2 tool Body is:
The current state of student side is obtained from the state machine of student side, first state is obtained;
State corresponding with the first state is obtained from the state machine of teacher side, the second state is obtained;
The current state of teacher side is obtained from the state machine of teacher side, the third state is obtained;
Teacher side is sent from second State Transferring to the third state according to the state machine of the teacher side to student side First instruction and the first data.
3. it is according to claim 2 based on state machine online class teaching synchronous method, it is characterised in that also include:
Judge whether any state by teacher side from after the third state or the third state is changed to final state for first instruction Or the instruction that any state before final state is triggered, if so, not performing first instruction then.
4. it is according to claim 1 based on state machine online class teaching synchronous method, it is characterised in that the S2 it Before, also include:
Student side receives the second instruction that teacher side sends;
Student side is judged with the presence or absence of the data needed for performing second instruction, if it is not, then:
Student side asks the second data corresponding with the described second instruction to teacher side;
After student side receives second data, second instruction is performed.
5. it is according to claim 1 based on state machine online class teaching synchronous method, it is characterised in that also include:
The current state of the state machine of student side is preserved in real time.
6. it is a kind of based on state machine online class teaching synchronization system, it is characterised in that including:
Configuration module, for the service logic configuration status machine imparted knowledge to students according to online class;The state machine includes teacher side The state machine of state machine and student side;
Synchronization module, for the state according to the state machine synchronization teacher side and student side.
7. it is according to claim 6 based on state machine online class teaching synchronization system, it is characterised in that the synchronization Module includes:
First acquisition unit, the current state for obtaining student side from the state machine of student side, obtains first state;
Second acquisition unit, for obtaining state corresponding with the first state from the state machine of teacher side, obtains second State;
3rd acquiring unit, the current state for obtaining teacher side from the state machine of teacher side, obtains the third state;
Transmitting element, for teacher side according to the state machine of the teacher side to student side send from second State Transferring to First instruction of the third state and the first data.
8. it is according to claim 6 based on state machine online class teaching synchronization system, it is characterised in that also include:
First judge module, for judge it is described first instruction whether by teacher side from after the third state or the third state appoint The instruction that any state before one State Transferring to final state or final state is triggered, if so, not performing first instruction then.
9. it is according to claim 6 based on state machine online class teaching synchronization system, it is characterised in that also include:
Sending module, the second instruction that teacher side sends is received for student side;
Second judge module, for judging student side with the presence or absence of the data needed for performing second instruction, if it is not, then:Learn Cause trouble and ask the second data corresponding with the described second instruction to teacher side;
Performing module, for after student side receives second data, performing second instruction.
10. it is according to claim 6 based on state machine online class teaching synchronization system, it is characterised in that also include:
Preserving module, the current state of the state machine for preserving student side in real time.
CN201611070011.2A 2016-11-29 2016-11-29 A kind of online class teaching synchronous method and system based on state machine Active CN106713419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611070011.2A CN106713419B (en) 2016-11-29 2016-11-29 A kind of online class teaching synchronous method and system based on state machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611070011.2A CN106713419B (en) 2016-11-29 2016-11-29 A kind of online class teaching synchronous method and system based on state machine

Publications (2)

Publication Number Publication Date
CN106713419A true CN106713419A (en) 2017-05-24
CN106713419B CN106713419B (en) 2019-07-16

Family

ID=58935246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611070011.2A Active CN106713419B (en) 2016-11-29 2016-11-29 A kind of online class teaching synchronous method and system based on state machine

Country Status (1)

Country Link
CN (1) CN106713419B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726015A (en) * 2018-12-19 2019-05-07 福建天泉教育科技有限公司 A kind of multiterminal drawing board synchronous method and terminal based on state machine
CN113507505A (en) * 2021-06-22 2021-10-15 北京爱论答科技有限公司 Intelligent online teaching training method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101772792A (en) * 2007-08-01 2010-07-07 认知建立时机公司 A system for adaptive teaching and learning
WO2015099606A1 (en) * 2013-12-27 2015-07-02 Amdon Consulting Pte Ltd System and method for managing interactive content
CN105279031A (en) * 2015-11-20 2016-01-27 腾讯科技(深圳)有限公司 Information processing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101772792A (en) * 2007-08-01 2010-07-07 认知建立时机公司 A system for adaptive teaching and learning
WO2015099606A1 (en) * 2013-12-27 2015-07-02 Amdon Consulting Pte Ltd System and method for managing interactive content
CN105279031A (en) * 2015-11-20 2016-01-27 腾讯科技(深圳)有限公司 Information processing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726015A (en) * 2018-12-19 2019-05-07 福建天泉教育科技有限公司 A kind of multiterminal drawing board synchronous method and terminal based on state machine
CN109726015B (en) * 2018-12-19 2021-05-04 福建天泉教育科技有限公司 Multi-end drawing board synchronization method based on state machine and terminal
CN113507505A (en) * 2021-06-22 2021-10-15 北京爱论答科技有限公司 Intelligent online teaching training method and system
CN113507505B (en) * 2021-06-22 2022-04-15 北京爱论答科技有限公司 Intelligent online teaching training method and system

Also Published As

Publication number Publication date
CN106713419B (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN104158900B (en) Method and system for synchronizing courseware through iPad controlling
CN103413472B (en) Method and system for achieving network synchronous classroom
CN103414775A (en) Method and system for achieving network synchronous classroom
CN101179456A (en) Network appliance testing approach and device
CN102147986A (en) Electronic dual plate-based remote synchronous teaching system
CN106713419A (en) Online classroom teaching synchronization method and system based on state machines
CN103646572A (en) Classroom system with group cooperative learning function
CN205375885U (en) Student end system of network interaction teaching
CN109333542A (en) Robot voice exchange method and system
CN103684913B (en) Method of testing, physical equipment, terminal and the system of protocol stack
CN103188211B (en) Based on the collocation method of satellite borne equipment communication protocol
CN103487271A (en) Fault diagnosis system of carrier rocket
CN104346960A (en) School remote teaching system and method
CN102075361A (en) Method and node equipment for recovering looped network business
CN103391324A (en) Hot backup method based on TFTP (trivial file transfer protocol)
CN103391223B (en) A kind of IEC101 protocol massages fast automatic detecting method
CN110460497A (en) A kind of automated testing method, apparatus and system
CN105635272A (en) Server, student end, teacher end, and coursework processing method and system
CN104717109A (en) Simulation testing method and system for wide area network links
CN102244610A (en) Method for resolving protocol by using capture data
CN104867364A (en) Interactive teaching method and system both based on local area network
CN115412459A (en) Ring network testing method, system and equipment of vehicle-mounted Ethernet
CN106710349A (en) Mobile base station operation and maintenance teaching system
CN107070872A (en) A kind of data processing method and device for client
CN103368791B (en) A kind of IEC104 protocol massages fast automatic detecting method

Legal Events

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