Class Producer
- java.lang.Object
-
- de.unirostock.sems.bives.algorithm.Producer
-
- Direct Known Subclasses:
PatchProducer
public abstract class Producer extends Object
The Class Producer produces different kind of output. General workflow:Producer p = new WhatEverProducer (); p.init (connections, docA, docB); String output = p.produce ();
- Author:
- Martin Scharm
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleConnectionManager
conMgmt
The connection manager.protected de.unirostock.sems.xmlutils.ds.TreeDocument
docA
The original version.protected de.unirostock.sems.xmlutils.ds.TreeDocument
docB
The modified version.
-
Constructor Summary
Constructors Constructor Description Producer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
init(SimpleConnectionManager conMgmt, de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Initializes the producer.abstract String
produce()
Produce the output.
-
-
-
Field Detail
-
conMgmt
protected SimpleConnectionManager conMgmt
The connection manager.
-
docA
protected de.unirostock.sems.xmlutils.ds.TreeDocument docA
The original version.
-
docB
protected de.unirostock.sems.xmlutils.ds.TreeDocument docB
The modified version.
-
-
Method Detail
-
init
public void init(SimpleConnectionManager conMgmt, de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Initializes the producer.- Parameters:
conMgmt
- the connection managerdocA
- the original documentdocB
- the modified document
-
produce
public abstract String produce()
Produce the output.- Returns:
- the ourput
-
-