Package com.singularsys.jeptests.unit.misc

# Class PublishingVariableTest.SignallingTableUpdator

java.lang.Object
com.singularsys.jep.misc.publishingvariable.VariableTableSubscriber
com.singularsys.jep.misc.publishingvariable.VariableTableUpdater
com.singularsys.jeptests.unit.misc.PublishingVariableTest.SignallingTableUpdator

All Implemented Interfaces:
  `Flow.Subscriber<VariableTableAction>`

Enclosing class:
  `PublishingVariableTest`

public static class PublishingVariableTest.SignallingTableUpdator extends VariableTableUpdater
Updates a variable table when another table changes

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SignallingTableUpdator(VariableTable vt, Semaphore ready, Semaphore doWork)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected void`
  `variableAdded(String name, Object value)`
  Called when a variable is added to the table.
  `protected void`
  `variableChanged(String name, Object oldValue, Object newValue)`
  Called when a variable value has changed.

  ### Methods inherited from class com.singularsys.jep.misc.publishingvariable.VariableTableUpdater

  `clearNonConstants, constantAdded, onError, tableCleared, variableRemoved`

  ### Methods inherited from class com.singularsys.jep.misc.publishingvariable.VariableTableSubscriber

  `cancel, onComplete, onNext, onSubscribe`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SignallingTableUpdator

    public SignallingTableUpdator(VariableTable vt, Semaphore ready, Semaphore doWork)

- ## Method Details

  - ### variableChanged

    protected void variableChanged(String name, Object oldValue, Object newValue)
    Description copied from class: `VariableTableSubscriber`
    Called when a variable value has changed. Intended to be overridden by subclasses. Default implementation does nothing.
    Overrides:
      `variableChanged` in class `VariableTableUpdater`
    Parameters:
      `name` - name of the variable
      `oldValue` - previous value of the variable
      `newValue` - value of the variable after the change

  - ### variableAdded

    protected void variableAdded(String name, Object value)
    Description copied from class: `VariableTableSubscriber`
    Called when a variable is added to the table. Intended to be overridden by subclasses. Default implementation does nothing.
    Overrides:
      `variableAdded` in class `VariableTableUpdater`
    Parameters:
      `name` - the name of the variable which has been added.
      `value` - the value of the variable which has been added.