Package com.tnsai.roles.export


package com.tnsai.roles.export
Role export system for converting TnsAI roles to various formats.

This package provides exporters for:

  • JSON - API and configuration
  • YAML - Human-readable configuration
  • AgentSpeak/Jason - BDI agent programming
  • JADE - Java agent platform
  • SCOP - Spatial computing platform

Usage


 // Export to JSON
 RoleExporter exporter = new JsonRoleExporter();
 String json = exporter.export(myRole);

 // Export to YAML
 RoleExporter yamlExporter = new YamlRoleExporter();
 String yaml = yamlExporter.exportFromClass(MyRole.class);

 // Export to AgentSpeak
 RoleExporter jasonExporter = new JasonExporter();
 String asl = jasonExporter.export(myRole);
 
Author:
TnsAI Team