Package adams.tools

Class AbstractAddRemoveTimeWindowDatabaseTool

    • Field Detail

      • m_Add

        protected boolean m_Add
        whether to add flags.
      • m_Remove

        protected boolean m_Remove
        whether to remove the flags.
      • m_Store

        protected boolean m_Store
        whether to write a modified report back to the database.
    • Constructor Detail

      • AbstractAddRemoveTimeWindowDatabaseTool

        public AbstractAddRemoveTimeWindowDatabaseTool()
    • Method Detail

      • setAdd

        public void setAdd​(boolean value)
        Sets whether only new standard flags get set and current ones not revoked or not.
        Parameters:
        value - if true then standard flags only get added but never revoked; if false then previously standard flags can be set to false (if they don't match the reg. exp.)
      • getAdd

        public boolean getAdd()
        Returns whether only new standard flags get set and current ones not revoked or not.
        Returns:
        true if only new standards get added and current ones not (potentially) revoked.
      • addTipText

        public abstract String addTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setRemove

        public void setRemove​(boolean value)
        Sets whether to remove the true flags using the regular expressions or not.
        Parameters:
        value - if true then standard flags only get added but never revoked; if false then previously standard flags can be set to false (if they don't match the reg. exp.)
      • getRemove

        public boolean getRemove()
        Returns whether the true flags are removed based on the regular expressions or not.
        Returns:
        true if only new standards get added and current ones not (potentially) revoked.
      • removeTipText

        public abstract String removeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setStore

        public void setStore​(boolean value)
        Sets whether a modified report gets written back to the database.
        Parameters:
        value - if true then modified reports get written back to the database
      • getStore

        public boolean getStore()
        Returns whether a modified report gets written back to the database.
        Returns:
        true if a modified report gets written back to the database
      • storeTipText

        public String storeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • preRun

        protected void preRun()
        Before the actual run is executed. Checks the setup and corrects things, if possible.
        Overrides:
        preRun in class AbstractTool
      • doRemoveRun

        protected abstract void doRemoveRun()
        Peforms the "remove" run.
      • doAddRun

        protected abstract void doAddRun()
        Peforms the "add" run.
      • doRun

        protected void doRun()
        Executes the tool.
        Specified by:
        doRun in class AbstractTool