|
The Node configuration file contains the agents which make up the node, as well as components which are part of the NodeAgent. Below is an example Node Configuration file named TestNode.ini: |
[ Clusters ] cluster = AgentA cluster = AgentB cluster = AgentC |
|
In this example the TestNode Node configuration file identifies three agents to be loaded into the TestNode Node: AgentA, AgentB, and AgentC.
When the node is being loaded, it looks for agent configuration files following the naming covention [AGENT_NAME].ini. Therefore, for our TestNode Node, there also needs to be a corresponding agent configuration file for AgentA named AgentA.ini, AgentB called AgentB.ini and AgentC called AgentC.ini
Adding your own Agent Implementation You can extend and implement you own custom Agent if the SimpleAgent implementation provided with Cougaar is not sufficient. Using your own agent implementation is quite simple, and includes chaning the standard cluster=AGENT_NAME line in the node configuration file to something like: Node.AgentManager.Agent=com.foo.agent.SampleAgent(AgentA) Now that we have covered the basics to Configuring a Node, the next step is to configure the Domains. |