Class ReplyBlock
- All Implemented Interfaces:
Serializable
A job of a class r with sn.syncreply(r) >= 0 makes a synchronous call:
it leaves the station for the callee but KEEPS its server, which stays held until
the matching REPLY signal class comes back. The held servers are not derivable
from the marginal state (the job is at the callee, not here), so they are counted
per calling class in this block. LDES keys the same information by job id
(Solver_ssj.pendingReplyMap); a CTMC has no job identity, so it carries counts.
The block trails the modulation, routing and node blocks of sn.nvars
(columns 0..R-1, R..2R-1 and 2R), occupying columns 2R+1+r. Appending keeps every
existing nvars reader valid, and the columns stay zero-width for models without
reply signals, so no other model changes state width.
Port of MATLAB State.replyBlockInfo and State.replyBlocked.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLayout of the reply block at one node. -
Method Summary
Modifier and TypeMethodDescriptionstatic Matrixblocked(NetworkStruct sn, int ind, Matrix spaceVar) Per-class counts of servers held at nodeindby jobs that made a synchronous call and are waiting for their REPLY signal.static MatrixblockedTotal(NetworkStruct sn, int ind, Matrix spaceVar) Total number of servers held for pending replies, one entry per row ofspaceVar.static booleanholds(NetworkStruct sn, int ind) True iff nodeindholds servers for any synchronous call.static ReplyBlock.Infoinfo(NetworkStruct sn, int ind) Layout of the reply block that nodeindcarries.
-
Method Details
-
info
Layout of the reply block that nodeindcarries.- Parameters:
sn- network structureind- node index- Returns:
- the block layout; width 0 when the node holds no synchronous call
-
holds
True iff nodeindholds servers for any synchronous call.- Parameters:
sn- network structureind- node index- Returns:
- true when the node carries a reply block
-
blocked
Per-class counts of servers held at nodeindby jobs that made a synchronous call and are waiting for their REPLY signal.- Parameters:
sn- network structureind- node indexspaceVar- local-variable part of the state, one row per state- Returns:
- (rows x nclasses) counts; all zero when the node carries no block
-
blockedTotal
Total number of servers held for pending replies, one entry per row ofspaceVar. Zero when the node carries no synchronous-call block, so callers can subtract it from the server count unconditionally.- Parameters:
sn- network structureind- node indexspaceVar- local-variable part of the state, one row per state- Returns:
- (rows x 1) totals
-