edu.uwf.kaos.coabsgrid.test.kgh
Class TestPolicyAgent

java.lang.Object
  extended by edu.uwf.kaos.coabsgrid.test.kgh.TestPolicyAgent
All Implemented Interfaces:
java.io.Serializable

public class TestPolicyAgent
extends java.lang.Object
implements java.io.Serializable

A dummy intel agent that sends out Grid Messages that contain the same data the real agent would send out.

See Also:
Serialized Form

Field Summary
protected  java.lang.String name
           
protected  KAoSAgentRegistrationHelper reg
           
 
Constructor Summary
TestPolicyAgent(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
          Main program.
 void messageAdded(Message msg)
          Implements MessageListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

reg

protected KAoSAgentRegistrationHelper reg
Constructor Detail

TestPolicyAgent

public TestPolicyAgent(java.lang.String name)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Method Detail

messageAdded

public void messageAdded(Message msg)
Implements MessageListener. Processes incoming messages. Assumes that the incoming message has the Sender field filled in with the sender's DefaultAgentRep - otherwise does not bother to reply.


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Main program. Instantiates a WeatherAgent.

Throws:
java.io.IOException
java.lang.ClassNotFoundException