com.universaldevices.autoupdate
Class UDAutoUpdate.UDPlatform

java.lang.Object
  extended by com.universaldevices.autoupdate.UDAutoUpdate.UDPlatform
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
UDAutoUpdate

public class UDAutoUpdate.UDPlatform
extends java.lang.Object
implements java.lang.Comparable

Class UDAutoUpdate.UDPlatform is an abstraction of ISY platform for which an update is being investigated

Author:
UD Architect

Field Summary
 java.lang.String code
          The url for the code to be downloaded
 java.lang.String description
          Description of the features/fixes in this update
 UDAutoUpdate.UDVersionNum installedVersion
          Currently installed version
 UDAutoUpdate.UDVersionNum latestVersion
          Latest available version
 java.lang.String name
          The name of the Platform (ISY-C-2, ISY-C-5, ISY-2, etc.)
 UDAutoUpdate.UDVersionNum notSupportedIfAbove
          The version number above which ISY may not be upgraded to this update level
 UDAutoUpdate.UDVersionNum resetIfBelow
          The version number below which ISY should be reset (factory)
 UDAutoUpdate.UDVersionNum versionNumber
          The version number
 
Constructor Summary
UDAutoUpdate.UDPlatform(XMLElement e, UDAutoUpdate.UDVersionNum version, UDAutoUpdate.UDVersionNum latestVersion, java.lang.String description, UDAutoUpdate.UDVersionNum resetIfBelow, UDAutoUpdate.UDVersionNum notSupportedIfAbove)
          Constructor Note: This class is initialized by UDI Network and Services Layers and, as such, should not be utilized independently.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean isAppAbove()
          Whether or not the installed application version is above the latest version
 boolean isAppBelow()
          Whether or not the installed application version is below the latest version
 boolean isCurrent()
          Whether or not the installed application is at the latest version
 boolean isCurrentlyInstalled()
          Whether or not this platform/version is currently installed on ISY
 boolean isLatest()
          Whether or not this UDAutoUpdate.UDPlatform is the latest version
 boolean isSupported()
          Whether or not the currently installed firmware supports upgrade to the version as captured by this object
 boolean requiresReset()
          Whether or not ISY should be reset (factory) upon successful installation of this update
 java.lang.String toString()
          Returns the version number; if it's the latest, an "*" is attached to the end of this String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of the Platform (ISY-C-2, ISY-C-5, ISY-2, etc.)


code

public java.lang.String code
The url for the code to be downloaded


description

public java.lang.String description
Description of the features/fixes in this update


versionNumber

public UDAutoUpdate.UDVersionNum versionNumber
The version number


installedVersion

public UDAutoUpdate.UDVersionNum installedVersion
Currently installed version


latestVersion

public UDAutoUpdate.UDVersionNum latestVersion
Latest available version


resetIfBelow

public UDAutoUpdate.UDVersionNum resetIfBelow
The version number below which ISY should be reset (factory)


notSupportedIfAbove

public UDAutoUpdate.UDVersionNum notSupportedIfAbove
The version number above which ISY may not be upgraded to this update level

Constructor Detail

UDAutoUpdate.UDPlatform

public UDAutoUpdate.UDPlatform(XMLElement e,
                               UDAutoUpdate.UDVersionNum version,
                               UDAutoUpdate.UDVersionNum latestVersion,
                               java.lang.String description,
                               UDAutoUpdate.UDVersionNum resetIfBelow,
                               UDAutoUpdate.UDVersionNum notSupportedIfAbove)
Constructor Note: This class is initialized by UDI Network and Services Layers and, as such, should not be utilized independently.

Parameters:
e - - The DIML/XML describing the Platform
version - - The version
latestVersion - - The latest version
description - - The description/features of the update
resetIfBelow - - Reset ISY if below this version
notSupportedIfAbove - - May not upgrade the firmware if above this version
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

isCurrentlyInstalled

public boolean isCurrentlyInstalled()
Whether or not this platform/version is currently installed on ISY

Returns:
- true if installed, false otherwise

isAppBelow

public boolean isAppBelow()
Whether or not the installed application version is below the latest version

Returns:
- true if below, false otherwise

isAppAbove

public boolean isAppAbove()
Whether or not the installed application version is above the latest version

Returns:
- true if above, false otherwise

isCurrent

public boolean isCurrent()
Whether or not the installed application is at the latest version

Returns:
- true if at the latest version, false otherwise

isLatest

public boolean isLatest()
Whether or not this UDAutoUpdate.UDPlatform is the latest version

Returns:
- true if latest version, false otherwise

requiresReset

public boolean requiresReset()
Whether or not ISY should be reset (factory) upon successful installation of this update

Returns:
- true if needs reset (factory), false otherwise

isSupported

public boolean isSupported()
Whether or not the currently installed firmware supports upgrade to the version as captured by this object

Returns:
- true if supported, false otherwise

toString

public java.lang.String toString()
Returns the version number; if it's the latest, an "*" is attached to the end of this String

Overrides:
toString in class java.lang.Object