Class agent.util.AgentListMessage
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class agent.util.AgentListMessage
java.lang.Object
   |
   +----agent.util.Message
           |
           +----agent.util.AgentListMessage
  -  public class AgentListMessage
  
-  extends Message
  
A message that supplies the receiver with a list of
dispatchable agents available on this server.  It is sent in
response to a QueryAgentListMessage. Message format:
 Description  Data  Length
 The command  Load  4 bytes
 The length   10 bytes ascii int
 filename FNam  4 bytes
 length     4 bytes ascii int
 filename   length bytes
 description  Desc  4 bytes
 length     4 bytes ascii int
 description    length bytes
Class contains both message construction and message parsing
methods.
    -  See Also:
    
 -  QueryAgentListMessage, Message
 
  
  -  
	ALSTLEN_SIZE
   -  
  
 -  
	ALST_PREFIX
   -  
  
 -  
	DESCLEN_SIZE
   -  
  
 -  
	DESC_PREFIX
   -  
  
 -  
	FNAMLEN_SIZE
   -  
  
 -  
	FNAM_PREFIX
   -  
  
 -  
	PREFIX_SIZE
   -  
  
 -  
	descriptions
   -  
  
 -  
	filenames
   -  
 
  
  -  
	AgentListMessage()
   -  
  
 -  
	AgentListMessage(Vector, Vector)
   -  This is the constructor used by an AgentServer that wishes
to SEND a AgentList message.
 
  
  -  
	createMessage()
   -  Actually fill the byte array 'msg' with ALL the bytes that
make up this load message.
  
 -  
	parse(byte[], int)
   -  parse the supplied byte array as if it were an AgentList
message.
 
  
PREFIX_SIZE
  public final static int PREFIX_SIZE
ALST_PREFIX
  public final static String ALST_PREFIX
FNAM_PREFIX
  public final static String FNAM_PREFIX
DESC_PREFIX
  public final static String DESC_PREFIX
ALSTLEN_SIZE
  public final static int ALSTLEN_SIZE
FNAMLEN_SIZE
  public final static int FNAMLEN_SIZE
DESCLEN_SIZE
  public final static int DESCLEN_SIZE
filenames
  public Vector filenames
descriptions
  public Vector descriptions
  
AgentListMessage
  public AgentListMessage()
AgentListMessage
  public AgentListMessage(Vector fnames,
                          Vector descs)
  -  This is the constructor used by an AgentServer that wishes
to SEND a AgentList message.  Supply the name of the lead
class, the id, the signature, arguments, dispatching server
and port.
 
  
parse
  public void parse(byte b[],
                    int currentOffset)
  -  parse the supplied byte array as if it were an AgentList
message.  Start parsing at the supplied currentOffset. 
currentOffset should point to the FIRST byte of the SECOND
field in a message, i.e. to the first character in the word
"FNam".  Fills the instance variables:
  filenames
  descriptions
with data from the message.
 
createMessage
  public void createMessage()
  -  Actually fill the byte array 'msg' with ALL the bytes that
make up this load message.  Expects the intance variables:
  filenames
  descriptions
to already be filled with valid data.
  
    -  Overrides:
    
 -  createMessage in class Message
  
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index