Class semper.util.msgtools.MessageListHead
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.util.msgtools.MessageListHead

java.lang.Object
   |
   +----semper.util.msgtools.MessageListHead

public class MessageListHead
extends Object
implements Streamable
An object of this class will be at the head of a list of items in a negotiation message. A negotiation message will consist of many lists. Each list will consist of a MessageListHead object and a list of objects (of any class) from which the choice is made.
Version:
$Revision: 1.2 $ $Date: 1996/09/03 11:27:42 $
Author:
N. Asokan ([email protected])
See Also:
Vector

Variable Index

 o ERROR
Flag used in negotiation to indicate that a processing error was encountered while parsing the corresponding message from the peer.
 o PROPOSE
Flag used in negotiation to indicate that peer should propose choices for the given parameter.
 o REPLY
Flag used in negotiation to indicate that the message is a reply a message from the peer.
 o SELECT_ONE
Flag used in negotiation to indicate that peer should select a single acceptable value from the given list for the specified parameter and return the result.
 o SELECT_SUBSET
Flag used in negotiation to indicate that peer should select acceptable values from the given list for the specified parameter and return the result.

Constructor Index

 o MessageListHead()
Constructor with no arguments.
 o MessageListHead(String, String, int, Vector)
Constructor with all arguments

Method Index

 o getClassName()
Get the name of the class of objects in the list.
 o getFlags()
Get the flags for negotiation.
 o getList()
Get the list of items in the message.
 o getParameterName()
Get the name of the parameter.
 o myStreamSize()
Implementing the Streamable interface
 o readObject(StreamInputInterface)
Implementing the Streamable interface
 o setFlags(int)
Set the flags for negotiations
 o setList(Vector)
Set the list of items in the message.
 o writeObject(StreamOutputInterface)
Implementing the Streamable interface

Variables

 o SELECT_SUBSET
  public final static int SELECT_SUBSET
Flag used in negotiation to indicate that peer should select acceptable values from the given list for the specified parameter and return the result.
 o SELECT_ONE
  public final static int SELECT_ONE
Flag used in negotiation to indicate that peer should select a single acceptable value from the given list for the specified parameter and return the result.
 o PROPOSE
  public final static int PROPOSE
Flag used in negotiation to indicate that peer should propose choices for the given parameter.
 o REPLY
  public final static int REPLY
Flag used in negotiation to indicate that the message is a reply a message from the peer.
 o ERROR
  public final static int ERROR
Flag used in negotiation to indicate that a processing error was encountered while parsing the corresponding message from the peer.

Constructors

 o MessageListHead
  public MessageListHead(String parameter_name,
                         String class_name,
                         int flags,
                         Vector list)
Constructor with all arguments
 o MessageListHead
  public MessageListHead()
Constructor with no arguments.

Methods

 o getParameterName
  public String getParameterName()
Get the name of the parameter.
Returns:
name of the parameter being negotiated
 o getClassName
  public String getClassName()
Get the name of the class of objects in the list.
Returns:
name of the class of objects of the parameter being negotiated
 o getFlags
  public int getFlags()
Get the flags for negotiation.
Returns:
flags for negotiation.
 o getList
  public Vector getList()
Get the list of items in the message.
Returns:
list of items in the message.
 o setList
  public void setList(Vector list)
Set the list of items in the message.
Parameters:
list - a Vector object containing the list of items
Returns:
nothing
See Also:
Vector
 o setFlags
  public void setFlags(int flags)
Set the flags for negotiations
Parameters:
flags - new flags for negotiation
Returns:
nothing
 o writeObject
  public void writeObject(StreamOutputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
 o readObject
  public void readObject(StreamInputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Implementing the Streamable interface

All Packages  Class Hierarchy  This Package  Previous  Next  Index