Package jadex.bridge

Class JadexVersion


  • public class JadexVersion
    extends java.lang.Object
    Bean containing a Jadex version.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int majorversion
      The major version if available.
      protected int minorversion
      The minor version if available.
    • Constructor Summary

      Constructors 
      Constructor Description
      JadexVersion()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMajorVersion()
      Returns the major version of Jadex.
      int getMinorVersion()
      Returns the minor version of Jadex.
      boolean isUnknown()
      Checks if the version is unknown.
      void setMajorVersion​(int majorversion)
      Sets the major version.
      void setMinorVersion​(int minorversion)
      Sets the minor version.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • majorversion

        protected int majorversion
        The major version if available.
      • minorversion

        protected int minorversion
        The minor version if available.
    • Constructor Detail

      • JadexVersion

        public JadexVersion()
    • Method Detail

      • getMajorVersion

        public int getMajorVersion()
        Returns the major version of Jadex.
        Returns:
        Version of Jadex, -1 if version cannot be determined.
      • setMajorVersion

        public void setMajorVersion​(int majorversion)
        Sets the major version.
        Parameters:
        majorversion - The version.
      • getMinorVersion

        public int getMinorVersion()
        Returns the minor version of Jadex.
        Returns:
        Version of Jadex, -1 if version cannot be determined.
      • setMinorVersion

        public void setMinorVersion​(int minorversion)
        Sets the minor version.
        Parameters:
        majorversion - The version.
      • isUnknown

        public boolean isUnknown()
        Checks if the version is unknown.
        Returns:
        True, if unknown.