Package adams.core

Class RProjectHelper


  • public class RProjectHelper
    extends Object
    Helper class for the R project setup.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_Singleton

        protected static RProjectHelper m_Singleton
        the singleton.
      • m_Properties

        protected adams.core.Properties m_Properties
        the properties.
      • m_Modified

        protected boolean m_Modified
        whether the settings got modified.
    • Method Detail

      • isModified

        public boolean isModified()
        Whether the settings got modified.
        Returns:
        true if modified
      • getRExecutable

        public File getRExecutable()
        Returns the R executable.
        Returns:
        the executable
      • setRExecutable

        public void setRExecutable​(File value)
        Updates the R executable.
        Parameters:
        value - the executable
      • getRserveHost

        public String getRserveHost()
        Returns the Rserve host.
        Returns:
        the host
      • setRserveHost

        public void setRserveHost​(String value)
        Updates the Rserve host.
        Parameters:
        value - the host
      • getRservePort

        public int getRservePort()
        Returns the Rserve port.
        Returns:
        the port
      • setRservePort

        public void setRservePort​(int value)
        Updates the Rserve port.
        Parameters:
        value - the port
      • reload

        public void reload()
        Reloads the properties file. Discards any unsaved settings.
      • save

        public boolean save()
        Saves the settings in the user's home directory.
        Returns:
        true if successfully saved
      • getSingleton

        public static RProjectHelper getSingleton()
        Returns the singleton.
        Returns:
        the singleton