zeus.actors.outtrays
Class FIPA_PostMan

java.lang.Object
  extended byjava.lang.Thread
      extended byzeus.actors.PostMan
          extended byzeus.actors.outtrays.FIPA_PostMan
All Implemented Interfaces:
java.lang.Runnable

public class FIPA_PostMan
extends PostMan

This class is a FIPA complient PostMan that can be used to build an ACC agent which when working with the NameServer provides a link between the Zeus platform and other FIPA complient platforms


Field Summary
private  java.io.File file
           
protected  javax.naming.Context initialNamingContext
           
private  java.io.FileWriter log
           
 
Fields inherited from class zeus.actors.PostMan
ccMail, dispatching, MAX_RETRY, mbox, myAddress, outMail, waitQueue
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FIPA_PostMan(MailBox mbox, Queue outMail, Queue ccMail, Address myAddress)
           
 
Method Summary
private  void debug(java.lang.String str)
           
 boolean postFIPAMsg(FIPAPerformative msg, FIPA_AID_Address addr)
          posts the message to the appropriate transport, will set the return address to
 void run()
          this run method is the business end of the agent's communication infrastructure.
 
Methods inherited from class zeus.actors.PostMan
addressReceived, doPost, lowerStatus, postMsg, push, setFastAgent, stopDispatching
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

initialNamingContext

protected javax.naming.Context initialNamingContext

log

private java.io.FileWriter log

file

private java.io.File file
Constructor Detail

FIPA_PostMan

public FIPA_PostMan(MailBox mbox,
                    Queue outMail,
                    Queue ccMail,
                    Address myAddress)
Method Detail

run

public void run()
Description copied from class: PostMan
this run method is the business end of the agent's communication infrastructure. It works in the following way.

for every receiver of the message
if lookupAddress good then
if can send to that address tell the visualisers about the message else post an error and delete that address else ask the nameserver for the address and put this message on a todo list until the nameserver responds then service it.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class PostMan

postFIPAMsg

public boolean postFIPAMsg(FIPAPerformative msg,
                           FIPA_AID_Address addr)
posts the message to the appropriate transport, will set the return address to


debug

private void debug(java.lang.String str)


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.