public abstract class AbstractLiveModule extends AbstractModule implements InterruptibleModule
| Constructor and Description |
|---|
AbstractLiveModule() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkTransitionLiveness(ModuleOutput output,
PetriNet pn,
Transition transition) |
protected abstract void |
findNonLiveTransition(ModuleOutput output,
PetriNet pn) |
Category[] |
getCategories()
Returns the categories the module belongs to.
|
void |
require(ModuleInputSpec inputSpec)
Specify the parameters of the module.
|
void |
run(ModuleInput input,
ModuleOutput output)
Perform some computation on the values stored in the
ModuleInput
object and store the results in the ModuleOutput object. |
getLongDescription, getShortDescription, getTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongDescription, getName, getShortDescription, getTitle, providepublic final void require(ModuleInputSpec inputSpec)
ModuleModuleInputSpec.addParameter(String, Class, String, String...) method can
be used. The order of specified parameters matters.protected abstract void findNonLiveTransition(ModuleOutput output, PetriNet pn) throws ModuleException
ModuleExceptionprotected abstract void checkTransitionLiveness(ModuleOutput output, PetriNet pn, Transition transition) throws ModuleException
ModuleExceptionpublic final void run(ModuleInput input, ModuleOutput output) throws ModuleException
ModuleModuleInput
object and store the results in the ModuleOutput object.
To retrieve values from ModuleInput object the
ModuleInput.getParameter(String, Class) method can be used.
To store values in the ModuleOutput object the
ModuleOutput.setReturnValue(String, Class, Object) method can be
used.
The possible values in both the ModuleInput and
ModuleOutput object are determined entirely by the specifications
in the Module.require(ModuleInputSpec) and
Module.provide(ModuleOutputSpec) method respectively.run in interface Moduleinput - storage of the inputsoutput - storage of the outputsModuleException - On various kinds of errors that prevent the module from working.public final Category[] getCategories()
ModulegetCategories in interface Module