Class OutputSection

All Implemented Interfaces:
Serializable, Copyable
Direct Known Subclasses:
Dispatcher, Firing, Forker, Linkage

public class OutputSection extends Section implements Serializable
Output section of a node
See Also:
  • Field Details

  • Constructor Details

    • OutputSection

      public OutputSection(String className)
  • Method Details

    • getOutputStrategies

      public final List<OutputStrategy> getOutputStrategies()
    • getOutputStrategyByClass

      public List<OutputStrategy> getOutputStrategyByClass(JobClass jobClass)
    • printSummary

      public void printSummary()
    • probabilityUpdate

      protected void probabilityUpdate()
    • resetRouting

      public void resetRouting()
    • setOutputStrategy

      public void setOutputStrategy(JobClass jobClass, RoutingStrategy routingStrategy)
    • resetDisabledOutputStrategy

      public void resetDisabledOutputStrategy(JobClass jobClass)
      Like setOutputStrategy(JobClass, RoutingStrategy) but only resets the class if it currently has the RoutingStrategy.DISABLED default. Classes that have had meaningful routing configured upstream (e.g. by Cache.setRetrievalSystem which runs before Network.link) are preserved. Used by Dispatcher.initDispatcherJobClasses(java.util.List<jline.lang.JobClass>) during link() 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 KCHOICES.
      Parameters:
      jobClass - the job class
      valueFunction - the value function
      vfShape - per-axis sizes of the tabular value function
      nodesNeedAction - node indices that consult the value function
      stateSize - 0 = tabular, >0 = linear approximation, <0 = JSQ fallback
    • setKchoicesParams

      public void setKchoicesParams(JobClass jobClass, int k, boolean withMemory)
      Stores KCHOICES routing parameters (k and memory flag) for the given class.
    • setOutputStrategy

      public void setOutputStrategy(JobClass jobClass, RoutingStrategy routingStrategy, Node destination, double probability)