|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TunableSetter
An API for setting tunable fields and methods with predetermined
values in the Tasks found in the specified TaskIterator. This
interface is provided as a convenience to TaskFactory authors
who also want to provide an additional API to their TaskFactories that
allow Tasks to be configured with method parameters.
TunableSetters are provided as OSGi services.
Module: work-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
Method Summary | |
---|---|
void |
applyTunables(Object object,
Map<String,Object> tunableValues)
Applies each value from the key-value pairs in tunableValues to the tunable in the given object whose name matches the corresponding key. |
TaskIterator |
createTaskIterator(TaskIterator taskIterator,
Map<String,Object> tunableValues)
This method takes as input a TaskIterator and a map of tunable names to tunable values and applies those values to any tunables found in the Tasks found in the TaskIterator. |
TaskIterator |
createTaskIterator(TaskIterator taskIterator,
Map<String,Object> tunableValues,
TaskObserver observer)
This version of createTaskIterator adds a TaskObserver argument. |
Method Detail |
---|
TaskIterator createTaskIterator(TaskIterator taskIterator, Map<String,Object> tunableValues)
taskIterator
- The incoming TaskIterator which contains the tasks whose tunables will be set.tunableValues
- A map of names to tunable values. The names must match the field or method
name of the tunable in question.
TaskIterator createTaskIterator(TaskIterator taskIterator, Map<String,Object> tunableValues, TaskObserver observer)
taskIterator
- The incoming TaskIterator which contains the tasks whose tunables will be set.tunableValues
- A map of names to tunable values. The names must match the field or method
name of the tunable in question.observer
- The TaskObserver that will handle any ObservableTask results
void applyTunables(Object object, Map<String,Object> tunableValues)
object
- The object whose tunables will be set.tunableValues
- A map of names to tunable values. The names must match the field or method
name of the tunable in question.
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |