Package org.palladiosimulator.pcmtx.api
Class EntityTypesAPI
- java.lang.Object
-
- org.palladiosimulator.pcmtx.api.EntityTypesAPI
-
public class EntityTypesAPI extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static EntityAccessType[]
DEFAULT_ACCESS_TYPES
static String
PROVIDED_ROLE_SUFFIX
static String
RESOURCE_INTERFACE_PREFIX
-
Constructor Summary
Constructors Constructor Description EntityTypesAPI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.palladiosimulator.pcm.resourcetype.ResourceRepository
createEmptyRepository()
static EntityType
createEntityType(org.palladiosimulator.pcm.resourcetype.ResourceRepository repository, String name)
Creates a new entity type in the specified entity type repository.static EntityType
createEntityType(org.palladiosimulator.pcm.resourcetype.ResourceRepository repository, String name, EntityAccessType... accessTypes)
static org.palladiosimulator.pcm.resourcetype.ResourceSignature
findSignatureByAccessType(org.palladiosimulator.pcm.resourcetype.ResourceInterface iface, EntityAccessType accessType)
static org.palladiosimulator.pcm.resourcetype.ResourceInterface
getProvidedInterface(EntityType entityType)
-
-
-
Field Detail
-
PROVIDED_ROLE_SUFFIX
public static final String PROVIDED_ROLE_SUFFIX
- See Also:
- Constant Field Values
-
RESOURCE_INTERFACE_PREFIX
public static final String RESOURCE_INTERFACE_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_ACCESS_TYPES
public static final EntityAccessType[] DEFAULT_ACCESS_TYPES
-
-
Method Detail
-
createEmptyRepository
public static org.palladiosimulator.pcm.resourcetype.ResourceRepository createEmptyRepository()
-
createEntityType
public static EntityType createEntityType(org.palladiosimulator.pcm.resourcetype.ResourceRepository repository, String name)
Creates a new entity type in the specified entity type repository.- Parameters:
repository
- the repository in which the entity type is to be created
-
createEntityType
public static EntityType createEntityType(org.palladiosimulator.pcm.resourcetype.ResourceRepository repository, String name, EntityAccessType... accessTypes)
-
getProvidedInterface
public static org.palladiosimulator.pcm.resourcetype.ResourceInterface getProvidedInterface(EntityType entityType)
- Returns:
- the resource interface provided by the specified entity type. By convention, each entity type provides exactly one resource interface.
-
findSignatureByAccessType
public static org.palladiosimulator.pcm.resourcetype.ResourceSignature findSignatureByAccessType(org.palladiosimulator.pcm.resourcetype.ResourceInterface iface, EntityAccessType accessType)
- Parameters:
iface
- the interface to be examinedaccessType
- the access type- Returns:
- the resource signature that matches the given access type, or
null
if no such signature could be found in the specified interface.
-
-