|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.domain.FIPAAgentManagement.DFAgentDescription
This class implements the concept of the fipa-agent-management ontology representing the description of an agent in the DF catalogue.
FIPAManagementOntology
,
AMSService
,
Serialized FormConstructor Summary | |
DFAgentDescription()
Default constructor. |
Method Summary | |
void |
addLanguages(java.lang.String l)
Add a content language name to the languages slot
collection of this object. |
void |
addOntologies(java.lang.String o)
Add an ontology name to the ontologies slot
collection of this object. |
void |
addProtocols(java.lang.String ip)
Add a protocol name to the protocols slot
collection of this object. |
void |
addServices(ServiceDescription a)
Add a service description to the service slot
collection of this object. |
boolean |
checkLeaseTimeExpired()
Indicates whether the lease time for the registration of this DFAgentDescription expired. |
void |
clearAllLanguages()
Remove all content language names from the languages slot collection of this object. |
void |
clearAllOntologies()
Remove all ontology names from the ontologies slot
collection of this object. |
void |
clearAllProtocols()
Remove all protocol names from the protocols slot
collection of this object. |
void |
clearAllServices()
Remove all service descriptions from the services
slot collection of this object. |
Iterator |
getAllLanguages()
Access all content language names from the languages slot collection of this object. |
Iterator |
getAllOntologies()
Access all ontology names from the ontologies slot
collection of this object. |
Iterator |
getAllProtocols()
Access all protocol names from the protocols slot
collection of this object. |
Iterator |
getAllServices()
Access all service descriptions from the services
slot collection of this object. |
java.util.Date |
getLeaseTime()
Retrieve the lease time for the registration of this description (i.e., how long it will be kept within the DF agent knowledge base). |
AID |
getName()
Retrieve the agent identifier for the described agent. |
boolean |
removeLanguages(java.lang.String l)
Remove a content language name from the languages
slot collection of this object. |
boolean |
removeOntologies(java.lang.String o)
Remove an ontology name from the ontologies slot
collection of this object. |
boolean |
removeProtocols(java.lang.String ip)
Remove a protocol name from the protocols slot
collection of this object. |
boolean |
removeServices(ServiceDescription a)
Remove a service description from the services
slot collection of this object. |
void |
setLeaseTime(java.util.Date absoluteTime)
Set the lease time for the registration of this DFAgentDescription as an absolute time. |
void |
setName(AID n)
Set the identifier of the agent |
void |
setRelativeLeaseTime(long relativeTime)
Set the lease time for the registration of this DFAgentDescription as a relative time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DFAgentDescription()
Method Detail |
public void setName(AID n)
n
- the identifier of the agentpublic AID getName()
public void setLeaseTime(java.util.Date absoluteTime)
absoluteTime
- The lease time for the registration of this
DFAgentDescription as an absolute time. Use null
(default) to indicate an infinite lease timepublic java.util.Date getLeaseTime()
DFAgentDescription
as an absolute time. A
null
value indicates an infinite time.public void setRelativeLeaseTime(long relativeTime)
DFAgentDescription
as a relative time.
relativeTime
- The lease time for the registration of this
DFAgentDescription as a relative time.public boolean checkLeaseTimeExpired()
DFAgentDescription
expired.
true
is
returned, and false
otherwise.public void addServices(ServiceDescription a)
service
slot
collection of this object.
a
- The service description to add to the collection.public boolean removeServices(ServiceDescription a)
services
slot collection of this object.
a
- The service description to remove from the collection.
public void clearAllServices()
services
slot collection of this object.
public Iterator getAllServices()
services
slot collection of this object.
public void addProtocols(java.lang.String ip)
protocols
slot
collection of this object.
ip
- The protocol name to add to the collection.public boolean removeProtocols(java.lang.String ip)
protocols
slot
collection of this object.
ip
- The protocol name to remove from the collection.
public void clearAllProtocols()
protocols
slot
collection of this object.
public Iterator getAllProtocols()
protocols
slot
collection of this object.
public void addOntologies(java.lang.String o)
ontologies
slot
collection of this object.
o
- The ontology name to add to the collection.public boolean removeOntologies(java.lang.String o)
ontologies
slot
collection of this object.
o
- The ontology name to remove from the collection.
public void clearAllOntologies()
ontologies
slot
collection of this object.
public Iterator getAllOntologies()
ontologies
slot
collection of this object.
public void addLanguages(java.lang.String l)
languages
slot
collection of this object.
l
- The content language name to add to the collection.public boolean removeLanguages(java.lang.String l)
languages
slot collection of this object.
l
- The content language name to remove from the
collection.
public void clearAllLanguages()
languages
slot collection of this object.
public Iterator getAllLanguages()
languages
slot collection of this object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |