build+and+run


 * download this file (need svn)
 * svn checkout https://portico.svn.sourceforge.net/svnroot/portico/trunk portico
 * You have to build both the java and the cpp interfaces separately.
 * ./ant java.compile
 * ./ant cpp.compile
 * to test the installation run (if you want to run the cpp test you need to install CppUnit)
 * ./ant java.test
 * environment variables
 * RTI_HOME = /path/to/portico/install/codebase/dist/portico-version
 * JAVA_HOME = /usr/lib/jvm/java-6-openjdk (depends on the system using, is the path to the jdk install)
 * LD_LIBRARY_PATH = $LD_LIBRARY_PATH:$RTI_HOME/lib:$JAVA_HOME/jre/lib/amd64/server

After this step you should have a working copy of portico. Unfortunately. I only got Java version working. To run the Java federate examples go to /portico/codebase/src-java/example/hla13 and run the linux.sh script as follows:
 * first compile it
 * ./linux.sh compile
 * then run the example
 * ./linux.sh execute

I created simple federation with two federates. Basically you have to create another federate file, Federate1.java, along with a new federate ambassador, FederateAmbassador1.java. The next thing is to join the Example13Federate, in the examples folder under /src/hla13, with the Federate1. Only one federate can create and destroy the federation, that federate has to be executed first. When running, after one federate creates the federation it waits for the other federate to join, after joined you must hit enter on both processes for the simulation to continue.