public interface ServiceDefinition
extends org.da.protoframework.model.def.NamespaceElementDefinition
Modifier and Type | Interface and Description |
---|---|
static class |
ServiceDefinition.Data
A Service Data.
|
static class |
ServiceDefinition.Topic
A Service Topic.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptMultipleProviderAttachments()
Return true if this Service accept multiple providers attachments.
|
void |
addProvider(ModuleDefinition module,
boolean attached)
Add a Service provider.
|
void |
addSubscriber(ModuleDefinition module)
Add a Service subscriber.
|
ServiceDefinition.Topic |
addTopic(java.lang.String name)
Add a topic for the Service.
|
default int |
countDatas()
Return the number of Datas in the Service.
|
default Data<?> |
createData(java.lang.String name)
Create a Data instance of a specified name.
|
java.util.Map<ModuleKey,ModuleDefinition> |
getAttachedProviders()
Return the attached Service providers.
|
org.da.protoframework.model.def.ConcreteServiceDefinition |
getConcreteService()
Return the associated concrete Service.
|
ServiceDefinition.Data |
getData(java.lang.String name)
Return a Data by its name.
|
default short |
getDataChangeBehavior()
Return the change behavior for datas.
|
java.util.Map<java.lang.String,ServiceDefinition.Data> |
getDatasByName()
Return the Service datas.
|
ServiceDefinition |
getExtendedService()
Return the Service that this Service extends.
|
java.util.Map<ModuleKey,ModuleDefinition> |
getProviders()
Return the Map of Service providers.
|
default short |
getServiceInvocationMode()
Return the service invocation mode.
|
java.util.Map<ModuleKey,ModuleDefinition> |
getSubscribers()
Return the Map of Service subscribers.
|
default ServiceDefinition |
getTargetExtendedService()
Return the final Service that this Service extends in the chain of extended sercices.
|
java.util.Map<java.lang.String,ServiceDefinition.Topic> |
getTopics()
Return all the defined topics for the Service.
|
boolean |
hasData(java.lang.String name)
Return true if the Servive has a data of a specified name.
|
default boolean |
hasDatas()
Return true if the service has datas.
|
boolean |
isAbstract()
Return true if the Service is abstract.
|
default boolean |
isCopyingDatas()
Return true if the datas of the service must be copied before being sent.
|
boolean |
removeData(java.lang.String name)
Removes a Data.
|
void |
removeProvider(ModuleKey key)
Remove a Service provider.
|
default void |
setDataChangeBehavior(short changeBehavior)
Set the change behavior for datas.
|
default void |
setDescription(java.lang.String desc)
Set the service description.
|
default void |
setKey(NamespaceKey key)
Set the service key.
|
default void |
setServiceInvocationMode(short invocationMode)
Set the service invocation mode.
|
getID, getName, hasID, setID
getDescription, hasDescription
getFullName, getKey, getNamespace, getNamespaceAsString
org.da.protoframework.model.def.ConcreteServiceDefinition getConcreteService()
ServiceDefinition getExtendedService()
default ServiceDefinition getTargetExtendedService()
default void setKey(NamespaceKey key)
key
- the service keydefault void setDescription(java.lang.String desc)
setDescription
in interface org.da.protoframework.model.def.DescriptedElement
desc
- the service descriptiondefault short getServiceInvocationMode()
ServiceInvocationMode
default void setServiceInvocationMode(short invocationMode)
invocationMode
- the service invocation modeServiceInvocationMode
default void setDataChangeBehavior(short changeBehavior)
changeBehavior
- the change behaviordefault short getDataChangeBehavior()
boolean isAbstract()
default boolean isCopyingDatas()
ServiceDefinition.Topic addTopic(java.lang.String name)
name
- the topic namejava.util.Map<java.lang.String,ServiceDefinition.Topic> getTopics()
ServiceDefinition.Data getData(java.lang.String name)
name
- the Data namedefault Data<?> createData(java.lang.String name)
name
- the data nameboolean removeData(java.lang.String name)
name
- the data nameboolean hasData(java.lang.String name)
name
- the data namedefault boolean hasDatas()
default int countDatas()
java.util.Map<java.lang.String,ServiceDefinition.Data> getDatasByName()
java.util.Map<ModuleKey,ModuleDefinition> getAttachedProviders()
boolean acceptMultipleProviderAttachments()
void addProvider(ModuleDefinition module, boolean attached)
module
- the moduleattached
- true if the provider is attached to the Servicevoid removeProvider(ModuleKey key)
key
- the module keyjava.util.Map<ModuleKey,ModuleDefinition> getProviders()
void addSubscriber(ModuleDefinition module)
module
- the subscriberjava.util.Map<ModuleKey,ModuleDefinition> getSubscribers()
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence