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 TypeFieldDescriptionHeterogeneous service process parameters per station, server type, and class.Heterogeneous service process type per station, server type, and class.Heterogeneous service rates per station, server type, and class.Heterogeneous scheduling policy per station.intintintintintNumber of server types per station.intintServer-class compatibility matrix per station.Number of servers per server type at each station.Server type names per station. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
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
-
nservertypes
Number of server types per station. Matrix (M x 1) where entry (i) is the count of server types at station i. A value of 0 indicates a homogeneous (traditional) queue. -
servertypenames
Server type names per station. servertypenames.get(station).get(t) returns the name of server type t at that station. -
serverspertype
Number of servers per server type at each station. serverspertype.get(station) returns a Matrix (nTypes x 1) where entry (t) is the count of servers of type t. -
servercompat
Server-class compatibility matrix per station. servercompat.get(station) returns a Matrix (nTypes x K) where entry (t, r) is 1.0 if server type t can serve job class r, 0.0 otherwise. -
heterorates
Heterogeneous service rates per station, server type, and class. heterorates.get(station).get(serverTypeId).get(classId) returns the service rate. -
heteroproc
Heterogeneous service process parameters per station, server type, and class. heteroproc.get(station).get(serverTypeId).get(classId) returns the PH matrices. -
heteroprocid
Heterogeneous service process type per station, server type, and class. heteroprocid.get(station).get(serverTypeId).get(classId) returns the ProcessType. -
heteroschedpolicy
Heterogeneous scheduling policy per station. heteroschedpolicy.get(station) returns the HeteroSchedPolicy for that station.
-
-
Constructor Details
-
NetworkStruct
public NetworkStruct()
-
-
Method Details
-
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.
-