-
Notifications
You must be signed in to change notification settings - Fork 1
/
constructors.go
30 lines (26 loc) · 1.23 KB
/
constructors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package models
import (
"github.com/squirrel-land/models/mobilityManagers/grpcUpdatablePositions"
"github.com/squirrel-land/models/mobilityManagers/interactivePositions"
"github.com/squirrel-land/models/mobilityManagers/staticDefinedPositions"
"github.com/squirrel-land/models/mobilityManagers/staticUniformPositions"
"github.com/squirrel-land/models/septembers/csmaca"
"github.com/squirrel-land/models/septembers/distanceBased"
"github.com/squirrel-land/models/septembers/passThrough"
"github.com/squirrel-land/squirrel"
)
var MobilityManagers = map[string]func() squirrel.MobilityManager{
"StaticUniformPositions": staticUniformPositions.NewStaticUniformPositions,
"StaticDefinedPositions": staticDefinedPositions.NewStaticDefinedPositions,
"InteractivePositions": interactivePositions.NewInteractivePositions,
"gRPCUpdatablePositions": grpcUpdatablePositions.NewGRPCUpdatablePositions,
}
var Septembers = map[string]func() squirrel.September{
"PassThrough": passThrough.CreateSeptember,
"DistanceBased": distanceBased.CreateSeptember,
"CSMA/CA": csmaca.CreateSeptember,
/* legacy names */
"September0th": passThrough.CreateSeptember,
"September1st": distanceBased.CreateSeptember,
"September2nd": csmaca.CreateSeptember,
}