org.ggf.drmaa
Class Version

java.lang.Object
  extended by org.ggf.drmaa.Version
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Version
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

The Version class is a holding class for the major and minor version numbers of the GridWay DRMAA implementation.

See Also:
Serialized Form

Constructor Summary
Version(int major, int minor)
          Constructor that initialize the major and minor values
 
Method Summary
 java.lang.Object clone()
           
 int comparteTo(java.lang.Object obj)
          Compares this object with the specified object for order.
 boolean equals(java.lang.Object obj)
           
 int getMajor()
          This method gets the major versions of the DRMAA JAVA binding specification implemented by the DRMAA implementation.
 int getMinor()
          This method gets the minor versions of the DRMAA JAVA binding specification implemented by the DRMAA implementation.
 int hashCode()
          This method return the hash code of the DRMAA JAVA binding specification implemented by the DRMAA implementation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Version

public Version(int major,
               int minor)
Constructor that initialize the major and minor values

Method Detail

getMajor

public int getMajor()
This method gets the major versions of the DRMAA JAVA binding specification implemented by the DRMAA implementation. Current implementation* is 1.0

Returns:
The major value, currently 1

getMinor

public int getMinor()
This method gets the minor versions of the DRMAA JAVA binding specification implemented by the DRMAA implementation. Current implementation* is 1.0

Returns:
The major value, current 0

comparteTo

public int comparteTo(java.lang.Object obj)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object

Returns:
0 if is equal, -1 if is less, 1 if is greater

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
This method return the hash code of the DRMAA JAVA binding specification implemented by the DRMAA implementation.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code of the current implementation