Esempio n. 1
0
 public void duplicate(Object source_) {
   super.duplicate(source_);
   SensorPhy that_ = (SensorPhy) source_;
   nid = that_.nid;
   Radius = that_.Radius;
   Pt = that_.Pt;
   noiseStrength = that_.noiseStrength;
   lastNoisePower = that_.lastNoisePower;
   gen = that_.gen;
   RxThresh = that_.RxThresh;
 }
Esempio n. 2
0
  protected synchronized void processOther(Object data_, Port inPort_) {
    String portid_ = inPort_.getID();

    if (portid_.equals(CHANNEL_PORT_ID)) {
      if (!(data_ instanceof SensorNodeChannelContract.Message)) {
        error(data_, "processOther()", inPort_, "unknown object");
        return;
      }
      dataArriveAtChannelPort(data_);
      return;
    }

    super.processOther(data_, inPort_);
  }