3 @plugin "plugin.so" (SAbrFunctions).
5 Object : Teoria (aka Teorias) {
10 + to init named name (string) with-action action (string)
11 executed k = 1 (int) succeeded p = 1 (int):
12 ptr = TeoriaNew(name, action, k, p).
14 + to set-dato-inicial name theName (string) value theValue (float):
15 TeoriaSetDatoInicial(ptr, theName, theValue).
17 + to set-dato-final name theName (string) value theValue (float):
18 TeoriaSetDatoFinal(ptr, theName, theValue).
21 return TeoriaGetNombre(ptr).
24 return TeoriaGetAccion(ptr).
29 - to set-ptr ptr p (pointer):
36 Object : SistemaAutonomo {
42 ptr = SistemaAutonomoNew().
44 + to add teoria theTeoria (object):
45 SistemaAutonomoAddTeoria(ptr, (theTeoria get-ptr)).
47 + to set value theValue (float) with-name theName (string):
48 SistemaAutonomoSetValue(ptr, theName, theValue).
50 + to update entorno theEntorno (hash):
52 foreach nombre in keys(theEntorno): {
53 print "Seteando valor de entorno ", nombre, " con ", theEntorno{nombre}.
54 self set value theEntorno{nombre} with-name nombre.
58 SistemaAutonomoPlan(ptr).
63 t set-ptr ptr SistemaAutonomoGetNextTheory(ptr).
66 + to validate theory theTheory (object):
67 return SistemaAutonomoValidateTheory(ptr, (theTheory get-ptr)).
70 SistemaAutonomoDelete(ptr).