it.unitn.disi.smatch.renderers.mapping
Class PlainXTopRenderer

java.lang.Object
  extended by it.unitn.disi.smatch.renderers.mapping.PlainXTopRenderer
All Implemented Interfaces:
IMappingRenderer

public class PlainXTopRenderer
extends java.lang.Object
implements IMappingRenderer

Writes only mapping part, that is cNod matrix, eXcluding Top node mappings.

Author:
Aliaksandr Autayeu avtaev@gmail.com

Constructor Summary
PlainXTopRenderer()
           
 
Method Summary
protected  void printMatricesToFile(java.lang.String fileName, IMatchMatrix ClabMatrix, IMatchMatrix CnodMatrix, java.util.Vector<IAtomicConceptOfLabel> sourceACoLs, java.util.Vector<IAtomicConceptOfLabel> targetACoLs, java.util.Vector<INode> sourceNodes, java.util.Vector<INode> targetNodes)
          Prints cLab and cNode Matrices into file
 IMapping render(java.util.Vector args)
          0th element of the Vector is filename to save mappings 1st element is char[][] CnodMatrix 2nd element is char[][] CLabMatrix 3rd element is Context sourceContext 4th element is Context targetContext Other can be used for further parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainXTopRenderer

public PlainXTopRenderer()
Method Detail

render

public IMapping render(java.util.Vector args)
Description copied from interface: IMappingRenderer
0th element of the Vector is filename to save mappings 1st element is char[][] CnodMatrix 2nd element is char[][] CLabMatrix 3rd element is Context sourceContext 4th element is Context targetContext Other can be used for further parameters

Specified by:
render in interface IMappingRenderer

printMatricesToFile

protected void printMatricesToFile(java.lang.String fileName,
                                   IMatchMatrix ClabMatrix,
                                   IMatchMatrix CnodMatrix,
                                   java.util.Vector<IAtomicConceptOfLabel> sourceACoLs,
                                   java.util.Vector<IAtomicConceptOfLabel> targetACoLs,
                                   java.util.Vector<INode> sourceNodes,
                                   java.util.Vector<INode> targetNodes)
Prints cLab and cNode Matrices into file

Parameters:
fileName - File name
ClabMatrix - cLabMatrix
CnodMatrix - cNodeMatrix


© 2010 Knowdive @ DISI