jpl.mipl.mdms.FileService.komodo.messaging.msg
Class AgentType

java.lang.Object
  extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
      extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
          extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.AgentType
All Implemented Interfaces:
MessageType

public class AgentType
extends ComplexType

Purpose: Message describing an agent including agent name, ip and time.

   Copyright 2005, California Institute of Technology.
   ALL RIGHTS RESERVED.
   U.S. Government Sponsorship acknowledge. 2005.
   
 ============================================================================
 Modification History :
 ----------------------

 Date              Who              What
 ----------------------------------------------------------------------------
 06/14/2005        Nick             Initial Release
 ============================================================================
 

Version:
$Id: AgentType.java,v 1.2 2005/06/30 20:37:22 ntt Exp $
Author:
Nicholas Toole (Nicholas.T.Toole@jpl.nasa.gov)

Field Summary
static String ATTR_AGENT
           
static String ATTR_IP
           
static String ATTR_TIME
           
static String ELEMENT_NAME
           
 
Fields inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
_children
 
Fields inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
_attributes, _documentFactory, _name
 
Constructor Summary
AgentType()
           
AgentType(String name)
           
 
Method Summary
 String agent()
           
 String[] getAttributeNames()
           
 String ip()
           
 void parse(org.dom4j.Element element)
          Parse element parameter and assigns state to this message based on contents.
 long time()
           
 
Methods inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
getAttribute, getChild, getChildrenNames, getType, isRequired, setAttribute, setChild, toXml
 
Methods inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
getName, parseAttributes, parseChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
See Also:
Constant Field Values

ATTR_AGENT

public static final String ATTR_AGENT
See Also:
Constant Field Values

ATTR_IP

public static final String ATTR_IP
See Also:
Constant Field Values

ATTR_TIME

public static final String ATTR_TIME
See Also:
Constant Field Values
Constructor Detail

AgentType

public AgentType()

AgentType

public AgentType(String name)
Method Detail

getAttributeNames

public String[] getAttributeNames()
Overrides:
getAttributeNames in class MessageBase

parse

public void parse(org.dom4j.Element element)
           throws Exception
Description copied from interface: MessageType
Parse element parameter and assigns state to this message based on contents.

Specified by:
parse in interface MessageType
Overrides:
parse in class MessageBase
Parameters:
element - XML element to be parsed.
Throws:
Exception - if parse error occurrs

agent

public String agent()

ip

public String ip()

time

public long time()