Kieker 1.12

kieker.tools.traceAnalysis.filter.visualization.graph
Class AbstractGraphElement<O>

java.lang.Object
  extended by kieker.tools.traceAnalysis.filter.visualization.graph.AbstractGraphElement<O>
Type Parameters:
O - The type of the objects which caused the creation of this graph element
Direct Known Subclasses:
AbstractEdge, AbstractVertex

public abstract class AbstractGraphElement<O>
extends java.lang.Object

Superclass for graph elements, i.e. edges and vertices, in the visualization package.

Since:
1.6
Author:
Holger Knoche

Constructor Summary
protected AbstractGraphElement(O origin, IOriginRetentionPolicy originPolicy)
          This constructor initializes the element based on the given parameters.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGraphElement

protected AbstractGraphElement(O origin,
                               IOriginRetentionPolicy originPolicy)
This constructor initializes the element based on the given parameters.

Parameters:
origin - The origin of this element.
originPolicy - The origin policy of this element.
Method Detail

getColor

public Color getColor()
Returns this graph element's color.

Returns:
See above

setColor

public void setColor(Color color)
Sets this graph element's color.

Parameters:
color - The color to set

getDescription

public java.lang.String getDescription()
Returns this graph element's description.

Returns:
See above

setDescription

public void setDescription(java.lang.String description)
Sets this graph element's description.

Parameters:
description - The description to set

getOrigins

public java.util.Set<O> getOrigins()
Returns the objects which caused the creation of this element.

Returns:
See above

addOrigin

public final void addOrigin(O origin)
Adds a new origin object to this element.

Parameters:
origin - The origin object

getIdentifier

public abstract java.lang.String getIdentifier()
Returns an identifier for this graph element (e.g., a label).

Returns:
An identifier or null if no identifier can be determined

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net