Package jline.lang
Class Env
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
Env.ResetQueueLengthsFunction
public interface
Env.ResetEnvRatesFunction
-
Field Summary
Fields Modifier and Type Field Description public final Array<Array<Markovian>>
env
public Array<Array<MatrixCell>>
proc
public Array<MatrixCell>
holdTime
public Matrix
probEnv
public Matrix
probOrig
public Array<Array<Env.ResetQueueLengthsFunction>>
resetQLFun
public Array<Array<Env.ResetEnvRatesFunction>>
resetEnvRatesFun
protected List<Network>
ensemble
-
Method Summary
Modifier and Type Method Description void
addStage(int stageIdx, String name, String type, Network model)
Adds a network model to a specific stage of the environment. void
addTransition(int fromStageIdx, int toStageIdx, Markovian distrib)
Adds a transition between two stages with default reset function (identity). void
addTransition(int fromStageIdx, int toStageIdx, Markovian distrib, Env.ResetQueueLengthsFunction resetFun)
Adds a transition between two stages with a custom reset function. void
init()
void
printStageTable()
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.
-
-
-
-