Skip to content

SIGNAL

Broadcasts a named signal that releases every entity waiting at a HOLD block for it, for example a shift start, a gate opening or a green light.

After an optional delay, succeeds the named signal event (releasing every HOLD block currently waiting on it) and immediately replaces it with a fresh one -- broadcast, edge-triggered, auto-reset.

Family: control. Python builder: m.signal(...).

Typical uses

Use SIGNAL to broadcast an event that releases entities waiting at HOLD blocks: a shift start, a green light, a truck arrival. Send a dummy entity through it from a CREATE on a schedule, or let a real entity trigger it as it passes. To release entities on a state of the model, use a HOLD in Condition mode with no SIGNAL.

Behaviour and rules

After its optional delay, the block fires the signal named signal_name. Every HOLD that is waiting on that name at that moment is released. The signal then resets at once. It is a broadcast that fires on a single edge, so it has no memory.

An entity that reaches a HOLD after the signal has fired waits for the next one. A signal that nobody waits on is lost, and there is no error. The name must match the HOLD's signal_name exactly.

The entity that passes through SIGNAL continues unchanged along the single outgoing link after the delay. A sampled delay below 0 is cut to 0.

Ports

  • Inputs: any number of incoming links.
  • Outputs: one outgoing link.

Parameters

Parameter Type Default Required Quantity Unit key Description
distribution str 'Constant' Name of a registered distribution (see the distribution reference).
dist_params dict {'value': 0.0} time time_unit Parameters for distribution, by name (e.g. {"rate": 0.5} for Exponential).
time_unit str 'base' Unit the sampled duration is expressed in: "base" (the model's own unit, no conversion) or one of seconds/minutes/hours/days.
signal_name str '' Name of the signal to succeed; matches a HOLD block's signal_name.

Statistics

Every run fills system and entity_summary (see the KPI reference). The example below also fills:

Frame Columns
store_summary Run, Store, Capacity, Average Size, Max Size, Mode Size, Mode Size %, P95 Size, P99 Size, Std Size, Avg Time in Store, Mode Time in Store, Mode Time in Store %, P95 Time in Store, P99 Time in Store, Std Time in Store, Util % (time-weighted)
material_flow_summary Run, From, To, Entities

Problem codes

No check names this block type.

Example

The snippet seeds itself; its output is from a run made when this page was generated.

from nagasim import build as nb

m = nb.Model(time_limit=100)
m.create("Parts", distribution=nb.Constant(value=1), max_arrivals=10) >> m.hold(signal_name="Open") >> m.dispose()
m.create("Gate", distribution=nb.Constant(value=1), max_arrivals=1, start_time=30) >> m.signal(signal_name="Open") >> m.dispose()

results = m.run(seed=1)
print(int(results.kpi("system/Total Entities Completed")), "entities completed after the SIGNAL block fired at t=30")
11 entities completed after the SIGNAL block fired at t=30

Used in

Bundled models: Delay, seize/release and signal HOLD.

Guides: Resources, sets and queue disciplines, Agent-based modelling, Coming from Arena, Coming from salabim, Coming from SimPy, Continuous quantities: levels, flows and time-series inputs.

See also