org.cytoscape.work
Interface TunableSetter
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 addition API for their Task(s) that
are specified with method parameters.
Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
createTaskIterator
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. The return value is
a new TaskIterator containing pre-configured tasks.
- Parameters:
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.
- Returns:
- A new TaskIterator that contains Task(s) with tunable values already set.
Copyright 2011 Cytoscape Consortium. All rights reserved.