es.upv.dsic.gti_ia.core
Class BridgeAgentOutIn

java.lang.Object
  extended by es.upv.dsic.gti_ia.core.BaseAgent
      extended by es.upv.dsic.gti_ia.core.BridgeAgentOutIn
All Implemented Interfaces:
Runnable

public class BridgeAgentOutIn
extends BaseAgent

This agent routes messages from inside the platform to outside the platform.

Author:
Ricard Lopez Fogues

Nested Class Summary
 class BridgeAgentOutIn.httpToACL
          Helper class containing a Thread to parse the message to an ACLMessage
 
Field Summary
static int http_port
          BridgeAgentOutIn runs on 8081 port
 
Fields inherited from class es.upv.dsic.gti_ia.core.BaseAgent
logger, session, traceSession
 
Constructor Summary
BridgeAgentOutIn(AgentID aid)
          Creates a new BrideAgentOutIn
 
Method Summary
 void execute()
          Waits for a message and processes it, in parallel.
 void exit()
          Closes the connection and finalizes the listening process.
static int getHttp_port()
           
static void setHttp_port(int http_port)
           
 
Methods inherited from class es.upv.dsic.gti_ia.core.BaseAgent
activateTraceService, changeIdentity, deactivateTraceService, finalize, getAid, getName, init, onMessage, onTraceEvent, run, send, sendTraceEvent, start, terminate
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

http_port

public static int http_port
BridgeAgentOutIn runs on 8081 port

Constructor Detail

BridgeAgentOutIn

public BridgeAgentOutIn(AgentID aid)
                 throws Exception
Creates a new BrideAgentOutIn

Parameters:
aid -
connection -
Throws:
Exception
Method Detail

getHttp_port

public static int getHttp_port()

setHttp_port

public static void setHttp_port(int http_port)

execute

public void execute()
Waits for a message and processes it, in parallel.

Overrides:
execute in class BaseAgent

exit

public void exit()
Closes the connection and finalizes the listening process.



Copyright © 2012 GTI-IA. All Rights Reserved.