Class PCMUtil
java.lang.Object
org.palladiosimulator.analyzer.quality.util.PCMUtil
Utility functions for handling PCM model elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.palladiosimulator.pcm.seff.StartActiongetInitialAction(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour behaivor) Gets the initial action for the given behavior.static List<org.palladiosimulator.pcm.repository.Parameter>getParameters(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF rdseff) Gets the parameters associated with an RDSEFF.static StringgetQualifiedCollectionNoE(org.palladiosimulator.pcm.repository.Parameter parameter) Returns the qualified name for the number of elements in a collection.static StringgetQualifiedName(de.uka.ipd.sdq.stoex.AbstractNamedReference reference) Returns a qualified name for the given reference.static StringgetQualifiedName(org.palladiosimulator.pcm.parameter.VariableCharacterisation variableCharacterization) Returns a qualified name for the given variable characterization.static StringgetQualifiedName(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage) Returns a qualified name for the given variable usage.static StringgetQualifiedName(org.palladiosimulator.pcm.repository.Parameter parameter) Returns the qualified name for the parameter.static StringprettyPrint(List<org.palladiosimulator.pcm.parameter.VariableUsage> usages) Provides textual information for the given variable usages.static StringprettyPrint(org.palladiosimulator.pcm.repository.DataType dataType) Provides a textual identifier in order to help humans to identify the data type.static StringprettyPrint(org.palladiosimulator.pcm.repository.InfrastructureSignature signature) Provides a textual identifier in order to help humans to identify the required signature.static StringprettyPrint(org.palladiosimulator.pcm.repository.OperationSignature signature) Provides a textual identifier in order to help humans to identify the required signature.static StringprettyPrint(org.palladiosimulator.pcm.repository.RepositoryComponent component) Provides a textual identifier in order to help humans to identify the component.static StringprettyPrint(org.palladiosimulator.pcm.repository.RequiredRole requiredRole) Provides a textual identifier in order to help humans to identify the required role.static StringprettyPrint(org.palladiosimulator.pcm.seff.AbstractAction action) Provides a textual identifier in order to help humans to identify the action.
-
Constructor Details
-
PCMUtil
public PCMUtil()
-
-
Method Details
-
getQualifiedCollectionNoE
public static String getQualifiedCollectionNoE(org.palladiosimulator.pcm.repository.Parameter parameter) Returns the qualified name for the number of elements in a collection.- Parameters:
parameter- The collection parameter.- Returns:
- The qualified name.
-
getQualifiedName
Returns the qualified name for the parameter.- Parameters:
parameter- The parameter.- Returns:
- The qualified name.
-
getQualifiedName
public static String getQualifiedName(org.palladiosimulator.pcm.parameter.VariableCharacterisation variableCharacterization) Returns a qualified name for the given variable characterization.- Parameters:
variableCharacterization- The variable characterization.- Returns:
- The qualified name, e.g. name.space.variableName.characterization.
-
getQualifiedName
public static String getQualifiedName(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage) Returns a qualified name for the given variable usage.- Parameters:
variableUsage- The variable usage.- Returns:
- The qualified name, e.g. name.space.variableName.
-
getQualifiedName
Returns a qualified name for the given reference.- Parameters:
reference- The reference.- Returns:
- The qualified name, e.g. name.space.variableName.
-
getParameters
public static List<org.palladiosimulator.pcm.repository.Parameter> getParameters(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF rdseff) Gets the parameters associated with an RDSEFF.- Parameters:
rdseff- The RDSEFF.- Returns:
- Parameter list.
-
getInitialAction
public static org.palladiosimulator.pcm.seff.StartAction getInitialAction(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour behaivor) Gets the initial action for the given behavior. Assumes a valid behavior.- Parameters:
behaivor- The behavior.- Returns:
- The initial action.
-
prettyPrint
Provides a textual identifier in order to help humans to identify the action.- Parameters:
action- The action.- Returns:
- The textual identifer.
-
prettyPrint
public static String prettyPrint(org.palladiosimulator.pcm.repository.RepositoryComponent component) Provides a textual identifier in order to help humans to identify the component.- Parameters:
component- The component.- Returns:
- The textual identifer.
-
prettyPrint
Provides a textual identifier in order to help humans to identify the required signature.- Parameters:
signature- The operation signature.- Returns:
- The textual identifer.
-
prettyPrint
public static String prettyPrint(org.palladiosimulator.pcm.repository.InfrastructureSignature signature) Provides a textual identifier in order to help humans to identify the required signature.- Parameters:
signature- The operation signature.- Returns:
- The textual identifer.
-
prettyPrint
Provides a textual identifier in order to help humans to identify the required role.- Parameters:
requiredRole- The required role.- Returns:
- The textual identifer.
-
prettyPrint
Provides a textual identifier in order to help humans to identify the data type.- Parameters:
dataType- the data type.- Returns:
- The textual identifier.
-
prettyPrint
Provides textual information for the given variable usages. Does not shows the specification values themselves.- Parameters:
usages- The variable usages.- Returns:
- The textual information.
-