Class InfrastructureInterfaceCreator
- 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.InfrastructureInterfaceCreator
-
public class InfrastructureInterfaceCreator extends Interface
This class constructs anInfrastructureInterface. It is used to create the 'InfrastructureInterface' object step-by-step, i.e. 'InfrastructureInterfaceCreator' objects are of intermediate state.- See Also:
InfrastructureInterface
-
-
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
Constructors Constructor Description InfrastructureInterfaceCreator(RepositoryCreator repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddInfrastructureSignatures(org.palladiosimulator.pcm.repository.InfrastructureSignature signature)org.palladiosimulator.pcm.repository.InfrastructureInterfacebuild()Turns the entity in the making into the finished entity.InfrastructureInterfaceCreatorconforms(org.palladiosimulator.pcm.repository.Interface interfce)Creates a conforming (parental) connection to theparentInterfaceand adds it to this interface/event group.InfrastructureInterfaceCreatorwithInfrastructureSignature(InfrastructureSignatureCreator signature)Adds thesignatureto this interface's list of signatures.InfrastructureInterfaceCreatorwithName(String name)Defines the unique name of this current entity.InfrastructureInterfaceCreatorwithRequiredCharacterisation(org.palladiosimulator.pcm.repository.Parameter parameter, org.palladiosimulator.pcm.parameter.VariableCharacterisationType type)Creates aRequiredCharacterisationand adds it to the interface/event group.
-
-
-
Constructor Detail
-
InfrastructureInterfaceCreator
public InfrastructureInterfaceCreator(RepositoryCreator repo)
-
-
Method Detail
-
withName
public InfrastructureInterfaceCreator withName(String name)
Description copied from class:EntityDefines 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
public InfrastructureInterfaceCreator conforms(org.palladiosimulator.pcm.repository.Interface interfce)
Description copied from class:InterfaceCreates a conforming (parental) connection to theparentInterfaceand adds it to this interface/event group.An existing
parentInterfacecan be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfInterface(name).- Overrides:
conformsin classInterface- Returns:
- this interface/event group in the making
- See Also:
FluentRepositoryFactory.fetchOfInterface(String),Interface.getParentInterfaces__Interface(),Interface
-
withRequiredCharacterisation
public InfrastructureInterfaceCreator withRequiredCharacterisation(org.palladiosimulator.pcm.repository.Parameter parameter, org.palladiosimulator.pcm.parameter.VariableCharacterisationType type)
Description copied from class:InterfaceCreates aRequiredCharacterisationand 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.
TheVariableCharacterisationTypetypeoffers the values 'STRUCTURE', 'NUMBER_OF_ELEMENTS', 'BYTESIZE', 'TYPE', and 'VALUE'.An existing
parameterfrom 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:
withRequiredCharacterisationin classInterface- Parameters:
parameter- that is specifiedtype- of the parameter- Returns:
- this interface/event group in the making
- See Also:
FluentRepositoryFactory.fetchOfParameter(String),FluentRepositoryFactory.fetchOfParameter(String, org.palladiosimulator.pcm.repository.Signature)
-
withInfrastructureSignature
public InfrastructureInterfaceCreator withInfrastructureSignature(InfrastructureSignatureCreator signature)
Adds thesignatureto this interface's list of signatures. Thesignaturecan be created using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.newInfrastructureSignature().- Parameters:
signature-- Returns:
- this infrastructure interface in the making
- See Also:
FluentRepositoryFactory.newInfrastructureSignature()
-
build
public org.palladiosimulator.pcm.repository.InfrastructureInterface build()
Description copied from class:EntityTurns the entity in the making into the finished entity.
-
addInfrastructureSignatures
protected void addInfrastructureSignatures(org.palladiosimulator.pcm.repository.InfrastructureSignature signature)
-
-