Constructor and Description |
---|
Step(String id)
Initializes this object and sets its internal id, which represents its
position in list of steps.
|
Step(String id,
StepDesc stepDesc)
Initializes this object and sets its internal id, which represents its
position in list of steps.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the internal id, which represents position of the
Step in
list of steps. |
ModuleControllerImpl |
getModuleController()
The
ModuleControllerImpl object which belongs to this step and
acts as a bridge between Pepper and the Pepper module. |
MODULE_TYPE |
getModuleType()
Returns the type of the
PepperModule to be used. |
String |
getName()
If a
PepperModule is set, overrides the set name with the name of
the PepperModule . |
Step |
setCorpusDesc(CorpusDesc corpusDesc)
Sets an object to describe all infos about the corpus to im- or export.
|
void |
setPepperModule(PepperModule pepperModule)
Creates a
ModuleControllerImpl object as container for the passed
PepperModule object. |
Step |
setProps(Properties props)
If
setPepperModule(PepperModule) was already called, the passed
Properties object is used to create a
PepperModuleProperties object, which is set to given
PepperModule . |
getCorpusDesc, getProps, getVersion, setModuleType, setName, setVersion, toString, toXML
public Step(String id)
id
- unique id for a PepperJobImpl
public Step(String id, StepDesc stepDesc)
id
- unique id for a PepperJobImpl
stepDesc
- sets the abstract StepDesc
object to used herepublic String getName()
PepperModule
is set, overrides the set name with the name of
the PepperModule
.getName
in class StepDesc
PepperModule
public String getId()
Step
in
list of steps.public Step setCorpusDesc(CorpusDesc corpusDesc)
CorpusDesc
to the ModuleControllerImpl
, if already set.setCorpusDesc
in class StepDesc
public void setPepperModule(PepperModule pepperModule)
ModuleControllerImpl
object as container for the passed
PepperModule
object. The PepperModule
object is injected
to the ModuleControllerImpl
object. If
setProps(Properties)
was already called, Properties
will
be passed to PepperModule
to create a
PepperModuleProperties
object.pepperModule
- public ModuleControllerImpl getModuleController()
ModuleControllerImpl
object which belongs to this step and
acts as a bridge between Pepper and the Pepper module.PepperModule
public MODULE_TYPE getModuleType()
PepperModule
to be used. If no
MODULE_TYPE
is set, but the ModuleControllerImpl
is, the
type is estimated.getModuleType
in class StepDesc
public Step setProps(Properties props)
setPepperModule(PepperModule)
was already called, the passed
Properties
object is used to create a
PepperModuleProperties
object, which is set to given
PepperModule
.Copyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.