Syntropy.PositionComputer
(syntropy v0.1.0)
Copy Markdown
Periodic lattice position refresh using the shared contract interval.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type agent_ref() :: Syntropy.ClusterInfo.agent_ref()
@type connection_kind() :: :thought | :synthesis
@type contribution_type() :: :solo_task | :parallel_task | :synthesis_task
@type ordering_signature() :: {[String.t()], non_neg_integer(), non_neg_integer()}
@type state() :: %{ contributions: %{optional(String.t()) => [String.t()]}, connection_config: %{required(String.t()) => float()}, history_limit: pos_integer(), last_ordering_signature: ordering_signature() | nil, weights: %{required(String.t()) => float()} }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec recompute_now(keyword()) :: :ok
@spec record_connections([String.t()], connection_kind()) :: :ok
@spec record_connections_refs([agent_ref()], connection_kind()) :: :ok
@spec record_contribution(String.t() | [String.t()], contribution_type() | String.t()) :: :ok
@spec record_contribution_refs([agent_ref()], contribution_type() | String.t()) :: :ok
@spec record_local_contribution([String.t()], contribution_type() | String.t()) :: :ok
@spec reset() :: :ok
@spec start_link(keyword()) :: GenServer.on_start()