Toggle navigation
Navigation
Analytica Docs home
Functions by category
Contents of User Guide
Recent changes
Help on wiki editing
Lumina site
Buy or upgrade Analytica
This page
Translate
Language statistics
Message group statistics
Export
Tools
Special pages
Login
Export translations
Settings
Group
ADE Server Class Reference
ADE User Guide
CAEngine
CAEngine::AddModule
CAEngine::CloseModel
CAEngine::Command
CAEngine::CreateModel
CAEngine::CreateObject
CAEngine::CurrentModule
CAEngine::DefaultDefTableRenderingStyle
CAEngine::DefaultEvaluationTimeLimit
CAEngine::DefaultRenderingStyle
CAEngine::DeleteObject
CAEngine::ErrorCode
CAEngine::ErrorText
CAEngine::Flags
CAEngine::GetObjectByName
CAEngine::Log
CAEngine::MonitorProcess
CAEngine::OpenModel
CAEngine::OutputBuffer
CAEngine::ReadScript
CAEngine::ResetError
CAEngine::SaveModel
CAEngine::SaveModuleFile
CAEngine::Send
CAEngine::SendCommand
CAEngine::SetCallbackObject
CAIndex
CAIndex::GetNumberByValue
CAIndex::GetValueByNumber
CAIndex::IndexElements
CAIndex::Name
CAIndex::RenderingStyle
CALicense
CALicense::CanUseOptimizer
CALicense::ErrorCode
CALicense::ErrorText
CALicense::MaxLicenseInstances
CALicense::NewCAEngine
CALicense::RlmHostId
CALicense::RlmPath
CALicense::RlmUserId
CALicense::SetApplicationLicenseCode
CAObject
CAObject::ClassType
CAObject::CreateDefTable
CAObject::DefinitionType
CAObject::DefTable
CAObject::Evaluate
CAObject::GetAttribute
CAObject::MethodEvaluationTimeLimit
CAObject::Name
CAObject::PictureToFile
CAObject::PictureToStream
CAObject::RenderingStyle
CAObject::Result
CAObject::ResultTable
CAObject::ResultType
CAObject::SetAttribute
CARenderingStyle
CARenderingStyle::FullPrecision
CARenderingStyle::GeneralExpression
CARenderingStyle::NewLineAsCRLF
CARenderingStyle::NullValue
CARenderingStyle::NumberAsText
CARenderingStyle::ReferenceAsText
CARenderingStyle::SafeArrayLowerBound
CARenderingStyle::StringQuotes
CARenderingStyle::UndefValue
CATable
CATable::AtomicValue
CATable::GetDataByElements
CATable::GetDataByLabels
CATable::GetIndexObject
CATable::GetSafeArray
CATable::GraphHeight
CATable::GraphToFile
CATable::GraphToStream
CATable::GraphWidth
CATable::GraphWithStoredPivot
CATable::IndexName
CATable::IndexNames
CATable::Name
CATable::NumDims
CATable::ObtainTable
CATable::PutSafeArray
CATable::ResultType
CATable::SetDataByElements
CATable::SetDataByLabels
CATable::SetIndexOrder
CATable::Slice
CATable::Subscript
CATable::TableType
CATable::Update
IAdeUICallbacks
IAdeUICallbacks::AskMsgChoice
IAdeUICallbacks::AskMsgComboBox
IAdeUICallbacks::AskMsgNumber
IAdeUICallbacks::AskMsgText
IAdeUICallbacks::FileOpenCompleted
IAdeUICallbacks::GetFilename
IAdeUICallbacks::HideProgressBar
IAdeUICallbacks::MsgBox
IAdeUICallbacks::OpenURL
IAdeUICallbacks::ShowPdfFile
IAdeUICallbacks::ShowProgressBar
Installation of ADE
Introduction to ADE
The ADE Tutorial
TranslateTest
Tutorial: Arrays
User:Karenlee
Using the ADE Server
Working with Models, Modules, and Files in ADE
Language
aa - Afar
aae - Arbëresh
ab - Abkhazian
abs - Ambonese Malay
ace - Acehnese
acf - Saint Lucian Creole
acm - Iraqi Arabic
ady - Adyghe
ady-cyrl - Adyghe (Cyrillic script)
aeb - Tunisian Arabic
aeb-arab - Tunisian Arabic (Arabic script)
aeb-latn - Tunisian Arabic (Latin script)
af - Afrikaans
aln - Gheg Albanian
alt - Southern Altai
am - Amharic
ami - Amis
an - Aragonese
ang - Old English
ann - Obolo
anp - Angika
apc - Levantine Arabic
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
ban-bali - Balinese (Balinese script)
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba (Latin script)
bcc - Southern Balochi
bci - Baoulé
bcl - Central Bikol
bdr - West Coast Bajau
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bew - Betawi
bg - Bulgarian
bgc - Haryanvi
bgn - Western Balochi
bh - Bhojpuri
bho - Bhojpuri
bi - Bislama
bjn - Banjar
blk - Pa'O
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
btm - Batak Mandailing
bto - Iriga Bicolano
bug - Buginese
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
ccp - Chakma
cdo - Mindong
ce - Chechen
ceb - Cebuano
ch - Chamorro
chn - Chinook Jargon
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cpx - Puxian
cpx-hans - Puxian (Simplified Han script)
cpx-hant - Puxian (Traditional Han script)
cpx-latn - Puxian (Latin script)
cr - Cree
crh - Crimean Tatar
crh-cyrl - Crimean Tatar (Cyrillic script)
crh-latn - Crimean Tatar (Latin script)
crh-ro - Dobrujan Tatar
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
dag - Dagbani
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
dga - Dagaare
din - Dinka
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dua - Duala
dv - Divehi
dz - Dzongkha
ee - Ewe
efi - Efik
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-419 - Latin American Spanish
es-formal - Spanish (formal address)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
fat - Fanti
ff - Fula
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fon - Fon
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gaa - Ga
gag - Gagauz
gan - Gan
gan-hans - Gan (Simplified Han script)
gan-hant - Gan (Traditional Han script)
gcf - Guadeloupean Creole
gcr - Guianan Creole
gd - Scottish Gaelic
gl - Galician
gld - Nanai
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
gpe - Ghanaian Pidgin
grc - Ancient Greek
gsw - Alemannic
gu - Gujarati
guc - Wayuu
gur - Frafra
guw - Gun
gv - Manx
ha - Hausa
hak - Hakka Chinese
hak-hans - Hakka (Simplified Han script)
hak-hant - Hakka (Traditional Han script)
hak-latn - Hak-kâ-ngî (Pha̍k-fa-sṳ)
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
hno - Northern Hindko
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
hsn - Xiang
ht - Haitian Creole
hu - Hungarian
hu-formal - Hungarian (formal address)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
iba - Iban
ibb - Ibibio
id - Indonesian
ie - Interlingue
ig - Igbo
igl - Igala
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
isv-cyrl - Interslavic (Cyrillic script)
isv-latn - Interslavic (Latin script)
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kai - Karekare
kbd - Kabardian
kbd-cyrl - Kabardian (Cyrillic script)
kbp - Kabiye
kcg - Tyap
kea - Kabuverdianu
kg - Kongo
kge - Komering
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kjh - Khakas
kjp - Eastern Pwo
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
knc - Central Kanuri
ko - Korean
ko-kp - Korean (North Korea)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ksw - S'gaw Karen
ku - Kurdish
ku-arab - Kurdish (Arabic script)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kus - Kusaal
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lki - Laki
lld - Ladin
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lua - Luba-Lulua
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mad - Madurese
mag - Magahi
mai - Maithili
map-bms - Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Māori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mnc - Manchu
mnc-latn - Manchu (Latin script)
mnc-mong - Manchu (Mongolian script)
mni - Manipuri
mnw - Mon
mo - Moldovan
mos - Mossi
mr - Marathi
mrh - Mara
mrj - Western Mari
ms - Malay
ms-arab - Malay (Jawi script)
mt - Maltese
mui - Musi
mus - Muscogee
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nahuatl
nan - Minnan
nan-hant - Minnan (Traditional Han script)
nan-latn-pehoeji - Minnan (Pe̍h-ōe-jī)
nan-latn-tailo - Minnan (Tâi-lô)
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
nia - Nias
nit - Southeastern Kolami
niu - Niuean
nl - Dutch
nl-informal - Dutch (informal address)
nmz - Nawdm
nn - Norwegian Nynorsk
no - Norwegian
nod - Northern Thai
nog - Nogai
nov - Novial
nqo - N’Ko
nr - South Ndebele
nrm - Norman
nso - Northern Sotho
nup - Nupe
nv - Navajo
ny - Nyanja
nyn - Nyankole
nyo - Nyoro
nys - Nyungar
oc - Occitan
ojb - Northwestern Ojibwa
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pcm - Nigerian Pidgin
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
pwn - Paiwan
qqq - Message documentation
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rki - Arakanese
rm - Romansh
rmc - Carpathian Romani
rmy - Vlax Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
rsk - Pannonian Rusyn
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rut - Rutul
rw - Kinyarwanda
ryu - Okinawan
sa - Sanskrit
sah - Yakut
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
se-fi - Northern Sami (Finland)
se-no - Northern Sami (Norway)
se-se - Northern Sami (Sweden)
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
sh-cyrl - Serbo-Croatian (Cyrillic script)
sh-latn - Serbo-Croatian (Latin script)
shi - Tachelhit
shi-latn - Tachelhit (Latin script)
shi-tfng - Tachelhit (Tifinagh script)
shn - Shan
shy - Shawiya
shy-latn - Shawiya (Latin script)
si - Sinhala
simple - Simple English
sjd - Kildin Sami
sje - Pite Sami
sk - Slovak
skr - Saraiki
skr-arab - Saraiki (Arabic script)
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
smn - Inari Sami
sms - Skolt Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
sro - Campidanese Sardinian
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - Siberian Tatar
su - Sundanese
sv - Swedish
sw - Swahili
syl - Sylheti
szl - Silesian
szy - Sakizaya
ta - Tamil
tay - Tayal
tcy - Tulu
tdd - Tai Nuea
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tig - Tigre
tk - Turkmen
tl - Tagalog
tly - Talysh
tly-cyrl - Talysh (Cyrillic script)
tn - Tswana
to - Tongan
tok - Toki Pona
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
trv - Taroko
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
ttj - Tooro
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - Uzbek (Cyrillic script)
uz-latn - Uzbek (Latin script)
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vmw - Makhuwa
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
wal - Wolaytta
war - Waray
wls - Wallisian
wo - Wolof
wuu - Wu
wuu-hans - Wu (Simplified Han script)
wuu-hant - Wu (Traditional Han script)
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
xsy - Saisiyat
yi - Yiddish
yo - Yoruba
yrl - Nheengatu
yue - Cantonese
yue-hans - Cantonese (Simplified Han script)
yue-hant - Cantonese (Traditional Han script)
za - Zhuang
zea - Zeelandic
zgh - Standard Moroccan Tamazight
zgh-latn - Standard Moroccan Tamazight (Latin script)
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - Chinese (Macau)
zh-my - Chinese (Malaysia)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
Format
Export for off-line translation
Export in native format
Export in CSV format
Fetch
[[Category:ADE Classes]] [[Category:ADE User Guide]] <languages /> [[ADE User Guide]] > [[ADE Server Class Reference]] > = class CAEngine (ADE) = = In-Process and Out-of-Process Instantiations = = Creation = Use of ADE really starts with the creation of a CAEngine object, from which all else flows. If you are using the ADEW.dll in-process server, you can only create and use one CAEngine instance. If you are using the ADE.exe out-of-process server, you may create as many CAEngine instances as you desire, each one running as a separate process. In web-based applications, a separate CAEngine instance is typically created for each user session. Each CAEngine instance can have one model loaded at a time. You can either create a CAEngine instance directly, or by calling [[CALicense::NewCAEngine]](). The later method requires you to first create a [[CALicense]] instance, but has the advantage that you can obtain further information about the cause of failure when creation fails. Direct creation of CAEngine will fail if the license to use ADE on the given computer is invalid, expired, etc. === C# === === Visual Basic.NET === === C++ === === VBScript === =Properties= === {get,put} string [[CAEngine::Command|Command]] === Holds a typescript command that gets executed when the [[CAEngine::Send|Send]]() method is called. === {get,put} [[CAObject]] [[CAEngine::CurrentModule|CurrentModule]] === Newly created objects are placed into [[CurrentModule]]; so, you should set [[CurrentModule]] before creating any new objects. Setting <code>[[CurrentModule]] = Nothing</code> means that no module is open, so all new objects are created in the top-level Module or Model of the currently opened model. === {get,put} [[CARenderingStyle]] [[CAEngine::DefaultDefTableRenderingStyle|DefaultDefTableRenderingStyle]] === The default rendering style controlling how definition table values are transferred to and from ADE. All definition tables returned from [[CAObject::DefTable]] inherits these settings when they are first created. === {get,put} long [[CAEngine::DefaultEvaluationTimeLimit|DefaultEvaluationTimeLimit]] === The maximum time limit in milliseconds imposed on evaluations from methods in [[CAEngine]], i.e., [[CAEngine::SendCommand|SendCommand]], [[CAEngine::Send|Send]], [[CAEngine::OpenModel|OpenModel]], and [[CAEngine::AddModule|AddModule]], as well as the default value for [[CAObject::MethodEvaluationTimeLimit]] for any [[CAObject]]s instantiated. A value of zero indicates no time limit. === {get,put} [[CARenderingStyle]] [[CAEngine::DefaultRenderingStyle|DefaultRenderingStyle]] === The default rendering style controlling how result values are returned from ADE. All [[CAObject]] instances inherit this rendering style when they are created. === {get} short int [[CAEngine::ErrorCode|ErrorCode]] === Returns the error code generated by the last communication with the Analytica Decision Engine Server. The property [[ErrorCode]] should be checked after setting and retrieving critical [[CAEngine]] properties and calling CAEngine methods. An ErrorCode of zero indicates the last action was successful. === {get} string [[CAEngine::ErrorText|ErrorText]] === Short text explanation of error from [[ErrorCode]]. === {get,put} unsigned long [[CAEngine::Flags|Flags]] === A bit field of flags that control certain behaviors within ADE. === {get} string [[CAEngine::Log|Log]] === A record of all commands sent to the ADE typescript and the results received from those commands, when the Photo property is true. === {get} string [[CAEngine::OutputBuffer|OutputBuffer]] === A text string buffer that contains the result of the last typescript (i.e., using the Command property and Send method) interaction with the ADE. === {get,put} bool [[CAEngine::Photo|Photo]] === When '''Photo''' is True, ADE records all typescript commands and results into the [[CAEngine::Log|Log]] property. =Methods= === string [[CAEngine::AddModule|AddModule]](string filePath,bool Merge) === Adds a module from file fileName into the CurrentModule. The merge parameter currently has no effect and should be set to True. === bool [[CAEngine::CloseModel|CloseModel]]() === Closes the model. === [[CAObject]] [[CAEngine::CreateObject|CreateObject]](string objName, string objType) === Creates a new Analytica object with identifier objName and class objClass in the CurrentModule and returns it as a CAObject. === bool [[CAEngine::CreateModel|CreateModel]](string newModelName) === Creates a new Analytica model with identifier modelName. === bool [[CAEngine::DeleteObject|DeleteObject]]( [[CAObject]] aObject ) === Deletes CAObject obj from the current model. === [[CAObject]] [[CAEngine::Get|Get]](string objName) === Synonymous with [[CAEngine::GetObjectByName|GetObjectByName]]. === [[CAObject]] [[CAEngine::GetObjectByName|GetObjectByName]](string objName) === Returns an object of type [[CAObject]] for an existing Analytica object with identifier objName. === bool [[CAEngine::MonitorProcess|MonitorProcess]](long pid) === ''(requires ADE 4.3 or greater)'' Instructs ADE to terminate (kill itself) if the indicated process terminates before it. Useful when debugging code that uses ADE to prevent zombie ADE processes when your code is terminated prematurely without having a chance to correctly release its objects. === string [[CAEngine::OpenModel|OpenModel]](string filepath) === Reads a model from a disk file and opens it as the current model. === bool [[CAEngine::ReadScript|ReadScript]](string filePath) === Reads and executes an Analytica script file. === void [[CAEngine::ResetError|ResetError]]() === Resets the error code, error text string associated with the error code, and the output buffer to default values. This function is normally used internally, but could be useful in other circumstances as well. === bool [[CAEngine::SaveModel|SaveModel]](string filePath) === Saves the model to file «filePath». === bool [[CAEngine::SaveModuleFile|SaveModuleFile]](string moduleName, string filePath) === Saves module with identifier «moduleName» into file «filePath». === bool [[CAEngine::Send|Send]]() === Sends the string contained in the Command property as a command to be executed by ADE. See the Analytica Scripting Guide for details of commands and syntax. === bool [[CAEngine::SendCommand|SendCommand]](string command) === Sends the string command property as a typescript command to be executed by ADE. See the Analytica Scripting Guide for details of commands and syntax. === bool [[CAEngine::SetCallbackObject|SetCallbackObject]](IUnknown* pCallbackObj) === ''New to [[Analytica 4.6|ADE 4.6]]'' You call this to provide an object that implements various callback interfaces, such as [[IAdeUICallbacks]], to enable interaction with end-users while evaluation is in-progress. =See Also= {| style="margin: 1em auto 1em auto;width: 100%;border:0;table-layout: fixed;" cellpadding=5 |- style="text-align: center" | [[ADE Server Class Reference]] <- || [[CAEngine]] || -> [[CAObject]]