com.ionetrics.lib.annotatorcomm
Class FirmwareVersion

java.lang.Object
  extended by com.ionetrics.lib.annotatorcomm.FirmwareVersion

public class FirmwareVersion
extends java.lang.Object

FirmwareVersion represents the firmware of a particular microchip. Versions are represented by four ordered integers named major, minor, micro, and nano respectively.

Changes between major version numbers indicate a complete overhaul. Extensive changes to design, implementation, and API are to be expected. They are typically neither forward nor backware compatible.

Changes between minor version numbers indicate feature additions, non-trivial underbelly adjustments, and clarifications of ambiguity. They are typically backward but not forward compatible.

Changes between micro version numbers indicate bugs fixes and clarifications of minor ambiguity. They are typically forward and backware compatible.

Changes between nano version numbers indicate custom firmware requirements have been added. Compatibility is dependent on the customizations.


Constructor Summary
FirmwareVersion(int iMajor, int iMinor, int iMicro, int iNano)
          Construct a FirmwareVersion.
 
Method Summary
 int getMajor()
          Get the version major number.
 int getMicro()
          Get the version micro number.
 int getMinor()
          Get the version minor number.
 int getNano()
          Get the version nano number.
 java.lang.String toString()
          Get the human readable form of the version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FirmwareVersion

public FirmwareVersion(int iMajor,
                       int iMinor,
                       int iMicro,
                       int iNano)
Construct a FirmwareVersion.

Parameters:
iMajor - version major
iMinor - version minor
iMicro - version micro
iNano - version nano
Method Detail

getMajor

public int getMajor()
Get the version major number.

Returns:
version major

getMinor

public int getMinor()
Get the version minor number.

Returns:
version minor

getMicro

public int getMicro()
Get the version micro number.

Returns:
version micro

getNano

public int getNano()
Get the version nano number.

Returns:
version nano

toString

public java.lang.String toString()
Get the human readable form of the version.

Overrides:
toString in class java.lang.Object
Returns:
human readable version format


Copyright © 2006 Ionetrics Corp. All Rights Reserved.