Generates VLINGO XOOM Actors code from ActorSimulation DSL.
VLINGO XOOM is a Java actor framework that provides:
- Type-safe actor implementations
- Protocol-based (interface) messaging
- Scheduler-based message dispatch
- Reactive foundation for distributed systems
This generator creates production-ready Java projects with:
- Actor implementations with protocol interfaces
- JUnit 5 test suites
- Maven build configuration
- CI/CD pipeline
- Complete documentation
Example
simulation = ActorSimulation.new()
|> ActorSimulation.add_actor(:sender,
send_pattern: {:periodic, 100, :msg},
targets: [:receiver])
|> ActorSimulation.add_actor(:receiver)
{:ok, files} = VlingoGenerator.generate(simulation,
project_name: "my-actors",
group_id: "com.example")
VlingoGenerator.write_to_directory(files, "vlingo_output/")
Summary
Functions
Generates complete VLINGO XOOM project files from an ActorSimulation.
Writes generated files to a directory.
Functions
Generates complete VLINGO XOOM project files from an ActorSimulation.
Options
:project_name(required) - Name of the Java project (kebab-case):group_id(default: "com.example") - Maven group ID:vlingo_version(default: "1.11.1") - VLINGO XOOM version:enable_callbacks(default: true) - Generate callback interfaces
Returns
{:ok, files} where files is a list of {filename, content} tuples
Writes generated files to a directory.