Package jline.lang
Class NetworkStruct
java.lang.Object
jline.lang.NetworkStruct
- All Implemented Interfaces:
Serializable,Cloneable,Copyable
Class summarizing the characteristics of a Network object
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(nstations x 1) failure rate of an up server (0 = never fails).Failure-time (D0,D1) representation per station.(nstations x nclasses) service rate while the server is down (0 = no service).(nnodes x 1) 1 iff the node's server is subject to breakdowns.(nnodes,1) 1 iff the node is the upstream/blocking side of a true-BAS relation (BUG-83).(nstations,nclasses) 1 iff refusing an arrival of that class here must BLOCK an upstream BAS station rather than lose the job.booleanStation-indexed mask of queue stations carrying setup/delay-off times (function stations), as in MATLAB refreshStruct.m.intintintintintintintOrbit capacity per station-class; -1 (or an absent entry) means unbounded.(nstations x 1) repair rate of a down server (0 = never repaired).Repair-time (D0,D1) representation per station.Retrial policy per station-class:RetrialPolicy.LINEAR(per-customer timers, aggregate rate n*nu) orRetrialPolicy.CONSTANT(one controller retries for the whole orbit at rate nu). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theattached to the given station, or null if the station has no nodeparam entry or its entry is not a ServiceNodeParam.invalid reference
ServiceNodeParamReturns the list of stations in the network.booleanChecks if this NetworkStruct is consistent with MATLAB implementation.voidprint()Print comprehensive information about this NetworkStruct.voidValidates the structural consistency of stations, stateful nodes, and nodes according to MATLAB implementation requirements.
-
Field Details
-
nstations
public int nstations -
nstateful
public int nstateful -
nnodes
public int nnodes -
nclasses
public int nclasses -
nclosedjobs
public int nclosedjobs -
nchains
public int nchains -
rtorig
-
lst
-
state
-
stateprior
-
space
-
spaceHash
-
routing
-
procid
-
mu
-
phi
-
proc
-
pie
-
sched
-
inchain
-
visits
-
nodevisits
-
droprule
-
nodeparam
-
sync
-
gsync
-
fjsync
-
fjclassmap
-
isfjaugmented
public boolean isfjaugmented -
cdscaling
-
cdscalingpeak
-
jdscaling
-
jdscalingpeak
-
impatienceType
-
impatienceMu
-
impatiencePhi
-
impatienceProc
-
impatiencePie
-
impatiencePhases
-
impatienceClass
-
balkingStrategy
-
balkingThresholds
-
retrialType
-
retrialMu
-
retrialPhi
-
retrialProc
-
retrialMaxAttempts
-
retrialPolicy
Retrial policy per station-class:RetrialPolicy.LINEAR(per-customer timers, aggregate rate n*nu) orRetrialPolicy.CONSTANT(one controller retries for the whole orbit at rate nu). An absent entry means LINEAR. Mirrors the (nstations x nclasses) sn.retrialPolicy of MATLAB. -
orbitMaxJobs
Orbit capacity per station-class; -1 (or an absent entry) means unbounded. A job that finds the orbit full is lost. Mirrors sn.orbitMaxJobs of MATLAB. -
hasbreakdown
(nnodes x 1) 1 iff the node's server is subject to breakdowns. -
breakdownMu
(nstations x 1) failure rate of an up server (0 = never fails). -
repairMu
(nstations x 1) repair rate of a down server (0 = never repaired). -
breakdownProc
Failure-time (D0,D1) representation per station. -
repairProc
Repair-time (D0,D1) representation per station. -
downServiceRates
(nstations x nclasses) service rate while the server is down (0 = no service). -
orbitImpatience
-
batchRejectProb
-
refstat
-
njobs
-
nservers
-
connmatrix
-
scv
-
isstation
-
isstateful
-
isstatedep
-
isfunction
Station-indexed mask of queue stations carrying setup/delay-off times (function stations), as in MATLAB refreshStruct.m. -
nodeToStateful
-
nodeToStation
-
stationToNode
-
stationToStateful
-
statefulToStation
-
statefulToNode
-
rates
-
classprio
-
classdeadline
-
phases
-
phasessz
-
phaseshift
-
schedparam
-
chains
-
rt
-
nvars
-
isbasblocking
(nnodes,1) 1 iff the node is the upstream/blocking side of a true-BAS relation (BUG-83). -
isbasdestination
(nstations,nclasses) 1 iff refusing an arrival of that class here must BLOCK an upstream BAS station rather than lose the job. Complement ofisbasblocking: a refusal is resolved byState.arrivalIsLostat the DESTINATION, which can only see that station's own drop rule, but under the upstream declaration form the BAS rule sits on the blocking station instead. Without this field an open-class arrival refused at the destination is declared LOST, the become-blocked edge never fires, and the blocking station degenerates into an isolated M/M/1/K. -
rtnodes
-
csmask
-
isslc
-
immfeed
-
issignal
-
signaltarget
-
signaltype
-
syncreply
-
classspawn
-
signalremdist
-
arrivalbatch
-
signalrempolicy
-
iscatastrophe
-
cap
-
classcap
-
nregions
public int nregions -
region
-
regionrule
-
regionweight
-
regionsz
-
regionmaxmem
-
regionmembers
-
regionlincon
-
refclass
-
lldscaling
-
fj
-
varsparam
-
markidx
-
nodetype
-
classnames
-
nodenames
-
stations
-
stateful
-
jobclasses
-
nodes
-
reward
-
-
Constructor Details
-
NetworkStruct
public NetworkStruct()
-
-
Method Details
-
getServiceParam
Returns theattached to the given station, or null if the station has no nodeparam entry or its entry is not a ServiceNodeParam.invalid reference
ServiceNodeParamThis is the single access point for the per-station heterogeneous-server fields (nservertypes, servertypenames, serverspertype, servercompat, heterorates, heteroproc, heteroprocid, heteroschedpolicy).
- Parameters:
st- the station- Returns:
- the station's ServiceNodeParam, or null
-
getStations
Returns the list of stations in the network.- Returns:
- List of Station objects
-
validateStructuralConsistency
public void validateStructuralConsistency()Validates the structural consistency of stations, stateful nodes, and nodes according to MATLAB implementation requirements. This method ensures: 1. All stations are stateful nodes (stations ⊆ stateful) 2. All stateful nodes are nodes (stateful ⊆ nodes) 3. Hash mapping consistency between node types 4. Count consistency for nstations, nstateful, nnodes- Throws:
IllegalStateException- if structural consistency is violated
-
isConsistentWithMatlab
public boolean isConsistentWithMatlab()Checks if this NetworkStruct is consistent with MATLAB implementation. This is a convenience method that calls validateStructuralConsistency and returns true if no exceptions are thrown.- Returns:
- true if structure is consistent, false otherwise
-
print
public void print()Print comprehensive information about this NetworkStruct. This method displays all fields, matrices, lists, and maps in a formatted manner useful for debugging and inspection.
-