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 TypeFieldDescriptionintintintintintintint -
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
-
cdscaling
-
impatienceType
-
impatienceMu
-
impatiencePhi
-
impatienceProc
-
impatiencePie
-
impatiencePhases
-
balkingStrategy
-
balkingThresholds
-
retrialType
-
retrialMu
-
retrialPhi
-
retrialProc
-
retrialMaxAttempts
-
orbitImpatience
-
refstat
-
njobs
-
nservers
-
connmatrix
-
scv
-
isstation
-
isstateful
-
isstatedep
-
nodeToStateful
-
nodeToStation
-
stationToNode
-
stationToStateful
-
statefulToStation
-
statefulToNode
-
rates
-
classprio
-
classdeadline
-
phases
-
phasessz
-
phaseshift
-
schedparam
-
chains
-
rt
-
nvars
-
rtnodes
-
csmask
-
isslc
-
immfeed
-
issignal
-
signaltype
-
syncreply
-
signalRemovalDist
-
signalRemovalPolicy
-
isCatastrophe
-
cap
-
classcap
-
nregions
public int nregions -
region
-
regionrule
-
regionweight
-
regionsz
-
regionLinConA
-
regionLinConb
-
refclass
-
lldscaling
-
ljdscaling
-
ljdcutoffs
-
ljcdscaling
-
ljcdcutoffs
-
fj
-
varsparam
-
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.
-