rts-sim-module/repository/Transponder.go

32 lines
698 B
Go
Raw Normal View History

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type Transponder struct {
Identity
km *proto.Kilometer
//section *PhysicalSection
//turnoutPort TurnoutPort
linkPosition *LinkPosition
}
func NewTransponder(id string, km *proto.Kilometer) *Transponder {
return &Transponder{
Identity: identity{id, proto.DeviceType_DeviceType_Transponder},
km: km,
}
}
func (t *Transponder) bindLinkPosition(position *LinkPosition) {
t.linkPosition = position
}
//func (r *Transponder) bindSection(section *PhysicalSection) {
// r.section = section
//}
//
//func (r *Transponder) bindTurnoutPort(turnoutPort TurnoutPort) {
// r.turnoutPort = turnoutPort
//}