public abstract class AbstractAdapterConfiguration extends Object implements AdapterConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected ExperimentType |
applicableForExperiment |
protected boolean |
couldBeCached |
protected String |
name |
| Constructor and Description |
|---|
AbstractAdapterConfiguration(String name,
boolean couldBeCached,
ExperimentType applicableForExperiment) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AdapterConfiguration o) |
boolean |
couldBeCached()
Returns true if the system is allowed to cache the results of experiments
in which this adapter has been involved.
|
ExperimentType |
getExperimentType() |
String |
getName()
Getter of the adapters name.
|
boolean |
isApplicableForExperiment(ExperimentType type)
Returns true if this adapter can be used for an experiment of the given
type.
|
void |
setCouldBeCached(boolean couldBeCached)
Setter for the caching flag which should be set to true if the system is
allowed to cache the results of experiments in which this adapter has
been involved.
|
void |
setName(String name)
Setter of the adapters name.
|
protected String name
protected boolean couldBeCached
protected ExperimentType applicableForExperiment
public AbstractAdapterConfiguration(String name, boolean couldBeCached, ExperimentType applicableForExperiment)
public String getName()
AdapterConfigurationgetName in interface AdapterConfigurationpublic void setName(String name)
AdapterConfigurationsetName in interface AdapterConfigurationname - The name of the adapter.public boolean couldBeCached()
AdapterConfigurationcouldBeCached in interface AdapterConfigurationpublic void setCouldBeCached(boolean couldBeCached)
AdapterConfigurationsetCouldBeCached in interface AdapterConfigurationpublic boolean isApplicableForExperiment(ExperimentType type)
AdapterConfigurationisApplicableForExperiment in interface AdapterConfigurationtype - the experiment type that should be checkedpublic ExperimentType getExperimentType()
getExperimentType in interface AdapterConfigurationpublic int compareTo(AdapterConfiguration o)
compareTo in interface Comparable<AdapterConfiguration>Copyright © 2014–2017. All rights reserved.