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 Version
currentRepositoryVersion.static Version
currentViewableVersion.boolean
int
hashCode()
hashCode.nextIncrementalRelease.nextMajorVersion.nextMinorSubversion.nextMinorVersion.static Version
Generates 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
-
hashCode
-
equals
-
toString
-
nextMajorVersion
-
nextMinorVersion
-
nextMinorSubversion
-
nextIncrementalRelease
-