public class ServiceDescriptionBuffer extends Object
ServiceDescription
,
ServiceDescriptionBuilder
,
FIPA Agent
Management Specification, Section 6.1.3Constructor and Description |
---|
ServiceDescriptionBuffer() |
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 |
addProperty(Property property)
Adds a property to the description.
|
void |
addProtocol(ProtocolIdentifier protocol)
Adds a supported protocol to the description.
|
void |
setName(ServiceIdentifier name)
Sets the name of the service.
|
void |
setOwnership(Ownership ownership)
Sets the owner of the service.
|
void |
setType(ServiceType type)
Sets the type of the service.
|
ServiceDescription |
toServiceDescription()
Creates the service description defined by this buffer.
|
public void setName(ServiceIdentifier name)
name
- the name of the serviceIllegalStateException
- if the name is already setNullPointerException
- if the name is null
public void setType(ServiceType type)
type
- the type of the serviceIllegalStateException
- if the name is already setNullPointerException
- if the name is null
public void setOwnership(Ownership ownership)
ownership
- the owner of the serviceIllegalStateException
- if the name is already setNullPointerException
- if the name is null
public void addProperty(Property property)
property
- the property to be addedNullPointerException
- if the property is null
public ServiceDescription toServiceDescription()
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.