Interface ActionDispenser

All Known Implementing Classes:
CoreActionDispenser, StandardActionDispenser

public interface ActionDispenser
An ActionDispenser is created for each Activity instance within a scenario. When a thread is created, the motor and its input and action instances are resolved. The ActionDispenser is responsible for choosing how the action is resolved, whether that is a shared thread-safe action or an action per slot.
  • Method Summary

    Modifier and Type
    Method
    Description
    getAction(int slot)
    Resolve (find or create) an Action instance for the slot specified.
  • Method Details

    • getAction

      Action getAction(int slot)
      Resolve (find or create) an Action instance for the slot specified. The action is not required to be per-slot (per-thread), but any shared actions must be thread safe.
      Parameters:
      slot - The numbered slot within the activity instance for this action.
      Returns:
      A new or cached Action for the specified slot.