Skip to content

Commit

Permalink
doc: update comments of package slectionstrategy
Browse files Browse the repository at this point in the history
issue: #242
  • Loading branch information
CodeBear801 committed May 13, 2020
1 parent 2ed8804 commit d3bffac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integration/service/oasis/selectionstrategy/doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
/*
Package selectionstrategy contains logic related with charge station selection related logic.
It contains logic of:
- detect wether destination is reachable or not
- detect whether charge is needed or not
- if charge for one time could reach destination, find best solution
- best solution for multiple charge
+ SearchAlongRoute(comment temporarily)
+ ChargeStationBasedStrategy
*/
package selectionstrategy
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ import (
"github.com/golang/glog"
)

// StaionSelectionStrategy defines enum of how to select optimal charge stations
type StaionSelectionStrategy int

const (
// FindChargeStaionsAlongRoute means first calculate a route, then try to find charge stations along the route when energy is low
FindChargeStaionsAlongRoute = StaionSelectionStrategy(iota) + 1
// ChargeStaionBasedRouting builds a graph of charge stations and apply shortest-path-algorithm on to it
ChargeStaionBasedRouting
)

Expand Down

0 comments on commit d3bffac

Please sign in to comment.