Overview
A script is a Java class, hence you need to know the Java programming language.
There is not yet a public API for scripts, but if there is interest we will consider creating one. For now, example scripts are provided that can be modified by end-users.
Classpath
While developing scripts, it is useful to be able to compile the script to ensure that it works before running it in AFRY Intelligent Scenario Modelling.
AFRY Intelligent Scenario Modelling binaries are stored in a semi-hidden folder in the user directory.
On Windows, this folder is located in %APPDATA%
%APPDATA%/AFRY Intelligent Scenario Modelling 8.5/lib/
On Linux, it is located in
~/.facilia/AFRY Intelligent Scenario Modelling 8.5/lib
This folder contains jar files for AFRY Intelligent Scenario Modelling and all third-party libraries that AFRY Intelligent Scenario Modelling uses.
When compiling a script, you must ensure that these files are included in the classpath.
On Windows:
javac -cp "%APPDATA%/AFRY Intelligent Scenario Modelling 8.5/lib/*" MyScriptFile.java
Unix
javac -cp "~/.facilia/AFRY Intelligent Scenario Modelling 8.5/lib*" MyScriptFile.java
