jade.domain.FIPAAgentManagement
Class DFAgentDescription
java.lang.Object
|
+--jade.domain.FIPAAgentManagement.DFAgentDescription
- public class DFAgentDescription
- extends java.lang.Object
- implements Concept
This type of object represents the description that can be registered with the
DF service.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DFAgentDescription
public DFAgentDescription()
setName
public void setName(AID n)
- Set the identifier of the agent
- Parameters:
n
- the identifier of the agent
getName
public AID getName()
- Returns:
- the identifier of the agent
setLeaseTime
public void setLeaseTime(java.util.Date absoluteTime)
- Set the lease time for the registration of this DFAgentDescription
as an absolute time.
- Parameters:
absoluteTime
- The lease time for the registration of this
DFAgentDescription as an absolute time. Use null
(default) to indicate an infinite lease time
getLeaseTime
public java.util.Date getLeaseTime()
- Returns:
- The lease time for the registration of this DFAgentDescription
as an absolute time. A
null
value indicates an infinite
time.
setRelativeLeaseTime
public void setRelativeLeaseTime(long relativeTime)
- Set the lease time for the registration of this DFAgentDescription
as a relative time.
- Parameters:
relativeTime
- The lease time for the registration of this
DFAgentDescription as a relative time.
checkLeaseTimeExpired
public boolean checkLeaseTimeExpired()
- Indicates whether the lease time for the registration of this
DFAgentDescription has expired.
addServices
public void addServices(ServiceDescription a)
removeServices
public boolean removeServices(ServiceDescription a)
clearAllServices
public void clearAllServices()
getAllServices
public Iterator getAllServices()
addProtocols
public void addProtocols(java.lang.String ip)
removeProtocols
public boolean removeProtocols(java.lang.String ip)
clearAllProtocols
public void clearAllProtocols()
getAllProtocols
public Iterator getAllProtocols()
addOntologies
public void addOntologies(java.lang.String ip)
removeOntologies
public boolean removeOntologies(java.lang.String ip)
clearAllOntologies
public void clearAllOntologies()
getAllOntologies
public Iterator getAllOntologies()
addLanguages
public void addLanguages(java.lang.String ip)
removeLanguages
public boolean removeLanguages(java.lang.String ip)
clearAllLanguages
public void clearAllLanguages()
getAllLanguages
public Iterator getAllLanguages()