Package jline.lang.sections
Class OutputSection
java.lang.Object
jline.lang.Element
jline.lang.NetworkElement
jline.lang.sections.Section
jline.lang.sections.OutputSection
- All Implemented Interfaces:
Serializable,Copyable
- Direct Known Subclasses:
Dispatcher,Firing,Forker,Linkage
Output section of a node
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<OutputStrategy> getOutputStrategyByClass(JobClass jobClass) voidprotected voidvoidresetDisabledOutputStrategy(JobClass jobClass) LikesetOutputStrategy(JobClass, RoutingStrategy)but only resets the class if it currently has theRoutingStrategy.DISABLEDdefault.voidvoidsetOutputStrategy(JobClass jobClass, RoutingStrategy routingStrategy) voidsetOutputStrategy(JobClass jobClass, RoutingStrategy routingStrategy, Node destination, double probability) voidsetRLParams(JobClass jobClass, Matrix valueFunction, int[] vfShape, int[] nodesNeedAction, int stateSize) Stores RL routing parameters for the given class, replacing any existing entries for it with a single RL entry.voidsetSQParams(JobClass jobClass, int d) Stores SQ routing parameters (k and memory flag) for the given class.Methods inherited from class jline.lang.sections.Section
getClassName
-
Field Details
-
schedPolicy
-
outputStrategies
-
-
Constructor Details
-
OutputSection
-
-
Method Details
-
getOutputStrategies
-
getOutputStrategyByClass
-
printSummary
public void printSummary() -
probabilityUpdate
protected void probabilityUpdate() -
resetRouting
public void resetRouting() -
setOutputStrategy
-
resetDisabledOutputStrategy
LikesetOutputStrategy(JobClass, RoutingStrategy)but only resets the class if it currently has theRoutingStrategy.DISABLEDdefault. Classes that have had meaningful routing configured upstream (e.g. byCache.setRetrievalSystemwhich runs beforeNetwork.link) are preserved. Used byDispatcher.initDispatcherJobClasses(java.util.List<jline.lang.JobClass>)duringlink()re-initialization so the clearing step does not destroy pre-link routing for auto-created retrieval-system classes. -
setRLParams
public void setRLParams(JobClass jobClass, Matrix valueFunction, int[] vfShape, int[] nodesNeedAction, int stateSize) Stores RL routing parameters for the given class, replacing any existing entries for it with a single RL entry. The parameters live on the OutputStrategy (durable model state) rather than on the NetworkStruct, which refreshStruct rebuilds; Network.refreshLocalVars copies them into the per-node NodeParam that sub_rl reads, exactly as it does for SQ.- Parameters:
jobClass- the job classvalueFunction- the value functionvfShape- per-axis sizes of the tabular value functionnodesNeedAction- node indices that consult the value functionstateSize- 0 = tabular, >0 = linear approximation, <0 = JSQ fallback
-
setSQParams
Stores SQ routing parameters (k and memory flag) for the given class. -
setOutputStrategy
public void setOutputStrategy(JobClass jobClass, RoutingStrategy routingStrategy, Node destination, double probability)
-