Class EventGroupCreator
java.lang.Object
org.palladiosimulator.generator.fluent.shared.structure.Entity
org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
org.palladiosimulator.generator.fluent.repository.structure.interfaces.Interface
org.palladiosimulator.generator.fluent.repository.structure.interfaces.EventGroupCreator
This class constructs an
EventGroup
. It
is used to create the 'EventGroup' object step-by-step, i.e.
'EventGroupCreator' objects are of intermediate state.- See Also:
-
EventGroup
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.interfaces.Interface
parentInterfaces, requiredCharacterisations
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
repository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEventType
(org.palladiosimulator.pcm.repository.EventType eventType) org.palladiosimulator.pcm.repository.EventGroup
build()
Turns the entity in the making into the finished entity.conforms
(org.palladiosimulator.pcm.repository.Interface interfce) Creates a conforming (parental) connection to theparentInterface
and adds it to this interface/event group.withEventType
(EventTypeCreator eventType) Adds theeventType
to this event group's list of event types.Defines the unique name of this current entity.withRequiredCharacterisation
(org.palladiosimulator.pcm.repository.Parameter parameter, org.palladiosimulator.pcm.parameter.VariableCharacterisationType type) Creates aRequiredCharacterisation
and adds it to the interface/event group.
-
Constructor Details
-
EventGroupCreator
-
-
Method Details
-
withName
Description copied from class:Entity
Defines the unique name of this current entity. Once created entities are referenced by this name. Only entities with a unique name can be fetched from the model. -
conforms
Description copied from class:Interface
Creates a conforming (parental) connection to theparentInterface
and adds it to this interface/event group.An existing
parentInterface
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfInterface(name)
.- Overrides:
conforms
in classInterface
- Returns:
- this interface/event group in the making
- See Also:
-
FluentRepositoryFactory.fetchOfInterface(String)
Interface.getParentInterfaces__Interface()
Interface
-
withRequiredCharacterisation
public EventGroupCreator withRequiredCharacterisation(org.palladiosimulator.pcm.repository.Parameter parameter, org.palladiosimulator.pcm.parameter.VariableCharacterisationType type) Description copied from class:Interface
Creates aRequiredCharacterisation
and adds it to the interface/event group.A RequiredCharacterisation is a specification of parameters. It increases the power of the interfaces and enables extended interoperability checks.
TheVariableCharacterisationType
type
offers the values 'STRUCTURE', 'NUMBER_OF_ELEMENTS', 'BYTESIZE', 'TYPE', and 'VALUE'.An existing
parameter
from a previously defined signature/event type can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfParameter(name)
andcreate.fetchOfParameter(name, signatureContext)
.- Overrides:
withRequiredCharacterisation
in classInterface
- Parameters:
parameter
- that is specifiedtype
- of the parameter- Returns:
- this interface/event group in the making
- See Also:
-
withEventType
Adds theeventType
to this event group's list of event types. TheeventType
can be created using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.newEventType()
.- Parameters:
eventType
-- Returns:
- this event group in the making
- See Also:
-
build
public org.palladiosimulator.pcm.repository.EventGroup build()Description copied from class:Entity
Turns the entity in the making into the finished entity. -
addEventType
protected void addEventType(org.palladiosimulator.pcm.repository.EventType eventType)
-