Class LayeredNetworkStruct
- All Implemented Interfaces:
Serializable,Copyable
Index base. Element indices are 0-BASED. A host, task, entry,
activity or call has a local index in 0..n-1, and its absolute index
is shift + local, so absolute indices run 0..nidx-1 and calls
run 0..ncalls-1. The shift values themselves are element COUNTS
(hshift=0, tshift=nhosts, eshift=nhosts+ntasks, ...)
and are the same numbers they were under the former 1-based numbering; only
the local range moved. Matrices carry no padding row or column, and an unset
or not-found index is -1, never 0 (0 is the first host). Prefer the
hostIdx/taskIdx/entryIdx/actIdx converters and the isHostIdx
family below over open-coded shift + local arithmetic.
MATLAB keeps the 1-based numbering; JLINE.from_jline_struct_layered
translates. See _kb/04-networkstruct.md.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA caller activity, the strategy, and the entries it dispatches over.static classThe resolved pool block of one server: compat(t, j) nonzero = pool t may serve operand j. -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Deprecated.intCalls dispatched as a group by a routing strategy.Deprecated.intDeprecated.intDeprecated.intDeprecated.intintintintintintCompatibility pools declared on a layer server, by element index, absent where none.Scheduling priority of a task, 0 on every other index.Deprecated.Deprecated.int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintactIdx(int a) Absolute index of activity a, a in 0..nacts-1.intactOf(int idx) Activity-local index of an absolute index, or -1 if it is not an activity.intentryIdx(int e) Absolute index of entry e, e in 0..nentries-1.intentryOf(int idx) Entry-local index of an absolute index, or -1 if it is not an entry.inthostIdx(int h) Absolute index of host h, h in 0..nhosts-1.inthostOf(int idx) Host-local index of an absolute index, or -1 if it is not a host.booleanisActIdx(int idx) booleanisEntryIdx(int idx) booleanisHostIdx(int idx) booleanisTaskIdx(int idx) voidprint()inttaskIdx(int t) Absolute index of task t, t in 0..ntasks-1.inttaskOf(int idx) Task-local index of an absolute index, or -1 if it is not a task.voidChecks the index-base invariants of this struct.
-
Field Details
-
nidx
public int nidx -
nhosts
public int nhosts -
ntasks
public int ntasks -
nacts
public int nacts -
nentries
public int nentries -
ncalls
public int ncalls -
tshift
public int tshift -
eshift
public int eshift -
ashift
public int ashift -
hshift
public int hshift -
cshift
public int cshift -
tasksof
-
entriesof
-
actsof
-
callsof
-
hostdem
Deprecated. -
hostdem_type
-
hostdem_params
-
hostdem_mean
-
hostdem_scv
-
hostdem_proc
-
think
Deprecated. -
think_type
-
think_params
-
think_mean
-
think_scv
-
think_proc
-
actthink
Deprecated. -
actthink_type
-
actthink_params
-
actthink_mean
-
actthink_scv
-
actthink_proc
-
itemcap
-
itemproc
Deprecated. -
itemproc_type
-
itemproc_params
-
itemproc_mean
-
itemproc_scv
-
itemproc_proc
-
calltype
-
callproc
Deprecated. -
callproc_type
-
callproc_params
-
callproc_mean
-
callproc_scv
-
callproc_proc
-
callnames
-
callhashnames
-
sched
-
prio
Scheduling priority of a task, 0 on every other index. Lower is served first, the convention sn.classprio uses in a Network. Read by the priority disciplines (HOL) of a host or a task. -
names
-
hashnames
-
mult
-
maxmult
-
repl
-
type
-
graph
-
dag
-
replygraph
-
actphase
-
nitems
-
replacestrat
-
replacement
-
iscache
-
hasretrieval
-
parent
-
schedid
-
iscaller
-
issynccaller
-
isasynccaller
-
callpair
-
callgroups
Calls dispatched as a group by a routing strategy. Empty for every model that does not use Activity.synchCallRoundRobin. Requires the squashed layering; see SolverLN.assertCallGroups. -
taskgraph
-
actpretype
-
actposttype
-
actquorum
-
isref
-
hassetup
-
fanout
-
setuptime
Deprecated. -
setuptime_type
-
setuptime_params
-
setuptime_mean
-
setuptime_scv
-
setuptime_proc
-
delayofftime
Deprecated. -
delayofftime_type
-
delayofftime_params
-
delayofftime_mean
-
delayofftime_scv
-
delayofftime_proc
-
arrival
Deprecated. -
arrival_type
-
arrival_params
-
arrival_mean
-
arrival_scv
-
arrival_proc
-
lincon
-
lldscaling
-
cdscaling
-
cdscalingpeak
-
jdscaling
-
jdscalingpeak
-
pools
Compatibility pools declared on a layer server, by element index, absent where none. SolverLN lowers each to the activated-server rate ofSnCompatRate; see _kb/04-networkstruct.md. -
conntasks
-
hitmissaidx
-
hitaidx
-
missaidx
-
-
Constructor Details
-
LayeredNetworkStruct
public LayeredNetworkStruct()
-
-
Method Details
-
hostIdx
public int hostIdx(int h) Absolute index of host h, h in 0..nhosts-1. -
taskIdx
public int taskIdx(int t) Absolute index of task t, t in 0..ntasks-1. -
entryIdx
public int entryIdx(int e) Absolute index of entry e, e in 0..nentries-1. -
actIdx
public int actIdx(int a) Absolute index of activity a, a in 0..nacts-1. -
hostOf
public int hostOf(int idx) Host-local index of an absolute index, or -1 if it is not a host. -
taskOf
public int taskOf(int idx) Task-local index of an absolute index, or -1 if it is not a task. -
entryOf
public int entryOf(int idx) Entry-local index of an absolute index, or -1 if it is not an entry. -
actOf
public int actOf(int idx) Activity-local index of an absolute index, or -1 if it is not an activity. -
isHostIdx
public boolean isHostIdx(int idx) -
isTaskIdx
public boolean isTaskIdx(int idx) -
isEntryIdx
public boolean isEntryIdx(int idx) -
isActIdx
public boolean isActIdx(int idx) -
validateIndexSpace
public void validateIndexSpace()Checks the index-base invariants of this struct. The element index space is 0-based and unpadded, so the shifts must partition 0..nidx-1 and every index-valued field must stay inside it. Throws IllegalStateException on the first violation. -
print
public void print()
-