use of org.openlcb.Message in project JMRI by JMRI.
the class OpenLcbCanSendPane method sendReqProducers.
public void sendReqProducers(java.awt.event.ActionEvent e) {
Message m = new IdentifyProducersMessage(srcNodeID, eventID());
connection.put(m, null);
}
use of org.openlcb.Message in project JMRI by JMRI.
the class OpenLcbCanSendPane method sendVerifyNodeGlobalID.
public void sendVerifyNodeGlobalID(java.awt.event.ActionEvent e) {
Message m = new VerifyNodeIDNumberMessage(srcNodeID, destNodeID());
connection.put(m, null);
}
use of org.openlcb.Message in project JMRI by JMRI.
the class OpenLcbCanSendPane method sendReqConsumers.
public void sendReqConsumers(java.awt.event.ActionEvent e) {
Message m = new IdentifyConsumersMessage(srcNodeID, eventID());
connection.put(m, null);
}
use of org.openlcb.Message in project JMRI by JMRI.
the class MonitorPane method frameToMessages.
// see jmri.jmrix.openlcb.OlcbConfigurationManager
java.util.List<Message> frameToMessages(int header, int len, int[] content) {
OpenLcbCanFrame frame = new OpenLcbCanFrame(header & 0xFFF);
frame.setHeader(header);
if (len != 0) {
byte[] data = new byte[len];
for (int i = 0; i < data.length; i++) {
data[i] = (byte) content[i];
}
frame.setData(data);
}
aliasMap.processFrame(frame);
java.util.List<Message> list = messageBuilder.processFrame(frame);
return list;
}
Aggregations