the-anna-project / annad

The annad package implements a command line tool to run the neural network of the anna project.
https://anna.earth
BSD 3-Clause "New" or "Revised" License
43 stars 7 forks source link

add config service #269

Closed xh3b4sd closed 7 years ago

xh3b4sd commented 7 years ago

Configuration must be provided from the outside to the executed process. Provided configuration needs to be available to all services within the service collection. Therefore a config service could be introduced which provides an hierarchical config object. The following example shows calls where certain configuration is fetched. Note that this issue also includes fixing #246.

s.Service().Config().Space().Connection().Weight()
s.Service().Config().Space().Dimension().Count()
s.Service().Config().Space().Dimension().Depth()
s.Service().Config().Space().Peer().Position()
xh3b4sd commented 7 years ago

Note that there will be no service, but an object to configure services initially.