public class AgentDescriptionBuffer extends Object
AgentDescription
,
AgentDescriptionBuilder
,
FIPA Agent
Management Specification, Section 6.1.2Constructor and Description |
---|
AgentDescriptionBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
addLanguage(LanguageIdentifier language)
Adds a language to the description.
|
void |
addOntology(OntologyIdentifier ontology)
Adds an ontology to the description.
|
void |
addProtocol(ProtocolIdentifier protocol)
Adds a supported protocol to the description.
|
void |
addScope(Scope scope)
Adds a scope for the description.
|
void |
addService(ServiceDescription service)
Adds an offered service to the description.
|
void |
setLeaseTime(Timestamp leaseTime)
Sets an expiration time for the description.
|
void |
setName(AgentIdentifier name)
Sets the name of the agent.
|
AgentDescription |
toAgentDescription()
Creates the directory agent description defined by this buffer.
|
public void setName(AgentIdentifier name)
name
- the name of the agentIllegalStateException
- if the name is already setNullPointerException
- if the name is null
public void addService(ServiceDescription service)
service
- the service to be addedNullPointerException
- if the service is null
public void setLeaseTime(Timestamp leaseTime)
leaseTime
- the expiration time to be setIllegalStateException
- if the expiration time is already setpublic void addScope(Scope scope)
scope
- the scope to be addedNullPointerException
- if the scope is null
public AgentDescription toAgentDescription()
public void addProtocol(ProtocolIdentifier protocol)
protocol
- the protocol to be addedNullPointerException
- if the protocol is null
public void addOntology(OntologyIdentifier ontology)
ontology
- the ontology to be addedNullPointerException
- if the ontology is null
public void addLanguage(LanguageIdentifier language)
language
- the language to be addedNullPointerException
- if the language is null
Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.