public abstract class PepperJob extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
id
Identifier of this job.
|
protected JOB_STATUS |
status
status of job
|
protected Vector<StepDesc> |
stepDescs
list of all step descriptions
|
| Constructor and Description |
|---|
PepperJob() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStepDesc(StepDesc stepDesc)
Adds a
StepDesc object to job. |
abstract void |
clear()
Removes all
Steps from all internal lists. |
abstract void |
convert()
Starts the conversion of this job.
|
abstract void |
convertFrom()
Imports a
SaltProject from any format. |
abstract void |
convertTo()
Exports the
SaltProject into any format. |
StepDesc |
createStepDesc()
|
org.eclipse.emf.common.util.URI |
getBaseDir()
Returns the base directory for this
ModuleController. |
String |
getId()
Returns the unique identifier for this job.
|
abstract org.corpus_tools.salt.common.SaltProject |
getSaltProject()
Returns the
SaltProject which is converted by this job. |
JOB_STATUS |
getStatus()
Returns the current status of this job.
|
abstract String |
getStatusReport()
Returns a formated string as a kind of a document centric progress
status.
|
List<StepDesc> |
getStepDescs()
Returns a list of all step descriptions.
|
abstract void |
load(org.eclipse.emf.common.util.URI uri)
Loads a serialization of a
PepperJob and fills this object with
these entries. |
abstract org.eclipse.emf.common.util.URI |
save(org.eclipse.emf.common.util.URI uri)
Stores this job to the file at passed URI.
|
void |
setBaseDir(org.eclipse.emf.common.util.URI baseDir)
Sets the base directory for this
ModuleController. |
String |
toString()
Returns a textual representation of this Pepper job.
|
protected String id
protected JOB_STATUS status
public String getId()
public void setBaseDir(org.eclipse.emf.common.util.URI baseDir)
ModuleController. The base
directory is either the directory from which the Pepper workflow
description was loaded or the directory from which Pepper was started.baseDir - base directorypublic org.eclipse.emf.common.util.URI getBaseDir()
ModuleController. The base
directory is either the directory from which the Pepper workflow
description was loaded or the directory from which Pepper was started.public JOB_STATUS getStatus()
public abstract org.corpus_tools.salt.common.SaltProject getSaltProject()
SaltProject which is converted by this job.SaltProjectpublic abstract String getStatusReport()
public List<StepDesc> getStepDescs()
StepDesc objects have been added via method
#addStep(StepDesc).StepDesc objectspublic void addStepDesc(StepDesc stepDesc)
StepDesc object to job.stepDesc - description object of a particular steppublic StepDesc createStepDesc()
StepDesc object an returns it, without adding the
created StepDesc object to this PepperJob object. For
adding that object, call addStepDesc(StepDesc). Or if you want
to do that at once call {@link #createStepDesc(MODULE_TYPE)StepDesc objectpublic abstract void convert()
PepperImporter.importCorpusStructure(org.corpus_tools.salt.common.SCorpusGraph)
has not already been called, it will be done.
public abstract void convertFrom()
SaltProject from any format. For conversion a process
can be modeled, similar to convert() with the difference, that
no PepperExporter could be defined. The imported Salt model can
be accessed via getSaltProject().public abstract void convertTo()
SaltProject into any format. For conversion, a normal
process could be created, except the use of an importer. Here the
do-nothing importer is used, and it is expected, that the
getSaltProject() is already 'filled'.public abstract void load(org.eclipse.emf.common.util.URI uri)
PepperJob and fills this object with
these entries. The current implementation allows xml files following the
workflow description scheme version 1.0 and xmi files following the (old)
PepperParams schema. Only local files are supported. uri - path of file to load.public abstract org.eclipse.emf.common.util.URI save(org.eclipse.emf.common.util.URI uri)
getId().pepper is created in
the passed directory.uri - The location where to store this job.getId()).public abstract void clear()
Steps from all internal lists.Copyright © 2009–2018 Humboldt-Universität zu Berlin, INRIA. All rights reserved.