|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.ont.fipa.fipaman.APDescription
This class represents the Agent Platform Description object and contains a APTDescription which represents the Agent Platform Transport Description object
TODO: there is at present to checking to see if the characters in the fields are valid as per the BNF definitions
Constructor Summary | |
APDescription()
This constructor creates an empty Agent Platform Descriptioon. |
|
APDescription(Content ap_content)
This constructor takes a Content object as a parameter. |
|
APDescription(java.lang.String description)
This constructor creates an APDescriptoin from a string. |
Method Summary | |
boolean |
addMTPD(MTPDescription mtpd)
Adds a MTPDescription to the list of MTPDs |
java.lang.Boolean |
getDynamic()
Get the dynamic registration capability of the platform |
java.lang.Boolean |
getMobility()
Get the mobility capability of the platform |
java.util.Set |
getMTPDs()
Get the Agent Transport Description |
java.lang.String |
getName()
Get the name of the AP |
APTDescription |
getTransportDescription()
This method returns the transport profile of the Agent Platform. |
static void |
main(java.lang.String[] args)
This main method is used for testing. |
boolean |
removeMTPD(MTPDescription mtpd)
remove a Message Transport Protocol Description from the list |
void |
setDynamic(java.lang.Boolean dynamic)
Set whether the platform supports dynamic registration of Agents |
void |
setMobility(java.lang.Boolean mobility)
Set whether the platform supports mobility of the AP |
void |
setMTPDs(java.util.Set transport_description)
Set the description MTPDescription capabilities of the AP |
void |
setName(java.lang.String name)
This method sets the name of the Agent Platform Description. |
void |
setTransportDescription(APTDescription transport_description)
This method sets the transport profile of the Agent Platform |
java.lang.String |
toString()
A string representation of this APDescription |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public APDescription()
public APDescription(java.lang.String description) throws ParserException
description
- string representation of an APDescriptionParserException
- if it does not parse correctlypublic APDescription(Content ap_content) throws ParserException
ap_content
- Content object created by the fipao.parser.sl.SLParserParserException
- if the String is invalidMethod Detail |
public void setName(java.lang.String name)
name
- The name of the APpublic void setDynamic(java.lang.Boolean dynamic)
dynamic
- true if the platform supports dynamic registrationpublic void setMobility(java.lang.Boolean mobility)
mobility
- set to true if the agent platform supports mobilitypublic void setMTPDs(java.util.Set transport_description)
transport_description
- the agent transport description objectpublic void setTransportDescription(APTDescription transport_description)
transport_description
- Transport Profilepublic java.lang.String getName()
public java.lang.Boolean getDynamic()
public java.lang.Boolean getMobility()
public java.util.Set getMTPDs()
public APTDescription getTransportDescription()
public boolean addMTPD(MTPDescription mtpd)
mtpd
- The MTPD to be added to the listpublic boolean removeMTPD(MTPDescription mtpd)
mtpd
- the MTPD that needs to be removedpublic 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 |