Uses of Interface
io.github.ai4ci.abm.mechanics.StateMachineContext
Packages that use StateMachineContext
-
Uses of StateMachineContext in io.github.ai4ci.abm.mechanics
Classes in io.github.ai4ci.abm.mechanics that implement StateMachineContextModifier and TypeClassDescriptionfinal class
A modifiable implementation of theStateMachineContext
type.Methods in io.github.ai4ci.abm.mechanics with parameters of type StateMachineContextModifier and TypeMethodDescriptiondefault boolean
State.filter
(STATE person, StateMachineContext context, Sampler rng) ModifiableStateMachineContext.from
(StateMachineContext instance) Fill this modifiable instance with attribute values from the providedStateMachineContext
instance.State.nextState
(BUILDER builder, STATE current, StateMachineContext context, Sampler rng) This is the hook for changing the behaviour in the model in terms of mobility, compliance etc in person/behavioural models, or changing system wide properties in outbreak/policy models.static StateMachine.BehaviourState
StateUtils.toLastBranchPoint
(StateMachineContext context) return from a branched behaviour model.void
State.updateHistory
(HISTORY builder, STATE current, StateMachineContext context, Sampler rng) Depending on the type this updated the outbreak or person history, and this is the hook for changing the testing, or adding in contacts / exposures if we are looking at people.default void
StateUtils.DefaultNoTesting.updateHistory
(ImmutablePersonHistory.Builder builder, PersonState person, StateMachineContext context, Sampler rng) default void
StateUtils.DoesPCRIfSymptomatic.updateHistory
(ImmutablePersonHistory.Builder builder, PersonState person, StateMachineContext context, Sampler rng) Constructors in io.github.ai4ci.abm.mechanics with parameters of type StateMachineContextModifierConstructorDescriptionStateMachine
(State<?, ?, ?, ?> defaultStateMachineState, StateMachineContext context) -
Uses of StateMachineContext in io.github.ai4ci.abm.policy
Methods in io.github.ai4ci.abm.policy with parameters of type StateMachineContextModifier and TypeMethodDescriptiondefault void
PolicyModel.updateHistory
(ImmutableOutbreakHistory.Builder builder, OutbreakState person, StateMachineContext context, Sampler rng)