O - The type of the objects which caused the creation of this graph elementpublic abstract class AbstractGraphElement<O>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGraphElement(O origin,
IOriginRetentionPolicy originPolicy)
This constructor initializes the element based on the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOrigin(O origin)
Adds a new origin object to this element.
|
Color |
getColor()
Returns this graph element's color.
|
java.lang.String |
getDescription()
Returns this graph element's description.
|
abstract java.lang.String |
getIdentifier()
Returns an identifier for this graph element (e.g., a label).
|
java.util.Set<O> |
getOrigins()
Returns the objects which caused the creation of this element.
|
void |
setColor(Color color)
Sets this graph element's color.
|
void |
setDescription(java.lang.String description)
Sets this graph element's description.
|
protected AbstractGraphElement(O origin, IOriginRetentionPolicy originPolicy)
origin - The origin of this element.originPolicy - The origin policy of this element.public Color getColor()
public void setColor(Color color)
color - The color to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description to setpublic java.util.Set<O> getOrigins()
public final void addOrigin(O origin)
origin - The origin objectpublic abstract java.lang.String getIdentifier()
null if no identifier can be determinedCopyright 2017 Kieker Project, http://kieker-monitoring.net