Difference between revisions of "CALicense"

(Fixed link)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:ADE Classes]]
 
[[Category:ADE Classes]]
<< [[Analytica Decision Engine (ADE) API]]
+
[[Category:ADE User Guide]]
 +
[[Category: Analytica installation and licenses]]
  
= class [[CALicense]] (ADE) =
+
<languages />
 +
<translate>
 +
<!--T:1-->
 +
[[ADE User Guide]] > [[ADE Server Class Reference]] >
  
 +
<!--T:2-->
 
A [[CALicense]] object can be obtained directly, for example:
 
A [[CALicense]] object can be obtained directly, for example:
 
  license = new CALicense;
 
  license = new CALicense;
Line 9: Line 14:
 
  license = CreateObject("CALicense");
 
  license = CreateObject("CALicense");
  
 +
<!--T:3-->
 
The [[CALicense]] provides a method for instantiating a [[CAEngine]], and provides details about why such an instantiation failed, which would otherwise not be available if you instantiate the [[CAEngine]] directly. It also provides some information about limitations in your license to use [[ADE]].
 
The [[CALicense]] provides a method for instantiating a [[CAEngine]], and provides details about why such an instantiation failed, which would otherwise not be available if you instantiate the [[CAEngine]] directly. It also provides some information about limitations in your license to use [[ADE]].
  
 +
<!--T:4-->
 
A [[CALicense]] instance can be obtained even if your ADE license code is invalid, expired, etc. This makes it possible for your application to say “failed because ....”.
 
A [[CALicense]] instance can be obtained even if your ADE license code is invalid, expired, etc. This makes it possible for your application to say “failed because ....”.
  
==Creation==
+
==Creation== <!--T:5-->
  
=== C# ===
+
=== C# === <!--T:6-->
  
  CALicense license = new CALicense();
+
  <!--T:7-->
 +
CALicense license = new CALicense();
  
=== Visual Basic.NET ===
+
=== Visual Basic.NET === <!--T:8-->
  
  Dim license As CALicense = new CALicense
+
  <!--T:9-->
 +
Dim license As CALicense = new CALicense
  
=== C++ ===
+
=== C++ === <!--T:10-->
  
=== VBScript ===
+
=== VBScript === <!--T:11-->
  
  set license = CreateObject("CALicense")
+
  <!--T:12-->
 +
set license = CreateObject("CALicense")
  
=== Analytica Enterprise ===
+
=== Analytica Enterprise === <!--T:13-->
  
  [[COMCreateObject]]("ADE.CALicense")
+
  <!--T:14-->
 +
[[COMCreateObject]]("ADE.CALicense")
  
==Properties==
+
==Properties== <!--T:15-->
  
=== {get} long [[CALicense::AvailableLicenseInstances|AvailableLicenseInstances]] ===
+
=== {get} long [[CALicense::AvailableLicenseInstances|AvailableLicenseInstances]] === <!--T:16-->
 
=== {get} bool [[CALicense::CanUseOptimizer|CanUseOptimizer]] ===
 
=== {get} bool [[CALicense::CanUseOptimizer|CanUseOptimizer]] ===
 
=== {get} short int [[CALicense::ErrorCode|ErrorCode]] ===
 
=== {get} short int [[CALicense::ErrorCode|ErrorCode]] ===
 
=== {get} string [[CALicense::ErrorText|ErrorText]] ===
 
=== {get} string [[CALicense::ErrorText|ErrorText]] ===
 
=== {get} long [[CALicense::MaxLicenseInstances|MaxLicenseInstances]] ===
 
=== {get} long [[CALicense::MaxLicenseInstances|MaxLicenseInstances]] ===
 +
=== {get} string [[CALicense::OutputBuffer|OutputBuffer]] ===
 
=== {get} string [[CALicense::RlmHostId|RlmHostId]] ===
 
=== {get} string [[CALicense::RlmHostId|RlmHostId]] ===
 
=== {get} string [[CALicense::RlmPath|RlmPath]] ===
 
=== {get} string [[CALicense::RlmPath|RlmPath]] ===
 
=== {get} string [[CALicense::RlmUserId|RlmUserId]] ===
 
=== {get} string [[CALicense::RlmUserId|RlmUserId]] ===
  
==Methods==
+
==Methods== <!--T:17-->
 
=== [[CAEngine]] [[CALicense::NewCAEngine|NewCAEngine]]() ===
 
=== [[CAEngine]] [[CALicense::NewCAEngine|NewCAEngine]]() ===
 
=== void [[CALicense::SetApplicationLicenseCode|SetApplicationLicenseCode]](string) ===
 
=== void [[CALicense::SetApplicationLicenseCode|SetApplicationLicenseCode]](string) ===
  
= See Also =
+
= See Also = <!--T:18-->
  
* [[Instantiating CAEngine using CALicense]]
+
<!--T:19-->
 +
* [[Working_with_Models,_Modules,_and_Files_in_ADE#Instantiating_CAEngine_using_CALicense|Instantiating CAEngine using CALicense]]
 +
 
 +
 
 +
{| style="margin: 1em auto 1em auto;width: 100%;border:0;table-layout: fixed;" cellpadding=5
 +
|- style="text-align: center"
 +
|  [[CARenderingStyle]]  <-  ||  [[CALicense]] || -> [[CAPicture]]
 +
</translate>

Latest revision as of 18:58, 12 July 2024


Other languages:
English • ‎中文

ADE User Guide > ADE Server Class Reference >

A CALicense object can be obtained directly, for example:

license = new CALicense;

Or:

license = CreateObject("CALicense");

The CALicense provides a method for instantiating a CAEngine, and provides details about why such an instantiation failed, which would otherwise not be available if you instantiate the CAEngine directly. It also provides some information about limitations in your license to use ADE.

A CALicense instance can be obtained even if your ADE license code is invalid, expired, etc. This makes it possible for your application to say “failed because ....”.

Creation

C#

CALicense license = new CALicense();

Visual Basic.NET

Dim license As CALicense = new CALicense

C++

VBScript

set license = CreateObject("CALicense")

Analytica Enterprise

COMCreateObject("ADE.CALicense")

Properties

{get} long AvailableLicenseInstances

{get} bool CanUseOptimizer

{get} short int ErrorCode

{get} string ErrorText

{get} long MaxLicenseInstances

{get} string OutputBuffer

{get} string RlmHostId

{get} string RlmPath

{get} string RlmUserId

Methods

CAEngine NewCAEngine()

void SetApplicationLicenseCode(string)

See Also


CARenderingStyle <- CALicense -> CAPicture
Comments


You are not allowed to post comments.