gov.sandia.cognition.learning.parameter
Interface ParameterAdaptable<ObjectType,DataType>

Type Parameters:
ObjectType - The type of object whose parameters can be adapted.
DataType - The type of data that the object gets to adapt parameters.
All Known Implementing Classes:
ParameterAdaptableBatchLearnerWrapper

public interface ParameterAdaptable<ObjectType,DataType>

Interface for an object that allows parameter adapters to be attached to it. The interface is similar to a listener pattern in that the parameter adapters should expect to be called at the appropriate point for the object.

Since:
3.0
Author:
Justin Basilico

Method Summary
 void addParameterAdapter(ParameterAdapter<? super ObjectType,? super DataType> parameterAdapter)
          Adds the given parameter adapter to this object.
 Collection<ParameterAdapter<? super ObjectType,? super DataType>> getParameterAdapters()
          Gets the collection of parameter adapters attached to this object.
 void removeParameterAdapter(ParameterAdapter<? super ObjectType,? super DataType> parameterAdapter)
          Removes the given parameter adapter from this object.
 

Method Detail

addParameterAdapter

void addParameterAdapter(ParameterAdapter<? super ObjectType,? super DataType> parameterAdapter)
Adds the given parameter adapter to this object.

Parameters:
parameterAdapter - The parameter adapter to add.

removeParameterAdapter

void removeParameterAdapter(ParameterAdapter<? super ObjectType,? super DataType> parameterAdapter)
Removes the given parameter adapter from this object.

Parameters:
parameterAdapter - The parameter adapter to remove.

getParameterAdapters

Collection<ParameterAdapter<? super ObjectType,? super DataType>> getParameterAdapters()
Gets the collection of parameter adapters attached to this object.

Returns:
The parameter adapters attached to this object.