net.xqhs.graphs.representation.multilevel
Class TextMultilevelGraphRepresentation

java.lang.Object
  extended by net.xqhs.util.config.Config
      extended by net.xqhs.util.logging.Unit
          extended by net.xqhs.graphs.representation.GraphRepresentationImplementation
              extended by net.xqhs.graphs.representation.multilevel.MultilevelGraphRepresentation
                  extended by net.xqhs.graphs.representation.multilevel.TextMultilevelGraphRepresentation
All Implemented Interfaces:
GraphRepresentation, net.xqhs.util.config.Configurable

public class TextMultilevelGraphRepresentation
extends MultilevelGraphRepresentation

Text representation for multilevel graphs. See MultilevelGraphRepresentation, that this class extends.

Author:
Andrei Olaru

Nested Class Summary
 
Nested classes/interfaces inherited from class net.xqhs.util.config.Config
net.xqhs.util.config.Config.ConfigLockedException
 
Field Summary
 
Fields inherited from class net.xqhs.graphs.representation.multilevel.MultilevelGraphRepresentation
levelNodes, theLevels
 
Fields inherited from class net.xqhs.graphs.representation.GraphRepresentationImplementation
parentRepresentation, theGraph, theRepresentation
 
Fields inherited from class net.xqhs.util.logging.Unit
DEFAULT_LEVEL, DEFAULT_UNIT_NAME
 
Constructor Summary
TextMultilevelGraphRepresentation(Graph graph, java.util.List<java.util.Map<Node,Node>> nodeLevels)
          Creates a new representation.
 
Method Summary
 java.lang.Object displayRepresentation()
          Depending on the nature of the representation, this method returns a way to visualize the representation.
 RepresentationElement getRepresentation()
          Gets the root element of the representation.
protected  void processGraph()
          Creates the MultilevelGraphRepresentation.theLevels member, based on MultilevelGraphRepresentation.levelNodes.
 
Methods inherited from class net.xqhs.graphs.representation.GraphRepresentationImplementation
getRootRepresentation, setDefaultName, setParentRepresentation, setUnitName, update
 
Methods inherited from class net.xqhs.util.logging.Unit
compose, dbg, doExit, getDefaultUnitName, getUnitName, l, le, lf, li, lock, lockedR, lr, lr, lw, setLink, setLink, setLogDisplay, setLogEnsureNew, setLoggerClass, setLoggerType, setLoggerTypeClass, setLogLevel, setLogReporter, setUnitName
 
Methods inherited from class net.xqhs.util.config.Config
build, ensureLocked, locked, lockedEx, makeDefaults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextMultilevelGraphRepresentation

public TextMultilevelGraphRepresentation(Graph graph,
                                         java.util.List<java.util.Map<Node,Node>> nodeLevels)
Creates a new representation.

Parameters:
graph - - the graph.
nodeLevels - - the membership function. See MultilevelGraphRepresentation.MultilevelGraphRepresentation(Graph, List).
Method Detail

processGraph

protected void processGraph()
Description copied from class: MultilevelGraphRepresentation
Creates the MultilevelGraphRepresentation.theLevels member, based on MultilevelGraphRepresentation.levelNodes.

Overrides:
processGraph in class MultilevelGraphRepresentation

displayRepresentation

public java.lang.Object displayRepresentation()
Description copied from interface: GraphRepresentation
Depending on the nature of the representation, this method returns a way to visualize the representation. For instance, for textual representations, the returned value is of type String.

Specified by:
displayRepresentation in interface GraphRepresentation
Specified by:
displayRepresentation in class GraphRepresentationImplementation
Returns:
the representation of the graph.

getRepresentation

public RepresentationElement getRepresentation()
Description copied from interface: GraphRepresentation
Gets the root element of the representation.

Specified by:
getRepresentation in interface GraphRepresentation
Specified by:
getRepresentation in class GraphRepresentationImplementation
Returns:
the root RepresentationElement instance.