ManagedPolicyIfc

A policy with a lifecycle: per-replication state to reset, or a resource to release.

Functions

Link copied to clipboard
open fun afterEpisode(episodeIndex: Int, source: TerminationSource)
Link copied to clipboard
open fun afterExperiment()

§4.7. Release whatever beforeExperiment acquired. Called from the element's afterExperiment(), and paired with it on every run — a model simulated three times calls both three times.

Link copied to clipboard
open fun beforeEpisode(episodeIndex: Int)
Link copied to clipboard
open fun beforeExperiment()

§4.7. Acquire whatever this rule needs for one experiment. Called from the element's beforeExperiment(), so it runs again on every model.simulate().

Link copied to clipboard
open override fun close()

End of life, not end of experiment.

Link copied to clipboard
open fun onTransition(record: TransitionRecord)

The completed transition this rule's own action earned — what an adaptive rule needs.