Portico 是一个 开源、跨平台、完全支持 HLA RTI 的实现。Portico 设计时考虑到了模块化和灵活性,是一个可用于生产的、基于 C++ 的实现。
Portico 是一个 开源、跨平台、完全支持 HLA RTI 的实现。Portico 设计时考虑到了模块化和灵活性,是一个可用于生产的、基于 C++ 的实现。
Portico is an open source HLA Run-Time Infrastructure (RTI) implementation. It is designed to ensure open and free access to the necessary infrastructure needed to drive HLA federations.
Portico is released under the terms of the Common Distribution and Developer License (CDDL), which means you can repackage and redistribute it with your applications, and you can modify the source as long as changes are submitted back to the project.
Documentation and open source is always difficult. We have a data dump of our older website which had some useful (but old) documentation. You can find a Git repo containing those documents here: .
This readme will be updated when new documentation is posted to .
Getting Started - What is in the package
Running Federates - How to use Portico
Writing Federates - How to develop with Portico
Example Federates
Getting Help
Getting Started
This guide gives you some quick heads-up information to help you get started with the Portico open source RTI. Portico supports several of the standard HLA interfaces: - HLA v1.3: Java and C++ - IEEE-1516: Java - IEEE-1516e: Java and C++
For Java Portico ships with a JRE, but you will need a JDK if you are writing federates. Depending on the version of Portico, different versions of Java are supported:
master: Java 21maintenance-2.2.x: Java 21maintenance-2.1.x: Java 11maintenance-2.0.x: Java 8For C++ Portico provides C++ libraries for both Windows and Linux, and in 64-bit only. Libries for the following compilers are pre-packaged depending on the operating system you download for:
- Windows
- `master`: Visual Studio 2022
- `v2.2.x`: Visual Studio 2022
- `v2.1.x`: Visual Studio 2017, 2019, 2022
- `v2.0.x`: Visual Studio 2005, 2008, 2010 (32/64-bit)
- Linux
- `master`: TBC - Currently GCC 11.2
- `v2.2.x`: GCC 11.2 (RHEL 9.5, Ubuntu 22.04, 24.04)
- `v2.1.x`: GCC 5.4 (RHEL 8.10, Ubuntu 16.04, 18.04, 20.04)
- `v2.0.x`: GCC 4.4 (RHEL 6.5, Ubuntu 12.04, 14.04)When you have installed Portico, you will get a directory structure like so:
…For the most part, Portico is a drop-in replacement for any other RTI. To use Portico at runtime you need to set your environment variables such that the Portico libraries can be found on your path.
Portico also uses the RTI_HOME environment variable as is convention for RTIs. If you are
only use Java federates, this is the only variable you need to set. The others are necessary
for C++/native federates as listed:
* (all) RTI_HOME : This should point to the same directory that this file is in
* (java) CLASSPATH : Add RTI_HOME/lib/portico.jar
* (win64) PATH : Add %RTI_HOME%\bin\[compiler] and %RTI_HOME%\jre\bin\server
* (lin64) LD_LIBRARY_PATH : Add $RTI_HOME/lib/[compiler] and $RTI_HOME/jre/lib/serverPortico is a Java-based RTI. The C++ interface is a wrapper around the core Java library. When you start a C++ federate, the Java Virtual Machine is loaded in the background. This is why you must add the second folder to your path as listed above.
Portico ships with some example federates (more below) to both show users how to set up their environment correctly, and to provide some sample HLA code to get you started. For complete instructions on writing federates, please see the website:
NOTE See the documentation link above referencing the availability of older documentation.
All Portico code and all its dependencies are located in a single jar file. Just throw
RTI_HOME/lib/portico.jar on your classpath and you are good to go.
The Portico C++ interfaces are binary drop-in compatible with HLA v1.3 and IEEE-1516e federates on Windows and Linux. If you want to compile and link against Portico, you will need the following:
RTI_HOME/include/[HLA-version]RTI_HOME/lib/[compiler]When compiling C++ federates on Windows, you will need to have an appropriate version of Visual Studio or the Visual Studio Build Tools installed. You can compile through the Visual Studio User Interface, or if you prefer the command line, it is simplest to execute inside a Visual Studio Command Prompt.
Portico provides 64-bit libraries for HLA v1.3 and 1516e. These libraries follow the naming convention as defined in the standards:
libRTI-NG_64, libFedTime_64librti1516e64, libfedtime1516e64 Portico also ships with debug versions of all libraries. These are suffixed with d.
For example: librti1516e64d.so.
For information on the example federates, see the README-examples file.
Documentation and open source projects... so how about that ANY OTHER TOPIC.
Luckily, Portico has been around for some time, so we're building up some devent docs. The main website website contains all documentation for the project. This includes guides on deploying Portico with common LVC tools, writing federates with Portico, how to build Portico for yourself, API references, support information and much more.
NOTE See the documentation link above referencing the availability of older documentation.
If you have found bugs or find that Portico is not working as you would expect, you should open an issue via the GitHub project:
So there you go, we hope you enjoy using Portico :)
--The Portico Development Team
暂无开放 Issues,或尚未同步最近议题。