CERTI comes with two main executables: RTIA and RTIG.
If ones want to properly execute an HLA simulation using CERTI one must: (FIXME more detail to come).
CERTI uses a set of environment variables which may influence its execution behavior. Those variables may be set on federate execution location or on RTIG (a.k.a. The CERTI CRC) location.
|CERTI_HOME||RTIG||the CERTI installation base directory. This is used by the RTIG in order to look for FOM files (see RTIG).|
|CERTI_FOM_PATH||RTIG||the CERTI Federation Object Model search path. The variable may contain a ":" separated list of paths. This is used by the RTIG in order to look for FOM files (see RTIG).|
|CERTI_HOST||RTIA||machine on which RTIG is running. As soon as it starts the RTIA will try to connect to the RTIG running on CERTI_HOST (or "localhost" if the variable is not defined or void) (see RTIA).|
|CERTI_TCP_PORT||RTIG, RTIA||TCP port used for RTIA/RTIG communications (default: 60400)|
|CERTI_UDP_PORT||RTIG, RTIA||UDP port used for RTIA/RTIG communications (default: 60500)|
|CERTI_HTTP_PROXY||RTIA||HTTP proxy address in the format http://host:port. See HTTP tunneling.|
|http_proxy||RTIA||System-wide HTTP proxy address used if CERTI_HTTP_PROXY is not defined.|
|CERTI_NO_STATISTICS||RTIA||if set, do not display service calls statistics|
The CERTI RunTime Infrastructure Gateway (RTIG) is a process which coordinate the HLA simulation with CERTI, there should be at least one rtig process for each federation. However a single RTIG may be used for several federations. The command line usage of the RTIG is following:
The RTIG exchange messages with the RTIA in order to satify HLA request coming from the Federate. In particular RTIG is responsible for giving to the Federate (through its RTIA) the FOM file needed to create or join the federation. When a federate calls the CreateFederationExcution API RTIG tries to open FOM file from different predefined places, using various environment variables:
getenv(CERTI_FOM_PATH) + FEDid_name.
CERTI_FOM_PATHenvironment variable may contains a list of path separated with ':'.
PACKAGE_INSTALL_PREFIX + "/share/federation/" + FEDid_name
"/usr/local/share/federation/" + FEDid_namefor backward compatibility reason.
The CERTI RunTime Infrastructure Ambassador (RTIA) is a process which is automatically launched by the federate as soon as its RTIambassador is created. The command line usage of the RTIA is following:
Open a windows command prompt and run the RTIG.
Open another windows command prompt and run the billard program.
billard -n 1 fTest FTest.fed