Class ConfigurableArc
- java.lang.Object
-
- org.processmining.models.graphbased.directed.petrinet.configurable.ConfigurableParameter<ConfigurableGraphElementOption>
-
- org.processmining.models.graphbased.directed.petrinet.configurable.impl.ConfigurableParameterGraphElement
-
- org.processmining.models.graphbased.directed.petrinet.configurable.impl.ConfigurableGraphElementFeature<PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode>>
-
- org.processmining.models.graphbased.directed.petrinet.configurable.elements.ConfigurableArc
-
- All Implemented Interfaces:
ConfigurableFeature<PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode>,ConfigurableGraphElementOption>,ParameterizedFeature<ConfigurableParameter<ConfigurableGraphElementOption>>
public class ConfigurableArc extends ConfigurableGraphElementFeature<PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode>>
Configures aPetrinetEdgeto be present or absent in aPetrinet.- Author:
- dfahland
-
-
Field Summary
-
Fields inherited from class org.processmining.models.graphbased.directed.petrinet.configurable.impl.ConfigurableGraphElementFeature
ALL
-
-
Constructor Summary
Constructors Constructor Description ConfigurableArc(java.lang.String id, PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode> element, ConfigurableGraphElementOption[] values, ConfigurableGraphElementOption defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurableFeature<PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode>,ConfigurableGraphElementOption>cloneFor(PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode> newElement)Create a clone of this feature using newElement asConfigurableFeature.getConfiguredElement().voidexecuteConfiguration(ConfigurablePetrinet<? extends PetrinetGraph> parent)Configures the arc of this configurable feature.booleanisStillExecutable(ConfigurablePetrinet<? extends PetrinetGraph> parent)-
Methods inherited from class org.processmining.models.graphbased.directed.petrinet.configurable.impl.ConfigurableGraphElementFeature
clearElementVisualization, generateID, getConfiguredElement, getId, getInputParameters, getInputParametersByName, isValidValue, sameOptions, setInputParameter, updateElementVisualization, updateValue
-
Methods inherited from class org.processmining.models.graphbased.directed.petrinet.configurable.impl.ConfigurableParameterGraphElement
isValidIntervalValue
-
Methods inherited from class org.processmining.models.graphbased.directed.petrinet.configurable.ConfigurableParameter
getDiscreteDomain, getIntervalMax, getIntervalMin, getValue, isIntervalDomain, isValidValue, setDiscreteDomain, setId, setIntervalDomain, setValue, updateParameter
-
-
-
-
Constructor Detail
-
ConfigurableArc
public ConfigurableArc(java.lang.String id, PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode> element, ConfigurableGraphElementOption[] values, ConfigurableGraphElementOption defaultValue) throws InvalidConfigurationException- Throws:
InvalidConfigurationException
-
-
Method Detail
-
isStillExecutable
public boolean isStillExecutable(ConfigurablePetrinet<? extends PetrinetGraph> parent)
- Returns:
- true iff this configuration can be executed on the parent, e.g.
if
ConfigurableFeature.getConfiguredElement()is still an element of parent
-
executeConfiguration
public void executeConfiguration(ConfigurablePetrinet<? extends PetrinetGraph> parent)
Configures the arc of this configurable feature. IfConfigurableGraphElementOption.BLOCK, the arcs is removed, otherwise the arc remains unchanged.
-
cloneFor
public ConfigurableFeature<PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode>,ConfigurableGraphElementOption> cloneFor(PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode> newElement) throws InvalidConfigurationException
Description copied from interface:ConfigurableFeatureCreate a clone of this feature using newElement asConfigurableFeature.getConfiguredElement().- Throws:
InvalidConfigurationException
-
-