use of jmri.jmrix.rfid.TimeoutRfidSensor in project JMRI by JMRI.
the class ConcentratorSensorManager method createNewSensor.
@Override
protected Sensor createNewSensor(String systemName, String userName) {
log.debug("Create new Sensor");
TimeoutRfidSensor s;
s = new TimeoutRfidSensor(systemName, userName);
s.addPropertyChangeListener(this);
return s;
}
use of jmri.jmrix.rfid.TimeoutRfidSensor in project JMRI by JMRI.
the class StandaloneSensorManager method processReply.
private void processReply(StandaloneReply r) {
if (!tc.getAdapterMemo().getProtocol().isValid(r)) {
log.warn("Invalid message - skipping " + r);
return;
}
IdTag idTag = InstanceManager.getDefault(IdTagManager.class).provideIdTag(tc.getAdapterMemo().getProtocol().getTag(r));
TimeoutRfidSensor sensor = (TimeoutRfidSensor) provideSensor(prefix + typeLetter() + "1");
sensor.notify(idTag);
}
use of jmri.jmrix.rfid.TimeoutRfidSensor in project JMRI by JMRI.
the class ConcentratorSensorManager method processReply.
private void processReply(ConcentratorReply r) {
if (!tc.getAdapterMemo().getProtocol().isValid(r)) {
log.warn("Invalid message - skipping " + r);
return;
}
if (!r.isInRange()) {
log.warn("Invalid concentrator reader range - skipping " + r);
return;
}
IdTag idTag = InstanceManager.getDefault(IdTagManager.class).provideIdTag(tc.getAdapterMemo().getProtocol().getTag(r));
TimeoutRfidSensor sensor = (TimeoutRfidSensor) provideSensor(prefix + typeLetter() + r.getReaderPort());
sensor.notify(idTag);
}
use of jmri.jmrix.rfid.TimeoutRfidSensor in project JMRI by JMRI.
the class StandaloneSensorManager method createNewSensor.
@Override
protected Sensor createNewSensor(String systemName, String userName) {
log.debug("Create new Sensor");
TimeoutRfidSensor s;
s = new TimeoutRfidSensor(systemName, userName);
s.addPropertyChangeListener(this);
return s;
}
Aggregations