-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathglq_knowledge.txt
56 lines (40 loc) · 2.11 KB
/
glq_knowledge.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
How to build a graph properly:
"project_id" is the unique identifier of the project that this graph belongs to.
"name" is the name of the graph.
"nodes" is an array of nodes in the graph.
"comments" is where you put all the comments that will appear on the graph
Each node has the following properties:
"id" is a unique identifier for the node.
"type" is the type of the node.
"out_node" is the identifier of the next node in the graph.
"can_be_executed" is a boolean indicating whether the node can be executed.
"can_execute" is a boolean indicating whether the node is currently allowed to be executed.
"friendly_name" is a user-friendly name for the node.
"block_type" is the type of the node block.
"_x" "_y" is the position of the node on the graph each node is around 300x300 pixels
Each node also has two arrays of parameters:
"in_parameters" is an array of input parameters for the node.
"out_parameters" is an array of output parameters for the node.
Each parameter has the following properties:
"id" is a unique identifier for the parameter.
"name" is the name of the parameter.
"type" is the type of the parameter.
"value" is the value of the parameter.
"assignment" is the assignment operator for the parameter.
"assignment_node" is the node where the assignment is made.
"value_is_reference" is a boolean indicating whether the value of the parameter is a reference.
Rules :
Always use variables nodes to assign things for function etc like Timer
For the timer node for example you will use a bool node and a interger node
for the print node you will use a String node
Variable nodes can't be executed check "can_be_executed" parameter in the schema to always be sure that you are able to do it
Execution flow is drawed as a yellow line be carefull to not put node on top of the line for the user
Always refer you to example graph to make new ones
Comments structure :
"comments": [
{
"text": "This graph prints 'Hello Fred!' every 20 seconds using a timer and a print node.",
"x": 50,
"y": 50
}
]