Event Detection
Explanation of New Functions
Details
Various events that occur inside "ASTER" can be detected by the immediate execution condition of CF25.
In addition to the precise timing of the operation, it is possible to target and narrow down relevant information.
About Event Detect
The various functions of ASTER are composed of programs that internally detect the occurrence of event triggers and process them in a timely manner.
A simple example is the function to display an error message when a syntax error is detected with REGEX. This is a program that triggers the “error” event and immediately executes it. ASTER notifies CF25 of the error occurrence.
Upon detecting an event, CF25 is notified, and variable values and related information at the time the event occurs are provided simultaneously, creating a mechanism that facilitates functional coordination between ASTER and CF25.
What is the Immediate Execution Condition?
Regarding CF25’s conditional judgment, it corresponds to the feature commonly referred to as If Condition
in development languages. It is a mechanism that compares variable values and checks for greater than, less than, or equality, and then executes branching processes based on the results.
The following is an example in C language.
int a = 1;
int b = 2;
bool c;
if (a < b) c = true;
else c = false;
The execution of conditional judgments in CF25 has priorities, and “immediate execution conditions” are given precedence through interrupt processing.
Event Detect event trigger examples
Event Trigger | Type | Actions |
---|---|---|
Instance reaches specified Coordinates | Motion | Flip : Wrap |
Reach specified angle | Motion | Orbital |
There was a match in the regular expression. | REGEX | Match : Search |
Target path specified in JSON | JSON | Targeted JSON Pointer |
For example, immediate execution conditions triggered by these events can accurately inform CF25 of the timing of events occurring within ASTER.
At the same time, ASTER also shares the necessary information to identify instances and issue commands, such as fixed values of object instances and location information when events occur. By effectively utilizing these mechanisms, it becomes easy to create CF25 events synchronized with the timing of events that occurred within ASTER.
Instance information obtained at the timing of Event Detect
Fixed value of instance
Event Detection List of Functions
-
( REGEX ) Condition :: REGEX Syntax Error Messages
-
( REGEX ) Condition :: Missmatch
-
( REGEX ) Condition :: If Matched ( Exact )
-
( REGEX ) Condition :: If Matched ( Partial )
-
( JSON ) Condition :: Error invalid JSON Pointer
-
( JSON ) Condition :: if targeted is Array
-
( JSON ) Condition :: if targeted is Type of Boolean and Value True
-
( JSON ) Condition :: if targeted is type of Boolean and Value False
-
( Object Control ) Condition :: Collision Detection with the Wall-A ( left )
-
( Object Control ) Condition :: Collision Detection with the Wall-B ( right )
-
( Object Control ) Condition :: Collision Detection with the Wall-C ( top )
-
( Object Control ) Condition :: Collision Detection with the Wall-D ( bottom )
-
( Object Control ) Condition :: If the registration of Name Group was terminated
-
( Object Control ) Expression :: Get An Angle for the Orbital Motion in Sleep
-
( Object Control ) Expression :: Get Sleep Counter Value
The list is still incomplete.