public class UDAutoUpdate
extends java.lang.Object
UDAutoUpdate
class is an interface to Universal Devices
AutoUpdate website. It enables the clients to be notified of available
firmware updates as well as help them install the updates on ISY.Modifier and Type | Class and Description |
---|---|
class |
UDAutoUpdate.UDPlatform
Class
UDAutoUpdate.UDPlatform is an abstraction of ISY
platform for which an update is being investigated |
protected class |
UDAutoUpdate.UDProduct
UDAutoUpdate.UDProduct is an abstraction of the product for which
an upgrade is necessary. |
protected class |
UDAutoUpdate.UDVersion
UDAutoUpdate.UDVersion is an abstraction of the platform version
as described by UDI DIML/XML |
static class |
UDAutoUpdate.UDVersionNum
This class implements version numbers as defined by UDI
|
Modifier and Type | Field and Description |
---|---|
java.util.Hashtable<java.lang.String,UDAutoUpdate.UDProduct> |
products
A
Hashtable of all the UDAutoUpdate.UDProduct s on the UDI
AutoUpdate website |
Constructor and Description |
---|
UDAutoUpdate() |
Modifier and Type | Method and Description |
---|---|
static int |
compareVersionNums(java.lang.String v1,
java.lang.String v2)
Compares two version numbers
|
boolean |
GetUpdates()
Fills up the
products attribute with update information from
UD AutoUpdate website. |
UDAutoUpdate.UDPlatform |
isUpgradeNecessary(java.lang.String appName,
java.lang.String platform,
java.lang.String version)
Given an application name, platform name, and version, it returns whether or not
an upgrade is necessary at this point
|
boolean |
requiresReset(java.lang.Object p)
Whether or not a
UDAutoUpdate.UDProduct instance requires the ISY to be reset
to factory defaults before upgrade |
public java.util.Hashtable<java.lang.String,UDAutoUpdate.UDProduct> products
Hashtable
of all the UDAutoUpdate.UDProduct
s on the UDI
AutoUpdate websitepublic static int compareVersionNums(java.lang.String v1, java.lang.String v2)
v1
- v2
- public boolean GetUpdates()
products
attribute with update information from
UD AutoUpdate website.public boolean requiresReset(java.lang.Object p)
UDAutoUpdate.UDProduct
instance requires the ISY to be reset
to factory defaults before upgradep
- - an object of type UDAutoUpdate.UDProduct
public UDAutoUpdate.UDPlatform isUpgradeNecessary(java.lang.String appName, java.lang.String platform, java.lang.String version)
appName
- - application nameplatform
- - the platform nameversion
- - the current version of the application