aminePlatform.util.graph
Class RelaxOntology.CellWrapper

java.lang.Object
  extended byaminePlatform.util.graph.RelaxOntology.CellWrapper
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
RelaxOntology

class RelaxOntology.CellWrapper
extends java.lang.Object
implements java.lang.Comparable

cell wrapper contains all values for one node


Field Summary
(package private)  int gridPosition
          current position in the grid
(package private)  int level
          the vertical level where the cell wrapper is inserted
(package private)  int position
          position of next child
(package private)  int priority
          priority for movements to the barycenter
(package private)  VisualNode vertexView
          reference to the wrapped cell
 
Constructor Summary
(package private) RelaxOntology.CellWrapper(int level, double edgeCrossesIndicator, VisualNode vertexView)
          creates an instance and memorizes the parameters
 
Method Summary
(package private)  void addToEdgeCrossesIndicator(double addValue)
          Addes a value to the edge crosses indicator for the wrapped cell
 int compareTo(java.lang.Object compare)
           
(package private)  double getEdgeCrossesIndicator()
          retruns the average value for the edge crosses indicator for the wrapped cell
(package private)  int getGridPosition()
          gets the grid position for the wrapped cell
(package private)  int getLevel()
          gets the level of the wrapped cell
(package private)  int getPriority()
          returns the priority of this cell wrapper.
(package private)  VisualNode getVertexView()
          returns the wrapped cell
(package private)  void incrementPosition()
           
(package private)  void incrementPriority()
          increments the the priority of this cell wrapper.
(package private)  void resetEdgeCrossesIndicator()
          resets the indicator for edge crosses to 0
(package private)  void setChildosition(int pos)
           
(package private)  void setGridPosition(int pos)
          Sets the grid position for the wrapped cell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

level

int level
the vertical level where the cell wrapper is inserted


gridPosition

int gridPosition
current position in the grid


priority

int priority
priority for movements to the barycenter


vertexView

VisualNode vertexView
reference to the wrapped cell


position

int position
position of next child

Constructor Detail

RelaxOntology.CellWrapper

RelaxOntology.CellWrapper(int level,
                          double edgeCrossesIndicator,
                          VisualNode vertexView)
creates an instance and memorizes the parameters

Method Detail

getVertexView

VisualNode getVertexView()
returns the wrapped cell


resetEdgeCrossesIndicator

void resetEdgeCrossesIndicator()
resets the indicator for edge crosses to 0


getEdgeCrossesIndicator

double getEdgeCrossesIndicator()
retruns the average value for the edge crosses indicator for the wrapped cell


addToEdgeCrossesIndicator

void addToEdgeCrossesIndicator(double addValue)
Addes a value to the edge crosses indicator for the wrapped cell


getLevel

int getLevel()
gets the level of the wrapped cell


getGridPosition

int getGridPosition()
gets the grid position for the wrapped cell


setGridPosition

void setGridPosition(int pos)
Sets the grid position for the wrapped cell


incrementPosition

void incrementPosition()

setChildosition

void setChildosition(int pos)

incrementPriority

void incrementPriority()
increments the the priority of this cell wrapper. The priority was used by moving the cell to its barycenter.


getPriority

int getPriority()
returns the priority of this cell wrapper. The priority was used by moving the cell to its barycenter.


compareTo

public int compareTo(java.lang.Object compare)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(Object)