1function [outhash, outrate, outprob, sn] = afterEventHashedOrAdd(sn, ind, inhash, event,
class)
2% [OUTHASH, OUTRATE, OUTPROB, QN] = AFTEREVENTHASHEDORADD(QN, IND, INHASH, EVENT, CLASS)
4% Copyright (c) 2012-2026, Imperial College London
12%ist = sn.nodeToStation(ind);
13isf = sn.nodeToStateful(ind);
15inspace = sn.space{isf}(inhash,:);
16isSimulation =
true; % allow state vector to grow, e.g.
for FCFS buffers
17[outspace, outrate, outprob] = State.afterEvent(sn, ind, inspace, event,
class,isSimulation);
23 [outhash, sn] = State.getHashOrAdd(sn, ind, outspace);