This article describes the order in which the system processes frames.
...
Info |
---|
For an overview of Frames, click here. |
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Deep Learning on Frames is found in Motive Academy. Click here to see the course this lesson is in. |
Quick Links
Table of Contents |
---|
Overview
A Script can have many Frames. The order and relationship between the frames Frames impact when they will be processed by the system. Frame processing happens at the speed of a computer, not that of a human. It is quite fast. Two frames Frames on the same level with no conditions Conditions appear to happen at the same time to a userlearner.
The flexibility of this system makes several types of branching possible within Storyflow.
Concepts
Processed Frame
A frame Frame is considered processed once the system has evaluated its conditionsConditions. If its conditions Conditions are false, the frame Frame is queued until:
The frame Frame or any parent of it on the same branch becomes deactivated.
The script Script which contains the frame Frame is ended.
The conditions Conditions on the frame Frame become true. In this case, the frame Frame will open.
Open Frame
An open frame Frame is a processed frame Frame whose conditions Conditions are true. An open frame Frame activates its resources Resources and its child frames Frames will be processed.
Child Frames
The main function of child frames Frames is to control the order in which frames Frames are processed. Frames are arranged in a tree structure. A child frame Frame will only be processed when:
Its parent frame Frame is open, meaning its parent has been processed and the conditions Conditions on the parent are true.
The order of a frame Frame in a given branch determines when it will be processed. For example, if frame Frame has three siblings and is listed second under their common parent, it will be processed second once the parent frame Frame is open.
Frame Conditions
Frame conditions Conditions gate resources. Frame resources Resources will activate and any child frames Frames will begin to be processed once the frame conditions Frame Conditions are true. Frame conditions Conditions will only be evaluated by the system if the frame Frame has been processed.
Processing Flow
When a script Script is launched, the system script Script processor will begin processing the frames Frames in the tree starting from the root frameFrame. Each script Script has a single root frame called Main Frame. That frame Frame has a tree of 0-n child frames Frames below it. The script Script processor processes each frame Frame as follows:
Evaluate the
...
Conditions. If the
...
Conditions evaluate to true or no
...
Conditions are present, it is considered to be met
If the
...
Conditions are met
Activate
...
Frame Resources
Process any child
...
Frames
If the
...
Conditions are not met
Queue until the
...
Conditions are met and move to the next
...
Frame on the same level
The flowchart below describes the process:
...
As an example, the script Script below shows the order in which the frames Frames will be processed. This assumes that all frame conditions Frame Conditions are true.
...