Package com.openinventor.inventor.lock
Class SoLicensedProduct
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.lock.SoLicensedProduct
- All Implemented Interfaces:
SafeDisposable
Class managing a licensed product.
SoLicensedProduct manages a licensed product. This class provides information about the current available licenses for a given product. The getProduct() method returns the SbProduct enum value corresponding to the product. The getLicenseCount() method gives you the number of licenses available. The getLicenseByIndex() method gives you a SoLicenseProperty containing license info for this product.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumList of all available Open Inventor products.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandispose()Explicitly call this method to force object to dispose its unmanaged resources.getLicenseByIndex(int index) Returns the license of the licensed product for the given index.intReturns the number of licenses available for this product.Returns the SbProduct enum value of the licensed product.Returns the name of the licensed product.booleanReturns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()on the object.Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Constructor Details
-
SoLicensedProduct
public SoLicensedProduct()
-
-
Method Details
-
dispose
public boolean dispose()Description copied from class:InventorExplicitly call this method to force object to dispose its unmanaged resources. The object may not be reused in the application code after this call.- Specified by:
disposein interfaceSafeDisposable- Overrides:
disposein classInventor- Returns:
trueif this object native resources were successfully disposed;falseif it was already disposed or no native resources has been registered for this object.
-
isDisposable
public boolean isDisposable()Description copied from interface:SafeDisposableReturns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()on the object.- Specified by:
isDisposablein interfaceSafeDisposable- Returns:
trueif the object can be disposed in a safe manner
-
getProductName
Returns the name of the licensed product. -
getProduct
Returns the SbProduct enum value of the licensed product. -
getLicenseCount
public int getLicenseCount()Returns the number of licenses available for this product. -
getLicenseByIndex
Returns the license of the licensed product for the given index. If the given index is greater than the value returned bygetLicenseCount(), the method returns NULL.
-