Package kieker.model.system.model
Class ComponentType
java.lang.Object
kieker.model.system.model.ComponentType
public class ComponentType
extends java.lang.Object
This class represents the type of a component within the trace analysis tool.
- Since:
- 1.1
-
Constructor Summary
Constructors Constructor Description ComponentType(int id, java.lang.String fullqualifiedTypeName)Creates a new instance of this class using the given parameters.ComponentType(int id, java.lang.String packageName, java.lang.String typeName)// NOCS requests implementation of equals and hashCode in pairs// NOCS requests implementation of equals and hashCode in pairs* Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description OperationaddOperation(Operation op)This method adds a given operation to the list of available operations.booleanequals(java.lang.Object obj)java.lang.StringgetFullQualifiedName()Delivers the full qualified name of this type (the packages are separated with '.').intgetId()Delivers the ID of the component type.java.util.Collection<Operation>getOperations()Delivers a collection containing the available operations within this component type.java.lang.StringgetPackageName()Delivers the package name of this type.java.lang.StringgetTypeName()Delivers the name of the type.inthashCode()
-
Constructor Details
-
ComponentType
public ComponentType(int id, java.lang.String packageName, java.lang.String typeName)// NOCS requests implementation of equals and hashCode in pairs// NOCS requests implementation of equals and hashCode in pairs* Creates a new instance of this class using the given parameters.- Parameters:
id- The ID of the component type.packageName- The package name.typeName- The type name.
-
ComponentType
public ComponentType(int id, java.lang.String fullqualifiedTypeName)Creates a new instance of this class using the given parameters.- Parameters:
id- The ID of the component type.fullqualifiedTypeName- The fully qualified name of the type, separated with '.'.
-
-
Method Details
-
getId
public final int getId()Delivers the ID of the component type.- Returns:
- The ID.
-
getTypeName
public final java.lang.String getTypeName()Delivers the name of the type.- Returns:
- The type name.
-
getPackageName
public final java.lang.String getPackageName()Delivers the package name of this type.- Returns:
- The package name.
-
getFullQualifiedName
public final java.lang.String getFullQualifiedName()Delivers the full qualified name of this type (the packages are separated with '.').- Returns:
- The full qualified name.
-
getOperations
Delivers a collection containing the available operations within this component type.- Returns:
- The operations.
-
addOperation
This method adds a given operation to the list of available operations.- Parameters:
op- The operation to be added.- Returns:
- The added operation.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-