Package kieker.model.system.model
Class ExecutionContainer
java.lang.Object
kieker.model.system.model.ExecutionContainer
- All Implemented Interfaces:
ISystemModelElement
- Direct Known Subclasses:
RootExecutionContainer
public class ExecutionContainer extends java.lang.Object implements ISystemModelElement
- Since:
- 1.1
-
Constructor Summary
Constructors Constructor Description ExecutionContainer(int id, ExecutionContainer parent, java.lang.String name)Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description voidaddChildContainer(ExecutionContainer container)This method adds a given container to the list of child containers.booleanequals(java.lang.Object obj)java.util.Collection<ExecutionContainer>getChildContainers()Delivers a collection containing the added child containers.intgetId()Delivers the ID of the container.java.lang.StringgetIdentifier()Delivers the identifier (name) of this object.java.lang.StringgetName()Delivers the name of the container.ExecutionContainergetParent()Delivers the parent of the container.inthashCode()booleanisRootContainer()Returns whether this container is a root container.
-
Constructor Details
-
ExecutionContainer
Creates a new instance of this class using the given parameters.- Parameters:
id- The ID of this container.parent- The parent of this container.name- The name of this container.
-
-
Method Details
-
getId
public final int getId()Delivers the ID of the container.- Returns:
- The ID.
-
getName
public final java.lang.String getName()Delivers the name of the container.- Returns:
- The name.
-
getParent
Delivers the parent of the container.- Returns:
- The parent.
-
getChildContainers
Delivers a collection containing the added child containers.- Returns:
- The child containers.
-
addChildContainer
This method adds a given container to the list of child containers.- Parameters:
container- The new child container.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
isRootContainer
public boolean isRootContainer()Returns whether this container is a root container.- Returns:
- See above
-
getIdentifier
public java.lang.String getIdentifier()Delivers the identifier (name) of this object.- Specified by:
getIdentifierin interfaceISystemModelElement- Returns:
- The identifier.
-