The most basic module. It implements basic AMICO TCP and UDP interfaces, and provides variable exchange, derivation, and maintance services.
  

java -jar %AMICO_HOME%/bin/amico.jar [<conf-url>]
A main configuration file:
 
| This is a minimal configuration file that uses default 
      parameters for missing attributes. --------------------------------------------- <?xml version="1.0" 
      encoding="UTF-8"?>   
      <init> <!-- A link to 
      files with initial variables. URLs are given relative to the current 
      directory  --> | 
| This is a full configuration file that overrides default parameters. --------------------------------------------- <?xml version="1.0" 
      encoding="UTF-8"?> | 
 A configuration file for init variables (linked from a main 
configuration file):
 
| <?xml version="1.0" encoding="UTF-8"?> <variables> <variable name="user-id" group="user-profile" description="ID of the user.">3456782</variable> <variable name="user-lang" group="user-profile" description="ID of the user.">en</variable> <variable name="min-distance" group="camera-settings" description="Distance in meters">1</variable> <variable name="max-distance" group="camera-settings" description="Distance in meters">2</variable> </variables> | 
A variable transformation file (linked from a main configuration 
file, or loaded by LOAD TRANSFORMATION protocol command):
 
| <?xml version="1.0"?> | 
AMICO communicator also has a simple user interface, which enables you to see 
all basic and derived variables, as well as to update or delete some of the 
basic variables. NOTE: This interface appears only if you set attribute 
show-gui="yes" in the main configuration file.
 

If you want to develop new AMICO module, or to directly use AMICO TCP command interface, than thios code can be useful.
| import java.net.*; import java.io.*; public class CommTest { public static void main(String[] args) { try { Socket communicator = new Socket( "localhost", 3320 ); BufferedReader in = new BufferedReader( new InputStreamReader( communicator.getInputStream() ) ); OutputStreamWriter out = new PrintWriter( new OutputStreamWriter( communicator.getOutputStream() ) ); 
 out.println( "UPDATE age 26" ); out.println( "GETALLXML" ); 
 String line; while ((line = in.readLine()) != null) {                 
      System.out.prinltn( line ); } catch (Exception e) { e.printStackTrace(); } } } |