Package jline.lang
Class Network
java.lang.Object
jline.lang.Model
jline.lang.Network
- All Implemented Interfaces:
Serializable
A queueing network model
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemSet
(ItemSet itemSet) Adds an item set to the current list of itemsvoid
addJobClass
(JobClass jobClass) void
addLink
(int sourceNodeIdx, int destNodeIdx) void
void
void
void
void
static Network
cyclic
(Matrix N, Matrix D, SchedStrategy[] strategy, Matrix S) static Network
cyclicFcfs
(Matrix N, Matrix D, Matrix S) static Network
cyclicFcfsInf
(Matrix N, Matrix D, Matrix Z) static Network
cyclicFcfsInf
(Matrix N, Matrix D, Matrix Z, Matrix S) static Network
static Network
cyclicPsInf
(Matrix N, Matrix D, Matrix S) static Network
cyclicPsInf
(Matrix N, Matrix D, Matrix Z, Matrix S) protected void
getClassByIndex
(int index) getClassByName
(String name) getClassChain
(JobClass jobClass) int
getClassChainIndex
(JobClass jobClass) int
getClassIndex
(String name) int
getClassIndex
(JobClass jobclass) int
getClassLinks
(Node node, JobClass jobClass) boolean
int
int
int
Gets the station index of the sourcegetJobClassFromIndex
(int inIdx) int
getJobClassIndex
(JobClass jobClass) getNodeByIndex
(int idx) getNodeByName
(String name) getNodeByStatefulIndex
(int idx) int
getNodeIndex
(String name) int
getNodeIndex
(Node node) getNodes()
int
int
int
int
int
getProcessType
(Distribution distr) getRoutingMatrix
(Matrix arvRates, int returnVal) getSink()
int[]
getSize()
getState()
getStatefulNodeFromIndex
(int inIdx) int
getStatefulNodeIndex
(String name) int
getStatefulNodeIndex
(Node node) getStationByIndex
(int index) getStationByName
(String name) getStationFromIndex
(int inIdx) int
getStationIndex
(String name) int
getStationIndex
(Node node) getStationIndexes
(int index) getStruct
(boolean wantInitialState) Returns the language features used by the given networkboolean
boolean
boolean
boolean
hasDPS()
boolean
boolean
hasFCFS()
boolean
hasFork()
boolean
hasGPS()
boolean
boolean
hasHOL()
boolean
hasHomogeneousScheduling
(SchedStrategy strategy) boolean
hasINF()
boolean
boolean
hasJoin()
boolean
hasLCFS()
boolean
boolean
hasLEPT()
boolean
hasLJF()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasPS()
boolean
boolean
hasSEPT()
boolean
boolean
boolean
hasSIRO()
boolean
hasSJF()
void
void
initFromAvgQLen
(Matrix AvgQLen) void
void
void
void
boolean
boolean
void
void
void
link
(RoutingMatrix routing) static void
void
void
void
refreshChains
(boolean propagate) void
void
void
refreshLST
(List<Integer> statSet, List<Integer> classSet) void
void
void
refreshProcesses
(List<Integer> statSet, List<Integer> classSet) void
refreshProcessPhases
(List<Integer> statSet, List<Integer> classSet) void
void
refreshProcessTypes
(List<Integer> statSet, List<Integer> classSet) boolean[]
refreshRates
(List<Integer> statSet, List<Integer> classSet) void
refreshRoutingMatrix
(Matrix rates) void
void
refreshStruct
(boolean hardRefresh) void
void
relink
(RoutingMatrix routing) void
reset()
void
reset
(boolean resetState) void
void
resetModel
(boolean resetState) void
resetNetwork
(boolean deleteCSNodes) Resets the topology of the current networkvoid
Resets the struct of a given networkvoid
sanitize()
static RoutingMatrix
serialRouting
(List<JobClass> jobClasses, List<Node> nodes) static RoutingMatrix
serialRouting
(List<JobClass> jobClasses, Node... nodes) static RoutingMatrix
serialRouting
(List<Node> nodes) static RoutingMatrix
serialRouting
(JobClass jobClass, List<Node> nodes) static RoutingMatrix
serialRouting
(JobClass jobClass, Node... nodes) static RoutingMatrix
serialRouting
(Node... nodes) void
setChecks
(boolean doChecks) void
setConnectionMatrix
(Matrix connection) void
setCsMatrix
(Matrix csMatrix) void
setHasStruct
(boolean hasStruct) void
setInitialized
(boolean initStatus) void
setJoinNodeRequired
(int nodeIdx, JobClass jobClass, int njobs) void
setJoinNodeStrategy
(int nodeIdx, JobClass jobClass, JoinStrategy joinStrategy) void
setLogPath
(String logPath) void
setNodeRouting
(int nodeIdx, JobClass jobClass, RoutingStrategy routingStrategy) void
setSn
(NetworkStruct sn) void
void
setUsedLangFeature
(String feature) double
sub_jsq
(int ind, int jnd, int r, int s, Matrix linksmat, Map<Node, Matrix> state_before, Map<Node, Matrix> state_after) double
sub_rr_wrr
(int ind, int jnd, int r, int s, Matrix linksmat, Map<Node, Matrix> state_before, Map<Node, Matrix> state_after) void
summary()
static Network
tandem
(Matrix lambda, Matrix D, SchedStrategy[] strategy, Matrix S) static Network
tandemFcfs
(Matrix lambda, Matrix D, Matrix S) static Network
tandemFcfsInf
(Matrix lambda, Matrix D) static Network
tandemFcfsInf
(Matrix lambda, Matrix D, Matrix Z) static Network
tandemFcfsInf
(Matrix lambda, Matrix D, Matrix Z, Matrix S) static Network
static Network
tandemPsInf
(Matrix lambda, Matrix D) static Network
tandemPsInf
(Matrix lambda, Matrix D, Matrix Z) static Network
tandemPsInf
(Matrix lambda, Matrix D, Matrix Z, Matrix S) void
unLink()
void
view()
Methods inherited from class jline.lang.Model
getName, getVersion, setName, setVersion
-
Constructor Details
-
Network
-
-
Method Details
-
serialRouting
-
serialRouting
-
serialRouting
-
serialRouting
-
serialRouting
-
serialRouting
-
tandem
-
tandemFcfsInf
-
tandemFcfsInf
-
tandemFcfsInf
-
tandemPsInf
-
tandemPsInf
-
tandemPs
-
tandemFcfs
-
tandemPsInf
-
cyclic
-
cyclicPs
-
cyclicFcfs
-
cyclicPsInf
-
cyclicPsInf
-
cyclicFcfsInf
-
cyclicFcfsInf
-
main
-
initFromAvgTable
-
initFromAvgQLen
-
getClassChain
-
getClassChainIndex
-
getChains
-
setChecks
public void setChecks(boolean doChecks) -
getSize
public int[] getSize() -
hasOpenClasses
public boolean hasOpenClasses() -
hasProductFormSolution
public boolean hasProductFormSolution() -
getJobClassIndex
-
getJobClassFromIndex
-
getIndexOpenClasses
-
getIndexStatefulNodes
-
hasClosedClasses
public boolean hasClosedClasses() -
getIndexClosedClasses
-
hasClasses
public boolean hasClasses() -
getClasses
-
getNodes
-
getStations
-
addNode
-
addRegion
-
setInitialized
public void setInitialized(boolean initStatus) -
getNumberOfNodes
public int getNumberOfNodes() -
getNumberOfStations
public int getNumberOfStations() -
getNumberOfStatefulNodes
public int getNumberOfStatefulNodes() -
getNumberOfClasses
public int getNumberOfClasses() -
getClassByName
-
getStationByName
-
getClassByIndex
-
getStationByIndex
-
getStationIndexes
-
addJobClass
-
getNodeByName
-
getNodeByIndex
-
getNodeByStatefulIndex
-
getNodeIndex
-
getNodeIndex
-
getStatefulNodeIndex
-
getStatefulNodeFromIndex
-
getStationIndex
-
getStationFromIndex
-
link
-
relink
-
unLink
public void unLink() -
addLink
-
addLink
public void addLink(int sourceNodeIdx, int destNodeIdx) -
addLinks
-
getState
-
hasInitState
public boolean hasInitState() -
isLimitedLoadDependent
public boolean isLimitedLoadDependent() -
initDefault
public void initDefault() -
isStateValid
public boolean isStateValid() -
summary
public void summary() -
clearCaches
public void clearCaches() -
generateClassLinks
protected void generateClassLinks() -
getClassLinks
-
getCsMatrix
-
setCsMatrix
-
getConnectionMatrix
-
setConnectionMatrix
-
getForkJoins
-
getHasStruct
public boolean getHasStruct() -
setHasStruct
public void setHasStruct(boolean hasStruct) -
getStruct
-
setStruct
-
getStruct
-
refreshStruct
public void refreshStruct(boolean hardRefresh) -
sanitize
public void sanitize() -
getNodeTypes
-
getClassNames
-
getNodeNames
-
getReferenceStations
-
getReferenceClasses
-
getIndexSourceNode
public int getIndexSourceNode() -
getSource
-
getSink
-
getIndexSinkNode
public int getIndexSinkNode() -
getNumberOfJobs
-
getStationServers
-
getLimitedLoadDependence
-
getLimitedClassDependence
-
getRoutingStrategyFromNodeAndClassPair
-
setSn
-
refreshPriorities
public void refreshPriorities() -
refreshProcesses
-
refreshJobs
public void refreshJobs() -
refreshRates
-
refreshProcessTypes
-
getProcessType
-
refreshProcessPhases
-
refreshLST
-
refreshProcessRepresentations
public void refreshProcessRepresentations() -
refreshScheduling
public void refreshScheduling() -
getStationScheduling
-
refreshChains
public void refreshChains(boolean propagate) -
refreshRoutingMatrix
-
printRoutingMatrix
public void printRoutingMatrix() -
getRoutingMatrix
-
refreshCapacity
public void refreshCapacity() -
refreshLocalVars
public void refreshLocalVars() -
refreshSync
public void refreshSync() -
sub_rr_wrr
-
refreshPetriNetNodes
public void refreshPetriNetNodes() -
sub_jsq
-
getAvgHandles
-
getTranHandles
-
initFromMarginal
-
getAvgQLenHandles
-
getAvgUtilHandles
-
getAvgRespTHandles
-
getAvgTputHandles
-
getAvgArvRHandles
-
getAvgResidTHandles
-
getTranQLenHandles
-
getTranUtilHandles
-
getTranTputHandles
-
getDemands
-
getProductFormParameters
-
getProductFormChainParameters
-
getDemandsChain
-
hasFork
public boolean hasFork() -
hasJoin
public boolean hasJoin() -
getJobClasses
-
initRoutingMatrix
-
getAttribute
-
getLogPath
-
setLogPath
-
getRegions
-
addItemSet
Adds an item set to the current list of items- Parameters:
itemSet
- - the item set to be added
-
resetHandles
public void resetHandles() -
resetModel
public void resetModel(boolean resetState) -
reset
public void reset() -
reset
public void reset(boolean resetState) -
resetNetwork
public void resetNetwork() -
resetNetwork
Resets the topology of the current network- Parameters:
deleteCSNodes
- - flag to indicate whether to delete the class switch nodes
-
resetStruct
public void resetStruct()Resets the struct of a given network -
getIndexSourceStation
public int getIndexSourceStation()Gets the station index of the source- Returns:
- -
-
getUsedLangFeatures
Returns the language features used by the given network- Returns:
- - the language features used by the given network
-
setUsedLangFeature
-
setJoinNodeStrategy
-
setJoinNodeRequired
-
setNodeRouting
-
view
public void view() -
jsimgView
public void jsimgView() -
jsimwView
public void jsimwView() -
hasFCFS
public boolean hasFCFS() -
hasHomogeneousScheduling
-
hasPS
public boolean hasPS() -
hasDPS
public boolean hasDPS() -
hasGPS
public boolean hasGPS() -
hasPSPrio
public boolean hasPSPrio() -
hasDPSPrio
public boolean hasDPSPrio() -
hasGPSPrio
public boolean hasGPSPrio() -
hasINF
public boolean hasINF() -
hasSIRO
public boolean hasSIRO() -
hasHOL
public boolean hasHOL() -
hasLCFS
public boolean hasLCFS() -
hasLCFSPR
public boolean hasLCFSPR() -
hasSEPT
public boolean hasSEPT() -
hasLEPT
public boolean hasLEPT() -
hasSJF
public boolean hasSJF() -
hasLJF
public boolean hasLJF() -
hasMultiClassFCFS
public boolean hasMultiClassFCFS() -
hasMultiClassHeterFCFS
public boolean hasMultiClassHeterFCFS() -
hasMultiServer
public boolean hasMultiServer() -
hasSingleChain
public boolean hasSingleChain() -
hasMultiChain
public boolean hasMultiChain() -
hasSingleClass
public boolean hasSingleClass() -
hasMultiClass
public boolean hasMultiClass() -
hasClassSwitching
public boolean hasClassSwitching() -
getLinkedRoutingMatrix
-
getNumberOfChains
public int getNumberOfChains() -
getStatefulNodes
-
getStatefulNodeNames
-
getStatefulNodeIndex
-
getStationNames
-
getStationIndex
-
getClassIndex
-
getClassSwitchingMask
-
getClassIndex
-
initFromMarginalAndStarted
-
initFromMarginalAndRunning
-