T
- the type of Petri net elements to be configuredpublic abstract class ConfigurableGraphElementFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement> extends ConfigurableParameterGraphElement implements ConfigurableFeature<T,ConfigurableGraphElementOption>
ConfigurableGraphElementOption
to configure
graph elements.Modifier and Type | Field and Description |
---|---|
static ConfigurableGraphElementOption[] |
ALL |
Constructor and Description |
---|
ConfigurableGraphElementFeature(java.lang.String id,
T element,
ConfigurableGraphElementOption[] values,
ConfigurableGraphElementOption defaultValue) |
Modifier and Type | Method and Description |
---|---|
void |
clearElementVisualization()
Clear visual representation of
ConfigurableFeature.getConfiguredElement() back to normal |
static java.lang.String |
generateID(org.processmining.models.graphbased.directed.DirectedGraphElement el) |
T |
getConfiguredElement()
Graph element being configured
|
java.lang.String |
getId() |
java.util.List<ConfigurableParameter<ConfigurableGraphElementOption>> |
getInputParameters() |
java.util.List<ConfigurableParameter<ConfigurableGraphElementOption>> |
getInputParametersByName() |
static boolean |
isValidValue(ConfigurableGraphElementOption o,
ConfigurableGraphElementOption[] allowed) |
static boolean |
sameOptions(ConfigurableGraphElementOption[] o1,
ConfigurableGraphElementOption[] o2) |
void |
setInputParameter(java.lang.String key,
java.lang.Object value)
Set value of an input parameter.
|
void |
updateElementVisualization()
Change visual representation of
ConfigurableFeature.getConfiguredElement() |
void |
updateValue()
Update the value of this configurable feature.
|
isValidIntervalValue
getDiscreteDomain, getIntervalMax, getIntervalMin, getValue, isIntervalDomain, isValidValue, setDiscreteDomain, setId, setIntervalDomain, setValue, updateParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneFor, executeConfiguration, isStillExecutable
public static final ConfigurableGraphElementOption[] ALL
public ConfigurableGraphElementFeature(java.lang.String id, T element, ConfigurableGraphElementOption[] values, ConfigurableGraphElementOption defaultValue) throws InvalidConfigurationException
InvalidConfigurationException
public java.lang.String getId()
getId
in interface ConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
getId
in class ConfigurableParameter<ConfigurableGraphElementOption>
public T getConfiguredElement()
ConfigurableFeature
getConfiguredElement
in interface ConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
public java.util.List<ConfigurableParameter<ConfigurableGraphElementOption>> getInputParameters()
getInputParameters
in interface ConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
getInputParameters
in interface ParameterizedFeature<ConfigurableParameter<ConfigurableGraphElementOption>>
public java.util.List<ConfigurableParameter<ConfigurableGraphElementOption>> getInputParametersByName()
getInputParametersByName
in interface ParameterizedFeature<ConfigurableParameter<ConfigurableGraphElementOption>>
ConfigurableParameter.getId()
, i.e., from two input
parameters with same id, only one will be includedpublic void updateValue()
ConfigurableFeature
updateValue
in interface ConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
public void setInputParameter(java.lang.String key, java.lang.Object value) throws InvalidConfigurationException
ParameterizedFeature
setInputParameter
in interface ParameterizedFeature<ConfigurableParameter<ConfigurableGraphElementOption>>
InvalidConfigurationException
public static boolean sameOptions(ConfigurableGraphElementOption[] o1, ConfigurableGraphElementOption[] o2)
o1
- o2
- public static boolean isValidValue(ConfigurableGraphElementOption o, ConfigurableGraphElementOption[] allowed)
o
- allowed
- public void updateElementVisualization()
ConfigurableFeature
ConfigurableFeature.getConfiguredElement()
updateElementVisualization
in interface ConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
public void clearElementVisualization()
ConfigurableFeature
ConfigurableFeature.getConfiguredElement()
back to normalclearElementVisualization
in interface ConfigurableFeature<T extends org.processmining.models.graphbased.directed.DirectedGraphElement,ConfigurableGraphElementOption>
public static java.lang.String generateID(org.processmining.models.graphbased.directed.DirectedGraphElement el)