public class UDAutoUpdate.UDPlatform
extends java.lang.Object
implements java.lang.Comparable
UDAutoUpdate.UDPlatform
is an abstraction of ISY
platform for which an update is being investigatedModifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
public java.lang.String name
public java.lang.String code
public java.lang.String description
public UDAutoUpdate.UDVersionNum versionNumber
public UDAutoUpdate.UDVersionNum installedVersion
public UDAutoUpdate.UDVersionNum latestVersion
public UDAutoUpdate.UDVersionNum resetIfBelow
public UDAutoUpdate.UDVersionNum notSupportedIfAbove
public UDAutoUpdate.UDPlatform(XMLElement e, UDAutoUpdate.UDVersionNum version, UDAutoUpdate.UDVersionNum latestVersion, java.lang.String description, UDAutoUpdate.UDVersionNum resetIfBelow, UDAutoUpdate.UDVersionNum notSupportedIfAbove)
e
- - The DIML/XML describing the Platformversion
- - The versionlatestVersion
- - The latest versiondescription
- - The description/features of the updateresetIfBelow
- - Reset ISY if below this versionnotSupportedIfAbove
- - May not upgrade the firmware if above this versionpublic int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean isCurrentlyInstalled()
public boolean isAppBelow()
public boolean isAppAbove()
public boolean isCurrent()
public boolean isLatest()
UDAutoUpdate.UDPlatform
is the latest versionpublic boolean requiresReset()
public boolean isSupported()
public java.lang.String toString()
toString
in class java.lang.Object