Class ConfigurableGraphElementFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement>
- 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<T>
-
- Type Parameters:
T- the type of Petri net elements to be configured
- All Implemented Interfaces:
ConfigurableFeature<T,ConfigurableGraphElementOption>,ParameterizedFeature<ConfigurableParameter<ConfigurableGraphElementOption>>
- Direct Known Subclasses:
ConfigurableArc,ConfigurablePlace,ConfigurableTransition
public abstract class ConfigurableGraphElementFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement> extends ConfigurableParameterGraphElement implements ConfigurableFeature<T,ConfigurableGraphElementOption>
Abstract class to configure elements of a Petri net to be kept, removed, or made invisible. UsesConfigurableGraphElementOptionto configure graph elements.- Author:
- dfahland
-
-
Field Summary
Fields Modifier and Type Field Description static ConfigurableGraphElementOption[]ALL
-
Constructor Summary
Constructors Constructor Description ConfigurableGraphElementFeature(java.lang.String id, T element, ConfigurableGraphElementOption[] values, ConfigurableGraphElementOption defaultValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearElementVisualization()Clear visual representation ofConfigurableFeature.getConfiguredElement()back to normalstatic java.lang.StringgenerateID(org.processmining.models.graphbased.directed.DirectedGraphElement el)TgetConfiguredElement()Graph element being configuredjava.lang.StringgetId()java.util.List<ConfigurableParameter<ConfigurableGraphElementOption>>getInputParameters()java.util.List<ConfigurableParameter<ConfigurableGraphElementOption>>getInputParametersByName()static booleanisValidValue(ConfigurableGraphElementOption o, ConfigurableGraphElementOption[] allowed)static booleansameOptions(ConfigurableGraphElementOption[] o1, ConfigurableGraphElementOption[] o2)voidsetInputParameter(java.lang.String key, java.lang.Object value)Set value of an input parameter.voidupdateElementVisualization()Change visual representation ofConfigurableFeature.getConfiguredElement()voidupdateValue()Update the value of this configurable feature.-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.processmining.models.graphbased.directed.petrinet.configurable.ConfigurableFeature
cloneFor, executeConfiguration, isStillExecutable
-
-
-
-
Field Detail
-
ALL
public static final ConfigurableGraphElementOption[] ALL
-
-
Constructor Detail
-
ConfigurableGraphElementFeature
public ConfigurableGraphElementFeature(java.lang.String id, T element, ConfigurableGraphElementOption[] values, ConfigurableGraphElementOption defaultValue) throws InvalidConfigurationException- Throws:
InvalidConfigurationException
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>- Overrides:
getIdin classConfigurableParameter<ConfigurableGraphElementOption>- Returns:
- id of the configurable feature
-
getConfiguredElement
public T getConfiguredElement()
Description copied from interface:ConfigurableFeatureGraph element being configured- Specified by:
getConfiguredElementin interfaceConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>- Returns:
-
getInputParameters
public java.util.List<ConfigurableParameter<ConfigurableGraphElementOption>> getInputParameters()
- Specified by:
getInputParametersin interfaceConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>- Specified by:
getInputParametersin interfaceParameterizedFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement>- Returns:
- list of input parameters of this feature
-
getInputParametersByName
public java.util.List<ConfigurableParameter<ConfigurableGraphElementOption>> getInputParametersByName()
- Specified by:
getInputParametersByNamein interfaceParameterizedFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement>- Returns:
- input parameters that differ by their
ConfigurableParameter.getId(), i.e., from two input parameters with same id, only one will be included
-
updateValue
public void updateValue()
Description copied from interface:ConfigurableFeatureUpdate the value of this configurable feature. Has to be invoked whenever the value of this feature depends on several input parameters- Specified by:
updateValuein interfaceConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
-
setInputParameter
public void setInputParameter(java.lang.String key, java.lang.Object value) throws InvalidConfigurationExceptionDescription copied from interface:ParameterizedFeatureSet value of an input parameter.- Specified by:
setInputParameterin interfaceParameterizedFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement>- Throws:
InvalidConfigurationException
-
sameOptions
public static boolean sameOptions(ConfigurableGraphElementOption[] o1, ConfigurableGraphElementOption[] o2)
- Parameters:
o1-o2-- Returns:
- true iff o1 and o2 contain the same elements (in possibly different ordering)
-
isValidValue
public static boolean isValidValue(ConfigurableGraphElementOption o, ConfigurableGraphElementOption[] allowed)
- Parameters:
o-allowed-- Returns:
- true iff o is in allowed
-
updateElementVisualization
public void updateElementVisualization()
Description copied from interface:ConfigurableFeatureChange visual representation ofConfigurableFeature.getConfiguredElement()- Specified by:
updateElementVisualizationin interfaceConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
-
clearElementVisualization
public void clearElementVisualization()
Description copied from interface:ConfigurableFeatureClear visual representation ofConfigurableFeature.getConfiguredElement()back to normal- Specified by:
clearElementVisualizationin interfaceConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
-
generateID
public static java.lang.String generateID(org.processmining.models.graphbased.directed.DirectedGraphElement el)
-
-