LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
afterEventHashed.m
1function [outhash, outrate, outprob] = afterEventHashed(sn, ind, inhash, event, class)
2% [OUTHASH, OUTRATE, OUTPROB] = AFTEREVENTHASHED(QN, IND, INHASH, EVENT, CLASS)
3
4% Copyright (c) 2012-2026, Imperial College London
5% All rights reserved.
6
7if inhash == 0
8 outhash = -1;
9 outrate = 0;
10 return
11end
12
13% ind: node index
14%ist = sn.nodeToStation(ind);
15isf = sn.nodeToStateful(ind);
16
17inspace = sn.space{isf}(inhash,:);
18isSimulation = false;
19
20[outspace, outrate, outprob] = State.afterEvent(sn, ind, inspace, event, class, isSimulation);
21if isempty(outspace)
22 outhash = -1;
23 outrate = 0;
24 return
25else
26 outhash = State.getHash(sn, ind, outspace);
27end
28end