Package jline.lang
Class Env
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceEnv.ResetQueueLengthsFunctionpublic interfaceEnv.ResetEnvRatesFunction
-
Field Summary
Fields Modifier and Type Field Description public final Array<Array<Markovian>>envpublic Array<Array<MatrixCell>>procpublic Array<MatrixCell>holdTimepublic MatrixprobEnvpublic MatrixprobOrigpublic Array<Array<Env.ResetQueueLengthsFunction>>resetQLFunpublic Array<Array<Env.ResetEnvRatesFunction>>resetEnvRatesFunprotected List<Network>ensemble
-
Method Summary
Modifier and Type Method Description voidaddStage(int stageIdx, String name, String type, Network model)Adds a network model to a specific stage of the environment. voidaddTransition(int fromStageIdx, int toStageIdx, Markovian distrib)Adds a transition between two stages with default reset function (identity). voidaddTransition(int fromStageIdx, int toStageIdx, Markovian distrib, Env.ResetQueueLengthsFunction resetFun)Adds a transition between two stages with a custom reset function. voidinit()voidprintStageTable()Prints a formatted table showing all stages, their properties, and transitions. -
Methods inherited from class jline.lang.Ensemble
getEnsemble, getModel, setEnsemble, size -
Methods inherited from class jline.lang.Model
getName, getVersion, setName, setVersion -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Env
Env(String name, int numStages)
-
-
Method Detail
-
addStage
void addStage(int stageIdx, String name, String type, Network model)
Adds a network model to a specific stage of the environment. All stages must have networks with the same number of stateful nodes.
- Parameters:
stageIdx- the index of the stage (0-based)name- the name of this stagetype- the type classification for this stagemodel- the network model to associate with this stage
-
addTransition
void addTransition(int fromStageIdx, int toStageIdx, Markovian distrib)
Adds a transition between two stages with default reset function (identity).
- Parameters:
fromStageIdx- the source stage indextoStageIdx- the destination stage indexdistrib- the Markovian distribution governing this transition
-
addTransition
void addTransition(int fromStageIdx, int toStageIdx, Markovian distrib, Env.ResetQueueLengthsFunction resetFun)
Adds a transition between two stages with a custom reset function.
- Parameters:
fromStageIdx- the source stage indextoStageIdx- the destination stage indexdistrib- the Markovian distribution governing this transitionresetFun- function to apply when transitioning to reset queue lengths
-
init
void init()
-
printStageTable
void printStageTable()
Prints a formatted table showing all stages, their properties, and transitions. Displays stage names, types, associated networks, and transition rates.
-
-
-
-