simulation

package
v0.0.0-...-defa990 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_delivery_simulation_simulation_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DeliveryRequest

type DeliveryRequest struct {
	Uuid          string                  `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name          string                  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	GoodsMetadata *delivery.GoodsMetadata `protobuf:"bytes,3,opt,name=goods_metadata,json=goodsMetadata,proto3" json:"goods_metadata,omitempty"`
	SrcLoc        *delivery.LatLng        `protobuf:"bytes,4,opt,name=src_loc,json=srcLoc,proto3" json:"src_loc,omitempty"`
	DstLoc        *delivery.LatLng        `protobuf:"bytes,5,opt,name=dst_loc,json=dstLoc,proto3" json:"dst_loc,omitempty"`
	SrcTimeWindow *delivery.TimeWindow    `protobuf:"bytes,6,opt,name=src_time_window,json=srcTimeWindow,proto3" json:"src_time_window,omitempty"`
	DstTimeWindow *delivery.TimeWindow    `protobuf:"bytes,7,opt,name=dst_time_window,json=dstTimeWindow,proto3" json:"dst_time_window,omitempty"`
	CreatedAt     *timestamppb.Timestamp  `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*DeliveryRequest) Descriptor deprecated

func (*DeliveryRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeliveryRequest.ProtoReflect.Descriptor instead.

func (*DeliveryRequest) GetCreatedAt

func (x *DeliveryRequest) GetCreatedAt() *timestamppb.Timestamp

func (*DeliveryRequest) GetDstLoc

func (x *DeliveryRequest) GetDstLoc() *delivery.LatLng

func (*DeliveryRequest) GetDstTimeWindow

func (x *DeliveryRequest) GetDstTimeWindow() *delivery.TimeWindow

func (*DeliveryRequest) GetGoodsMetadata

func (x *DeliveryRequest) GetGoodsMetadata() *delivery.GoodsMetadata

func (*DeliveryRequest) GetName

func (x *DeliveryRequest) GetName() string

func (*DeliveryRequest) GetSrcLoc

func (x *DeliveryRequest) GetSrcLoc() *delivery.LatLng

func (*DeliveryRequest) GetSrcTimeWindow

func (x *DeliveryRequest) GetSrcTimeWindow() *delivery.TimeWindow

func (*DeliveryRequest) GetUuid

func (x *DeliveryRequest) GetUuid() string

func (*DeliveryRequest) ProtoMessage

func (*DeliveryRequest) ProtoMessage()

func (*DeliveryRequest) ProtoReflect

func (x *DeliveryRequest) ProtoReflect() protoreflect.Message

func (*DeliveryRequest) Reset

func (x *DeliveryRequest) Reset()

func (*DeliveryRequest) String

func (x *DeliveryRequest) String() string

type DeliveryRequestResultDetails

type DeliveryRequestResultDetails struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	IsBeingServed bool   `protobuf:"varint,2,opt,name=is_being_served,json=isBeingServed,proto3" json:"is_being_served,omitempty"`
	TotalWaitTime int64  `protobuf:"varint,3,opt,name=total_wait_time,json=totalWaitTime,proto3" json:"total_wait_time,omitempty"`
	// contains filtered or unexported fields
}

func (*DeliveryRequestResultDetails) Descriptor deprecated

func (*DeliveryRequestResultDetails) Descriptor() ([]byte, []int)

Deprecated: Use DeliveryRequestResultDetails.ProtoReflect.Descriptor instead.

func (*DeliveryRequestResultDetails) GetIsBeingServed

func (x *DeliveryRequestResultDetails) GetIsBeingServed() bool

func (*DeliveryRequestResultDetails) GetName

func (x *DeliveryRequestResultDetails) GetName() string

func (*DeliveryRequestResultDetails) GetTotalWaitTime

func (x *DeliveryRequestResultDetails) GetTotalWaitTime() int64

func (*DeliveryRequestResultDetails) ProtoMessage

func (*DeliveryRequestResultDetails) ProtoMessage()

func (*DeliveryRequestResultDetails) ProtoReflect

func (*DeliveryRequestResultDetails) Reset

func (x *DeliveryRequestResultDetails) Reset()

func (*DeliveryRequestResultDetails) String

type DriverRequest

type DriverRequest struct {
	Uuid              string                    `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name              string                    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	VehicleCapacity   *delivery.VehicleCapacity `protobuf:"bytes,3,opt,name=vehicle_capacity,json=vehicleCapacity,proto3" json:"vehicle_capacity,omitempty"`
	MaxSpeedKmPerHour float64                   `protobuf:"fixed64,4,opt,name=max_speed_km_per_hour,json=maxSpeedKmPerHour,proto3" json:"max_speed_km_per_hour,omitempty"`
	Loc               *delivery.LatLng          `protobuf:"bytes,5,opt,name=loc,proto3" json:"loc,omitempty"`
	CreatedAt         *timestamppb.Timestamp    `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*DriverRequest) Descriptor deprecated

