Update the algorithm, conditioning on the new evidence
Called when the algorithm is killed.
Called when the algorithm is killed. By default, does nothing. Can be overridden.
Called when the algorithm is started before running any steps.
Called when the algorithm is started before running any steps. By default, does nothing. Can be overridden.
Kill the algorithm so that it is inactive.
Kill the algorithm so that it is inactive. It will no longer be able to provide answers.Throws AlgorithmInactiveException if the algorithm is not active.
Resume the computation of the algorithm, if it has been stopped.
Resume the computation of the algorithm, if it has been stopped. Throws AlgorithmInactiveException if the algorithm is not active.
Start the algorithm and make it active.
Start the algorithm and make it active. After it returns, the algorithm must be ready to provide answers. Throws AlgorithmActiveException if the algorithm is already active.
Stop the algorithm from computing.
Stop the algorithm from computing. The algorithm is still ready to provide answers after it returns. Throws AlgorithmInactiveException if the algorithm is not active.
The general class of online algorithms. An online algorithm is provided with an initial model, represented by a universe encoding the probability distribution over the initial state, and a transition model, which produces a universe encoding the probability distribution over the new state. An implementation of Online must implement the update method.
Querying and asserting evidence to a online algorithm are done using references. This is because references are stable over time, while the particular elements they refer to are not.