+ variables:
ptr (pointer).
- + to init named name (string) with-action action (int)
+ + to init named name (string) with-action action (string)
executed k = 1 (int) succeeded p = 1 (int):
ptr = TeoriaNew(name, action, k, p).
+ to add teoria theTeoria (object):
SistemaAutonomoAddTeoria(ptr, (theTeoria get-ptr)).
+ + to set value theValue (float) with-name theName (string):
+ SistemaAutonomoSetValue(ptr, theName, theValue).
+
+ + to update entorno theEntorno (hash):
+ foreach nombre in keys(theEntorno): {
+ self set value theEntorno{nombre} with-name nombre.
+ }
+
+ + to plan:
+ SistemaAutonomoPlan(ptr).
+
+ + to get-next-action:
+ return SistemaAutonomoGetNextAction(ptr).
+
+ + to validate-current-theory:
+ return SistemaAutonomoValidateCurrentTheory(ptr).
+
+ to destroy:
SistemaAutonomoDelete(ptr).
}