Package io.engineblock.activityapi.input
Interface InputDispenser
-
- All Known Implementing Classes:
CoreInputDispenser,CycleLogInputType.Dispenser,FilteringInputDispenser,TargetRateInputType.Dispenser
public interface InputDispenserAn InputDispenser 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 InputDispenser is responsible for choosing how the input is resolved, whether that is a shared thread-safe input or an input per slot.
-
-
Method Detail
-
getInput
Input getInput(long slot)
Resolve (find or create) an Input instance for the slot specified. The input is not required to be per-slot (per-thread), but any shared inputs must be thread safe.- Parameters:
slot- The numbered slot within the activity instance for this action.- Returns:
- A new or cached Input for the specified slot.
-
-