package state //列车状态 type TrainState struct { //列车所在linkid LinkId string //列车在link上的偏移量(A端为起点) LinkOffset int64 //运行方向,true-由左向右 Up bool }