// Path: Agent-system/src/java/maia/client/MaiaTxClient.java
// public class MaiaTxClient extends MaiaClientAdapter {
// 	
// 	// TODO: Add config option instead... (Running out of time!)
//     private Logger logger = Logger.getLogger("STDOUT");
//     //private Logger logger = Logger.getLogger("SYSLOG");
//     private String username;
// 
//     /**
//      * @param serverURI
//      * @throws URISyntaxException 
//      */
//     public MaiaTxClient(String serverURI) throws URISyntaxException {
//         super(new URI(serverURI));
//     }
// 
//     
//     public static void main (String[] args) throws URISyntaxException, InterruptedException, IOException {
//         
// 
//         
//     }
//     
// }


import jason.asSemantics.ConcurrentInternalAction;
import jason.asSemantics.TransitionSystem;
import jason.asSemantics.Unifier;
import jason.asSyntax.Term;
import java.net.URISyntaxException;
import java.util.logging.Level;
import java.util.logging.Logger;
import maia.client.MaiaTxClient;
package maia;





//import javax.swing.JOptionPane;



public class send extends ConcurrentInternalAction {

    // TODO: Add config option instead... (Running out of time!)
    private Logger logger = Logger.getLogger("STDOUT");
    //private Logger logger = Logger.getLogger("SYSLOG");
    
    @Override
    public Object execute(final TransitionSystem ts, Unifier un, final Term[] args) throws Exception, URISyntaxException, InterruptedException  {
        try {
        	final String key = suspendInt(ts, "bayes", 500000); 
        	
            startInternalAction(ts, new Runnable() {
                public void run() {
                	
                	String msg = "";
                	
                	for(int i = 0; i < args.length; i++) {
                        msg += args[i].toString().replace("\"", "").replace("concept_","");
                    }
                	

                    String uri = "http://localhost:1337";
                    
                    MaiaTxClient client;
					try {
// Path: Agent-system/src/java/maia/client/MaiaTxClient.java
// public class MaiaTxClient extends MaiaClientAdapter {
// 	
// 	// TODO: Add config option instead... (Running out of time!)
//     private Logger logger = Logger.getLogger("STDOUT");
//     //private Logger logger = Logger.getLogger("SYSLOG");
//     private String username;
// 
//     /**
//      * @param serverURI
//      * @throws URISyntaxException 
//      */
//     public MaiaTxClient(String serverURI) throws URISyntaxException {
//         super(new URI(serverURI));
//     }
// 
//     
//     public static void main (String[] args) throws URISyntaxException, InterruptedException, IOException {
//         
// 
//         
//     }
//     
// }


// Path: Agent-system/src/java/maia/send.java
import jason.asSemantics.ConcurrentInternalAction;
import jason.asSemantics.TransitionSystem;
import jason.asSemantics.Unifier;
import jason.asSyntax.Term;
import java.net.URISyntaxException;
import java.util.logging.Level;
import java.util.logging.Logger;
import maia.client.MaiaTxClient;

package maia;





//import javax.swing.JOptionPane;



public class send extends ConcurrentInternalAction {

    // TODO: Add config option instead... (Running out of time!)
    private Logger logger = Logger.getLogger("STDOUT");
    //private Logger logger = Logger.getLogger("SYSLOG");
    
    @Override
    public Object execute(final TransitionSystem ts, Unifier un, final Term[] args) throws Exception, URISyntaxException, InterruptedException  {
        try {
        	final String key = suspendInt(ts, "bayes", 500000); 
        	
            startInternalAction(ts, new Runnable() {
                public void run() {
                	
                	String msg = "";
                	
                	for(int i = 0; i < args.length; i++) {
                        msg += args[i].toString().replace("\"", "").replace("concept_","");
                    }
                	

                    String uri = "http://localhost:1337";
                    
                    MaiaTxClient client;
					try {
						 client = new MaiaTxClient (uri);