Class AbstractDS

  • Direct Known Subclasses:
    DS, DS

    public abstract class AbstractDS
    extends Object
    The Abstract DS (Data Source).
    Author:
    Alejandro Galue
    • Constructor Detail

      • AbstractDS

        public AbstractDS()
    • Method Detail

      • getName

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

        public void setName​(String name)
        Sets the name.

        The XML may contain spaces that must be removed.

        Parameters:
        name - the new name
      • getMinHeartbeat

        public Long getMinHeartbeat()
        Gets the minimum heartbeat.
        Returns:
        the minimum heartbeat
      • setMinHeartbeat

        public void setMinHeartbeat​(Long minHeartbeat)
        Sets the minimum heartbeat.
        Parameters:
        minHeartbeat - the new minimum heartbeat
      • getMin

        public Double getMin()
        Gets the minimum value.
        Returns:
        the minimum value
      • setMin

        public void setMin​(Double min)
        Sets the minimum value.
        Parameters:
        min - the new minimum value
      • getMax

        public Double getMax()
        Gets the maximum value.
        Returns:
        the maximum value
      • setMax

        public void setMax​(Double max)
        Sets the maximum value.
        Parameters:
        max - the new maximum value
      • getLastDs

        public Double getLastDs()
        Gets the last data source value.
        Returns:
        the last data source time stamp
      • setLastDs

        public void setLastDs​(Double lastDs)
        Sets the last data source value.
        Parameters:
        lastDs - the new last data source value
      • getValue

        public Double getValue()
        Gets the value.
        Returns:
        the value
      • setValue

        public void setValue​(Double value)
        Sets the value.
        Parameters:
        value - the new value
      • getUnknownSec

        public Long getUnknownSec()
        Gets the unknown seconds.
        Returns:
        the unknown seconds
      • setUnknownSec

        public void setUnknownSec​(Long unknownSec)
        Sets the unknown seconds.
        Parameters:
        unknownSec - the new unknown seconds
      • isCounter

        public abstract boolean isCounter()
        Checks if the data source is counter.
        Returns:
        true, if the data source is a counter
      • formatEquals

        public boolean formatEquals​(AbstractDS ds)
        Format equals.
        Parameters:
        ds - the DS object
        Returns:
        true, if successful