private DataRegionUnit(TabMemory mem, int index) { memory = mem; Ind = index; Pos = Config._LoopByteCount + Config._byteCount * Ind; DeviceId = (UInt16)((((UInt16)Type) << 8) | TargetId); }
public DataSegmentCollection(TabMemory mem) { this.memory = mem; dataList = new List <DataSegmentUnit>(); for (int i = 0; i < Count; i++) { dataList.Add(DataSegmentUnit.Create(memory, i)); } }
private DataSegmentUnit(TabMemory mem, int index) { memory = mem; Ind = index; Pos = Config._LoopByteCount + Config._byteCount * Ind; IndBeg = -1; IndEnd = -1; IndMainBeg = -1; IndMainEnd = -1; IndSideBeg = -1; IndSideEnd = -1; IndDaoChaBeg = -1; IndDaoChaEnd = -1; IndFigPosBeg = -1; IndFigLineBeg = -1; IndFigPosEnd = -1; IndFigLineEnd = -1; IndLianDongBeg = -1; IndLianDondEnd = -1; IndBaoHuJLH = -1; IndZhanTai = -1; IndJinLu = -1; IndWuLiSeg = -1; IndParkArea = -1; IsJinLuFrontLastToInd = -1; IsJinLuLastToInd = -1; IndJiZhouSegFromJinLu = -1; TagMessage = ""; FixedSpeed = 0; SignalIndList = new List <int>(); ParkPointIndList = new List <int>(); BaliseIndList = new List <int>(); JiZhouSegIndList = new List <int>(); LuoJiSegIndList = new List <int>(); ZxJinluIndList = new List <int>(); FxJinluIndList = new List <int>(); LuoJiInnerXList = new List <UInt32>(); ZxTrigSignalIndList = new List <int>(); FxTrigSignalIndList = new List <int>(); IsHuiHe = false; }
public static DataSegmentUnit Create(TabMemory mem, int index) { return(new DataSegmentUnit(mem, index)); }
public static DataRegionUnit Create(TabMemory mem, int index) { return(new DataRegionUnit(mem, index)); }