CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
2
4 ToDo-list
3
4
5
4.1 Blueprints
6
7
4.1-1 ToDoListEntryToMaintainEqualAttributes
8
9
ToDoListEntryToMaintainEqualAttributes( indicator, objects, attributes )  operation
10
Returns: a todo list entry
11
12
The first argument is the indicator. It is a list of sources like in
13
ToDoListEntry. Each entry SP has to be a threetuple. First entry of SP has
14
to an object, for which the second entry of SP, which has to be the name of
15
an attribute, must become known. Once the attribute is known to the object,
16
it will be compared to the third entry of the list. This can be a value,
17
which is compared directly a function, which is launched and its return
18
value is compared, or a list, consisting of a function and arguments, so the
19
return value of the function with given arguments is compared. If there is
20
no third entry in SP, it is only looked up if the value is known. Once all
21
entries in indicator are processed like this, and all returned true in the
22
comparasion, a list of ToDoListEntryForEqualAttributes is installed. They
23
are installed for the two entries of the list objects which can either be
24
the objects itself or a list containing a function and arguments, which
25
return value is used. For each entry in attributes such an entry is
26
installed. Such an entry can be the name of an attribute, if both objects in
27
objects should share the value between attributes with the same name, or a
28
list of two names, if the attributes do not have the same name.
29
30
4.1-2 ToDoListEntryToMaintainFollowingAttributes
31
32
ToDoListEntryToMaintainFollowingAttributes( indicator, objects, attributes )  operation
33
Returns: a todo list entry
34
35
This function creates a ToDoListEntry which can install several
36
ToDoListEntries. The first two arguments, indicator and objects except that
37
there will be only ToDoListEntries installed between the two objects in
38
objects. Each entry in attributes can either be a string which means that
39
the attribute with the given name will be set from the first to the second
40
object in objects once it is known. The third argument attributes is a list
41
of attributes that will be propagated by ToDoListEntries. Each entry TP can
42
either be a list consisting of a DescriptionOfImplication string and one of
43
the following or just one of the following lists: It can be a string, which
44
means that the Attribute with the given name will be propagated from the
45
first to the second object. It can be a list, consisting of two entries,
46
where the first entry is a list of sources like in ToDoListEntry and the
47
second might be a function which will be launched once the first part is
48
fulfilled. It can also be a threetuple which will serve as second to fourth
49
argument of ToDoListEntry. Or it can be a string, which will set the
50
attribute named like this of the first object to the one named in the second
51
object
52
53
4.1-3 ToDoListEntry
54
55
ToDoListEntry( source, target_list )  operation
56
Returns: a todo list entry
57
58
This function allows to create more than one ToDoListEntry with identical
59
list of sources at one time. First argument is a list of sources like in the
60
other ToDoListEntry functions Second argument is a list of threetuples,
61
which serve as second to fourth argument of ToDoListEntry or a function,
62
which serves as second argument for ToDoListEntry or a tuple with a
63
description string and one of the above.
64
65
4.1-4 ToDoList_this_object
66
67
ToDoList_this_object global variable
68
69
Represents the objects for which the blueprint is created in the arguments
70
71
4.1-5 ToDoListEntryToMaintainEqualAttributesBlueprint
72
73
ToDoListEntryToMaintainEqualAttributesBlueprint( filter, indicator, objects, attributes )  operation
74
Returns: nothing
75
76
This function installs an immediate method which can install
77
ToDoListEntryToMaintainEqualAttributes. First argument must be a filter, and
78
once the filter becomes true the ToDoListEntryToMaintainEqualAttributes is
79
installed with the second to fourth argument as first to third. In those
80
attributes, at any point, the variable ToDoList_this_object can be used.
81
When the entry is installed This will be replaced with the object to which
82
the filters became known, i.e. the one which triggered the immediate method.
83
84
4.1-6 ToDoListEntryToMaintainFollowingAttributesBlueprint
85
86
ToDoListEntryToMaintainFollowingAttributesBlueprint( arg1, arg2, arg3, arg4 )  operation
87
Returns: nothing
88
89
The same as ToDoListEntryToMaintainEqualAttributesBlueprint for
90
ToDoListEntryToMaintainFollowingAttributes
91
92
4.1-7 ToDoListEntryBlueprint
93
94
ToDoListEntryBlueprint( arg1, arg2, arg3 )  operation
95
Returns: nothing
96
97
The same as ToDoListEntryToMaintainEqualAttributesBlueprint for
98
ToDoListEntry
99
100
101
4.2 ToDo-list entries
102
103
4.2-1 AddToToDoList
104
105
AddToToDoList( E )  operation
106
107
Adds the ToDo-list entry E to the ToDo-lists of it's source objects and
108
creates a new one, if this is needed. This function might be called with
109
lists of entries
110
111
4.2-2 SourcePart
112
113
SourcePart( entry )  operation
114
Returns: a list
115
116
Returns the a list of source parts of the ToDo-list entry entry. This is a
117
triple of an object, a name of a filter/attribute, and a value to which the
118
attribute has to be set to activate the entry
119
120
4.2-3 TargetPart
121
122
TargetPart( entry )  operation
123
Returns: a list
124
125
Returns the target part of the ToDo-list entry entry. This is a triple of an
126
object, a name of a filter/attribute, and a value to which the specific
127
filter/attribute should be set. The third entry of the list might also be a
128
function to which return value the attribute is set.
129
130
4.2-4 ProcessAToDoListEntry
131
132
ProcessAToDoListEntry( arg )  operation
133
Returns: a boolean
134
135
Processes a ToDo-list entry, i.e. sets the information given in TargetPart
136
if the definitions in SourcePart are fulfilled. Returns a function if the
137
entry could be processed, false if not, and fail if SourcePart or TargetPart
138
weren't availible anymore.
139
140
4.2-5 ToDoListEntry
141
142
ToDoListEntry( arg1, arg2, arg3, arg4 )  operation
143
Returns: a ToDoListEntry
144
145
The first argument must be a list consisting of two, three or four-tuples
146
where the first entry must be the object to which the attribute given as a
147
string in the second entry must be known to process this entry. The second
148
entry can also be a list of strings, in that case all the attributes given
149
as names must be known. Also, in this case, only two entries in this tuple
150
are allowed. The third part can be a value or a list, consisting of a
151
function followed by arguments which will be computed by the time the
152
attribute given as second entry becomes known to the first entry. If the
153
second part is only a string, and there is a third entry in the tuple the
154
attribute is compared to the third entry. One can set a comparating function
155
as fourth entry, which must take two entries and return false or true. If
156
the value of the attribute matches the (computed) value in the third entry
157
for all members of the list in the first argument the attribute given as
158
third argument, also by name, of the second argument is set to the value of
159
the fourth argument. This can also be a list which has to be computed, or a
160
function, which retun value is used in this case.
161
162
4.2-6 ToDoListEntry
163
164
ToDoListEntry( arg1, arg2 )  operation
165
Returns: a ToDoListEntry
166
167
The first argument is a list of three-tubles like above. Once all
168
preconditions become fulfilled the function given as second argument is
169
launched.
170
171
4.2-7 SetTargetValueObject
172
173
SetTargetValueObject( entry, value )  operation
174
Returns: nothing
175
176
If the given value of the target part is the return value of a function this
177
command sets the target value of the entry to a function. This is done to
178
keep proof tracking availible.
179
180
4.2-8 SetTargetObject
181
182
SetTargetObject( entry, obj )  operation
183
Returns: nothing
184
185
If the target object, i.e. the first entry of the target part, was given as
186
a function, this method can set this entry to the return value computed in
187
ProcessToDoListEntry. This happens atomatically, do not worry about it.
188
189
4.2-9 ToDoListEntryWithContraposition
190
191
ToDoListEntryWithContraposition( sobj, source_prop, sval, tobj, target, tval )  operation
192
Returns: a ToDoListEntry
193
194
Creates a ToDoListEntry which also installs a contraposition. The arguments
195
source_prop and target need to be strings which name a property, and sval
196
and tval need to be boolean values, i.e. true or false.
197
198
4.2-10 DescriptionOfImplication
199
200
DescriptionOfImplication( arg )  attribute
201
Returns: a list
202
203
Has to be set to a string, which describes the reason for the conclusion. If
204
the ToDo-list entry is displayed, the given string will be displayed with a
205
because before it.
206
207
4.2-11 ToDoListEntryForEqualAttributes
208
209
ToDoListEntryForEqualAttributes( arg1, arg2, arg3, arg4 )  operation
210
Returns: a ToDoListEntry
211
212
Creates a ToDoListEntry for two equal attributes, which means that both
213
values of the two attributes will be propagated in both directions.
214
215
4.2-12 ToDoListEntryForEquivalentAttributes
216
217
ToDoListEntryForEquivalentAttributes( arg1, arg2, arg3, arg4, arg5, arg6 )  operation
218
Returns: a ToDoListEntry
219
220
Creates a ToDoListEntry for two equivalent attributes, which means that both
221
values of the two attributes will be propagated in both directions. Please
222
note that this one does NOT implement contrapositions.
223
224
225
4.3 Category
226
227
4.3-1 IsToDoList
228
229
IsToDoList( arg )  filter
230
Returns: true or false
231
232
This is the category of ToDo-lists. Every ToDo-list is an object of this
233
category, which basically contains the ToDo-lists.
234
235
236
4.4 Constructor
237
238
4.4-1 NewToDoList
239
240
NewToDoList( )  operation
241
Returns: nothing
242
243
Creates a new empty ToDo-list.
244
245
246
4.5 This is the magic
247
248
4.5-1 Process_A_ToDo_List_Entry
249
250
Process_A_ToDo_List_Entry( arg )  function
251
Returns: a boolean
252
253
Gets a ToDo-list entry, which is a pair of a list of strings and a weak
254
pointer object, and processes it. If the action was done, it returns true,
255
if not, it returns false, and it returns fail if the action is not possible
256
anymore due to deleted objects.
257
258
4.5-2 ProcessToDoList
259
260
ProcessToDoList( A )  attribute
261
Returns: nothing
262
263
This is the magic! This attribute is never set. Creating an ToDo-list entry
264
installs an ImmediateMethod for this attribute for the specific category of
265
the object to which ToDo-list is added, and the filter the entry contains.
266
It is then triggert if the filters become applicable, so the ToDo-list is
267
processed
268
269
270
4.6 Methods for all objects
271
272
4.6-1 ToDoList
273
274
ToDoList( arg )  attribute
275
Returns: A ToDo-list
276
277
Returns the ToDo-list of an object, or creates a new one.
278
279
280
4.7 Proof tracking
281
282
This is a way to track proofs from ToDoLists. Not only for debugging, but
283
also for knowing how things work together.
284
285
4.7-1 TraceProof
286
287
TraceProof( obj, name, val )  operation
288
Returns: a tree
289
290
If the object obj has the attribute name, and its value is val, and the
291
knowledge has been obtained trough ToDoList-entries, this method traces the
292
way the property was set, and returns a tree which describes the full way of
293
how the attribute became known.
294
295
296
4.8 Maintainance
297
298
4.8-1 ActivateToDoList
299
300
ActivateToDoList( arg )  operation
301
Returns: nothing
302
303
This operation activates ToDoLists for the argument.
304
305
4.8-2 ActivateToDoList
306
307
ActivateToDoList( )  operation
308
Returns: nothing
309
310
This operation activates ToDoLists for all objects.
311
312
4.8-3 DeactivateToDoList
313
314
DeactivateToDoList( arg )  operation
315
Returns: nothing
316
317
This operation deactivates ToDoLists for the argument.
318
319
4.8-4 DeactivateToDoList
320
321
DeactivateToDoList( )  operation
322
Returns: nothing
323
324
This operation deactivates ToDoLists for all objects. Note that it is not
325
possible to activate ToDoList for a single object while they are not
326
activated. ToDoListEntries will yet be stored for all objects that can have
327
ToDoLists. All objects created while ToDoLists are deactivated have by
328
default no ToDoList.
329
330
4.8-5 ActivateWhereInfosInEntries
331
332
ActivateWhereInfosInEntries( arg )  function
333
Returns: nothing
334
335
Stores the result of Where( 100 ) in an entry if the entry is triggered.
336
This is not activated by default, since it might slow down the system.
337
338
4.8-6 DeactivateWhereInfosInEntries
339
340
DeactivateWhereInfosInEntries( arg )  function
341
Returns: nothing
342
343
Deactives the storage of the result of Where( 100 ) if an entry is
344
triggered. This is the default.
345
346
347