SawLocalDatasourceImpl class
Implementation of SawLocalDatasource that handles SAW algorithm operations.
This implementation supports:
- Automatic weight normalization
- Isolate-based processing for large datasets
- Performance profiling
- Comprehensive input validation
Example usage:
final datasource = SawLocalDatasourceImpl();
// Generate matrix
final matrix = await datasource.generateSawMatrix(
listAlternative: alternatives,
listCriteria: criteria,
);
// Calculate results
final results = await datasource.calculateSawResult(matrix: matrix);
- Inheritance
-
- Object
- SawLocalDatasource
- SawLocalDatasourceImpl
Constructors
- SawLocalDatasourceImpl({DecisionMakingHelper? helper, Stopwatch? stopwatch, DecisionIsolateMain? isolate})
- Creates an instance of SawLocalDatasourceImpl.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
calculateResultWithExistingMatrix(
{required List< SawMatrix> matrix}) → Future<List< SawResult> > -
==========================================================================
RESULT WITH CRITERIAoverride -
calculateSawResult(
{required List< SawMatrix> matrix}) → Future<List< SawResult> > -
Calculates the final SAW results from a decision matrix.
override
-
generateSawMatrix(
{required List< SawAlternative> listAlternative, required List<SawCriteria> listCriteria}) → Future<List< SawMatrix> > -
MATRIXGENERATE SAW MATRIXoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited