Class VolatileNodeDependencyProvider
- java.lang.Object
-
- de.aristaflow.adept2.core.changeoperations.NodeDependencyProvider
-
- de.aristaflow.adept2.core.changeoperations.VolatileNodeDependencyProvider
-
- All Implemented Interfaces:
DependencyProvider
public class VolatileNodeDependencyProvider extends NodeDependencyProvider
A dependency provider in the context of a template and a volatile node, i.e. a node that doesn't exist in the template yet. E.g. when an activity is drag & dropped onto a control edge, which will implicitly create a new node.- Author:
- Patrick Schmidt
-
-
Field Summary
-
Fields inherited from class de.aristaflow.adept2.core.changeoperations.NodeDependencyProvider
injectedDependencies, node, template
-
-
Constructor Summary
Constructors Constructor Description VolatileNodeDependencyProvider(Template template, int succNodeID)
Constructs a newVolatileNodeDependencyProvider
for the specified template and the/a node that will follow the node to be created.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dependency
getDependencyOf(String parameterName)
Returns dependency-related information about the parameter with the specified name ornull
if the parameter has currently no dependency bound to it or the parameter does not exist.ParameterRef[]
getParameters()
Returns all already existing parameters.-
Methods inherited from class de.aristaflow.adept2.core.changeoperations.NodeDependencyProvider
getCompleteDataTypeOf, getDependencyTypeArguments, getDependencyTypeArguments, getDependencyTypes, getLabelForArgument, getLabelForType, getLabelForTypeAndArgument, getParameterBindings, getPreferredParameter, injectDependency, parameterExists, removeInjectedDependency
-
-
-
-
Constructor Detail
-
VolatileNodeDependencyProvider
public VolatileNodeDependencyProvider(Template template, int succNodeID)
Constructs a newVolatileNodeDependencyProvider
for the specified template and the/a node that will follow the node to be created.- Parameters:
template
- the templatesuccNodeID
- node that will follow the node to be created
-
-
Method Detail
-
getParameters
public ParameterRef[] getParameters()
Description copied from interface:DependencyProvider
Returns all already existing parameters. UseDependencyProvider.getDependencyOf(String)
to retrieve dependency information about each parameter.- Specified by:
getParameters
in interfaceDependencyProvider
- Overrides:
getParameters
in classNodeDependencyProvider
- Returns:
- all already existing parameters
-
getDependencyOf
public Dependency getDependencyOf(String parameterName)
Description copied from interface:DependencyProvider
Returns dependency-related information about the parameter with the specified name ornull
if the parameter has currently no dependency bound to it or the parameter does not exist.- Specified by:
getDependencyOf
in interfaceDependencyProvider
- Overrides:
getDependencyOf
in classNodeDependencyProvider
- Parameters:
parameterName
- the name of the parameter for which to return dependency-related information- Returns:
- dependency-related information for the specified parameter
-
-