func (*DriverRequest) Descriptor() ([]byte, []int)

Deprecated: Use DriverRequest.ProtoReflect.Descriptor instead.

func (*DriverRequest) GetCreatedAt

func (x *DriverRequest) GetCreatedAt() *timestamppb.Timestamp

func (*DriverRequest) GetLoc

func (x *DriverRequest) GetLoc() *delivery.LatLng

func (*DriverRequest) GetMaxSpeedKmPerHour

func (x *DriverRequest) GetMaxSpeedKmPerHour() float64

func (*DriverRequest) GetName

func (x *DriverRequest) GetName() string

func (*DriverRequest) GetUuid

func (x *DriverRequest) GetUuid() string

func (*DriverRequest) GetVehicleCapacity

func (x *DriverRequest) GetVehicleCapacity() *delivery.VehicleCapacity

func (*DriverRequest) ProtoMessage

func (*DriverRequest) ProtoMessage()

func (*DriverRequest) ProtoReflect

func (x *DriverRequest) ProtoReflect() protoreflect.Message

func (*DriverRequest) Reset

func (x *DriverRequest) Reset()

func (*DriverRequest) String

func (x *DriverRequest) String() string

type DriverRoutingDetails

type DriverRoutingDetails struct {
	Name                string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Routes              []*Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"`
	TotalDistance       float64  `protobuf:"fixed64,3,opt,name=total_distance,json=totalDistance,proto3" json:"total_distance,omitempty"`
	TotalTimeSpent      int64    `protobuf:"varint,4,opt,name=total_time_spent,json=totalTimeSpent,proto3" json:"total_time_spent,omitempty"`
	NumOfServedRequests int32    `protobuf:"varint,5,opt,name=num_of_served_requests,json=numOfServedRequests,proto3" json:"num_of_served_requests,omitempty"`
	// contains filtered or unexported fields
}

func (*DriverRoutingDetails) Descriptor deprecated

func (*DriverRoutingDetails) Descriptor() ([]byte, []int)

Deprecated: Use DriverRoutingDetails.ProtoReflect.Descriptor instead.

func (*DriverRoutingDetails) GetName

func (x *DriverRoutingDetails) GetName() string

func (*DriverRoutingDetails) GetNumOfServedRequests

func (x *DriverRoutingDetails) GetNumOfServedRequests() int32

func (*DriverRoutingDetails) GetRoutes

func (x *DriverRoutingDetails) GetRoutes() []*Route

func (*DriverRoutingDetails) GetTotalDistance

func (x *DriverRoutingDetails) GetTotalDistance() float64

func (*DriverRoutingDetails) GetTotalTimeSpent

func (x *DriverRoutingDetails) GetTotalTimeSpent() int64

func (*DriverRoutingDetails) ProtoMessage

func (*DriverRoutingDetails) ProtoMessage()

func (*DriverRoutingDetails) ProtoReflect

func (x *DriverRoutingDetails) ProtoReflect() protoreflect.Message

func (*DriverRoutingDetails) Reset

func (x *DriverRoutingDetails) Reset()

func (*DriverRoutingDetails) String

func (x *DriverRoutingDetails) String() string

type Route

