|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.ont.fipa.fipaman.APTDescription
The Agent Platform Transport Description forms part of an AP description (see [PC00023]) and is expressed in SL0
TODO: there is at present no checking to see if the characters in the fields are valid as per the BNF definitions
Field Summary | |
protected java.util.Set |
_mtpd
A set of the message transport protocols |
Constructor Summary | |
APTDescription()
This is the empty constructor. |
|
APTDescription(java.lang.String description)
Constructs a APTDescription object from a string |
Method Summary | |
boolean |
addMTPD(MTPDescription mtpd)
Add a message transport protocol to the list |
boolean |
contains(java.lang.String name)
Does the set contain a particular message transport protocol. |
java.util.Set |
getMTPSSet()
This method returns the set of message transport protocols |
static void |
main(java.lang.String[] args)
The main method is for testing purposes |
boolean |
removeMTPD(MTPDescription mtpd)
Remove a message transport protocol from the set |
void |
setMTPSSet(MTPDescription[] mtpd)
This method sets the message transport protocol set. |
void |
setMTPSSet(java.util.Set mtpd)
This method sets the message transport protocol set |
java.lang.String |
toString()
A String Representation of this ATPDescription object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Set _mtpd
Constructor Detail |
public APTDescription()
public APTDescription(java.lang.String description) throws ParserException
description
- string representation of a APTDescription objectParserException
- if the String is invalidMethod Detail |
public void setMTPSSet(java.util.Set mtpd)
mtpd
- MTPD to be added to the setpublic void setMTPSSet(MTPDescription[] mtpd)
mtpd
- array of MTPDs to be added to the setpublic java.util.Set getMTPSSet()
public boolean addMTPD(MTPDescription mtpd)
mtpd
- the mtpd to be added to the setpublic boolean removeMTPD(MTPDescription mtpd)
mtpd
- remove a MTPD from the setpublic boolean contains(java.lang.String name)
name
- the name of message transport protocol or the mtp profilepublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- Arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |