protected IOTObjectNode(int id) : base(id) { this.global = (IOTGlobal)Global.getInstance(); this.dataSeq = 0; this.nearReaderList = new Dictionary<int, float>(); }
public IOTReader(int id, int org) : base(id, org) { this.global = (IOTGlobal)Global.getInstance(); this.ReaderCache = new Dictionary<int, RSUEntity>(); this.wiredNodeCache = new List<int>(); this.orgMonitorMapping = new Dictionary<int, List<int>>(); this.cachedMonitorNodes = new Dictionary<int, HashSet<int>>(); this.readerType = ReaderType.NORMAL; this.observedPhenomemons = new HashSet<IOTPhenomemon>(); this.neighborSpeedPhenomemons = new Dictionary<int, IOTPhenomemon>(); IOTPhenomemon p = new IOTPhenomemon(IOTPhenomemonType.MOVE_FAST, id); this.neighborSpeedPhenomemons.Add(id, p); this.observedPhenomemons.Add(p); CheckRoutine(); }