OptimizationSummary class

A class encapsulating the data included in the Optimization's Summary.

Includes the optimization's cost, unassigned, delivery, pickup, service, duration, waitingTime and its computingTimes map.

Constructors

OptimizationSummary({int? cost, int? unassigned, List<int>? amount, List<int>? delivery, List<int>? pickup, int? service = 0, int? duration, int? waitingTime, Map<String, dynamic>? computingTimes})
const
OptimizationSummary.fromJson(Map<String, dynamic> json)
Generates OptimizationSummary from a Map received from the API having the keys 'cost', 'unassigned', 'delivery', 'amount', 'pickup', 'service', 'duration', 'waiting_time' and 'computing_times'.
factory

Properties

amount List<int>?
List of int describing multidimensional quantities of this Optimization for amount.
final
computingTimes Map<String, dynamic>?
Map of int describing the computing times for each task.
final
cost int?
int Optimized cost.
final
delivery List<int>?
List of int describing multidimensional quantities of this Optimization for delivery.
final
duration int?
int describing the duration of this Optimized job.
final
hashCode int
The hash code for this object.
no setteroverride
pickup List<int>?
List of int describing multidimensional quantities of this Optimization for pickup.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service int?
int describing the service duration of this job. Defaults to 0.
final
unassigned int?
int Count of unassigned values.
final
waitingTime int?
int describing the waiting time for this Optimized job.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a Map representation of the OptimizationSummary object. The keys of the Map are 'cost', 'unassigned', 'amount', 'delivery', 'pickup', 'service', 'duration', 'waiting_time' and 'computing_times'.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override