edu.uwf.kaos.coabsgrid.test.kgh
Class TestPolicyAgent
java.lang.Object
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
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 |
name
protected java.lang.String name
reg
protected KAoSAgentRegistrationHelper reg
TestPolicyAgent
public TestPolicyAgent(java.lang.String name)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
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