comirva.config
Class CSRConfig

java.lang.Object
  extended by comirva.config.CSRConfig
Direct Known Subclasses:
CSRDefaultConfig

public class CSRConfig
extends Object

This class represents a configuration for a Continuous-Similarity-Ring-Visualization It is used to pass a configuration to the visualization pane.


Constructor Summary
CSRConfig(int numberOfNeighborsPerPrototype, int[] idxPrototypes, int maxEdgeThickness, int prototypesVertexDiameter, int neighborsVertexDiameter, int iterationsNeighborsPlacement)
          Creates a new instance of a CSR-Configuration.
 
Method Summary
 int getIterationsNeighborsPlacement()
          Returns the number of iterations for the heuristic that positions the vertices of the neighbors
 int getMaxEdgeThickness()
          Returns the maximum thickness for the edges connecting the prototypes with their neighbors.
 int getNeighborsVertexDiameter()
          Returns the vertex diameter for the neighbor vertices.
 int getNumberOfNeighborsPerPrototype()
          Returns the number of neighboring data items per prototype.
 int[] getPrototypeIndices()
          Returns an int[] containing the indices of the data items to be used as prototypes.
 int getPrototypesVertexDiameter()
          Returns the vertex diameter for the prototype vertices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSRConfig

public CSRConfig(int numberOfNeighborsPerPrototype,
                 int[] idxPrototypes,
                 int maxEdgeThickness,
                 int prototypesVertexDiameter,
                 int neighborsVertexDiameter,
                 int iterationsNeighborsPlacement)
Creates a new instance of a CSR-Configuration.

Parameters:
numberOfNeighborsPerPrototype - the number of neighbors that should be displayed for each prototype
idxPrototypes - an int[] containing the prototype indices
maxEdgeThickness - the maximum thickness of the edges connecting prototypes and neighbors
prototypesVertexDiameter - the diameter of the prototype-vertices
neighborsVertexDiameter - the diameter of the neighbor-vertices
iterationsNeighborsPlacement - the number of iterations for the vertex-placement-heuristic
Method Detail

getNumberOfNeighborsPerPrototype

public int getNumberOfNeighborsPerPrototype()
Returns the number of neighboring data items per prototype.

Returns:
the number of neighboring data items for each prototype

getPrototypeIndices

public int[] getPrototypeIndices()
Returns an int[] containing the indices of the data items to be used as prototypes.

Returns:
an int[] containing the prototype indices

getMaxEdgeThickness

public int getMaxEdgeThickness()
Returns the maximum thickness for the edges connecting the prototypes with their neighbors.

Returns:
the maximum thickness for edges

getPrototypesVertexDiameter

public int getPrototypesVertexDiameter()
Returns the vertex diameter for the prototype vertices.

Returns:
the vertex diameter for the prototype vertices

getNeighborsVertexDiameter

public int getNeighborsVertexDiameter()
Returns the vertex diameter for the neighbor vertices.

Returns:
the vertex diameter for the neighbor vertices

getIterationsNeighborsPlacement

public int getIterationsNeighborsPlacement()
Returns the number of iterations for the heuristic that positions the vertices of the neighbors

Returns:
the number of iterations for the heuristic that positions the vertices of the neighbors