Class PCMUtil
- java.lang.Object
-
- org.palladiosimulator.analyzer.quality.util.PCMUtil
-
public class PCMUtil extends Object
Utility functions for handling PCM model elements.
-
-
Constructor Summary
Constructors Constructor Description PCMUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.palladiosimulator.pcm.seff.StartAction
getInitialAction(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 String
getQualifiedCollectionNoE(org.palladiosimulator.pcm.repository.Parameter parameter)
Returns the qualified name for the number of elements in a collection.static String
getQualifiedName(de.uka.ipd.sdq.stoex.AbstractNamedReference reference)
Returns a qualified name for the given reference.static String
getQualifiedName(org.palladiosimulator.pcm.parameter.VariableCharacterisation variableCharacterization)
Returns a qualified name for the given variable characterization.static String
getQualifiedName(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage)
Returns a qualified name for the given variable usage.static String
getQualifiedName(org.palladiosimulator.pcm.repository.Parameter parameter)
Returns the qualified name for the parameter.static String
prettyPrint(List<org.palladiosimulator.pcm.parameter.VariableUsage> usages)
Provides textual information for the given variable usages.static String
prettyPrint(org.palladiosimulator.pcm.repository.DataType dataType)
Provides a textual identifier in order to help humans to identify the data type.static String
prettyPrint(org.palladiosimulator.pcm.repository.InfrastructureSignature signature)
Provides a textual identifier in order to help humans to identify the required signature.static String
prettyPrint(org.palladiosimulator.pcm.repository.OperationSignature signature)
Provides a textual identifier in order to help humans to identify the required signature.static String
prettyPrint(org.palladiosimulator.pcm.repository.RepositoryComponent component)
Provides a textual identifier in order to help humans to identify the component.static String
prettyPrint(org.palladiosimulator.pcm.repository.RequiredRole requiredRole)
Provides a textual identifier in order to help humans to identify the required role.static String
prettyPrint(org.palladiosimulator.pcm.seff.AbstractAction action)
Provides a textual identifier in order to help humans to identify the action.
-
-
-
Method Detail
-
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
public static String getQualifiedName(org.palladiosimulator.pcm.repository.Parameter parameter)
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
public static String getQualifiedName(de.uka.ipd.sdq.stoex.AbstractNamedReference reference)
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
public static String prettyPrint(org.palladiosimulator.pcm.seff.AbstractAction action)
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
public static String prettyPrint(org.palladiosimulator.pcm.repository.OperationSignature 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
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
public static String prettyPrint(org.palladiosimulator.pcm.repository.RequiredRole requiredRole)
Provides a textual identifier in order to help humans to identify the required role.- Parameters:
requiredRole
- The required role.- Returns:
- The textual identifer.
-
prettyPrint
public static String prettyPrint(org.palladiosimulator.pcm.repository.DataType dataType)
Provides a textual identifier in order to help humans to identify the data type.- Parameters:
dataType
- the data type.- Returns:
- The textual identifier.
-
-