First functional version of a blackboard and a blackboard based obicount

This commit is contained in:
Eric Coissac
2024-07-31 23:16:45 +02:00
parent dfe2fc3d43
commit f36b39bfa3
40 changed files with 1236 additions and 257 deletions

View File

@ -0,0 +1,17 @@
package obiblackboard
import "fmt"
func DisplayTask(bb *Blackboard, task *Task) *Task {
if task == nil {
return nil
}
fmt.Printf("Task: %s:\n%v\n\n", task.Role, task.Body)
return task
}
func (runner DoTask) Display() DoTask {
return runner.CombineWith(DisplayTask)
}