Class XyDiffConnector
- java.lang.Object
-
- de.unirostock.sems.bives.algorithm.Connector
-
- de.unirostock.sems.bives.algorithm.general.XyDiffConnector
-
public class XyDiffConnector extends Connector
The Class XyDiffConnector to map nodes as described in Cobena2002.- Author:
- Martin Scharm
-
-
Field Summary
Fields Modifier and Type Field Description static double
MAX_ATTR_DIST
-
Fields inherited from class de.unirostock.sems.bives.algorithm.Connector
allowDifferentIds, careAboutNames, conMgmt, docA, docB, stricterNames
-
-
Constructor Summary
Constructors Constructor Description XyDiffConnector(Connector preprocessor)
Instantiates a new XyDiffConnector.XyDiffConnector(Connector preprocessor, boolean allowDifferentIds, boolean careAboutNames, boolean stricterNames)
Instantiates a new XyDiffConnector.XyDiffConnector(de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Instantiates a new XyDiffConnector.XyDiffConnector(de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB, boolean allowDifferentIds, boolean careAboutNames, boolean stricterNames)
Instantiates a new XyDiffConnector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
connect()
Inherit to search for connections.protected void
init()
Initializes the extension.-
Methods inherited from class de.unirostock.sems.bives.algorithm.Connector
findConnections, getConnections, getDocA, getDocB, nodeAssign
-
-
-
-
Constructor Detail
-
XyDiffConnector
public XyDiffConnector(de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB, boolean allowDifferentIds, boolean careAboutNames, boolean stricterNames)
Instantiates a new XyDiffConnector. In this setting we'll run an ID mapper before we do our work.- Parameters:
docA
- the original documentdocB
- the modified documentallowDifferentIds
- may mapped entities have different ids? seeDiff.ALLOW_DIFFERENT_IDS
careAboutNames
- should we care about names? seeDiff.CARE_ABOUT_NAMES
stricterNames
- should we handle the names very strictly? seeDiff.STRICTER_NAMES
-
XyDiffConnector
public XyDiffConnector(de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Instantiates a new XyDiffConnector. In this setting we'll run an ID mapper before we do our work. Uses default values for the mapping, seeDiff.ALLOW_DIFFERENT_IDS
,Diff.CARE_ABOUT_NAMES
, andDiff.STRICTER_NAMES
.- Parameters:
docA
- the original documentdocB
- the modified document
-
XyDiffConnector
public XyDiffConnector(Connector preprocessor, boolean allowDifferentIds, boolean careAboutNames, boolean stricterNames)
Instantiates a new XyDiffConnector. Here we'll use `preprocessor` to find some connections before we start.- Parameters:
preprocessor
- the connector to initiate the connectionsallowDifferentIds
- may mapped entities have different ids? seeDiff.ALLOW_DIFFERENT_IDS
careAboutNames
- should we care about names? seeDiff.CARE_ABOUT_NAMES
stricterNames
- should we handle the names very strictly? seeDiff.STRICTER_NAMES
-
XyDiffConnector
public XyDiffConnector(Connector preprocessor)
Instantiates a new XyDiffConnector. Here we'll use `preprocessor` to find some connections before we start. Uses default values for the mapping, seeDiff.ALLOW_DIFFERENT_IDS
,Diff.CARE_ABOUT_NAMES
, andDiff.STRICTER_NAMES
.- Parameters:
preprocessor
- the connector to initiate the connections
-
-
Method Detail
-
init
protected void init() throws BivesConnectionException
Description copied from class:Connector
Initializes the extension.- Specified by:
init
in classConnector
- Throws:
BivesConnectionException
- the bives connection exception
-
connect
protected void connect() throws BivesConnectionException
Description copied from class:Connector
Inherit to search for connections.- Specified by:
connect
in classConnector
- Throws:
BivesConnectionException
- the bives connection exception
-
-