Esempio n. 1
0
func NewAgent(cfg Config) (agent *FLAgent) {
	prior := GetCoffeePrior(cfg)
	agent = new(FLAgent)
	agent.BFS3Agent = bfs3.New(prior)
	agent.Cfg = cfg.BFS3
	return
}
Esempio n. 2
0
func NewBFS3Agent(bfs3cfg bfs3.Config) (agent *bfs3.BFS3Agent) {
	prior := GetConfiguredPrior()
	agent = bfs3.New(prior)
	agent.Cfg = bfs3cfg
	return
}
Esempio n. 3
0
func NewBFS3Agent(cfg Config) (agent *bfs3.BFS3Agent) {
	prior := GetTruthFunc(cfg.Coffee)
	agent = bfs3.New(prior)
	agent.Cfg = cfg.BFS3
	return
}