Package jade.tools.SocketProxyAgent
Class SocketProxyAgent
- java.lang.Object
-
- jade.core.Agent
-
- jade.tools.SocketProxyAgent.SocketProxyAgent
-
- All Implemented Interfaces:
TimerListener,Serializable,Serializable,Runnable
public class SocketProxyAgent extends Agent
Agent to bridge ACL messages between JADE and the outside using a socket. The agent(s) to talk to and the port to be used may be specified:- as the two String arguments to the agent, or
- if no agent argument, then in a configuration file
agentname
.inf, or if no configuration file, then - default to
DEFAULT_PORTand all agents
- agent arguments: argument 0 is port number, argument 1 legal addressee agents
- configuration file: line 0 is port number, line 1 legal addressee agents
*) for the agents will permit all agents to be legal addressees.- Author:
- Fabio Bellifemine - CSELT S.p.A, (HP modifications) Dick Cowan, David Bell, Sebastien Siva, David Bernstein - Caboodle Networks, Inc.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jade.core.Agent
Agent.Interrupted
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PORTthe default port to listen on-
Fields inherited from class jade.core.Agent
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS
-
-
Constructor Summary
Constructors Constructor Description SocketProxyAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPort()get port usedprotected voidsetup()agent setupprotected voidtakeDown()agent takedown-
Methods inherited from class jade.core.Agent
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAID, getAMS, getArguments, getBehavioursCnt, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getExecutedBehavioursCnt, getGenerateBehaviourEvents, getGenerateMessageEvents, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getPostedMessagesCnt, getProperty, getQueueSize, getReceivedMessagesCnt, getSentMessagesCnt, getState, here, isAlive, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restoreBufferedState, restoreFields, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setGenerateMessageEvents, setO2AManager, setQueueSize, waitUntilStarted, write
-
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
the default port to listen on- See Also:
- Constant Field Values
-
-