Package jline.api.rl
Class RlEnv
-
- All Implemented Interfaces:
public final class RlEnvReinforcement Learning Environment for Queueing Networks Provides an interface for RL agents to interact with queueing network models
-
-
Field Summary
Fields Modifier and Type Field Description private final Networkmodelprivate final IntegeractionSizeprivate final IntArrayidxOfQueueInNodesprivate final IntArrayidxOfSourceInNodesprivate final IntegerstateSizeprivate final Doublegamma
-
Method Summary
Modifier and Type Method Description final NetworkgetModel()final IntegergetActionSize()final IntArraygetIdxOfQueueInNodes()final IntArraygetIdxOfSourceInNodes()final IntegergetStateSize()final DoublegetGamma()final BooleanisInStateSpace(Array<?> nodes)Check if the current node states are within the defined state space final BooleanisInActionSpace(Array<?> nodes)Check if the current node states are within the action space final Pair<Double, Integer>sample()Sample the next event from the queueing network Returns the time until next event and the node where departure occursNOTE: This is a placeholder implementation. final Unitupdate(IntArray newState)Update the model state after an action/eventNOTE: This is a placeholder implementation. final Unitreset()Reset the environment to initial state -
-
Method Detail
-
getActionSize
final Integer getActionSize()
-
getIdxOfQueueInNodes
final IntArray getIdxOfQueueInNodes()
-
getIdxOfSourceInNodes
final IntArray getIdxOfSourceInNodes()
-
getStateSize
final Integer getStateSize()
-
isInStateSpace
final Boolean isInStateSpace(Array<?> nodes)
Check if the current node states are within the defined state space
-
isInActionSpace
final Boolean isInActionSpace(Array<?> nodes)
Check if the current node states are within the action space
-
sample
final Pair<Double, Integer> sample()
Sample the next event from the queueing network Returns the time until next event and the node where departure occurs
NOTE: This is a placeholder implementation. In the actual implementation, this would use SolverSSA.
-
update
final Unit update(IntArray newState)
Update the model state after an action/event
NOTE: This is a placeholder implementation.
-
-
-
-