type Route struct {
	DeliveryRequestUuid string                 `protobuf:"bytes,1,opt,name=delivery_request_uuid,json=deliveryRequestUuid,proto3" json:"delivery_request_uuid,omitempty"`
	SrcLoc              *delivery.LatLng       `protobuf:"bytes,2,opt,name=src_loc,json=srcLoc,proto3" json:"src_loc,omitempty"`
	DstLoc              *delivery.LatLng       `protobuf:"bytes,3,opt,name=dst_loc,json=dstLoc,proto3" json:"dst_loc,omitempty"`
	TimeWindow          *delivery.TimeWindow   `protobuf:"bytes,4,opt,name=time_window,json=timeWindow,proto3" json:"time_window,omitempty"`
	VehicleState        *delivery.VehicleState `protobuf:"bytes,5,opt,name=vehicle_state,json=vehicleState,proto3" json:"vehicle_state,omitempty"`
	SpeedKmPerHour      float64                `protobuf:"fixed64,6,opt,name=speed_km_per_hour,json=speedKmPerHour,proto3" json:"speed_km_per_hour,omitempty"`
	IsReqSrc            bool                   `protobuf:"varint,7,opt,name=is_req_src,json=isReqSrc,proto3" json:"is_req_src,omitempty"`
	IsReqDst            bool                   `protobuf:"varint,8,opt,name=is_req_dst,json=isReqDst,proto3" json:"is_req_dst,omitempty"`
	Distance            float64                `protobuf:"fixed64,9,opt,name=distance,proto3" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*Route) Descriptor deprecated

func (*Route) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetDeliveryRequestUuid

func (x *Route) GetDeliveryRequestUuid() string

func (*Route) GetDistance

func (x *Route) GetDistance() float64

func (*Route) GetDstLoc

func (x *Route) GetDstLoc() *delivery.LatLng

func (*Route) GetIsReqDst

func (x *Route) GetIsReqDst() bool

func (*Route) GetIsReqSrc

func (x *Route) GetIsReqSrc() bool

func (*Route) GetSpeedKmPerHour

func (x *Route) GetSpeedKmPerHour() float64

func (*Route) GetSrcLoc

func (x *Route) GetSrcLoc() *delivery.LatLng

func (*Route) GetTimeWindow

func (x *Route) GetTimeWindow() *delivery.TimeWindow

func (*Route) GetVehicleState

func (x *Route) GetVehicleState() *delivery.VehicleState

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

type SimulationRequest

type SimulationRequest struct {
	DeliveryRequests []*DeliveryRequest     `protobuf:"bytes,1,rep,name=delivery_requests,json=deliveryRequests,proto3" json:"delivery_requests,omitempty"`
	DriverRequests   []*DriverRequest       `protobuf:"bytes,2,rep,name=driver_requests,json=driverRequests,proto3" json:"driver_requests,omitempty"`
	CreatedAt        *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// options
	SupportRetracement              bool `protobuf:"varint,4,opt,name=support_retracement,json=supportRetracement,proto3" json:"support_retracement,omitempty"`
	UseAlternativeForDriverMatching bool `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SimulationRequest) Descriptor deprecated

func (*SimulationRequest) Descriptor() ([]byte, []int)

Deprecated: Use SimulationRequest.ProtoReflect.Descriptor instead.

func (*SimulationRequest) GetCreatedAt

func (x *SimulationRequest) GetCreatedAt() *timestamppb.Timestamp

func (*SimulationRequest) GetDeliveryRequests

func (x *SimulationRequest) GetDeliveryRequests() []*DeliveryRequest

func (*SimulationRequest) GetDriverRequests

func (x *SimulationRequest) GetDriverRequests() []*DriverRequest

func (*SimulationRequest) GetSupportRetracement

func (x *SimulationRequest) GetSupportRetracement() bool

func (*SimulationRequest) GetUseAlternativeForDriverMatching

func (x *SimulationRequest) GetUseAlternativeForDriverMatching() bool

func (*SimulationRequest) ProtoMessage

func (*SimulationRequest) ProtoMessage()

func (*SimulationRequest) ProtoReflect

func (x *SimulationRequest) ProtoReflect() protoreflect.Message

func (*SimulationRequest) Reset

func (x *SimulationRequest) Reset()

func (*SimulationRequest) String

func (x *SimulationRequest) String() string

type SimulationResponse

type SimulationResponse struct {
	DriverRoutingDetailsByUuid         map[string]*DriverRoutingDetails         `` /* 233-byte string literal not displayed */
	DeliveryRequestResultDetailsByUuid map[string]*DeliveryRequestResultDetails `` /* 259-byte string literal not displayed */
	RunningTime                        int64                                    `protobuf:"varint,3,opt,name=running_time,json=runningTime,proto3" json:"running_time,omitempty"`
	// contains filtered or unexported fields
}

func (*SimulationResponse) Descriptor deprecated

func (*SimulationResponse) Descriptor() ([]byte, []int)

Deprecated: Use SimulationResponse.ProtoReflect.Descriptor instead.

func (*SimulationResponse) GetDeliveryRequestResultDetailsByUuid

func (x *SimulationResponse) GetDeliveryRequestResultDetailsByUuid() map[string]*DeliveryRequestResultDetails

func (*SimulationResponse) GetDriverRoutingDetailsByUuid

func (x *SimulationResponse) GetDriverRoutingDetailsByUuid() map[string]*DriverRoutingDetails

func (*SimulationResponse) GetRunningTime

func (x *SimulationResponse) GetRunningTime() int64

func (*SimulationResponse) ProtoMessage

func (*SimulationResponse) ProtoMessage()

func (*SimulationResponse) ProtoReflect

func (x *SimulationResponse) ProtoReflect() protoreflect.Message

func (*SimulationResponse) Reset

func (x *SimulationResponse) Reset()

func (*SimulationResponse) String

func (x *SimulationResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL