Interface ConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,F>
-
- Type Parameters:
T-F-
- All Superinterfaces:
ParameterizedFeature<ConfigurableParameter<F>>
- All Known Implementing Classes:
ConfigurableArc,ConfigurableArcWeight,ConfigurableGraphElementFeature,ConfigurableIntegerFeature,ConfigurablePlace,ConfigurablePlaceMarking,ConfigurableTransition,ParameterizedArc,ParameterizedIntegerFeature,ParameterizedPlaceMarking
public interface ConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,F> extends ParameterizedFeature<ConfigurableParameter<F>>
A configurable feature of a graph element has input parameters and can be executed based on the input parameters. You can useConfigurableParameters to link input parameters to the execution of the feature.- Author:
- dfahland
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearElementVisualization()Clear visual representation ofgetConfiguredElement()back to normalConfigurableFeature<T,F>cloneFor(T newElement)Create a clone of this feature using newElement asgetConfiguredElement().voidexecuteConfiguration(ConfigurablePetrinet<? extends PetrinetGraph> parent)Executes the configuration ongetConfiguredElement().TgetConfiguredElement()Graph element being configuredjava.lang.StringgetId()java.util.List<ConfigurableParameter<F>>getInputParameters()booleanisStillExecutable(ConfigurablePetrinet<? extends PetrinetGraph> parent)voidupdateElementVisualization()Change visual representation ofgetConfiguredElement()voidupdateValue()Update the value of this configurable feature.-
Methods inherited from interface org.processmining.models.graphbased.directed.petrinet.configurable.ParameterizedFeature
getInputParametersByName, setInputParameter
-
-
-
-
Method Detail
-
getId
java.lang.String getId()
- Returns:
- id of the configurable feature
-
getConfiguredElement
T getConfiguredElement()
Graph element being configured- Returns:
-
isStillExecutable
boolean isStillExecutable(ConfigurablePetrinet<? extends PetrinetGraph> parent)
- Parameters:
parent-- Returns:
- true iff this configuration can be executed on the parent, e.g.
if
getConfiguredElement()is still an element of parent
-
executeConfiguration
void executeConfiguration(ConfigurablePetrinet<? extends PetrinetGraph> parent)
Executes the configuration ongetConfiguredElement(). The configuration itself may not be completely executable on {@link #getConfiguredElement(), but may require to change the parent object of #getConfiguredElement() as well.
-
cloneFor
ConfigurableFeature<T,F> cloneFor(T newElement) throws InvalidConfigurationException
Create a clone of this feature using newElement asgetConfiguredElement().- Parameters:
newElement-- Throws:
InvalidConfigurationException
-
getInputParameters
java.util.List<ConfigurableParameter<F>> getInputParameters()
- Specified by:
getInputParametersin interfaceParameterizedFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement>- Returns:
- list of input parameters of this feature
-
updateValue
void updateValue()
Update the value of this configurable feature. Has to be invoked whenever the value of this feature depends on several input parameters
-
updateElementVisualization
void updateElementVisualization()
Change visual representation ofgetConfiguredElement()
-
clearElementVisualization
void clearElementVisualization()
Clear visual representation ofgetConfiguredElement()back to normal
-
-