Class ConsumerDouble

java.lang.Object
at.ac.ait.lablink.clients.dpbridge.ConsumerDouble

public class ConsumerDouble
extends Object
Class ConsumerDouble.
  • Field Details

    • LOG

      private static final org.apache.logging.log4j.Logger LOG
      The logger.
    • consumer

      private at.ac.ait.lablink.core.service.datapoint.consumer.impl.DoubleDataPointConsumer consumer
      The consumer.
    • notifiers

      private Map<String,​ConsumerDouble> notifiers
      The notifiers.
    • name

      private String name
      The name.
  • Constructor Details

    • ConsumerDouble

      public ConsumerDouble​(String name, String group, String client, String dpname, String identifier)
      Instantiates a new consumer string.
      Parameters:
      name - the name
      group - the group
      client - the client
      dpname - the data point name
      identifier - the identifier
  • Method Details

    • notifyUpdate

      private void notifyUpdate​(double newvalue)
      Notify update.
      Parameters:
      newvalue - the newvalue
    • createConsumer

      private void createConsumer​(String group, String client, String dpname, String identifier)
      Creates the consumer.
      Parameters:
      group - the group
      client - the client
      dpname - the dpname
      identifier - the identifier
    • getConsumer

      public at.ac.ait.lablink.core.service.datapoint.consumer.impl.DoubleDataPointConsumer getConsumer()
      Gets the consumer.
      Returns:
      the consumer
    • addNotifier

      public boolean addNotifier​(String id, ConsumerDouble notifier)
      Adds the notifier.
      Parameters:
      id - the id
      notifier - the notifier
      Returns:
      true, if successful
    • register

      public void register​(at.ac.ait.lablink.core.service.datapoint.consumer.IDataPointConsumerService service)
      Register.
      Parameters:
      service - the service
    • updateValue

      public void updateValue​(double newVal)
      Update value.
      Parameters:
      newVal - the new value
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name