Flocc
    Preparing search index...

    Class DefaultScheduler

    The default interval-based scheduler.

    Agents tick based on their configured interval:

    • interval: 1 means tick every environment tick (default)
    • interval: 5 means tick every 5th environment tick
    • probability: 0.5 means 50% chance to tick on eligible ticks
    // Fast agent - ticks every step
    const fastAgent = new Agent({ tickInterval: 1 });

    // Slow agent - ticks every 5 steps
    const slowAgent = new Agent({ tickInterval: 5 });

    // Stochastic agent - 30% chance per step
    const randomAgent = new Agent({ tickProbability: 0.3 });

    0.6.0

    Implements

    Index

    Constructors

    Methods