Class SimulationDefaults

java.lang.Object
QueueNet.SimulationDefaults

public final class SimulationDefaults extends Object
Central repository for simulation engine default values that were previously scattered as magic numbers across multiple classes. Reference each constant from the class that originally owned the literal so that future tuning only requires a change in one place.
  • Field Details

    • MAX_SAMPLES

      public static final int MAX_SAMPLES
      Maximum number of samples collected per measure before the simulation stops.
      See Also:
    • CONVERGENCE_CHECK_INTERVAL

      public static final int CONVERGENCE_CHECK_INTERVAL
      Number of samples between convergence checks in the dynamic analyser.
      See Also:
    • MAX_RULE_SAMPLES

      public static final int MAX_RULE_SAMPLES
      Maximum number of samples used by the rule-based stopping criterion.
      See Also:
    • INITIAL_NUM_BATCHES

      public static final int INITIAL_NUM_BATCHES
      Initial number of batches used by the batch-means confidence-interval estimator.
      See Also:
    • ANIMATION_REFRESH_PERIOD

      public static final int ANIMATION_REFRESH_PERIOD
      Refresh period (in simulation ticks) at which the NetController polls each node for intermediate statistics updates.
      See Also:
    • EVENT_QUEUE_INITIAL_CAPACITY

      public static final int EVENT_QUEUE_INITIAL_CAPACITY
      Initial capacity of the hybrid and timing event queues. 111 is a small prime chosen to minimise hash collisions at startup.
      See Also:
    • LD_STRATEGY_CACHE_SIZE

      public static final int LD_STRATEGY_CACHE_SIZE
      Number of entries in the load-dependent service-time parameter cache.
      See Also:
    • PA_ABOUT_AUTOCLOSE_MS

      public static final int PA_ABOUT_AUTOCLOSE_MS
      Time (ms) before the PA progress "About" panel auto-closes.
      See Also:
    • STATS_LOADER_POLL_MS

      public static final int STATS_LOADER_POLL_MS
      Polling interval (ms) for the statistical-outputs loader background thread.
      See Also: