Constructor of an EnergyEvaluator object, stores the objects used for the computation

Namespace:  Cloudster
Assembly:  Cloudster.CoreLib (in Cloudster.CoreLib.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public EnergyEvaluator(
	IDistance<TEntity> distanceComputer,
	IDataAccessor<TEntity> dataAccessor
)
Visual Basic (Declaration)
Public Sub New ( _
	distanceComputer As IDistance(Of TEntity), _
	dataAccessor As IDataAccessor(Of TEntity) _
)
Visual C++
public:
EnergyEvaluator(
	IDistance<TEntity>^ distanceComputer, 
	IDataAccessor<TEntity>^ dataAccessor
)

Parameters

distanceComputer
Type: Cloudster..::.IDistance<(Of <(TEntity>)>)
Object implementing the IDistance interface for computing distance between two entities
dataAccessor
Type: Cloudster..::.IDataAccessor<(Of <(TEntity>)>)
Data accessor object

See Also