Class DiagOpDispenser

  • Constructor Details

  • Method Details

    • applyReconfig

      public void applyReconfig(NBConfiguration recfg)
      Description copied from interface: NBReconfigurable
      This applies a configuration to an element AFTER the initial configuration from NBConfigurable.
      Specified by:
      applyReconfig in interface NBCanReconfigure
      Specified by:
      applyReconfig in interface NBReconfigurable
      Parameters:
      recfg - The configuration data to be applied to a new instance
    • getReconfigModel

      public NBConfigModel getReconfigModel()
      Description copied from interface: NBReconfigurable
      Implement this method by returning an instance of ConfigModel. Any configuration which is provided to the NBReconfigurable.applyReconfig(NBConfiguration) method will be validated through this model. A configuration model is required in order to build a validated configuration from source data provided by a user.
      Specified by:
      getReconfigModel in interface NBReconfigModelProvider
      Specified by:
      getReconfigModel in interface NBReconfigurable
      Returns:
      A valid configuration model for the implementing class
    • getOp

      public DiagOp getOp(long cycle)
      Description copied from interface: OpDispenser
      This method should do all the work of creating an operation that is executable by some other caller. The value produced by the apply method should not require additional processing if a caller wants to execute the operation multiple times, as for retries.
      Specified by:
      getOp in interface OpDispenser<DiagOp>
      Parameters:
      cycle - The cycle number which serves as the seed for any generated op fields to be bound into an operation.
      Returns:
      an executable operation