Difference between revisions of "SkibUserMacros:Keywords for the algorithms of User Macros"

From Protoi Healing

Jump to: navigation, search
Line 1: Line 1:
 
{|class="wikitable" borders="1"
 
{|class="wikitable" borders="1"
 
!style="width:150px; "|Keyword
 
!style="width:150px; "|Keyword
 +
!style="width:150px; "|Parameters
 
!Description
 
!Description
 
|-
 
|-
 
|style="vertical-align:top; "|'''BREAK'''
 
|style="vertical-align:top; "|'''BREAK'''
 +
|
 
|Gets out of the current structure level. For example if you are in a LOOP, it will stop and leave the LOOP immediately and continue with the algorithm after the LOOP.
 
|Gets out of the current structure level. For example if you are in a LOOP, it will stop and leave the LOOP immediately and continue with the algorithm after the LOOP.
 
|-
 
|-
 
|style="vertical-align:top; "|'''EXIT'''
 
|style="vertical-align:top; "|'''EXIT'''
 +
|
 
|It will stop the execution of the UserMacro immediately.
 
|It will stop the execution of the UserMacro immediately.
 
|-
 
|-
 
|style="vertical-align:top; "|'''IF <condition>, DO:'''
 
|style="vertical-align:top; "|'''IF <condition>, DO:'''
 +
|
 
|Starts a conditional structure.
 
|Starts a conditional structure.
 
|-
 
|-
 
|style="vertical-align:top; "|'''IF-ELSE DO:'''
 
|style="vertical-align:top; "|'''IF-ELSE DO:'''
 +
|
 
|
 
|
 
|-
 
|-
 
|style="vertical-align:top; "|'''IF-END'''
 
|style="vertical-align:top; "|'''IF-END'''
 +
|
 
|
 
|
 
|-
 
|-
 
|style="vertical-align:top; "|'''LOOP'''
 
|style="vertical-align:top; "|'''LOOP'''
 +
|
 
|
 
|
 
|-
 
|-
 
|style="vertical-align:top; "|'''LOOP-END'''
 
|style="vertical-align:top; "|'''LOOP-END'''
 +
|
 
|
 
|
 
|-
 
|-
 
|style="vertical-align:top; "|'''MONITOR'''
 
|style="vertical-align:top; "|'''MONITOR'''
 +
|
 
|This orders the Skib to install some monitoring for a topic. This means, that some other AI(s) will get the order from Skib to 24/7 (or a given time) monitor a topic, and to send a signal, if some of the defined conditions take place. So this means, that Skib gets always an impulse to start the defined action, whenever it occurs. This may be with seconds in between, but also hours, days or more. Skib will always only have work with it, if something happens, that match the defined conditions.
 
|This orders the Skib to install some monitoring for a topic. This means, that some other AI(s) will get the order from Skib to 24/7 (or a given time) monitor a topic, and to send a signal, if some of the defined conditions take place. So this means, that Skib gets always an impulse to start the defined action, whenever it occurs. This may be with seconds in between, but also hours, days or more. Skib will always only have work with it, if something happens, that match the defined conditions.
 
|-
 
|-
 
|style="vertical-align:top; "|'''MONITOR-END
 
|style="vertical-align:top; "|'''MONITOR-END
 +
|
 
|
 
|
 
|-
 
|-
 
|style="vertical-align:top; "|'''TRY'''
 
|style="vertical-align:top; "|'''TRY'''
 +
|
 
|Skib will try to do whatever follows this TRY. Skib will continue the execution of the algorithm independent of the success.   
 
|Skib will try to do whatever follows this TRY. Skib will continue the execution of the algorithm independent of the success.   
 
|-
 
|-
 
|style="vertical-align:top; "|'''TRY-ERROR'''
 
|style="vertical-align:top; "|'''TRY-ERROR'''
 +
|
 
|If the belonging earlier TRY was not successful, Skib will execute whatever follows TRY-ERROR. If this is done and not order to finish the algorithm is given, Skib will continue the algorithm at next order.
 
|If the belonging earlier TRY was not successful, Skib will execute whatever follows TRY-ERROR. If this is done and not order to finish the algorithm is given, Skib will continue the algorithm at next order.
 
|-
 
|-

Revision as of 22:43, 5 February 2017

Keyword Parameters Description
BREAK Gets out of the current structure level. For example if you are in a LOOP, it will stop and leave the LOOP immediately and continue with the algorithm after the LOOP.
EXIT It will stop the execution of the UserMacro immediately.
IF <condition>, DO: Starts a conditional structure.
IF-ELSE DO:
IF-END
LOOP
LOOP-END
MONITOR This orders the Skib to install some monitoring for a topic. This means, that some other AI(s) will get the order from Skib to 24/7 (or a given time) monitor a topic, and to send a signal, if some of the defined conditions take place. So this means, that Skib gets always an impulse to start the defined action, whenever it occurs. This may be with seconds in between, but also hours, days or more. Skib will always only have work with it, if something happens, that match the defined conditions.
MONITOR-END
TRY Skib will try to do whatever follows this TRY. Skib will continue the execution of the algorithm independent of the success.
TRY-ERROR If the belonging earlier TRY was not successful, Skib will execute whatever follows TRY-ERROR. If this is done and not order to finish the algorithm is given, Skib will continue the algorithm at next order.


If you have ideas for more KEYWORDS, please add them on the discussion page!