Package edu.cmu.tetrad.util
Class Version
java.lang.Object
edu.cmu.tetrad.util.Version
- All Implemented Interfaces:
TetradSerializable,Serializable
Represents the getModel Tetrad version. This needs to be modified manually each time a new version is released. The
form of the version is a.b.c-d, where "a" is the major version, "b" is the minor version, "c" is the minor
subversion, and "d" is the incremental release number for subversions.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VersioncurrentRepositoryVersion.static VersioncurrentViewableVersion.booleaninthashCode()hashCode.nextIncrementalRelease.nextMajorVersion.nextMinorSubversion.nextMinorVersion.static VersionGenerates a simple exemplar of this class to test serialization.toString()toString.
-
Constructor Details
-
Version
Parses string version specs into Versions.- Parameters:
spec- A string of the form a.b.c-d.
-
-
Method Details
-
currentRepositoryVersion
currentRepositoryVersion.
- Returns:
- the model version as stored in project/resources/version. This will be the same as the getModel viewable version when the ejar and task is run. (The file is copied over.)
-
currentViewableVersion
currentViewableVersion.
- Returns:
- the model version as stored in the ejar. To sync this with the version at project/resources/version, run the ejar ant task.
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a
Versionobject
-
hashCode
public int hashCode()hashCode.
-
equals
-
toString
toString.
-
nextMajorVersion
nextMajorVersion.
- Returns:
- a
Versionobject
-
nextMinorVersion
nextMinorVersion.
- Returns:
- a
Versionobject
-
nextMinorSubversion
nextMinorSubversion.
- Returns:
- a
Versionobject
-
nextIncrementalRelease
nextIncrementalRelease.
- Returns:
- a
Versionobject
-