Package kieker.model.system.model
Class Operation
java.lang.Object
kieker.model.system.model.Operation
public class Operation
extends java.lang.Object
This class represents an operation within the trace analysis tool. It
consists of the component type and a signature.
- Since:
- 1.1
-
Field Summary
Fields Modifier and Type Field Description static intROOT_OPERATION_IDThe ID for the root operation. -
Constructor Summary
Constructors Constructor Description Operation(int id, ComponentType componentType, kieker.common.util.signature.Signature signature)Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)Two Operation objects are equal if their ids are equal.ComponentTypegetComponentType()Delivers the component type of the operation.intgetId()Delivers the ID of the operation.kieker.common.util.signature.SignaturegetSignature()Delivers the signature of the operation.inthashCode()java.lang.StringtoString()
-
Field Details
-
ROOT_OPERATION_ID
public static final int ROOT_OPERATION_IDThe ID for the root operation.- See Also:
- Constant Field Values
-
-
Constructor Details
-
Operation
public Operation(int id, ComponentType componentType, kieker.common.util.signature.Signature signature)Creates a new instance of this class using the given parameters.- Parameters:
id- The ID of this operation.componentType- The type of the component of this operation.signature- The signature of this operation.
-
-
Method Details
-
getId
public final int getId()Delivers the ID of the operation.- Returns:
- The ID.
-
getComponentType
Delivers the component type of the operation.- Returns:
- The component type.
-
getSignature
public final kieker.common.util.signature.Signature getSignature()Delivers the signature of the operation.- Returns:
- The signature.
-
equals
public boolean equals(java.lang.Object obj)Two Operation objects are equal if their ids are equal.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- The object to be compared for equality with this- Returns:
- true if the two objects are equal.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-