Skip to content

STATION

Named stop on a job-shop or multi-step routing where a ROUTE block delivers parts, orders or jobs and sets their current location.

Named entry point of a routing. Entities arrive here from a ROUTE block whose sequence step names this block, or along an ordinary link; either way entity.station becomes this block's name and the entity continues along the station's single outgoing link.

Family: move. Python builder: m.station(...).

Typical uses

Use STATION to give a place in the model a name that a ROUTE or a TRANSPORT can target. Examples are a machine group in a job shop, a dock and a pick position. It does nothing to the entity beyond marking where it is. Put the PROCESS for that place right after it.

Behaviour and rules

An entity reaching the block gets its station attribute set to the station's name, then moves on along the single outgoing link at once. The block takes no time. It can be reached by a route step, by an ordinary link, or both. The next ROUTE uses entity.station as the place the entity travels from.

The name is the block's own name unless station gives an alias. The block then answers to both names, and two blocks claiming one name are an error. A PROCESS at the station can read entity.station, for example in a table of process times by type and station.

A node puts the station on the path network. Travel to and from it is then the shortest path, and DISTANCE can name it. The tending setting lets a fleet's robot arm load and unload the machine. Inside a submodel the station name is prefixed with the instance name.

Ports

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

Parameters

Parameter Type Default Required Quantity Unit key Description
station str '' Optional station name this block answers to, shown as entity.station and usable in a sequence step. Empty: the block's own name is the station name.
node str '' Optional path-network node this station sits on. With one, travel to and from this station is the shortest path along the network and DISTANCE("...", "...") can name it.
tending dict {} Machine tending by a fleet with an arm: {"place": [segments], "pick": [segments], "time_unit": "seconds", "hrc": "none", "zone": {}, "cobot": "leave"

Statistics

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

Frame Columns
resource_summary Run, Resource, Total Seizes, Usage % (snapshot), Idle %, Scheduled Capacity Avg, Down %, Busy Cost, Idle Cost, Usage Cost, Total Cost, Queue Length Avg, Queue Length Max, Queue Length at End, Queue Length Mode, Queue Length Mode %, Queue Len P95, Queue Len P99, Queue Len Std, Time in Queue Avg, Time in Queue Avg (incl. waiting), Time in Queue Max, Time in Queue Mode, Time in Queue Mode %, Wait P95, Wait P99, Wait Std, Bottleneck Score, Bottleneck %
fleet_summary Run, Fleet, Vehicles, Trips, Loads per Trip, Distance Loaded, Distance Empty, Travel Loaded %, Travel Empty %, Load/Unload %, Held %, Idle %, Avg Request Wait, Max Request Wait
segment_summary Run, Segment, Length, Traversals, Distance Driven, Wait Time, Max Occupancy
material_flow_summary Run, From, To, Entities

Problem codes

A check of the model reports these about this block:

Code Meaning
E_DUPLICATE_STATION Two STATION blocks answer to the same station name.
E_SEQUENCE_STATION_UNKNOWN A sequence step names a station with no STATION block.
E_TENDING A STATION's tending group has a malformed segment, an unknown field, time unit, hrc mode, zone or cobot mode, an hrc mode the arm's profile has no collaborative_speed for, or the station has no node.
W_PLAN_STATION_UNKNOWN An order's plan names a station with no STATION block .
W_STATION_UNUSED A STATION block is named by no sequence step.

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=600, time_unit="seconds",
    network={"nodes": [{"name": "dock", "x": 0, "y": 0}, {"name": "yard", "x": 100, "y": 0}],
             "segments": [{"from": "dock", "to": "yard", "length": 100, "two_way": True}]})
m.add_fleet(name="Trucks", count=1, speed=5.0, home="dock", load_time="10", unload_time="10")
dock = m.station(station="Dock", node="dock")
yard = m.station(station="Yard", node="yard")
m.create(distribution=nb.Exponential(rate=1 / 120)) >> dock >> m.transport(fleet="Trucks", destination="Yard") >> yard >> m.dispose()

results = m.run(seed=1)
print(int(results.kpi("system/Total Entities Completed")), "entities reached the Yard station")
7 entities reached the Yard station

Used in

Bundled models: Hub day: electrifying the ground support equipment, Container terminal: electrification, Container terminal: quay to yard, Hub day: turnaround workload (crews, ground equipment, on-time departures), Warehouse with forklifts (floor plan), Order-driven warehouse (library assets) and 6 more.

Guides: Layout, paths and vehicles, Mobile cobots: machine tending, Coming from Arena, Event log to model, Model file format, Finite buffers and blocking after service and 2 more.

See also