Interface IVehiclePlannerRepository
Vehicle planner repository
Namespace: Simplic.Logistics
Assembly: Simplic.Logistics.dll
Syntax
public interface IVehiclePlannerRepository
Methods
| Improve this Doc View SourceGet(DateTime)
Get plan for a specific date. Returns null if no plan exists
Declaration
IList<VehicleOperationalPlan> Get(DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | date | Planning date |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<VehicleOperationalPlan> | Instance if exists, else null |
Get(Guid)
Gets an instance of a vehicle operation plan
Declaration
VehicleOperationalPlan Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Operatioanl plan id |
Returns
Type | Description |
---|---|
VehicleOperationalPlan | Instance of VehicleOperationalPlan if exists |
Get(Guid, DateTime)
Get the operation plan for a single vehicle at a specific date
Declaration
VehicleOperationalPlan Get(Guid vehicleId, DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId | Vehicle id |
System.DateTime | date | Planning date |
Returns
Type | Description |
---|---|
VehicleOperationalPlan | Instance if exists, else null |
GetGuid(Guid, DateTime)
Get the operation plan id
Declaration
Guid GetGuid(Guid vehicleId, DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId | Vehicle id |
System.DateTime | date | Planning date |
Returns
Type | Description |
---|---|
System.Guid | Unique id of the planning entry |
Save(IList<VehicleOperationalPlan>)
Save detailed plan with description
Declaration
void Save(IList<VehicleOperationalPlan> details)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<VehicleOperationalPlan> | details | List of details |