pl.edu.agh.cast.importer.base.general
Class DirectedGraphConversionRule

java.lang.Object
  extended by pl.edu.agh.cast.importer.base.converter.rules.AbstractDirectedGraphConversionRule
      extended by pl.edu.agh.cast.importer.base.general.DirectedGraphConversionRule
All Implemented Interfaces:
IConversionRule, ISourceNodeConversionRule, ITargetNodeConversionRule

public class DirectedGraphConversionRule
extends AbstractDirectedGraphConversionRule
implements ISourceNodeConversionRule, ITargetNodeConversionRule

Source and target nodes' conversion for two String columns and one Direction column.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from class pl.edu.agh.cast.importer.base.converter.rules.AbstractDirectedGraphConversionRule
COLUMN_INDEX_UNDEFINED, columnAIndex, columnBIndex, directionColumnIndex
 
Constructor Summary
DirectedGraphConversionRule()
           
 
Method Summary
 IConversionRule createCopy()
          Creates a copy of the current conversion rule.
 String getSourceNode(DataRow row)
          Returns source node.
 String getTargetNode(DataRow row)
          Returns target node.
 
Methods inherited from class pl.edu.agh.cast.importer.base.converter.rules.AbstractDirectedGraphConversionRule
checkRowNullEmpty, clear, clearDirectionColumnIndex, clearNodeAColumnIndex, clearNodeBColumnIndex, copyFields, getColumnAIndex, getColumnBIndex, getDirectionColumnIndex, getDirectionValue, getFormat, getStringColumnValue, isComplete, setColumnAIndex, setColumnBIndex, setDirectionColumnIndex, setFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pl.edu.agh.cast.importer.base.converter.rules.IConversionRule
clear, getFormat, isComplete, setFormat
 

Constructor Detail

DirectedGraphConversionRule

public DirectedGraphConversionRule()
Method Detail

getSourceNode

public String getSourceNode(DataRow row)
                     throws ConversionRuleException,
                            IllegalArgumentException
Returns source node.

Specified by:
getSourceNode in interface ISourceNodeConversionRule
Overrides:
getSourceNode in class AbstractDirectedGraphConversionRule
Parameters:
row - input row
Returns:
source node
Throws:
ConversionRuleException
IllegalArgumentException
See Also:
getSourceNode(pl.edu.agh.cast.importer.base.data.DataRow)

getTargetNode

public String getTargetNode(DataRow row)
                     throws ConversionRuleException,
                            IllegalArgumentException
Returns target node.

Specified by:
getTargetNode in interface ITargetNodeConversionRule
Overrides:
getTargetNode in class AbstractDirectedGraphConversionRule
Parameters:
row - input row
Returns:
target node
Throws:
ConversionRuleException
IllegalArgumentException
See Also:
getTargetNode(pl.edu.agh.cast.importer.base.data.DataRow)

createCopy

public IConversionRule createCopy()
Creates a copy of the current conversion rule.

Specified by:
createCopy in interface IConversionRule
Returns:
conversion rule of the same type and parameters set
See Also:
IConversionRule.createCopy()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.